From abcb1ec17950408ced445c66c756072b2454ee25 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Thu, 18 Mar 2010 09:00:23 +0000 Subject: make INITDIR directory if DESTDIR is specified --- userspace/arptables/Makefile | 1 + 1 file changed, 1 insertion(+) 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_ -- cgit v1.2.3