Makefile 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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.6.1-P3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a0952d589b3051538033387be4c983f9
  8. PKG_DESCR:= popular DNS server
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libopenssl libbind libxml2
  11. PKG_BUILDDEP+= openssl libxml2
  12. PKG_URL:= https://www.isc.org/software/bind
  13. PKG_SITES:= ftp://ftp.isc.org/isc/bind9/${PKG_VERSION}/
  14. PKG_DESCR_1:= dynamic dns client (nsupdate utility)
  15. PKG_DESCR_2:= Support library for the bind tools and dns server/client
  16. PKG_DESCR_3:= rndc & rndc-confgen utilities
  17. PKG_DESCR_4:= named-checkconf & named-checkzone utilities
  18. PKG_DESCR_5:= dnssec-keygen & dnssec-signzone utilities
  19. PKG_DESCR_6:= host utility
  20. PKG_DESCR_7:= dig utility
  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},libs))
  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_ARGS+= --with-randomdev=/dev/urandom \
  31. --disable-threads \
  32. --with-openssl=${STAGING_DIR}/usr/ \
  33. --with-libxml2=${STAGING_DIR}/usr/ \
  34. --enable-epoll \
  35. --with-libtool
  36. pre-build:
  37. ${MAKE} -C ${WRKBUILD}/lib/dns \
  38. BUILD_CC="${HOSTCC}" \
  39. CC="${HOSTCC}" \
  40. CFLAGS='${HOSTCFLAGS}' \
  41. gen
  42. post-install:
  43. # bind server
  44. ${INSTALL_DIR} ${IDIR_BIND_SERVER}/usr/sbin ${IDIR_BIND_SERVER}/etc
  45. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named ${IDIR_BIND_SERVER}/usr/sbin/
  46. ${CP} ./files/bind ${IDIR_BIND_SERVER}/etc
  47. # nsupdate
  48. ${INSTALL_DIR} ${IDIR_BIND_CLIENT}/usr/bin
  49. ${INSTALL_BIN} ${WRKINST}/usr/bin/nsupdate ${IDIR_BIND_CLIENT}/usr/bin/
  50. # rndc
  51. ${INSTALL_DIR} ${IDIR_BIND_RNDC}/usr/sbin
  52. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rndc ${IDIR_BIND_RNDC}/usr/sbin/
  53. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rndc-confgen \
  54. ${IDIR_BIND_RNDC}/usr/sbin/
  55. # bind check
  56. ${INSTALL_DIR} ${IDIR_BIND_CHECK}/usr/sbin
  57. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named-checkconf \
  58. ${IDIR_BIND_CHECK}/usr/sbin/
  59. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named-checkzone \
  60. ${IDIR_BIND_CHECK}/usr/sbin/
  61. # dnsec tools
  62. ${INSTALL_DIR} ${IDIR_BIND_DNSSEC}/usr/sbin
  63. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dnssec-keygen \
  64. ${IDIR_BIND_DNSSEC}/usr/sbin/
  65. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dnssec-signzone \
  66. ${IDIR_BIND_DNSSEC}/usr/sbin/
  67. # host
  68. ${INSTALL_DIR} ${IDIR_BIND_HOST}/usr/bin
  69. ${INSTALL_BIN} ${WRKINST}/usr/bin/host ${IDIR_BIND_HOST}/usr/bin/
  70. # dig
  71. ${INSTALL_DIR} ${IDIR_BIND_DIG}/usr/bin
  72. ${INSTALL_BIN} ${WRKINST}/usr/bin/dig ${IDIR_BIND_DIG}/usr/bin/
  73. # bind lib
  74. ${INSTALL_DIR} ${IDIR_LIBBIND}/usr/lib
  75. ${CP} ${WRKINST}/usr/lib/libbind9.so.* ${IDIR_LIBBIND}/usr/lib/
  76. ${CP} ${WRKINST}/usr/lib/libdns.so.* ${IDIR_LIBBIND}/usr/lib/
  77. ${CP} ${WRKINST}/usr/lib/libisccc.so.* ${IDIR_LIBBIND}/usr/lib/
  78. ${CP} ${WRKINST}/usr/lib/libisccfg.so.* ${IDIR_LIBBIND}/usr/lib/
  79. ${CP} ${WRKINST}/usr/lib/libisc.so.* ${IDIR_LIBBIND}/usr/lib/
  80. ${CP} ${WRKINST}/usr/lib/liblwres.so.* ${IDIR_LIBBIND}/usr/lib/
  81. include ${TOPDIR}/mk/pkg-bottom.mk