Makefile 4.8 KB

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