1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/net/tcpview/Makefile
Helge Oldach 268db869e8 net/tcpview: Move manpages to share/man
Approved by:	portmgr (blanket)
2024-02-04 22:13:56 +03:00

28 lines
889 B
Makefile

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>