b32fceaac6
--- 9.4.2-P2 released --- 2406. [bug] Some operating systems have FD_SETSIZE set to a low value by default, which can cause resource exhaustion when many simultaneous connections are open. Linux in particular makes it difficult to increase this value. To use more sockets with select(), set ISC_SOCKET_FDSETSIZE. Example: STD_CDEFINES="-DISC_SOCKET_FDSETSIZE=4096" ./configure (This should not be necessary in most cases, and never for an authoritative-only server.) [RT #18328] 2404. [port] hpux: files unlimited support. 2403. [bug] TSIG context leak. [RT #18341] 2402. [port] Support Solaris 2.11 and over. [RT #18362] 2401. [bug] Expect to get E[MN]FILE errno internal_accept() (from accept() or fcntl() system calls). [RT #18358] 2399. [bug] Abort timeout queries to reduce the number of open UDP sockets. [RT #18367] 2398. [bug] Improve file descriptor management. New, temporary, named.conf option reserved-sockets, default 512. [RT #18344] 2396. [bug] Don't set SO_REUSEADDR for randomized ports. [RT #18336] 2395. [port] Avoid warning and no effect from "files unlimited" on Linux when running as root. [RT #18335] 2394. [bug] Default configuration options set the limit for open files to 'unlimited' as described in the documentation. [RT #18331] 2392. [bug] remove 'grep -q' from acl test script, some platforms don't support it. [RT #18253] 2322. [port] MacOS: work around the limitation of setrlimit() for RLIMIT_NOFILE. [RT #17526]
88 lines
2.8 KiB
Makefile
88 lines
2.8 KiB
Makefile
# $NetBSD: Makefile,v 1.102 2008/08/03 18:41:45 adrianp Exp $
|
|
|
|
DISTNAME= bind-${BIND_VERSION}
|
|
PKGNAME= ${DISTNAME:S/-P2/pl2/}
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.isc.org/sw/bind/
|
|
COMMENT= Version 9 of the Berkeley Internet Name Daemon, implementation of DNS
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
BIND_VERSION= 9.4.2-P2
|
|
|
|
# IPv6 ready, automatically detected
|
|
.include "../../mk/bsd.prefs.mk"
|
|
BUILD_DEFS+= IPV6_READY
|
|
|
|
BUILD_DEFS+= BIND_DIR VARBASE
|
|
|
|
USE_TOOLS+= pax
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--with-libtool=yes \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=${VARBASE:Q}
|
|
#LDFLAGS+= ${COMPILER_RPATH_FLAG}${LOCALBASE}/pthreads/lib -L${LOCALBASE}/pthreads/lib
|
|
# use external OpenSSL. comment out the following line and the buildlink
|
|
# include at the bottom to use OpenSSL shipped with BIND9.
|
|
CONFIGURE_ARGS+=--with-openssl=${SSLBASE:Q}
|
|
|
|
PKG_GROUPS_VARS+= BIND_GROUP
|
|
PKG_USERS_VARS+= BIND_USER
|
|
|
|
PKG_GROUPS= ${BIND_GROUP}
|
|
PKG_USERS= ${BIND_USER}:${BIND_GROUP}
|
|
|
|
PKG_GECOS.${BIND_USER}= Named pseudo-user
|
|
PKG_HOME.${BIND_USER}= ${BIND_DIR}
|
|
|
|
PTHREAD_OPTS+= native
|
|
PTHREAD_AUTO_VARS= yes
|
|
|
|
FILES_SUBST+= BIND_GROUP=${BIND_GROUP:Q} BIND_USER=${BIND_USER:Q} PAX=${PAX:Q}
|
|
MESSAGE_SUBST+= BIND_DIR=${BIND_DIR} BIND_USER=${BIND_USER}
|
|
|
|
# include/isc/ipv6.h is installed on non-ipv6 platforms
|
|
PLIST_VARS+= inet6
|
|
.if !empty(MISSING_FEATURES:Minet6)
|
|
PLIST.inet6= yes
|
|
.endif
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
RCD_SCRIPTS= lwresd named9
|
|
|
|
INSTALLATION_DIRS= share/doc/bind9/arm share/doc/bind9/draft \
|
|
share/doc/bind9/misc share/doc/bind9/rfc
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/bind9
|
|
set -e; cd ${WRKSRC}/doc && pax -rwppm \
|
|
-s ',.*xsl.*,,' -s ',Makefile.*,,' -s ',.*\.pl,,' \
|
|
. ${DESTDIR}${PREFIX}/share/doc/bind9
|
|
${CHMOD} -R g-w ${DESTDIR}${PREFIX}/share/doc/bind9
|
|
${CHMOD} -x ${DESTDIR}${PREFIX}/share/doc/bind9/arm/Bv9ARM.pdf
|
|
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
|
|
(cd ${DESTDIR}${PREFIX}; ${FIND} share/doc/bind9 -type f -print ) >> ${PLIST_SRC}
|
|
(cd ${DESTDIR}${PREFIX}; ${FIND} share/doc/bind9 -type d -print ) | \
|
|
${SED} -e 's/^/@dirrm /' | ${SORT} -r >> ${PLIST_SRC}
|
|
(cd ${DESTDIR}${PREFIX}; ${FIND} include/bind -type f -print ) >> ${PLIST_SRC}
|
|
(cd ${DESTDIR}${PREFIX}; ${FIND} include/bind -type d -print ) | \
|
|
${SED} -e 's/^/@dirrm /' | ${SORT} -r >> ${PLIST_SRC}
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none") || \
|
|
!empty(MACHINE_PLATFORM:MNetBSD-*-vax) || \
|
|
!empty(MACHINE_PLATFORM:MNetBSD-*-sparc) || \
|
|
!empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) || \
|
|
!empty(MACHINE_PLATFORM:MNetBSD-*-m68k)
|
|
CONFIGURE_ARGS+= --disable-threads
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-threads
|
|
.endif
|