123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #!/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 -pgnunet --no-start --no-enable gnunet.service
- 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/{} \;
|