rules 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3. # Sample debian/rules that uses debhelper.
  4. # This file was originally written by Joey Hess and Craig Small.
  5. # As a special exception, when this file is copied by dh-make into a
  6. # dh-make output file, you may use that output file without restriction.
  7. # This special exception was added by Craig Small in version 0.37 of dh-make.
  8. # modified for node_package by dizzyd@basho.com and jared@basho.com
  9. # Uncomment this to turn on verbose mode.
  10. export DH_VERBOSE=1
  11. ## Clear variables that may confound our build of sub-projects; also
  12. ## note that it is necessary to use overlay_vars relative to .. as
  13. ## the generate command EXECUTES in rel/
  14. build:
  15. clean:
  16. dh_clean
  17. rm -f build
  18. # make clean
  19. ## dh_shlibdeps was added to figure out the dependencies on shared libraries
  20. ## and will populate the ${shlibs:Depends} callout in the control file
  21. install: build
  22. dh_testdir
  23. dh_testroot
  24. dh_prep
  25. dh_installdirs
  26. mkdir -p debian/emqx/usr/lib/emqx
  27. mkdir -p debian/emqx/var/lib/emqx
  28. mkdir -p debian/emqx/var/run/emqx
  29. mkdir -p debian/emqx/var/log/emqx
  30. mkdir -p debian/emqx/usr/lib/emqx/bin
  31. mkdir -p debian/emqx/etc/emqx
  32. mkdir -p debian/emqx/etc/init.d
  33. cp bin/* debian/emqx/usr/lib/emqx/bin
  34. cp -R lib debian/emqx/usr/lib/emqx
  35. cp -R erts* debian/emqx/usr/lib/emqx
  36. cp -R releases debian/emqx/usr/lib/emqx
  37. cp -R etc/* debian/emqx/etc/emqx
  38. cp -R data/* debian/emqx/var/lib/emqx
  39. install -d debian/emqx/lib/systemd/system
  40. install -p -m0644 debian/emqx.service debian/emqx/lib/systemd/system/emqx.service
  41. dh_shlibdeps
  42. # We have nothing to do by default.
  43. binary-indep: install build-stamp
  44. build-stamp:
  45. # Build architecture-dependent files here.
  46. binary-arch: install
  47. dh_strip -a
  48. dh_compress -a
  49. dh_installdeb
  50. dh_gencontrol
  51. dh_builddeb
  52. binary: binary-indep binary-arch