diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-11-05 14:26:45 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-11-05 14:26:45 +0000 |
commit | 504f223ffc668174fedb3e5b4002603c3cc97121 (patch) | |
tree | da766e3185a06d6acb0d3e634df90733bd3f07ce /net/trafshow3/Makefile | |
parent | cb5b837c0fe6fa5bac6cdca1a9dda2f20b975895 (diff) | |
download | ports-504f223ffc668174fedb3e5b4002603c3cc97121.tar.gz ports-504f223ffc668174fedb3e5b4002603c3cc97121.zip |
- Update to 5.2.1 [1]
- Fix configuration file handling across updates
[1]:
PR: ports/88123
Submitted by: Serge Maslov <serge@maslov.biz>
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=147375
Diffstat (limited to 'net/trafshow3/Makefile')
-rw-r--r-- | net/trafshow3/Makefile | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/net/trafshow3/Makefile b/net/trafshow3/Makefile index e9c45adf8f90..81f133465795 100644 --- a/net/trafshow3/Makefile +++ b/net/trafshow3/Makefile @@ -6,45 +6,43 @@ # PORTNAME= trafshow -PORTVERSION= 3.1 -PORTREVISION= 5 +PORTVERSION= 5.2.1 PORTEPOCH= 1 CATEGORIES= net -MASTER_SITES= ftp://ftp.sasknow.com/pub/trafshow/ \ +MASTER_SITES= ${MASTER_SITE_NETBSD} \ ftp://ftp.nsk.su/pub/RinetSoftware/ EXTRACT_SUFX= .tgz MAINTAINER= ryan@sasknow.com COMMENT= Full screen visualization of network traffic -CONFLICTS= trafshow-4.* - -.include <bsd.port.pre.mk> - -.if defined(WITH_TRAFSHOW_SLANG) || \ - (exists(${LOCALBASE}/lib/libslang.a) && !defined(WITHOUT_TRAFSHOW_SLANG)) -LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang -.else -.if ${OSVERSION} < 400010 -LIB_DEPENDS= ncurses.5:${PORTSDIR}/devel/ncurses -.endif -.endif - USE_REINPLACE= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include" \ - LIBS="-L${LOCALBASE}/lib" +CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}" ALL_TARGET= trafshow MAN1= trafshow.1 +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +PKGMESSAGE= ${PKGDIR}/pkg-message.nodevfs +.endif + post-patch: - @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.c + @${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 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1 ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow.dist - ${CP} ${PREFIX}/etc/trafshow.dist ${PREFIX}/etc/trafshow + if [ ! -e ${PREFIX}/etc/trafshow ]; then \ + ${CP} -p ${PREFIX}/etc/trafshow.dist ${PREFIX}/etc/trafshow; \ + fi +.if ${OSVERSION} < 500000 + @${CAT} ${PKGMESSAGE} +.endif .include <bsd.port.post.mk> |