Guest User

Untitled

a guest
Jul 11th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3.  
  4. # These are used for cross-compiling and for saving the configure script
  5. # from having to guess our platform (since we know it already)
  6. DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
  7. DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
  8. ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
  9. else
  10. endif
  11.  
  12. config.status: configure
  13. dh_testdir
  14. # Add here commands to configure the package.
  15. ifneq "$(wildcard /usr/share/misc/config.sub)" ""
  16. cp -f /usr/share/misc/config.sub config.sub
  17. endif
  18. ifneq "$(wildcard /usr/share/misc/config.guess)" ""
  19. cp -f /usr/share/misc/config.guess config.guess
  20. endif
  21. ./configure \
  22. --conf-path=/etc/nginx/nginx.conf \
  23. --user=www-data \
  24. --group=www-data \
  25. --error-log-path=/var/log/nginx/error.log \
  26. --pid-path=/var/run/nginx.pid \
  27. --lock-path=/var/lock/nginx.lock \
  28. --http-log-path=/var/log/nginx/access.log \
  29. --without-http_charset_module \
  30. --without-http_ssi_module \
  31. --without-http_userid_module \
  32. --without-http_auth_basic_module \
  33. --without-http_geo_module \
  34. --without-http_map_module \
  35. --without-http_referer_module \
  36. --without-http_fastcgi_module \
  37. --without-http_limit_zone_module \
  38. --without-http_limit_req_module \
  39. --without-http_empty_gif_module \
  40. --without-http_browser_module \
  41. --without-http_upstream_ip_hash_module \
  42. --without-mail_pop3_module \
  43. --without-mail_imap_module \
  44. --without-mail_smtp_module \
  45. --with-http_gzip_static_module \
  46. --with-poll_module
  47.  
  48. build: build-stamp
  49. build-stamp: config.status
  50. dh_testdir
  51. $(MAKE)
  52. touch $@
  53.  
  54. clean:
  55. dh_testdir
  56. dh_testroot
  57. rm -f build-stamp
  58.  
  59. # Add here commands to clean up after the build process.
  60. [ ! -f Makefile ] || $(MAKE) distclean
  61. rm -f config.sub config.guess
  62.  
  63. dh_clean
  64.  
  65. install: build
  66. dh_testdir
  67. dh_testroot
  68. dh_prep
  69. dh_installdirs
  70.  
  71. # Add here commands to install the package into debian/nginx.
  72. $(MAKE) prefix=$(CURDIR)/debian/nginx/usr install
  73.  
  74.  
  75. # Build architecture-independent files here.
  76. binary-indep: install
  77. # We have nothing to do by default.
  78.  
  79. # Build architecture-dependent files here.
  80. binary-arch: install
  81. dh_testdir
  82. dh_testroot
  83. dh_installchangelogs CHANGES
  84. dh_installdocs
  85. dh_installexamples
  86. # dh_install
  87. # dh_installmenu
  88. # dh_installdebconf
  89. # dh_installlogrotate
  90. # dh_installemacsen
  91. # dh_installpam
  92. # dh_installmime
  93. # dh_python
  94. # dh_installinit
  95. # dh_installcron
  96. # dh_installinfo
  97. dh_installman
  98. dh_link
  99. dh_strip
  100. dh_compress
  101. dh_fixperms
  102. # dh_perl
  103. # dh_makeshlibs
  104. dh_installdeb
  105. dh_shlibdeps
  106. dh_gencontrol
  107. dh_md5sums
  108. dh_builddeb
  109.  
  110. binary: binary-indep binary-arch
  111. .PHONY: build clean binary-indep binary-arch binary install
Add Comment
Please, Sign In to add comment