diff --git a/net/trafshow/Makefile b/net/trafshow/Makefile index 36065e26e3d3..9dc94e7c99bf 100644 --- a/net/trafshow/Makefile +++ b/net/trafshow/Makefile @@ -19,31 +19,17 @@ GNU_CONFIGURE= yes CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}" ALL_TARGET= trafshow -MAN1= trafshow.1 - -OPTIONS_DEFINE= IPV6 - -NO_STAGE= yes -.include +OPTIONS_DEFINE= IPV6 +IPV6_CFLAGS= -DINET6 post-patch: @${REINPLACE_CMD} -e 's|-D_THREAD_SAFE||' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \ ${WRKSRC}/colormask.c ${WRKSRC}/trafshow.1 ${WRKSRC}/trafshow.c -.if ${OSVERSION} >= 800074 - @${PATCH} -d ${WRKSRC} < ${FILESDIR}/extra-patch-800074+ -.endif - -.if ${PORT_OPTIONS:MIPV6} -CFLAGS+= -DINET6 -.endif 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 [ ! -e ${PREFIX}/etc/trafshow ]; then \ - ${CP} -p ${PREFIX}/etc/trafshow.dist ${PREFIX}/etc/trafshow; \ - fi + ${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 .include diff --git a/net/trafshow/files/extra-patch-800074+ b/net/trafshow/files/patch-800074+ similarity index 100% rename from net/trafshow/files/extra-patch-800074+ rename to net/trafshow/files/patch-800074+ diff --git a/net/trafshow/pkg-plist b/net/trafshow/pkg-plist index 8879ecadaa66..e9fdd8028216 100644 --- a/net/trafshow/pkg-plist +++ b/net/trafshow/pkg-plist @@ -2,3 +2,4 @@ bin/trafshow @unexec if cmp -s %D/etc/trafshow %D/etc/trafshow.dist; then rm -f %D/etc/trafshow; fi etc/trafshow.dist @exec if [ ! -e %D/etc/trafshow ]; then cp -p %D/%F %B/trafshow; fi +man/man1/trafshow.1.gz