use pkg-config to determine install location for iptables module

fixes #349

Change-Id: I762bc3a64b7c92e3f6193316e3035928b9556148
changes/62/12762/4
Richard Fuchs 9 years ago
parent f7aa5fa6b6
commit 26ca489931

@ -1 +0,0 @@
iptables-extension/libxt_RTPENGINE.so /lib/xtables/

7
debian/rules vendored

@ -17,6 +17,8 @@ sversion:=$(shell dpkg-parsechangelog|grep "^Version:"|cut -d" " -f2|rev|cut -d-
PACKAGE=ngcp-rtpengine-kernel PACKAGE=ngcp-rtpengine-kernel
## end of kernel package specific stuff ## end of kernel package specific stuff
XTABLES_DIR:=$(shell pkg-config xtables --variable=xtlibdir || echo /lib/xtables)
%: %:
dh $@ --parallel dh $@ --parallel
@ -59,6 +61,11 @@ override_dh_auto_install-indep:
dh_auto_install dh_auto_install
override_dh_install:
dh_install
dh_installdirs -pngcp-rtpengine-iptables $(XTABLES_DIR)
install -m 0644 iptables-extension/libxt_RTPENGINE.so debian/ngcp-rtpengine-iptables/$(XTABLES_DIR)
.PHONY: override_dh_strip .PHONY: override_dh_strip
override_dh_strip: override_dh_strip:
dh_strip --dbg-package=ngcp-rtpengine-dbg dh_strip --dbg-package=ngcp-rtpengine-dbg

Loading…
Cancel
Save