summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--userspace/arptables/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/userspace/arptables/Makefile b/userspace/arptables/Makefile
index 9282884..7ca2929 100644
--- a/userspace/arptables/Makefile
+++ b/userspace/arptables/Makefile
@@ -50,6 +50,7 @@ scripts: arptables-save arptables-restore arptables.sysv
cat arptables-restore | sed 's/__EXEC_PATH__/$(tmp1)/g' > arptables-restore_
install -m 0755 arptables-restore_ $(DESTDIR)$(BINDIR)/arptables-restore
cat arptables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > arptables.sysv_
+ if [ "$(DESTDIR)" != "" ]; then mkdir -p $(DESTDIR)$(INITDIR); fi
if test -d $(DESTDIR)$(INITDIR); then install -m 0755 arptables.sysv_ $(DESTDIR)$(INITDIR)/arptables; fi
rm -f arptables-save_ arptables-restore_ arptables.sysv_