Makefile 4.4 KB

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