- Stage support
This commit is contained in:
parent
e2ea70b9f4
commit
7b1be1e2b0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345350
@ -26,18 +26,15 @@ CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
ALL_TARGET= trafshow
|
||||
|
||||
MAN1= trafshow.1
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
|
||||
${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow.dist
|
||||
if [ ! -f ${PREFIX}/etc/trafshow ]; then \
|
||||
${CP} ${PREFIX}/etc/trafshow.dist ${PREFIX}/etc/trafshow; \
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${STAGEDIR}${PREFIX}/man/man1
|
||||
${INSTALL_DATA} ${WRKSRC}/.trafshow ${STAGEDIR}${PREFIX}/etc/trafshow.dist
|
||||
if [ ! -f ${STAGEDIR}${PREFIX}/etc/trafshow ]; then \
|
||||
${CP} ${STAGEDIR}${PREFIX}/etc/trafshow.dist ${STAGEDIR}${PREFIX}/etc/trafshow; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,5 @@
|
||||
bin/trafshow
|
||||
man/man1/trafshow.1.gz
|
||||
@unexec if cmp -s %D/etc/trafshow %D/etc/trafshow.dist; then rm -f %D/etc/trafshow; fi
|
||||
etc/trafshow.dist
|
||||
@exec if [ ! -f %D/etc/trafshow ]; then cp -p %D/%F %B/trafshow; fi
|
||||
|
Loading…
Reference in New Issue
Block a user