freebsd-ports/security/pktsuckers/Makefile
Alex Kozlov 23fc6f5485 - Convert Makefile headers to new style
- Don't hardcode PORTVERSION in DISTNAME
- Convert to PLIST_FILES
- Fix build with clang

PR:	ports/174205 (based on)
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2012-12-10 05:32:00 +00:00

24 lines
636 B
Makefile

# Created by: Warren Toomey <wkt@cs.adfa.edu.au>
# $FreeBSD$
PORTNAME= pktsuckers
PORTVERSION= 1.2
CATEGORIES= security
MASTER_SITES= ftp://minnie.tuhs.org/pub/NetSecurity/
DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/}
MAINTAINER= ports@FreeBSD.org
COMMENT= Log contents of unwanted UDP packets and TCP connections
PLIST_FILES= libexec/tcpsuck libexec/udpsuck
post-patch:
@${REINPLACE_CMD} -e \
's|^void main|int main|' ${WRKSRC}/tcpsuck.c ${WRKSRC}/udpsuck.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tcpsuck ${PREFIX}/libexec
${INSTALL_PROGRAM} ${WRKSRC}/udpsuck ${PREFIX}/libexec
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>