summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2004-02-10 18:08:00 +0000
committerBart De Schuymer <bdschuym@pandora.be>2004-02-10 18:08:00 +0000
commitfc39a8ac3628e38dc7d535af6ffd679bdf56e659 (patch)
treef383609a9d7c034f97ada1323dc8cbcf6c2f6873 /userspace/ebtables2
parent19456632e3438743b02608e1a61abf5b6c4b13a3 (diff)
Sven Kohler: fix DESTDIR stuff
Diffstat (limited to 'userspace/ebtables2')
-rw-r--r--userspace/ebtables2/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/userspace/ebtables2/Makefile b/userspace/ebtables2/Makefile
index dc86a8f..cc91da5 100644
--- a/userspace/ebtables2/Makefile
+++ b/userspace/ebtables2/Makefile
@@ -4,7 +4,7 @@ PROGNAME:=ebtables
PROGVERSION:=2.0.7
PROGDATE:=January\ 2004
-LIBDIR?=/usr/lib/
+LIBDIR?=$(DESTDIR)/usr/lib/
MANDIR?=$(DESTDIR)/usr/local/man
CFLAGS:=-Wall -Wunused
CC:=gcc
@@ -68,10 +68,12 @@ $(ETHERTYPESFILE): ethertypes
.PHONY: exec
exec: ebtables
+ mkdir -p $(BINPATH)
install -m 0755 -o root -g root $< $(BINFILE)
.PHONY: install
install: $(MANDIR)/man8/ebtables.8 $(ETHERTYPESFILE) exec
+ mkdir -p $(LIBDIR)
install -m 0755 extensions/*.so $(LIBDIR)
install -m 0755 *.so $(LIBDIR)