Makefile 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= bind
  5. PKG_VERSION:= 9.4.1
  6. PKG_RELEASE:= 4
  7. PKG_MD5SUM:= 09b54d35036cb0423b2e618f21766285
  8. PKG_DESCR:= popular DNS server
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libopenssl libbind
  11. PKG_URL:= https://www.isc.org/software/bind
  12. PKG_SITES:= ftp://ftp.isc.org/isc/bind9/${PKG_VERSION}/
  13. PKG_DESCR_1:= dynamic dns client (nsupdate utility)
  14. PKG_DESCR_2:= Support library for the bind tools and dns server/client
  15. PKG_DESCR_3:= rndc & rndc-confgen utilities
  16. PKG_DESCR_4:= named-checkconf & named-checkzone utilities
  17. PKG_DESCR_5:= dnssec-keygen & dnssec-signzone utilities
  18. PKG_DESCR_6:= host utility
  19. PKG_DESCR_7:= dig utility
  20. PKG_SECTION_2:= libs
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,BIND_SERVER,bind-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. $(eval $(call PKG_template,BIND_CLIENT,bind-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION}))
  24. $(eval $(call PKG_template,LIBBIND,libbind,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_2},${PKG_SECTION_2}))
  25. $(eval $(call PKG_template,BIND_RNDC,bind-rndc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_3},${PKG_SECTION}))
  26. $(eval $(call PKG_template,BIND_CHECK,bind-check,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_4},${PKG_SECTION}))
  27. $(eval $(call PKG_template,BIND_DNSSEC,bind-dnssec,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_5},${PKG_SECTION}))
  28. $(eval $(call PKG_template,BIND_HOST,bind-host,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_6},${PKG_SECTION}))
  29. $(eval $(call PKG_template,BIND_DIG,bind-dig,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_7},${PKG_SECTION}))
  30. CONFIGURE_STYLE= gnu
  31. CONFIGURE_ENV+= BUILD_CC="${TARGET_CC}" \
  32. ac_cv_lib_nsl_inet_ntoa=no
  33. CONFIGURE_ARGS+= --with-randomdev=/dev/urandom \
  34. --disable-threads \
  35. --with-openssl=${STAGING_DIR}/usr/ \
  36. --with-libtool
  37. BUILD_STYLE= auto
  38. INSTALL_STYLE= auto
  39. pre-build:
  40. ${MAKE} -C ${WRKBUILD}/lib/dns \
  41. BUILD_CC="${HOSTCC}" \
  42. CC="${HOSTCC}" \
  43. CFLAGS='${HOSTCFLAGS}' \
  44. gen
  45. post-install:
  46. # bind server
  47. ${INSTALL_DIR} ${IDIR_BIND_SERVER}/usr/sbin ${IDIR_BIND_SERVER}/etc
  48. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named ${IDIR_BIND_SERVER}/usr/sbin/
  49. ${CP} ./files/bind ${IDIR_BIND_SERVER}/etc
  50. # nsupdate
  51. ${INSTALL_DIR} ${IDIR_BIND_CLIENT}/usr/bin
  52. ${INSTALL_BIN} ${WRKINST}/usr/bin/nsupdate ${IDIR_BIND_CLIENT}/usr/bin/
  53. # rndc
  54. ${INSTALL_DIR} ${IDIR_BIND_RNDC}/usr/sbin
  55. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rndc ${IDIR_BIND_RNDC}/usr/sbin/
  56. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rndc-confgen ${IDIR_BIND_RNDC}/usr/sbin/
  57. # bind check
  58. ${INSTALL_DIR} ${IDIR_BIND_CHECK}/usr/sbin
  59. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named-checkconf ${IDIR_BIND_CHECK}/usr/sbin/
  60. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named-checkzone ${IDIR_BIND_CHECK}/usr/sbin/
  61. # dnsec tools
  62. ${INSTALL_DIR} ${IDIR_BIND_DNSSEC}/usr/sbin
  63. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dnssec-keygen ${IDIR_BIND_DNSSEC}/usr/sbin/
  64. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dnssec-signzone ${IDIR_BIND_DNSSEC}/usr/sbin/
  65. # host
  66. ${INSTALL_DIR} ${IDIR_BIND_HOST}/usr/bin
  67. ${INSTALL_BIN} ${WRKINST}/usr/bin/host ${IDIR_BIND_HOST}/usr/bin/
  68. # dig
  69. ${INSTALL_DIR} ${IDIR_BIND_DIG}/usr/bin
  70. ${INSTALL_BIN} ${WRKINST}/usr/bin/dig ${IDIR_BIND_DIG}/usr/bin/
  71. # bind lib
  72. ${INSTALL_DIR} ${IDIR_LIBBIND}/usr/lib
  73. ${CP} ${WRKINST}/usr/lib/libbind9.so.* ${IDIR_LIBBIND}/usr/lib/
  74. ${CP} ${WRKINST}/usr/lib/libdns.so.* ${IDIR_LIBBIND}/usr/lib/
  75. ${CP} ${WRKINST}/usr/lib/libisccc.so.* ${IDIR_LIBBIND}/usr/lib/
  76. ${CP} ${WRKINST}/usr/lib/libisccfg.so.* ${IDIR_LIBBIND}/usr/lib/
  77. ${CP} ${WRKINST}/usr/lib/libisc.so.* ${IDIR_LIBBIND}/usr/lib/
  78. ${CP} ${WRKINST}/usr/lib/liblwres.so.* ${IDIR_LIBBIND}/usr/lib/
  79. include ${TOPDIR}/mk/pkg-bottom.mk