mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00: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
@ -17,22 +17,18 @@ SUB_FILES= pkg-message
|
||||
|
||||
USE_RC_SUBR= rotorouter
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
do-extract:
|
||||
${MKDIR} ${WRKSRC}/src
|
||||
${CP} ${FILESDIR}/rotorouter.c ${WRKSRC}/src
|
||||
|
||||
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:
|
||||
@${INSTALL_DATA} -m 640 ${FILESDIR}/rotorouter.conf-example ${PREFIX}/etc
|
||||
@${INSTALL_DATA} -m 640 ${FILESDIR}/rotorouter.conf-example ${PREFIX}/etc/rotorouter.conf
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/src/rotorouter ${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${FILESDIR}/rotorouter.conf-example \
|
||||
${STAGEDIR}${PREFIX}/etc
|
||||
${INSTALL_DATA} ${FILESDIR}/rotorouter.conf-example \
|
||||
${STAGEDIR}${PREFIX}/etc/rotorouter.conf
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/rotorouter ${STAGEDIR}${PREFIX}/sbin
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,4 @@
|
||||
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
|
||||
@exec if [ ! -f %D/etc/rotorouter.conf ]; then cp -p %D/%F %B/rotorouter.conf; fi
|
||||
|
Loading…
Reference in New Issue
Block a user