diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | Rules.make | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -8,7 +8,7 @@ NETFILTER_VERSION:=1.2 OLD_NETFILTER_VERSION:=1.1.2 LIBDIR:=/usr/local/lib -BINDIR:=/usr/local/bin +BINDIR:=/usr/local/sbin MANDIR:=/usr/local/man INCDIR:=/usr/local/include @@ -10,6 +10,10 @@ clean: $(EXTRA_CLEANS) @find . -name '*.[ao]' | xargs rm -f install: all $(EXTRA_INSTALLS) + @if [ -f /usr/local/bin/iptables -a "$(BINDIR)" = "/usr/local/sbin" ];\ + then echo 'Erasing iptables from old location (now /usr/local/sbin).';\ + rm -f /usr/local/bin/iptables;\ + fi install-experimental: $(EXTRA_INSTALLS_EXP) |