svn commit: r308586 - head/security/pktsuckers

Alex Kozlov ak at FreeBSD.org
Mon Dec 10 05:32:01 UTC 2012


Author: ak
Date: Mon Dec 10 05:32:00 2012
New Revision: 308586
URL: http://svnweb.freebsd.org/changeset/ports/308586

Log:
  - 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 at yahoo.com>

Deleted:
  head/security/pktsuckers/pkg-plist
Modified:
  head/security/pktsuckers/Makefile   (contents, props changed)

Modified: head/security/pktsuckers/Makefile
==============================================================================
--- head/security/pktsuckers/Makefile	Mon Dec 10 05:00:13 2012	(r308585)
+++ head/security/pktsuckers/Makefile	Mon Dec 10 05:32:00 2012	(r308586)
@@ -1,19 +1,21 @@
-# New ports collection makefile for:	pktsuckers
-# Date created:		31 May 1999
-# Whom:			Warren Toomey <wkt at cs.adfa.edu.au>
-#
+# Created by: Warren Toomey <wkt at cs.adfa.edu.au>
 # $FreeBSD$
-#
 
 PORTNAME=	pktsuckers
 PORTVERSION=	1.2
 CATEGORIES=	security
 MASTER_SITES=	ftp://minnie.tuhs.org/pub/NetSecurity/
-DISTNAME=	${PORTNAME}1_2
+DISTNAME=	${PORTNAME}${PORTVERSION:S/./_/}
 
 MAINTAINER=	ports at 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


More information about the svn-ports-all mailing list