aboutsummaryrefslogtreecommitdiffstats
path: root/net/trafshow3/Makefile
blob: 6909bc40de596634f43ad240d85f74a051710d9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# New ports collection makefile for:    trafshow
# Date created:         25 September 1996
# Whom:                 igor@zynaps.ru
#
# $FreeBSD$
#

PORTNAME=   trafshow
PORTVERSION=    5.2.1
PORTREVISION=   1
PORTEPOCH=  1
CATEGORIES= net
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

USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
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|-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
    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>