summaryrefslogtreecommitdiff
path: root/net/tcpview/Makefile
blob: 83ca3544a7367577667041c880e358c9829448d9 (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
PORTNAME=	tcpview
PORTVERSION=	1.0
PORTREVISION=	8
CATEGORIES=	net
MASTER_SITES=	http://ftp.vim.org/ibiblio/system/network/management/ \
		ftp://ftp.ottix.net/pub/mirrors/by-package/tcpview/ \
		ftp://ftp.ibiblio.org/pub/historic-linux/ftp-archives/sunsite.unc.edu/Sep-29-1996/system//Network/management/

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

USES=		bison motif tar:Z
MAKE_ARGS=	PREFIX=${STAGEDIR}${PREFIX}
MAKE_JOBS_UNSAFE=	yes
CFLAGS+=	-Wno-incompatible-function-pointer-types

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
	@${REINPLACE_CMD} -e '/^TCPVIEW_MANDEST/s,/man,/share/man,' \
		${WRKSRC}/Makefile

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

.include <bsd.port.mk>