Bug 184882 - security/sniff: Support CC/CFLAGS properly
Summary: security/sniff: Support CC/CFLAGS properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 18:10 UTC by tkato432
Modified: 2013-12-20 19:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.29 KB, patch)
2013-12-16 18:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-12-16 18:10:23 UTC
- Support CC/CFLAGS properly
- Add LICENSE
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2013-12-20 19:28:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 Pawel Pekala freebsd_committer freebsd_triage 2013-12-20 19:31:19 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-12-20 19:31:19 UTC
Author: pawel
Date: Fri Dec 20 19:31:11 2013
New Revision: 337082
URL: http://svnweb.freebsd.org/changeset/ports/337082

Log:
  - Respect CC/CFLAGS
  - Add LICENSE
  - Support staging
  
  PR:		ports/184882
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/security/sniff/Makefile   (contents, props changed)

Modified: head/security/sniff/Makefile
==============================================================================
--- head/security/sniff/Makefile	Fri Dec 20 19:25:49 2013	(r337081)
+++ head/security/sniff/Makefile	Fri Dec 20 19:31:11 2013	(r337082)
@@ -1,23 +1,30 @@
 # Created by: Rick & Samu
 # $FreeBSD$
 
-PORTNAME=		sniff
-PORTVERSION=		1.0
-CATEGORIES=		security
-MASTER_SITES=		LOCAL/fenner
+PORTNAME=	sniff
+PORTVERSION=	1.0
+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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"