diff --git a/Makefile b/Makefile index 3563195..3019b0d 100644 --- a/Makefile +++ b/Makefile @@ -8,13 +8,13 @@ # NAME = xt_dns -VERSION = 1.4 +VERSION = 1.5 DISTFILES = *.[ch] Makefile ChangeLog KVERSION = $(shell uname -r) KDIR = /lib/modules/$(KVERSION)/build MDIR = /lib/modules/$(KVERSION)/local/ -XDIR = /lib/xtables/ /lib64/xtables/ +XDIR = `pkg-config xtables --variable xtlibdir` IPTABLES = iptables IP6TABLES = ip6tables @@ -50,12 +50,7 @@ module-install: xt_dns.ko sync userspace-install: libxt_dns.so - for xdir in $(XDIR); do \ - if [ -d $${xdir} ]; then \ - install *.so $${xdir}; \ - break; \ - fi; \ - done + install libxt_dns.so $(XDIR) clean: rm -f libxt_dns.so config.h diff --git a/dkms.conf b/dkms.conf index b1681a7..5a6fe37 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="xt_dns" -PACKAGE_VERSION="1.4" +PACKAGE_VERSION="1.5" CLEAN="make clean" MAKE[0]="make module KVERSION=$kernelver" BUILT_MODULE_NAME[0]="xt_dns"