mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Support staging
This commit is contained in:
parent
cb521ca024
commit
73c9240c0e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345826
2 changed files with 9 additions and 12 deletions
|
@ -17,22 +17,18 @@ SUB_FILES= pkg-message
|
||||||
|
|
||||||
USE_RC_SUBR= rotorouter
|
USE_RC_SUBR= rotorouter
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include <bsd.port.pre.mk>
|
|
||||||
|
|
||||||
do-extract:
|
do-extract:
|
||||||
${MKDIR} ${WRKSRC}/src
|
${MKDIR} ${WRKSRC}/src
|
||||||
${CP} ${FILESDIR}/rotorouter.c ${WRKSRC}/src
|
${CP} ${FILESDIR}/rotorouter.c ${WRKSRC}/src
|
||||||
|
|
||||||
do-build:
|
do-build:
|
||||||
${CC} -lpcap -o ${WRKSRC}/src/rotorouter ${WRKSRC}/src/rotorouter.c
|
${CC} ${CFLAGS} -lpcap -o ${WRKSRC}/src/rotorouter ${WRKSRC}/src/rotorouter.c
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${INSTALL_DATA} -m 640 ${FILESDIR}/rotorouter.conf-example ${PREFIX}/etc
|
${INSTALL_DATA} ${FILESDIR}/rotorouter.conf-example \
|
||||||
@${INSTALL_DATA} -m 640 ${FILESDIR}/rotorouter.conf-example ${PREFIX}/etc/rotorouter.conf
|
${STAGEDIR}${PREFIX}/etc
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/src/rotorouter ${PREFIX}/sbin
|
${INSTALL_DATA} ${FILESDIR}/rotorouter.conf-example \
|
||||||
|
${STAGEDIR}${PREFIX}/etc/rotorouter.conf
|
||||||
|
${INSTALL_PROGRAM} ${WRKSRC}/src/rotorouter ${STAGEDIR}${PREFIX}/sbin
|
||||||
|
|
||||||
post-install:
|
.include <bsd.port.mk>
|
||||||
@${CAT} ${PKGMESSAGE}
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
sbin/rotorouter
|
sbin/rotorouter
|
||||||
@unexec if cmp -s %D/etc/rotorouter.conf %D/etc/rotorouter.conf-example; then rm -f %D/etc/rotorouter.conf; fi
|
@unexec if cmp -s %D/etc/rotorouter.conf %D/etc/rotorouter.conf-example ; then rm -f %D/etc/rotorouter.conf; fi
|
||||||
etc/rotorouter.conf-example
|
etc/rotorouter.conf-example
|
||||||
|
@exec if [ ! -f %D/etc/rotorouter.conf ]; then cp -p %D/%F %B/rotorouter.conf; fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue