aboutsummaryrefslogtreecommitdiffstats
path: root/net/tcpview/Makefile
blob: 632af7d9e0374a3ba5d60e40bd344c420de822bc (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
# New ports collection makefile for:   tcpview
# Date created:        18 Aug 2000
# Whom:                Chung-Kie Tung <tung@turtle.ee.ncku.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   tcpview
PORTVERSION=    1.0
CATEGORIES= net
MASTER_SITES=   ftp://ftp.cac.washington.edu/pub/noc-tools/tcpview/
EXTRACT_SUFX=   .tar.Z

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Motif-based TCP/IP protocol analyzer

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500113
BROKEN=         "Does not compile"
.endif

USE_BISON=  yes
USE_MOTIF=  yes
USE_REINPLACE=  yes

MAN1=       tcpview.1

post-patch:
.for f in nametoaddr.c addrtoname.c print-nfs.c detail-tcp.c tv_addrtoname.c
    @${REINPLACE_CMD} -e 's/NTOHL/ntohl/ ; s/NTOHS/ntohs/' ${WRKSRC}/${f}
.endfor

post-install:
    ${INSTALL_DATA} ${WRKSRC}/DOC/Tcpview ${X11BASE}/lib/X11/app-defaults/

.include <bsd.port.post.mk>