- support stage

This commit is contained in:
Yen-Ming Lee 2014-07-11 18:11:18 +00:00
parent b5d9bfb7a4
commit 8d7e24e76e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361575
3 changed files with 25 additions and 36 deletions

View file

@ -1,25 +1,25 @@
# Created by: George Reid <greid@ukug.uk.freebsd.org>
# $FreeBSD$
PORTNAME= dnrd
PORTVERSION= 2.20.3
CATEGORIES= dns
MASTER_SITES= SF
PORTNAME= dnrd
PORTVERSION= 2.20.3
CATEGORIES= dns
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Proxy DNS daemon
COMMENT= Proxy DNS daemon
LICENSE= GPLv2
USES= gmake
USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
MAN8= dnrd.8
DOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README
EXAMPLES= README-cache README-cygwin README-master TODO \
master.sample
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README
PORTEXAMPLES= README-cache README-cygwin README-master TODO master.sample
OPTIONS_DEFINE= TCP MASTER DEBUG RANDOM DOCS
OPTIONS_DEFAULT= MASTER
OPTIONS_DEFINE= TCP MASTER DEBUG RANDOM DOCS EXAMPLES
OPTIONS_DEFAULT=MASTER
TCP_DESC= TCP support
MASTER_DESC= Master file support
RANDOM_DESC= Random source port
@ -31,7 +31,6 @@ DNRD_DIR?= ${ETCDIR}
SUB_FILES= pkg-install
SUB_LIST+= DNRD_DIR=${DNRD_DIR}
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTCP}
@ -52,15 +51,17 @@ CONFIGURE_ARGS+= --enable-random-src
do-install:
@${ECHO} "==> Creating dnrd directory"
@${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${INSTALL_PROGRAM} ${WRKSRC}/src/dnrd ${PREFIX}/sbin/
@${INSTALL_MAN} ${WRKSRC}/doc/dnrd.8 ${MAN8PREFIX}/man/man8/
@${INSTALL_DATA} ${WRKSRC}/doc/master.sample ${ETCDIR}/
@${SETENV} DESTDIR="${STAGEDIR}" PKG_PREFIX="${STAGEDIR}${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${INSTALL_PROGRAM} ${WRKSRC}/src/dnrd ${STAGEDIR}${PREFIX}/sbin/
@${INSTALL_MAN} ${WRKSRC}/doc/dnrd.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
@${INSTALL_DATA} ${WRKSRC}/doc/master.sample ${STAGEDIR}${ETCDIR}/
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/doc/,} ${EXAMPLESDIR}/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${EXAMPLESDIR}/
.endif
.include <bsd.port.mk>

View file

@ -19,7 +19,7 @@ PRE-INSTALL)
;;
POST-INSTALL)
if [ ! -d ${DNRD_DIR} ]; then
${MKDIR} ${DNRD_DIR}
${MKDIR} ${DESTDIR}${DNRD_DIR}
fi
;;
esac

View file

@ -1,18 +1,6 @@
sbin/dnrd
%%ETCDIR%%/master.sample
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%EXAMPLESDIR%%/README-cache
%%PORTDOCS%%%%EXAMPLESDIR%%/README-cygwin
%%PORTDOCS%%%%EXAMPLESDIR%%/README-master
%%PORTDOCS%%%%EXAMPLESDIR%%/TODO
%%PORTDOCS%%%%EXAMPLESDIR%%/master.sample
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
man/man8/dnrd.8.gz
@dirrm %%ETCDIR%%
@unexec echo ""
@unexec echo "If you are permanently removing dnrd, remove user/group 'dnrd'" | /usr/bin/fmt