diff --git a/net/traff/Makefile b/net/traff/Makefile index 82572700688d..4d1bd5acc0cc 100644 --- a/net/traff/Makefile +++ b/net/traff/Makefile @@ -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 .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 diff --git a/net/traff/pkg-plist b/net/traff/pkg-plist index 64422a1f38b6..81c591e50b01 100644 --- a/net/traff/pkg-plist +++ b/net/traff/pkg-plist @@ -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