diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..778479140 --- /dev/null +++ b/debian/rules | |||
@@ -0,0 +1,47 @@ | |||
1 | #!/usr/bin/make -f | ||
2 | |||
3 | SHELL := sh -e | ||
4 | |||
5 | include /usr/share/dpkg/architecture.mk | ||
6 | |||
7 | %: | ||
8 | dh ${@} | ||
9 | |||
10 | override_dh_auto_configure-arch: | ||
11 | dh_auto_configure -- --disable-rpath --with-microhttpd=yes $(shell dpkg-buildflags --export=configure) | ||
12 | |||
13 | override_dh_auto_configure-indep: | ||
14 | |||
15 | override_dh_auto_build-indep: | ||
16 | |||
17 | override_dh_auto_test: | ||
18 | # Disabling test suite, incomplete | ||
19 | |||
20 | override_dh_auto_install-arch: | ||
21 | dh_auto_install | ||
22 | |||
23 | # Create config file | ||
24 | mkdir -p debian/tmp/etc | ||
25 | cp debian/etc/gnunet.conf debian/tmp/etc/ | ||
26 | |||
27 | # Removing useless files | ||
28 | rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la \ | ||
29 | debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/*.la \ | ||
30 | debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/*.la \ | ||
31 | debian/tmp/usr/share/doc/gnunet/COPYING \ | ||
32 | debian/tmp/usr/bin/gnunet-service-template \ | ||
33 | debian/tmp/usr/bin/gnunet-template \ | ||
34 | debian/tmp/usr/bin/gnunet-helper-transport-wlan-dummy | ||
35 | |||
36 | override_dh_auto_install-indep: | ||
37 | |||
38 | execute_after_dh_auto_install: | ||
39 | dh_link -pgnunet-dev \ | ||
40 | usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns.so \ | ||
41 | usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns4.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns4.so \ | ||
42 | usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns6.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns6.so | ||
43 | |||
44 | override_dh_auto_clean: | ||
45 | dh_auto_clean | ||
46 | rm -rf contrib/gnunet_janitor.py contrib/gnunet_pyexpect.py libltdl/ \ | ||
47 | src/integration-tests/*.py | ||