2020-01-04 11:08:41 +01:00
|
|
|
# $NetBSD: Makefile,v 1.18 2020/01/04 10:08:41 taca Exp $
|
2018-09-09 15:11:38 +02:00
|
|
|
|
|
|
|
DISTNAME= bind-${BIND_VERSION}
|
|
|
|
PKGNAME= ${DISTNAME:S/-P/pl/}
|
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.isc.org/software/bind/
|
|
|
|
COMMENT= Berkeley Internet Name Daemon implementation of DNS, version 9.11
|
|
|
|
LICENSE= mpl-2.0
|
|
|
|
|
|
|
|
CONFLICTS+= host-[0-9]*
|
|
|
|
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2020-01-04 11:08:41 +01:00
|
|
|
BIND_VERSION= 9.11.14
|
2018-09-09 15:11:38 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
BUILD_DEFS+= BIND_DIR VARBASE
|
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
2019-04-30 04:51:38 +02:00
|
|
|
USE_TOOLS+= pax perl
|
2018-09-09 15:11:38 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2019-11-03 12:45:28 +01:00
|
|
|
CONFIGURE_ARGS+= --with-libtool
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-python=no
|
2018-09-27 06:24:18 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-m68k) || \
|
2018-09-13 04:57:43 +02:00
|
|
|
!empty(MACHINE_PLATFORM:MNetBSD-*-mipsel) || \
|
|
|
|
!empty(MACHINE_PLATFORM:MNetBSD-*-vax)
|
2019-11-03 12:45:28 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-atomic
|
2018-09-09 15:11:38 +02:00
|
|
|
.endif
|
|
|
|
.if ${MACHINE_PLATFORM:MNetBSD-*-powerpc} != ""
|
2019-11-03 12:45:28 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
2018-09-09 15:11:38 +02:00
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS.DragonFly+= --disable-kqueue
|
|
|
|
|
|
|
|
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}
|
|
|
|
|
|
|
|
DOCS= CHANGES HISTORY OPTIONS README
|
|
|
|
|
|
|
|
FILES_SUBST+= BIND_GROUP=${BIND_GROUP} \
|
|
|
|
BIND_USER=${BIND_USER} PAX=${PAX:Q} \
|
|
|
|
SSLBASE=${SSLBASE}
|
|
|
|
MESSAGE_SUBST+= BIND_DIR=${BIND_DIR} BIND_USER=${BIND_USER}
|
|
|
|
|
|
|
|
DOCDIR= share/doc/bind9
|
|
|
|
|
|
|
|
RCD_SCRIPTS= lwresd named9
|
|
|
|
SMF_METHODS= named
|
|
|
|
|
|
|
|
INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/bind9
|
|
|
|
CONF_FILES+= share/examples/bind9/bind.keys \
|
|
|
|
${PKG_SYSCONFDIR}/bind.keys
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= ${DOCDIR} ${DOCDIR}/arm
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for f in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${DOCDIR}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/arm/*.html ${DESTDIR}${PREFIX}/${DOCDIR}/arm
|
|
|
|
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|