summaryrefslogtreecommitdiffstats
path: root/userspace
diff options
context:
space:
mode:
Diffstat (limited to 'userspace')
-rw-r--r--userspace/ebtables2/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/userspace/ebtables2/Makefile b/userspace/ebtables2/Makefile
index 6d0744d..75ea552 100644
--- a/userspace/ebtables2/Makefile
+++ b/userspace/ebtables2/Makefile
@@ -27,6 +27,11 @@ ETHERTYPESPATH:=/etc/
endif
ETHERTYPESFILE:=$(ETHERTYPESPATH)ethertypes
+ifeq ($(BINPATH),)
+BINPATH:=/sbin/
+endif
+BINFILE:=$(BINPATH)ebtables
+
PROGSPECS:=-DPROGVERSION=\"$(PROGVERSION)\" \
-DPROGNAME=\"$(PROGNAME)\" \
-DPROGDATE=\"$(PROGDATE)\" \
@@ -57,10 +62,10 @@ $(ETHERTYPESFILE): ethertypes
.PHONY: exec
exec: ebtables
- install -m 0755 -o root -g root $< /sbin/ebtables
+ install -m 0755 -o root -g root $< $(BINFILE)
.PHONY: install
-install: $(MANDIR)/man8/ebtables.8 ebtables $(ETHERTYPESFILE) exec
+install: $(MANDIR)/man8/ebtables.8 $(ETHERTYPESFILE) exec
.PHONY: clean
clean: