]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables: Fix connlabel.conf install location
authorPhil Oester <kernel@linuxace.com>
Mon, 10 Jun 2013 09:35:44 +0000 (05:35 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 12 Jun 2013 08:00:54 +0000 (10:00 +0200)
As reported by Danny Rawlins in bug #828, connlabel.conf is
unconditionally installed in /etc/xtables instead of using
prefix set at configure time. Fix to use sysconfdir variable.

This closes bugzilla #828.

Signed-off-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Makefile.am

index cd008a1930dcd3dc693a2e9851a02c53da736775..73f1352c53dad6daeb1e57d29a0fd43e7cee65f9 100644 (file)
@@ -25,8 +25,8 @@ tarball:
        rm -Rf /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION};
 
 install-data-hook:
-       @mkdir -p -m 755 $(DESTDIR)/etc/xtables/ || :
-       @test -f /etc/xtables/connlabel.conf || $(INSTALL) -m 644 etc/xtables/connlabel.conf $(DESTDIR)/etc/xtables/connlabel.conf || :
+       @mkdir -p -m 755 @sysconfdir@/xtables/ || :
+       @test -f @sysconfdir@/xtables/connlabel.conf || $(INSTALL) -m 644 etc/xtables/connlabel.conf @sysconfdir@/xtables/connlabel.conf || :
 
 config.status: extensions/GNUmakefile.in \
        include/xtables-version.h.in include/iptables/internal.h.in