You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.4 KiB

  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3. # Sample debian/rules that uses debhelper.
  4. #
  5. # This file was originally written by Joey Hess and Craig Small.
  6. # As a special exception, when this file is copied by dh-make into a
  7. # dh-make output file, you may use that output file without restriction.
  8. # This special exception was added by Craig Small in version 0.37 of dh-make.
  9. #
  10. # Modified to make a template file for a multi-binary package with separated
  11. # build-arch and build-indep targets by Bill Allombert 2001
  12. # Security Hardening
  13. export DEB_BUILD_MAINT_OPTIONS = hardening=+all
  14. DPKG_EXPORT_BUILDFLAGS = 1
  15. include /usr/share/dpkg/buildflags.mk
  16. # Uncomment this to turn on verbose mode.
  17. #export DH_VERBOSE=1
  18. # This has to be exported to make some magic below work.
  19. export DH_OPTIONS
  20. # Enable Multi-Arch support.
  21. DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
  22. override_dh_strip:
  23. dh_strip
  24. sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'`
  25. override_dh_auto_configure:
  26. dh_auto_configure -- \
  27. --enable-shared
  28. override_dh_installinit:
  29. dh_installinit
  30. dh_installinit --no-start --name=shadowsocks-libev-server@
  31. dh_installinit --no-start --name=shadowsocks-libev-tunnel@
  32. dh_installinit --no-start --name=shadowsocks-libev-redir@
  33. dh_installinit --no-start --name=shadowsocks-libev-local@
  34. override_dh_installchangelogs:
  35. dh_installchangelogs -XChanges
  36. %:
  37. dh $@ --with systemd