forked from ldx/python-iptables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules
executable file
·50 lines (39 loc) · 1.48 KB
/
rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f
# This file was automatically generated by stdeb 0.6.0+git at
# Thu, 14 Nov 2013 16:04:50 +0100
PY3VERS := $(shell py3versions -r)
PY2VERS := $(shell pyversions -r)
%:
dh $@ --with python2,python3 --buildsystem=python_distutils
.PHONY: override_dh_clean
override_dh_clean:
rm -rf build/*
dh_clean
.PHONY: override_dh_auto_install
override_dh_auto_install:
set -e; \
for py in $(PY3VERS); do \
$$py -B setup.py install --root debian/python3-iptables --install-layout deb; \
$$py-dbg -B setup.py install --root debian/python3-iptables-dbg --install-layout deb; \
done
# On Ubuntu 14.04 and possibly other versions, /usr/lib/python3/dist-packages is not
# included in the system library search path, so we add it here.
set -e; \
mkdir -p $(CURDIR)/debian/python3-iptables/etc/ld.so.conf.d; \
echo "/usr/lib/python3/dist-packages" > $(CURDIR)/debian/python3-iptables/etc/ld.so.conf.d/python3-dist-packages.conf
set -e; \
for py in $(PY2VERS); do \
$$py -B setup.py install --root debian/python-iptables --install-layout deb; \
$$py-dbg -B setup.py install --root debian/python-iptables-dbg --install-layout deb; \
done
.PHONY: override_dh_strip
override_dh_strip:
set -e; \
dh_strip -ppython-ev --dbg-package=python-iptables-dbg; \
dh_strip -ppython3-ev --dbg-package=python3-iptables-dbg;
override_dh_python2:
dh_python2 -ppython-iptables
dh_python2 -ppython-iptables-dbg
override_dh_python3:
dh_python3 -ppython3-iptables
dh_python3 -ppython3-iptables-dbg