rules 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/usr/bin/make -f
  2. SHELL := sh -e
  3. include /usr/share/dpkg/architecture.mk
  4. %:
  5. dh ${@}
  6. override_dh_auto_configure-arch:
  7. dh_auto_configure -- --disable-rpath --with-microhttpd=yes $(shell dpkg-buildflags --export=configure)
  8. override_dh_auto_configure-indep:
  9. override_dh_auto_build-indep:
  10. override_dh_auto_test:
  11. # Disabling test suite, incomplete
  12. override_dh_auto_install-arch:
  13. dh_auto_install
  14. # Create config file
  15. mkdir -p debian/tmp/etc
  16. cp debian/etc/gnunet.conf debian/tmp/etc/
  17. # Removing useless files
  18. rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la \
  19. debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/*.la \
  20. debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/*.la \
  21. debian/tmp/usr/share/doc/gnunet/COPYING \
  22. debian/tmp/usr/bin/gnunet-service-template \
  23. debian/tmp/usr/bin/gnunet-template \
  24. debian/tmp/usr/bin/gnunet-helper-transport-wlan-dummy
  25. override_dh_auto_install-indep:
  26. override_dh_installsystemd:
  27. dh_installsystemd -pgnunet --no-start --no-enable gnunet.service
  28. execute_after_dh_auto_install:
  29. dh_link -plibgnunet-dev \
  30. usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns.so \
  31. usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns4.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns4.so \
  32. usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns6.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns6.so
  33. override_dh_auto_clean:
  34. dh_auto_clean
  35. rm -rf contrib/gnunet_janitor.py contrib/gnunet_pyexpect.py libltdl/ \
  36. src/integration-tests/*.py
  37. # Remove files already present in libgnunet from main gnunet package and libgnunet-dev package
  38. override_dh_install:
  39. dh_install
  40. cd debian/libgnunet; find . -type f,l -exec rm -f ../gnunet/{} \;
  41. cd debian/libgnunet; find . -type f,l -exec rm -f ../libgnunet-dev/{} \;
  42. cd debian/gnunet; find . -type f,l -exec rm -f ../libgnunet-dev/{} \;