From bae4c030cb2deae12fee8d0c05766f1533e3b457 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Thu, 28 Apr 2011 17:28:37 +0200 Subject: [PATCH] ebtables: improved to only install the included sysvinit script and ebtables-config when INITDIR or SYSCONFIGDIR are defined --- ...-makefile-sysvinit-sysconfig-install.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 security/ebtables/ebtables-makefile-sysvinit-sysconfig-install.patch diff --git a/security/ebtables/ebtables-makefile-sysvinit-sysconfig-install.patch b/security/ebtables/ebtables-makefile-sysvinit-sysconfig-install.patch new file mode 100644 index 000000000..e48bb972e --- /dev/null +++ b/security/ebtables/ebtables-makefile-sysvinit-sysconfig-install.patch @@ -0,0 +1,20 @@ +Description: Only install sysvinit script and ebtables-config when INITDIR or SYSCONFIGDIR are defined + +--- ./Makefile.orig 2011-02-07 18:18:23.994696283 +0100 ++++ ./Makefile 2011-02-07 18:52:16.226697310 +0100 +@@ -157,9 +157,15 @@ + cat ebtables-save | sed 's/__EXEC_PATH__/$(tmp1)/g' > ebtables-save_ + install -m 0755 -o root -g root ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save + cat ebtables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables.sysv_ ++ifdef $(INITDIR) ++ install -d -m 0755 -o root -g root $(DESTDIR)$(INITDIR) + install -m 0755 -o root -g root ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables ++endif ++ifdef $(SYSCONFIGDIR) + cat ebtables-config | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables-config_ ++ install -d -m 0600 -o root -g root $(DESTDIR)$(SYSCONFIGDIR) + install -m 0600 -o root -g root ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config ++endif + rm -f ebtables-save_ ebtables.sysv_ ebtables-config_ + + $(MANDIR)/man8/ebtables.8: ebtables.8