blob: 88c520314010650fcb4a8b95123e38a8fc467d6b (
plain) (
blame)
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
50
51
52
53
54
55
56
57
|
#!/usr/bin/make -f
SHELL := sh -e
include /usr/share/dpkg/architecture.mk
%:
dh ${@}
override_dh_auto_configure-arch:
dh_auto_configure -- --disable-rpath --with-microhttpd=yes $(shell dpkg-buildflags --export=configure)
override_dh_auto_configure-indep:
override_dh_auto_build-indep:
override_dh_auto_test:
# Disabling test suite, incomplete
override_dh_auto_install-arch:
dh_auto_install
# Create config file
mkdir -p debian/tmp/etc
cp debian/etc/gnunet.conf debian/tmp/etc/
# Removing useless files
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la \
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/*.la \
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/*.la \
debian/tmp/usr/share/doc/gnunet/COPYING \
debian/tmp/usr/bin/gnunet-service-template \
debian/tmp/usr/bin/gnunet-template \
debian/tmp/usr/bin/gnunet-helper-transport-wlan-dummy
override_dh_auto_install-indep:
override_dh_installsystemd:
dh_installsystemd --no-start --no-enable
execute_after_dh_auto_install:
dh_link -plibgnunet-dev \
usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns.so \
usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns4.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns4.so \
usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns6.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns6.so
override_dh_auto_clean:
dh_auto_clean
rm -rf contrib/gnunet_janitor.py contrib/gnunet_pyexpect.py libltdl/ \
src/integration-tests/*.py
# Remove files already present in libgnunet from main gnunet package and libgnunet-dev package
override_dh_install:
dh_install
cd debian/libgnunet; find . -type f,l -exec rm -f ../gnunet/{} \;
cd debian/libgnunet; find . -type f,l -exec rm -f ../libgnunet-dev/{} \;
cd debian/gnunet; find . -type f,l -exec rm -f ../libgnunet-dev/{} \;
|