ports/184882: security/sniff: Support CC/CFLAGS properly
KATO Tsuguru
tkato432 at yahoo.com
Mon Dec 16 18:10:23 UTC 2013
>Number: 184882
>Category: ports
>Synopsis: security/sniff: Support CC/CFLAGS properly
>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: Mon Dec 16 18:10:23 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Support CC/CFLAGS properly
- Add LICENSE
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/security/sniff/Makefile security/sniff/Makefile
--- /usr/ports/security/sniff/Makefile 2013-11-06 22:02:53.000000000 +0900
+++ security/sniff/Makefile 2013-12-17 00:00:00.000000000 +0900
@@ -1,23 +1,31 @@
# Created by: Rick & Samu
# $FreeBSD: head/security/sniff/Makefile 327769 2013-09-20 22:55:24Z bapt $
-PORTNAME= sniff
-PORTVERSION= 1.0
-CATEGORIES= security
-MASTER_SITES= LOCAL/fenner
+PORTNAME= sniff
+PORTVERSION= 1.0
+PORTREVISION= 1
+CATEGORIES= security
+MASTER_SITES= LOCAL/fenner
-MAINTAINER= ports at FreeBSD.org
-COMMENT= Program to sniff logins and passwords
+MAINTAINER= ports at FreeBSD.org
+COMMENT= Program to sniff logins and passwords
-MAN1= sniff.1
+LICENSE= GPLv2
-HAS_CONFIGURE= yes
-CONFIGURE_SCRIPT= configure
+GNU_CONFIGURE= yes
-PLIST_FILES= sbin/sniff
+PLIST_FILES= sbin/sniff man/man1/sniff.1.gz
-NO_STAGE= yes
post-patch:
- @${REINPLACE_CMD} -e 's|PREFIX=/usr/local|PREFIX=${PREFIX}|g' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e \
+ 's|^CC.*|CC=@CC@| ; \
+ s|^CFLAGS.*|CFLAGS=@CFLAGS@| ; \
+ s|^PREFIX.*|PREFIX=@PREFIX@|' ${WRKSRC}/Makefile.in
+
+do-install:
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} sniff \
+ ${STAGEDIR}${PREFIX}/sbin)
+ (cd ${WRKSRC} && ${INSTALL_MAN} sniff.1 \
+ ${STAGEDIR}${MANPREFIX}/man/man1)
.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list