From 5059532d000a2b78fca43ffc9126fabefd302936 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Fri, 22 Nov 2002 18:55:55 +0000 Subject: add ETHERTYPESPATH, use ETHERTYPESFILE --- userspace/ebtables2/Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'userspace') diff --git a/userspace/ebtables2/Makefile b/userspace/ebtables2/Makefile index dbf9a3f..f46c3f7 100644 --- a/userspace/ebtables2/Makefile +++ b/userspace/ebtables2/Makefile @@ -1,8 +1,8 @@ # ebtables Makefile PROGNAME:=ebtables -PROGVERSION:="2.0.1" -PROGDATE:="October 2002" +PROGVERSION:=2.0.1 +PROGDATE:=October\ 2002 MANDIR?=/usr/local/man CFLAGS:=-Wall -Wunused @@ -21,8 +21,11 @@ else KERNEL_INCLUDES:=include/ endif -#ETHERTYPESFILE:="/etc/ethertypes" -ETHERTYPESFILE:="/usr/local/etc/ethertypes" +ifneq ($(ETHERTYPESPATH),) +ETHERTYPESFILE:=$(ETHERTYPESPATH)ethertypes +else +ETHERTYPESFILE:=/usr/local/etc/ethertypes +endif PROGSPECS:=-DPROGVERSION=\"$(PROGVERSION)\" \ -DPROGNAME=\"$(PROGNAME)\" \ @@ -48,7 +51,7 @@ $(MANDIR)/man8/ebtables.8: ebtables.8 mkdir -p $(@D) install -m 0644 -o root -g root $< $@ -/etc/ethertypes: ethertypes +$(ETHERTYPESFILE): ethertypes mkdir -p $(@D) install -m 0644 -o root -g root $< $@ @@ -57,7 +60,7 @@ exec: ebtables install -m 0755 -o root -g root $< /sbin/ebtables .PHONY: install -install: $(MANDIR)/man8/ebtables.8 ebtables /etc/ethertypes exec +install: $(MANDIR)/man8/ebtables.8 ebtables $(ETHERTYPESFILE) exec .PHONY: clean clean: -- cgit v1.2.3