diff options
author | Arturo Borrero Gonzalez <arturo@netfilter.org> | 2018-05-03 11:28:31 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-05-05 11:36:06 +0200 |
commit | 988d6a4cd1b12718177bf3065f07faeabb208713 (patch) | |
tree | c7572eb51f2617031ef88ed4d04dc6a9f6a99c17 /Makefile | |
parent | f4ab8f63f11a72f14687a6646d04ae1bae3fa45f (diff) |
arptables: cleanup sysvinit script
This file belong to downstream distributions. Also, it's unmaintained.
Signed-off-by: Arturo Borrero Gonzalez <arturo@netfilter.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -7,7 +7,6 @@ LIBDIR:=$(PREFIX)/lib BINDIR:=$(PREFIX)/sbin MANDIR:=$(PREFIX)/man man8dir=$(MANDIR)/man8 -INITDIR:=/etc/rc.d/init.d SYSCONFIGDIR:=/etc/sysconfig DESTDIR:= @@ -46,15 +45,12 @@ $(DESTDIR)$(BINDIR)/arptables: arptables tmp1:=$(shell printf $(BINDIR) | sed 's/\//\\\//g') tmp2:=$(shell printf $(SYSCONFIGDIR) | sed 's/\//\\\//g') .PHONY: scripts -scripts: arptables-save arptables-restore arptables.sysv +scripts: arptables-save arptables-restore cat arptables-save | sed 's/__EXEC_PATH__/$(tmp1)/g' > arptables-save_ install -m 0755 arptables-save_ $(DESTDIR)$(BINDIR)/arptables-save 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_ + rm -f arptables-save_ arptables-restore_ .PHONY: install-man install-man: $(MANS) |