1
0

Makefile 4.7 KB

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