summaryrefslogtreecommitdiff
path: root/net/bind9-current/Makefile
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2004-05-15 21:00:57 +0000
committeritojun <itojun@pkgsrc.org>2004-05-15 21:00:57 +0000
commitd91352ae95755257af447560efb6ae2ec6a2d931 (patch)
treea9325ed9e37a29ca1c227c2f71e0575f3d9cbe04 /net/bind9-current/Makefile
parentbda17ae747a74105e7ffc84ae2c8bca17db1b8fd (diff)
downloadpkgsrc-d91352ae95755257af447560efb6ae2ec6a2d931.tar.gz
ISC BIND 9.3.0beta3. changelog is too many to mention here.
Diffstat (limited to 'net/bind9-current/Makefile')
-rw-r--r--net/bind9-current/Makefile77
1 files changed, 77 insertions, 0 deletions
diff --git a/net/bind9-current/Makefile b/net/bind9-current/Makefile
new file mode 100644
index 00000000000..7af367532a6
--- /dev/null
+++ b/net/bind9-current/Makefile
@@ -0,0 +1,77 @@
+# $NetBSD: Makefile,v 1.44 2004/05/15 21:00:57 itojun Exp $
+
+DISTNAME= bind-${BIND_VERSION}
+PKGNAME= bind-${BIND_VERSION}
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/
+
+MAINTAINER= hubertf@NetBSD.org
+HOMEPAGE= http://www.isc.org/products/BIND/
+COMMENT= Version 9 of the Berkeley Internet Name Daemon, implementation of DNS
+
+BIND_VERSION= 9.3.0beta3
+DIST_SUBDIR= bind/${BIND_VERSION}
+
+# IPv6 ready, automatically detected
+.include "../../mk/bsd.prefs.mk"
+BUILD_DEFS+= USE_INET6
+# No need to set USE_INET6, will auto-detect.
+
+USE_BUILDLINK3= yes
+USE_LIBTOOL= yes
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--with-libtool=yes \
+ --sysconfdir=/etc \
+ --localstatedir=/var
+#LDFLAGS+= -Wl,${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}
+
+PTHREAD_OPTS+= native
+
+post-build:
+ ${SED} \
+ -e 's|@PREFIX@|${PREFIX}|' \
+ <${FILESDIR}/named.sh >${WRKDIR}/named
+ ${SED} \
+ -e 's|@PREFIX@|${PREFIX}|' \
+ <${FILESDIR}/lwresd.sh >${WRKDIR}/lwresd
+
+# include/isc/ipv6.h is installed on non-ipv6 platforms
+.if defined(USE_INET6) && (${USE_INET6} == "YES")
+PLIST_SUBST+= IPV6H="@comment "
+.else
+PLIST_SUBST+= IPV6H=
+.endif
+
+PLIST_SRC= ${WRKDIR}/PLIST
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bind9
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bind9/arm
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bind9/draft
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bind9/misc
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bind9/rfc
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bind9
+ ${INSTALL_DATA} ${WRKSRC}/doc/arm/* ${PREFIX}/share/doc/bind9/arm
+ ${INSTALL_DATA} ${WRKSRC}/doc/draft/* ${PREFIX}/share/doc/bind9/draft
+ ${INSTALL_DATA} ${WRKSRC}/doc/misc/* ${PREFIX}/share/doc/bind9/misc
+ ${INSTALL_DATA} ${WRKSRC}/doc/rfc/* ${PREFIX}/share/doc/bind9/rfc
+ ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
+ (cd ${PREFIX}; ${FIND} share/doc/bind9 -type f -print ) >> ${PLIST_SRC}
+ (cd ${PREFIX}; ${FIND} share/doc/bind9 -type d -print ) | \
+ ${SED} -e 's/^/@dirrm /' | ${SORT} -r >> ${PLIST_SRC}
+ ${INSTALL_SCRIPT} ${WRKDIR}/named ${PREFIX}/etc/rc.d/named9
+ ${INSTALL_SCRIPT} ${WRKDIR}/lwresd ${PREFIX}/etc/rc.d/lwresd
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
+
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
+CONFIGURE_ARGS+= --disable-threads
+.else
+CONFIGURE_ARGS+= --enable-threads
+.endif