diff options
author | alexey <alexey@FreeBSD.org> | 2014-03-26 20:27:50 +0800 |
---|---|---|
committer | alexey <alexey@FreeBSD.org> | 2014-03-26 20:27:50 +0800 |
commit | 9602c0cde16f6b7461191aaaa31e4786395ebae7 (patch) | |
tree | 5f69ead3260d957cd0ca3e6af5c5a184396dd1e8 /net/trafshow | |
parent | e9742a224e312d73c9d86289a4e699b559a15bfa (diff) | |
download | freebsd-ports-gnome-9602c0cde16f6b7461191aaaa31e4786395ebae7.tar.gz freebsd-ports-gnome-9602c0cde16f6b7461191aaaa31e4786395ebae7.tar.zst freebsd-ports-gnome-9602c0cde16f6b7461191aaaa31e4786395ebae7.zip |
- Support STAGE
- Make extra patch for >= 8.x into a normal patch as it's used on all supported
FreeBSD versions
PR: ports/187320
Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru>
Approved by: wg (mentor)
Diffstat (limited to 'net/trafshow')
-rw-r--r-- | net/trafshow/Makefile | 24 | ||||
-rw-r--r-- | net/trafshow/files/patch-800074+ (renamed from net/trafshow/files/extra-patch-800074+) | 0 | ||||
-rw-r--r-- | net/trafshow/pkg-plist | 1 |
3 files changed, 6 insertions, 19 deletions
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 <bsd.port.options.mk> +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 <bsd.port.mk> diff --git a/net/trafshow/files/extra-patch-800074+ b/net/trafshow/files/patch-800074+ index be129daf9dbc..be129daf9dbc 100644 --- a/net/trafshow/files/extra-patch-800074+ +++ b/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 |