Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

rules 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/usr/bin/make -f
  2. # debian/rules makefile for postfixadmin
  3. # Uncomment this to turn on verbose mode.
  4. #export DH_VERBOSE=1
  5. export VERSION = $(shell grep -E "version = '.*';" functions.inc.php |sed -e "s/.version = '//" |sed -e "s/';.*//" |sed -e "s/ /-/g")
  6. export DEBVERSION = $(shell grep -E "postfixadmin .([0-9]+|\.)+" debian/changelog |head -1 |sed -e "s/postfixadmin .//" |sed -e "s/-.*//")
  7. # Create a needed tar.gz file to build a non-nativ .dpkg
  8. prep:
  9. rm -f ../postfixadmin_*orig.tar.gz
  10. cd ..; tar --exclude-vcs --exclude=$(notdir ${CURDIR})/debian --exclude=$(notdir ${CURDIR})/.pc -cvzf postfixadmin_${DEBVERSION}.orig.tar.gz $(notdir ${CURDIR})
  11. build: build-arch build-indep
  12. build-arch: build-stamp
  13. build-indep: build-stamp
  14. build-stamp:
  15. dh_testdir
  16. touch build-stamp
  17. clean:
  18. dh_testdir
  19. dh_testroot
  20. dh_clean
  21. install: build
  22. dh_testdir
  23. dh_testroot
  24. dh_prep
  25. dh_installdirs
  26. dh_install
  27. dh_apache2
  28. mv debian/postfixadmin/usr/share/postfixadmin/config.inc.php debian/postfixadmin/etc/postfixadmin/config.inc.php
  29. find debian/postfixadmin -name .svn | xargs -r rm -r
  30. # Build architecture-independent files here.
  31. binary-indep: build install
  32. dh_testdir
  33. dh_testroot
  34. dh_installchangelogs
  35. dh_installdebconf
  36. dh_installdocs -X.svn
  37. dh_installexamples -X.svn
  38. dh_link
  39. dh_compress
  40. dh_fixperms
  41. dh_installdeb
  42. dh_gencontrol
  43. dh_md5sums
  44. dh_builddeb
  45. # Build architecture-dependent files here.
  46. binary-arch:
  47. binary: binary-indep binary-arch
  48. .PHONY: build clean binary-indep binary-arch binary install