Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 02:51:01 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/184882: security/sniff: Support CC/CFLAGS properly
Message-ID:  <20131217025101.02c5fd25a12f8bf373d607ea@yahoo.com>
Resent-Message-ID: <201312161810.rBGIANB0016483@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@FreeBSD.org
-COMMENT=		Program to sniff logins and passwords
+MAINTAINER=	ports@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131217025101.02c5fd25a12f8bf373d607ea>