mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
1: Stagify.
2: use @sample on pkg-plist, bump version. Approved by: portmgr@ (blanket approval)
This commit is contained in:
parent
3ed3495184
commit
0e4dfd4065
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359045
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= traff
|
||||
PORTVERSION= 0.7
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net net-mgmt
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
@ -20,7 +21,6 @@ LIBS+= -L${LOCALBASE}/lib -largp
|
||||
OPTIONS_DEFINE= MYSQL PGSQL
|
||||
OPTIONS_DEFAULT= MYSQL
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MMYSQL}
|
||||
@ -42,10 +42,7 @@ post-configure:
|
||||
${WRKSRC}/Makefile ${WRKSRC}/traff.c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/traff ${PREFIX}/sbin
|
||||
. if !exists(${PREFIX}/etc/traff.conf)
|
||||
${INSTALL_DATA} ${WRKSRC}/traff.conf ${PREFIX}/etc
|
||||
. endif
|
||||
${INSTALL_DATA} ${WRKSRC}/traff.conf ${PREFIX}/etc/traff.conf.default
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/traff ${STAGEDIR}${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/traff.conf ${STAGEDIR}${PREFIX}/etc/traff.conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,2 @@
|
||||
@unexec if cmp -s %D/etc/traff.conf %D/etc/traff.conf.default; then rm -f %D/etc/traff.conf; fi
|
||||
etc/traff.conf.default
|
||||
@sample etc/traff.conf.sample
|
||||
sbin/traff
|
||||
|
Loading…
Reference in New Issue
Block a user