123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include ${TOPDIR}/rules.mk
- PKG_NAME:= bind
- PKG_VERSION:= 9.7.0
- PKG_RELEASE:= 1
- PKG_MD5SUM:= c245b5d1aa0a4f53d9538faa1efe2c3f
- PKG_DESCR:= popular DNS server
- PKG_SECTION:= dns
- PKG_DEPENDS:= libopenssl libbind libxml2
- PKG_BUILDDEP:= openssl libxml2
- PKG_URL:= https://www.isc.org/software/bind/
- PKG_SITES:= ftp://ftp.isc.org/isc/bind9/${PKG_VERSION}/
- PKG_SUBPKGS:= BIND_SERVER BIND_CLIENT LIBBIND BIND_RNDC BIND_CHECK BIND_DNSSEC BIND_HOST BIND_DIG
- PKGSD_LIBBIND:= library for the bind software suite
- PKGSC_LIBBIND:= libs
- PKGSD_BIND_CLIENT:= dynamic dns client (nsupdate utility)
- PKGSD_BIND_RNDC:= rndc & rndc-confgen utilities
- PKGSD_BIND_CHECK:= check utilities
- PKGSD_BIND_DNSSEC:= dnssec utilities
- PKGSD_BIND_HOST:= host utility
- PKGSD_BIND_DIG:= dig utility
- PKG_FLAVOURS:= WITH_IPV6
- PKGFD_WITH_IPV6:= enable IPv6 support
- include ${TOPDIR}/mk/package.mk
- $(eval $(call PKG_template,BIND_SERVER,bind-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
- $(eval $(call PKG_template,BIND_CLIENT,bind-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_CLIENT},${PKG_SECTION}))
- $(eval $(call PKG_template,LIBBIND,libbind,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBBIND},${PKGSC_LIBBIND}))
- $(eval $(call PKG_template,BIND_RNDC,bind-rndc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_RNDC},${PKG_SECTION}))
- $(eval $(call PKG_template,BIND_CHECK,bind-check,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_CHECK},${PKG_SECTION}))
- $(eval $(call PKG_template,BIND_DNSSEC,bind-dnssec,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_DNSSEC},${PKG_SECTION}))
- $(eval $(call PKG_template,BIND_HOST,bind-host,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_HOST},${PKG_SECTION}))
- $(eval $(call PKG_template,BIND_DIG,bind-dig,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_BIND_DIG},${PKG_SECTION}))
- CONFIGURE_ARGS+= --with-randomdev=/dev/urandom \
- --disable-threads \
- --with-openssl=${STAGING_DIR}/usr/ \
- --with-libxml2=${STAGING_DIR}/usr/ \
- --enable-epoll \
- --with-libtool
- ifneq (${ADK_PACKAGE_BIND_WITH_IPV6},)
- CONFIGURE_ARGS+= --enable-ipv6
- else
- CONFIGURE_ARGS+= --disable-ipv6
- endif
- pre-build:
- ${MAKE} -C ${WRKBUILD}/lib/dns \
- BUILD_CC="${HOSTCC}" \
- CC="${HOSTCC}" \
- CFLAGS='${HOSTCFLAGS}' \
- gen
- post-install:
- # bind server
- ${INSTALL_DIR} ${IDIR_BIND_SERVER}/usr/sbin ${IDIR_BIND_SERVER}/etc
- ${INSTALL_BIN} ${WRKINST}/usr/sbin/named ${IDIR_BIND_SERVER}/usr/sbin/
- ${CP} ./files/bind ${IDIR_BIND_SERVER}/etc
- # nsupdate
- ${INSTALL_DIR} ${IDIR_BIND_CLIENT}/usr/bin
- ${INSTALL_BIN} ${WRKINST}/usr/bin/nsupdate ${IDIR_BIND_CLIENT}/usr/bin/
- # rndc
- ${INSTALL_DIR} ${IDIR_BIND_RNDC}/usr/sbin
- ${INSTALL_BIN} ${WRKINST}/usr/sbin/rndc ${IDIR_BIND_RNDC}/usr/sbin/
- ${INSTALL_BIN} ${WRKINST}/usr/sbin/rndc-confgen \
- ${IDIR_BIND_RNDC}/usr/sbin/
- # bind check
- ${INSTALL_DIR} ${IDIR_BIND_CHECK}/usr/sbin
- ${INSTALL_BIN} ${WRKINST}/usr/sbin/named-checkconf \
- ${IDIR_BIND_CHECK}/usr/sbin/
- ${INSTALL_BIN} ${WRKINST}/usr/sbin/named-checkzone \
- ${IDIR_BIND_CHECK}/usr/sbin/
- # dnsec tools
- ${INSTALL_DIR} ${IDIR_BIND_DNSSEC}/usr/sbin
- ${INSTALL_BIN} ${WRKINST}/usr/sbin/dnssec-keygen \
- ${IDIR_BIND_DNSSEC}/usr/sbin/
- ${INSTALL_BIN} ${WRKINST}/usr/sbin/dnssec-signzone \
- ${IDIR_BIND_DNSSEC}/usr/sbin/
- # host
- ${INSTALL_DIR} ${IDIR_BIND_HOST}/usr/bin
- ${INSTALL_BIN} ${WRKINST}/usr/bin/host ${IDIR_BIND_HOST}/usr/bin/
- # dig
- ${INSTALL_DIR} ${IDIR_BIND_DIG}/usr/bin
- ${INSTALL_BIN} ${WRKINST}/usr/bin/dig ${IDIR_BIND_DIG}/usr/bin/
- # bind lib
- ${INSTALL_DIR} ${IDIR_LIBBIND}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libbind9.so.* ${IDIR_LIBBIND}/usr/lib/
- ${CP} ${WRKINST}/usr/lib/libdns.so.* ${IDIR_LIBBIND}/usr/lib/
- ${CP} ${WRKINST}/usr/lib/libisccc.so.* ${IDIR_LIBBIND}/usr/lib/
- ${CP} ${WRKINST}/usr/lib/libisccfg.so.* ${IDIR_LIBBIND}/usr/lib/
- ${CP} ${WRKINST}/usr/lib/libisc.so.* ${IDIR_LIBBIND}/usr/lib/
- ${CP} ${WRKINST}/usr/lib/liblwres.so.* ${IDIR_LIBBIND}/usr/lib/
- include ${TOPDIR}/mk/pkg-bottom.mk
|