summaryrefslogtreecommitdiffstats
path: root/dns/dnrd/Makefile
diff options
context:
space:
mode:
authorsergei <sergei@FreeBSD.org>2004-10-12 09:57:28 +0000
committersergei <sergei@FreeBSD.org>2004-10-12 09:57:28 +0000
commite12163a9c410f1d603b4eefe21d7902935e26049 (patch)
tree981d62e20884330bbff50e103946deed0fd6c142 /dns/dnrd/Makefile
parent0fbab521b5697bb944be7df6cf1271cb82177abd (diff)
downloadFreeBSD-ports-e12163a9c410f1d603b4eefe21d7902935e26049.zip
FreeBSD-ports-e12163a9c410f1d603b4eefe21d7902935e26049.tar.gz
- Update to 2.16 - this fixes various bugs and adds random query IDs
to prevent cache poisoning. PR: ports/72522 Submitted by: Natanael Copa <ncopa@users.sourceforge.net> While I'm here: - Rework installation mechanism - use do-install target - Respect NOPORTDOCS - Install samples into EXAMPLESDIR - Use DOCSDIR and EXAMPLESDIR macros in pkg-plist
Diffstat (limited to 'dns/dnrd/Makefile')
-rw-r--r--dns/dnrd/Makefile26
1 files changed, 19 insertions, 7 deletions
diff --git a/dns/dnrd/Makefile b/dns/dnrd/Makefile
index 280cf19..15a7c1e 100644
--- a/dns/dnrd/Makefile
+++ b/dns/dnrd/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= dnrd
-PORTVERSION= 2.15
+PORTVERSION= 2.16
CATEGORIES= dns
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dnrd
@@ -21,24 +21,36 @@ GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS}
-MAN8= dnrd.8
-
.if defined(WITH_TCP)
-CONFIGURE_ARGS+= --enable-tcp
+CONFIGURE_ARGS+= --enable-tcp
.endif
.if defined(WITHOUT_MASTER)
CONFIGURE_ARGS+= --disable-master
.endif
+MAN8= dnrd.8
+DOCS= AUTHORS ChangeLog INSTALL README \
+ doc/README-cache doc/README-master doc/TODO
+EXAMPLES= doc/master.sample
+
post-patch:
- @${REINPLACE_CMD} -e 's|/etc/dnrd|${PREFIX}/etc/dnrd|g' ${WRKSRC}/doc/dnrd.8 \
- ${WRKSRC}/doc/master.sample ${WRKSRC}/doc/README-master ${WRKSRC}/src/common.h \
+ @${REINPLACE_CMD} -e 's|/etc/dnrd|${PREFIX}/etc/dnrd|g' \
+ ${WRKSRC}/doc/dnrd.8 ${WRKSRC}/doc/master.sample \
+ ${WRKSRC}/doc/README-master ${WRKSRC}/src/common.h \
${WRKSRC}/src/master.c ${WRKSRC}/src/main.c
@${SED} -e 's|%%RC_SUBR%%|${RC_SUBR}|g' -e 's|%%PREFIX%%|${PREFIX}|' \
${FILESDIR}/dnrd.sh > ${WRKDIR}/dnrd.sh
-post-install:
+do-install:
${INSTALL_SCRIPT} ${WRKDIR}/dnrd.sh ${PREFIX}/etc/rc.d/dnrd.sh
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/dnrd ${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/doc/dnrd.8 ${MAN8PREFIX}/man/man8
+ @${MKDIR} ${EXAMPLESDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+.endif
.include <bsd.port.mk>
OpenPOWER on IntegriCloud