freebsd-ports/net/trafshow3/Makefile
Pav Lucistnik 3ee4eb6c06 - Remove references to now non-existant devel/libslang
PR:		ports/145245
Submitted by:	Anatoly Borodin <anatoly.borodin@gmail.com>
2010-05-12 20:37:17 +00:00

46 lines
1.2 KiB
Makefile

# New ports collection makefile for: trafshow
# Date created: 25 September 1996
# Whom: igor@zynaps.ru
#
# $FreeBSD$
#
PORTNAME= trafshow
PORTVERSION= 3.1
PORTREVISION= 6
PORTEPOCH= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.sasknow.com/pub/trafshow/ \
ftp://ftp.nsk.su/pub/RinetSoftware/
EXTRACT_SUFX= .tgz
MAINTAINER= sem@FreeBSD.org
COMMENT= Full screen visualization of network traffic (an ancient version)
CONFLICTS= trafshow-[45].*
LATEST_LINK= trafshow3
.if defined(WITH_TRAFSHOW_SLANG) || \
(exists(${LOCALBASE}/lib/libslang.a) && !defined(WITHOUT_TRAFSHOW_SLANG))
LIB_DEPENDS= slang.2:${PORTSDIR}/devel/libslang2
.endif
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib"
ALL_TARGET= trafshow
MAN1= trafshow.1
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.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
if [ ! -f ${PREFIX}/etc/trafshow ]; then \
${CP} ${PREFIX}/etc/trafshow.dist ${PREFIX}/etc/trafshow; \
fi
.include <bsd.port.mk>