summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-04-01 17:29:13 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-04-01 17:29:13 +0000
commita296038c559c4eadd8a91683322dadc0c7ac6d22 (patch)
tree42b281241254656b2a381d794ae21686c3b323c1
parent4c732c43f144cbb8537bbb6dc6248d3d97aa9292 (diff)
*** empty log message ***
-rw-r--r--INSTALL8
-rw-r--r--Makefile12
2 files changed, 8 insertions, 12 deletions
diff --git a/INSTALL b/INSTALL
index 9f44910..86f14d2 100644
--- a/INSTALL
+++ b/INSTALL
@@ -15,10 +15,10 @@ WHAT GETS INSTALLED?
To put the manual somewhere else, include MANDIR=<<man-path/man>> as
option on the command line.
The Makefile will append /man8/ebtables.8.
-- ethertypes is by default placed in /usr/local/etc/, if you
- want to change this, include ETHERTYPESPATH=<<path/>>.
-
+- ethertypes is by default placed in /etc/, if you
+ want to change this, include ETHERTYPESPATH=<<path>>.
- the userspace program ebtables is compiled and the executable is copied
- to /sbin/ebtables.
+ by default to /sbin/ebtables. If you want to put the executable
+ somewhere else, include BINPATH=<<path>>.
That's all
diff --git a/Makefile b/Makefile
index cacb0ee..77e0f2e 100644
--- a/Makefile
+++ b/Makefile
@@ -14,14 +14,10 @@ OBJECTS:=getethertype.o ebtables.o communication.o $(EXT_OBJS)
KERNEL_INCLUDES?=include/
-ifeq ($(ETHERTYPESPATH),)
-ETHERTYPESPATH:=/etc/
-endif
-ETHERTYPESFILE:=$(ETHERTYPESPATH)ethertypes
-
-ifeq ($(BINPATH),)
-BINPATH:=/sbin/
-endif
+ETHERTYPESPATH?=/etc/
+ETHERTYPESFILE:=$(ETHERTYPESPATH)/ethertypes
+
+BINPATH?=/sbin/
BINFILE:=$(BINPATH)ebtables
PROGSPECS:=-DPROGVERSION=\"$(PROGVERSION)\" \