1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support stage

Use @sample
This commit is contained in:
Baptiste Daroussin 2014-05-09 00:01:54 +00:00
parent 37565365f2
commit 6fef486f25
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353374
3 changed files with 14 additions and 19 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= ipv6mon
PORTVERSION= 1.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net-mgmt ipv6
MASTER_SITES= http://www.si6networks.com/tools/ipv6mon/
DISTNAME= ${PORTNAME}-v${PORTVERSION}
@ -11,37 +11,32 @@ DISTNAME= ${PORTNAME}-v${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= Tool for monitoring IPv6 address usage
OPTIONS_DEFINE= DOCS
LICENSE= GPLv3
MAKE_ENV= DESTDIR=${PREFIX}/
USES= uidfix
#Ignore "normal" destdir from port infra
DESTDIRNAME= IGNOREME
MAKE_ENV= DESTDIR=${STAGEDIR}${PREFIX}/
CFLAGS+= -DIPV6MON_CONF=\\\"${PREFIX}/etc/ipv6mon.conf\\\"
USERS= ${PORTNAME}
GROUPS= ${PORTNAME}
USE_RC_SUBR= ${PORTNAME}
MAN5= ipv6mon.conf.5
MAN8= ipv6mon.8
PORTDOCS= README.TXT \
ipv6mon-installation-notes.odt \
ipv6mon-installation-notes.pdf \
ipv6mon-manual.odt \
ipv6mon-manual.pdf
NO_STAGE= yes
post-extract:
${INSTALL_DATA} ${WRKSRC}/manuals/* ${WRKSRC}
post-install:
if [ ! -r ${PREFIX}/etc/ipv6mon.conf ]; then \
${INSTALL_DATA} ${PREFIX}/etc/ipv6mon.conf.dist \
${PREFIX}/etc/ipv6mon.conf; \
fi
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/etc/rc.d
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/etc/rc.d
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && \
${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -7,7 +7,7 @@
+LDADD= -lpcap
+
+FILES= ipv6mon.conf
+FILESNAME= ipv6mon.conf.dist
+FILESNAME= ipv6mon.conf.sample
+FILESDIR= etc
+
+BINDIR= sbin

View File

@ -1,4 +1,4 @@
@unexec cmp -s %D/etc/ipv6mon.conf.dist %D/etc/ipv6mon.conf && rm -f %D/etc/ipv6mon.conf || true
etc/ipv6mon.conf.dist
@exec if [ ! -r %D/etc/ipv6mon.conf ]; then install -m 444 %D/etc/ipv6mon.conf.dist %D/etc/ipv6mon.conf; fi
@sample etc/ipv6mon.conf.sample
sbin/ipv6mon
man/man5/ipv6mon.conf.5.gz
man/man8/ipv6mon.8.gz