Makefile 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  48. CONFIGURE_ARGS+= --with-randomdev=/dev/urandom \
  49. --disable-threads \
  50. --with-openssl=${STAGING_TARGET_DIR}/usr \
  51. --with-libxml2=${STAGING_TARGET_DIR}/usr \
  52. --enable-epoll \
  53. --with-libtool
  54. ifneq (${ADK_PACKAGE_BIND_WITH_IPV6},)
  55. CONFIGURE_ARGS+= --enable-ipv6
  56. else
  57. CONFIGURE_ARGS+= --disable-ipv6
  58. endif
  59. CONFIGURE_ENV+= BUILD_CC="${CC_FOR_BUILD}" BUILD_CFLAGS='${CFLAGS_FOR_BUILD}'
  60. bind-server-install:
  61. ${INSTALL_DIR} ${IDIR_BIND_SERVER}/usr/sbin ${IDIR_BIND_SERVER}/etc
  62. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named ${IDIR_BIND_SERVER}/usr/sbin
  63. ${CP} ./files/bind ${IDIR_BIND_SERVER}/etc
  64. bind-nsupdate-install:
  65. ${INSTALL_DIR} ${IDIR_BIND_NSUPDATE}/usr/bin
  66. ${INSTALL_BIN} ${WRKINST}/usr/bin/nsupdate ${IDIR_BIND_NSUPDATE}/usr/bin
  67. bind-rndc-install:
  68. ${INSTALL_DIR} ${IDIR_BIND_RNDC}/usr/sbin
  69. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rndc ${IDIR_BIND_RNDC}/usr/sbin
  70. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rndc-confgen \
  71. ${IDIR_BIND_RNDC}/usr/sbin
  72. bind-check-install:
  73. ${INSTALL_DIR} ${IDIR_BIND_CHECK}/usr/sbin
  74. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named-checkconf \
  75. ${IDIR_BIND_CHECK}/usr/sbin/
  76. ${INSTALL_BIN} ${WRKINST}/usr/sbin/named-checkzone \
  77. ${IDIR_BIND_CHECK}/usr/sbin/
  78. bind-dnssec-install:
  79. ${INSTALL_DIR} ${IDIR_BIND_DNSSEC}/usr/sbin
  80. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dnssec-keygen \
  81. ${IDIR_BIND_DNSSEC}/usr/sbin
  82. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dnssec-signzone \
  83. ${IDIR_BIND_DNSSEC}/usr/sbin
  84. bind-host-install:
  85. ${INSTALL_DIR} ${IDIR_BIND_HOST}/usr/bin
  86. ${INSTALL_BIN} ${WRKINST}/usr/bin/host ${IDIR_BIND_HOST}/usr/bin
  87. bind-dig-install:
  88. ${INSTALL_DIR} ${IDIR_BIND_DIG}/usr/bin
  89. ${INSTALL_BIN} ${WRKINST}/usr/bin/dig ${IDIR_BIND_DIG}/usr/bin
  90. libbind-install:
  91. ${INSTALL_DIR} ${IDIR_LIBBIND}/usr/lib
  92. ${CP} ${WRKINST}/usr/lib/libbind9.so.* ${IDIR_LIBBIND}/usr/lib
  93. ${CP} ${WRKINST}/usr/lib/libdns.so.* ${IDIR_LIBBIND}/usr/lib
  94. ${CP} ${WRKINST}/usr/lib/libisccc.so.* ${IDIR_LIBBIND}/usr/lib
  95. ${CP} ${WRKINST}/usr/lib/libisccfg.so.* ${IDIR_LIBBIND}/usr/lib
  96. ${CP} ${WRKINST}/usr/lib/libisc.so.* ${IDIR_LIBBIND}/usr/lib
  97. ${CP} ${WRKINST}/usr/lib/liblwres.so.* ${IDIR_LIBBIND}/usr/lib
  98. include ${TOPDIR}/mk/pkg-bottom.mk