Makefile 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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.7.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c245b5d1aa0a4f53d9538faa1efe2c3f
  8. PKG_DESCR:= popular DNS server
  9. PKG_SECTION:= dns
  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_SUBPKGS:= BIND_SERVER BIND_NSUPDATE LIBBIND BIND_RNDC BIND_CHECK BIND_DNSSEC BIND_HOST BIND_DIG
  15. PKGSD_BIND_NSUPDATE:= nsupdate utility
  16. PKGSC_BIND_NSUPDATE:= dns
  17. PKGSD_BIND_RNDC:= rndc & rndc-confgen utilities
  18. PKGSC_BIND_RNDC:= dns
  19. PKGSD_BIND_CHECK:= check utilities
  20. PKGSC_BIND_CHECK:= dns
  21. PKGSD_BIND_DNSSEC:= dnssec utilities
  22. PKGSC_BIND_DNSSEC:= dns
  23. PKGSD_BIND_HOST:= host utility
  24. PKGSC_BIND_HOST:= dns
  25. PKGSD_BIND_DIG:= dig utility
  26. PKGSC_BIND_DIG:= dns
  27. PKGSD_LIBBIND:= library for the bind software suite
  28. PKGSC_LIBBIND:= libs
  29. PKG_FLAVOURS_BIND_SERVER:= WITH_IPV6
  30. PKGFD_WITH_IPV6:= enable IPv6 support
  31. include ${TOPDIR}/mk/package.mk
  32. $(eval $(call PKG_template,BIND_SERVER,bind-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  33. $(eval $(call PKG_template,BIND_CLIENT,bind-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_NSUPDATE},${PKGSC_BIND_NSUPDATE}))
  34. $(eval $(call PKG_template,BIND_RNDC,bind-rndc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_RNDC},${PKGSC_BIND_RNDC}))
  35. $(eval $(call PKG_template,BIND_CHECK,bind-check,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_CHECK},${PKGSC_BIND_CHECK}))
  36. $(eval $(call PKG_template,BIND_DNSSEC,bind-dnssec,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_DNSSEC},${PKGSC_BIND_DNSSEC}))
  37. $(eval $(call PKG_template,BIND_HOST,bind-host,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_HOST},${PKGSC_BIND_HOST}))
  38. $(eval $(call PKG_template,BIND_DIG,bind-dig,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_DIG},${PKGSC_BIND_DIG}))
  39. $(eval $(call PKG_template,LIBBIND,libbind,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBBIND},${PKGSC_LIBBIND}))
  40. CONFIGURE_ARGS+= --with-randomdev=/dev/urandom \
  41. --disable-threads \
  42. --with-openssl=${STAGING_TARGET_DIR}/usr/ \
  43. --with-libxml2=${STAGING_TARGET_DIR}/usr/ \
  44. --enable-epoll \
  45. --with-libtool
  46. ifneq (${ADK_PACKAGE_BIND_WITH_IPV6},)
  47. CONFIGURE_ARGS+= --enable-ipv6
  48. else
  49. CONFIGURE_ARGS+= --disable-ipv6
  50. endif
  51. CONFIGURE_ENV+= BUILD_CC="${CC_FOR_BUILD}" BUILD_CFLAGS='${CFLAGS_FOR_BUILD}'
  52. bind-server-install:
  53. ${INSTALL_DIR} ${IDIR_BIND_SERVER}/usr/sbin ${IDIR_BIND_SERVER}/etc
  54. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named ${IDIR_BIND_SERVER}/usr/sbin/
  55. ${CP} ./files/bind ${IDIR_BIND_SERVER}/etc
  56. bind-nsupdate-install:
  57. ${INSTALL_DIR} ${IDIR_BIND_NSUPDATE}/usr/bin
  58. ${INSTALL_BIN} ${WRKINST}/usr/bin/nsupdate ${IDIR_BIND_NSUPDATE}/usr/bin/
  59. bind-rndc-install:
  60. ${INSTALL_DIR} ${IDIR_BIND_RNDC}/usr/sbin
  61. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rndc ${IDIR_BIND_RNDC}/usr/sbin/
  62. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rndc-confgen \
  63. ${IDIR_BIND_RNDC}/usr/sbin/
  64. bind-check-install:
  65. ${INSTALL_DIR} ${IDIR_BIND_CHECK}/usr/sbin
  66. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named-checkconf \
  67. ${IDIR_BIND_CHECK}/usr/sbin/
  68. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named-checkzone \
  69. ${IDIR_BIND_CHECK}/usr/sbin/
  70. bind-dnssec-install:
  71. ${INSTALL_DIR} ${IDIR_BIND_DNSSEC}/usr/sbin
  72. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dnssec-keygen \
  73. ${IDIR_BIND_DNSSEC}/usr/sbin/
  74. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dnssec-signzone \
  75. ${IDIR_BIND_DNSSEC}/usr/sbin/
  76. bind-host-install:
  77. ${INSTALL_DIR} ${IDIR_BIND_HOST}/usr/bin
  78. ${INSTALL_BIN} ${WRKINST}/usr/bin/host ${IDIR_BIND_HOST}/usr/bin/
  79. bind-dig-install:
  80. ${INSTALL_DIR} ${IDIR_BIND_DIG}/usr/bin
  81. ${INSTALL_BIN} ${WRKINST}/usr/bin/dig ${IDIR_BIND_DIG}/usr/bin/
  82. libbind-install:
  83. ${INSTALL_DIR} ${IDIR_LIBBIND}/usr/lib
  84. ${CP} ${WRKINST}/usr/lib/libbind9.so.* ${IDIR_LIBBIND}/usr/lib/
  85. ${CP} ${WRKINST}/usr/lib/libdns.so.* ${IDIR_LIBBIND}/usr/lib/
  86. ${CP} ${WRKINST}/usr/lib/libisccc.so.* ${IDIR_LIBBIND}/usr/lib/
  87. ${CP} ${WRKINST}/usr/lib/libisccfg.so.* ${IDIR_LIBBIND}/usr/lib/
  88. ${CP} ${WRKINST}/usr/lib/libisc.so.* ${IDIR_LIBBIND}/usr/lib/
  89. ${CP} ${WRKINST}/usr/lib/liblwres.so.* ${IDIR_LIBBIND}/usr/lib/
  90. include ${TOPDIR}/mk/pkg-bottom.mk