Makefile 4.7 KB

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