Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2014 08:18:41 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r346455 - in head/net-mgmt/p0f2: . files
Message-ID:  <201402280818.s1S8IfAa069312@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Fri Feb 28 08:18:41 2014
New Revision: 346455
URL: http://svnweb.freebsd.org/changeset/ports/346455
QAT: https://qat.redports.org/buildarchive/r346455/

Log:
  - Support staging
  - Respect CC
  - Respect CFLAGS
  - USES -> gmake
  - Use WWW: with a single space

Added:
  head/net-mgmt/p0f2/files/patch-mk__FreeBSD   (contents, props changed)
Modified:
  head/net-mgmt/p0f2/Makefile
  head/net-mgmt/p0f2/pkg-descr
  head/net-mgmt/p0f2/pkg-plist

Modified: head/net-mgmt/p0f2/Makefile
==============================================================================
--- head/net-mgmt/p0f2/Makefile	Fri Feb 28 08:15:51 2014	(r346454)
+++ head/net-mgmt/p0f2/Makefile	Fri Feb 28 08:18:41 2014	(r346455)
@@ -14,19 +14,14 @@ COMMENT=	Passive OS fingerprinting tool
 
 CONFLICTS=	p0f-3.*
 
+USES=		gmake
 USE_RC_SUBR=	p0f2
-USE_GMAKE=	yes
 ALL_TARGET=	all p0fq tools
 PORTDOCS=	COPYING CREDITS ChangeLog KNOWN_BUGS README TODO win-memleak.txt
-MAN1=		p0f.1
 WRKSRC=		${WRKDIR}/p0f
 
-NO_STAGE=	yes
-
 OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.options.mk>
-
 post-patch:
 .for f in config.h doc/README
 	@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/${f}
@@ -34,20 +29,17 @@ post-patch:
 
 do-install:
 .for ii in p0f test/p0fq test/sendack test/sendack2 test/sendsyn
-	${INSTALL_PROGRAM} ${WRKSRC}/${ii} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/${ii} ${STAGEDIR}${PREFIX}/bin
 .endfor
-	${INSTALL_SCRIPT} ${WRKSRC}/p0frep ${PREFIX}/bin
-	${MKDIR} ${PREFIX}/etc/p0f
+	${INSTALL_SCRIPT} ${WRKSRC}/p0frep ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/p0f
 .for ii in . a. o. r.
-	${INSTALL_DATA} ${WRKSRC}/p0f${ii}fp ${PREFIX}/etc/p0f
+	${INSTALL_DATA} ${WRKSRC}/p0f${ii}fp ${STAGEDIR}${PREFIX}/etc/p0f
 .endfor
-	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
-
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/p0f.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for ii in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/doc/${ii} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/${ii} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Added: head/net-mgmt/p0f2/files/patch-mk__FreeBSD
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/p0f2/files/patch-mk__FreeBSD	Fri Feb 28 08:18:41 2014	(r346455)
@@ -0,0 +1,15 @@
+--- ./mk/FreeBSD.orig	2014-02-28 09:14:15.972688127 +0100
++++ ./mk/FreeBSD	2014-02-28 09:15:04.890685340 +0100
+@@ -7,10 +7,10 @@
+ # (C) Copyright 2000-2006 by Michal Zalewski <lcamtuf@coredump.cx>
+ #
+ 
+-CC      = gcc
++CC      ?= gcc
+ LIBS	= -lpcap
+ STRIP   = strip
+-CFLAGS  = -O3 -Wall -fomit-frame-pointer -funroll-loops \
++CFLAGS  += -Wall \
+           -DUSE_BPF=\"${USE_BPF}\" \
+ 	  -I/usr/include/pcap -I/usr/local/include/pcap -I/usr/local/include
+ FILE	= p0f

Modified: head/net-mgmt/p0f2/pkg-descr
==============================================================================
--- head/net-mgmt/p0f2/pkg-descr	Fri Feb 28 08:15:51 2014	(r346454)
+++ head/net-mgmt/p0f2/pkg-descr	Fri Feb 28 08:18:41 2014	(r346455)
@@ -20,4 +20,4 @@ if you do not understand how this can be
 no options will cause it to analyse packets intended for other
 hosts.
 
-WWW:  http://lcamtuf.coredump.cx/p0f.shtml
+WWW: http://lcamtuf.coredump.cx/p0f.shtml

Modified: head/net-mgmt/p0f2/pkg-plist
==============================================================================
--- head/net-mgmt/p0f2/pkg-plist	Fri Feb 28 08:15:51 2014	(r346454)
+++ head/net-mgmt/p0f2/pkg-plist	Fri Feb 28 08:18:41 2014	(r346455)
@@ -8,4 +8,5 @@ etc/p0f/p0f.fp
 etc/p0f/p0fa.fp
 etc/p0f/p0fo.fp
 etc/p0f/p0fr.fp
+man/man1/p0f.1.gz
 @dirrmtry etc/p0f



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