2
0

rules 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. execute_after_dh_auto_install:
  27. dh_link -plibgnunet-dev \
  28. usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns.so \
  29. usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns4.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns4.so \
  30. usr/lib/$(DEB_HOST_MULTIARCH)/gnunet/nss/libnss_gns6.so.2 usr/lib/$(DEB_HOST_MULTIARCH)/libnss_gns6.so
  31. override_dh_auto_clean:
  32. dh_auto_clean
  33. rm -rf contrib/gnunet_janitor.py contrib/gnunet_pyexpect.py libltdl/ \
  34. src/integration-tests/*.py
  35. # Remove files already present in libgnunet from main gnunet package
  36. override_dh_install:
  37. dh_install
  38. cd debian/libgnunet; find . -type f,l -exec rm -f ../gnunet/{} \;