Guest User

Untitled

a guest
Jun 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. #!/usr/bin/make -f
  2.  
  3. CFLAGS = -Wall -g
  4.  
  5. DEB_BUILD_ARCH ?=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
  6. ifneq (,$(findstring sparc,$(DEB_BUILD_ARCH)))
  7. CONFIGURE_OPTS = --with-cc-opt="-m32 -mcpu=ultrasparc"
  8. endif
  9.  
  10. ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  11. CFLAGS += -O0
  12. else
  13. CFLAGS += -O2
  14. endif
  15.  
  16. config.status:
  17. dh_testdir
  18. ifneq "$(wildcard /usr/share/misc/config.sub)" ""
  19. cp -f /usr/share/misc/config.sub config.sub
  20. endif
  21. ifneq "$(wildcard /usr/share/misc/config.guess)" ""
  22. cp -f /usr/share/misc/config.guess config.guess
  23. endif
  24. ./configure $(CONFIGURE_OPTS) --add-module=/passenger-root/ext/nginx --conf-path=/etc/nginx/nginx.conf \
  25. --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid \
  26. --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log \
  27. --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy \
  28. --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-http_stub_status_module \
  29. --with-http_flv_module --with-http_ssl_module --with-http_dav_module \
  30. --with-http_realip_module
  31.  
  32. build: config.status
  33. $(MAKE) build
  34.  
  35. build-stamp:
  36. dh_testdir
  37. touch $@
  38.  
  39. clean:
  40. dh_testdir
  41. dh_testroot
  42. rm -f build-stamp
  43. [ ! -f Makefile ] || $(MAKE) clean
  44.  
  45. ifneq "$(wildcard /usr/share/misc/config.sub)" ""
  46. rm -f config.sub
  47. endif
  48. ifneq "$(wildcard /usr/share/misc/config.guess)" ""
  49. rm -f config.guess
  50. endif
  51. dh_clean
  52.  
  53. install:
  54. dh_testdir
  55. dh_testroot
  56. dh_clean -k
  57. dh_installdirs
  58. dh_install
  59.  
  60. binary-indep:
  61.  
  62. binary-arch: install
  63. dh_testdir
  64. dh_testroot
  65. dh_installchangelogs CHANGES
  66. dh_installdocs
  67. dh_installinit -r --no-start
  68. dh_installman debian/nginx.1
  69. dh_installlogrotate
  70. dh_link
  71. dh_strip
  72. dh_compress
  73. dh_fixperms
  74. dh_installdeb
  75. dh_shlibdeps
  76. dh_gencontrol
  77. dh_md5sums
  78. dh_builddeb
  79.  
  80. binary: binary-indep binary-arch
  81.  
  82. .PHONY: build clean binary-indep binary-arch binary install
Add Comment
Please, Sign In to add comment