ports/174205: security/pktsuckers: Fix build with clang
KATO Tsuguru
tkato432 at yahoo.com
Wed Dec 5 18:10:15 UTC 2012
>Number: 174205
>Category: ports
>Synopsis: security/pktsuckers: Fix build with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Dec 05 18:10:14 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Support PLIST_FILES
Remove file:
pkg-plist
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/security/pktsuckers/Makefile security/pktsuckers/Makefile
--- /usr/ports/security/pktsuckers/Makefile 2012-11-08 09:57:34.000000000 +0900
+++ security/pktsuckers/Makefile 2012-12-03 23:59:33.000000000 +0900
@@ -1,22 +1,27 @@
-# 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: head/security/pktsuckers/Makefile 300897 2012-07-14 14:29:18Z beat $
-#
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:
+.for i in tcpsuck.c udpsuck.c
+ @${REINPLACE_CMD} -e \
+ 's|^void main|int main|' ${WRKSRC}/${i}
+.endfor
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/tcpsuck ${PREFIX}/libexec
- ${INSTALL_PROGRAM} ${WRKSRC}/udpsuck ${PREFIX}/libexec
+.for i in tcpsuck udpsuck
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${PREFIX}/libexec)
+.endfor
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff -urN /usr/ports/security/pktsuckers/pkg-plist security/pktsuckers/pkg-plist
--- /usr/ports/security/pktsuckers/pkg-plist 2012-11-08 09:57:34.000000000 +0900
+++ security/pktsuckers/pkg-plist 1970-01-01 09:00:00.000000000 +0900
@@ -1,2 +0,0 @@
-libexec/tcpsuck
-libexec/udpsuck
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list