Update to 2.0.1, requested by William Stearns and Michal Zalewski.
Combine do-install and post-install targets.
This commit is contained in:
parent
13aa50ee9d
commit
ed76d83429
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88814
8 changed files with 64 additions and 72 deletions
|
@ -6,30 +6,35 @@
|
|||
#
|
||||
|
||||
PORTNAME= p0f
|
||||
PORTVERSION= 1.8.2
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.0.1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.stearns.org/p0f/
|
||||
MASTER_SITES= http://lcamtuf.coredump.cx/p0f/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= trevor@FreeBSD.org
|
||||
COMMENT= Passive OS fingerprinting tool
|
||||
|
||||
USE_REINPLACE= yes
|
||||
DOCFILES= COPYING CREDITS ChangeLog README
|
||||
MAN1= p0f.1
|
||||
DOCFILES= COPYING CREDITS KNOWN_BUGS README TODO winxp-memleak.txt
|
||||
PLIST= ${WRKDIR}/pkg-plist
|
||||
WRKSRC= ${WRKDIR}/p0f
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e "s=/etc=${PREFIX}/etc=g" \
|
||||
${WRKSRC}/README \
|
||||
${WRKSRC}/p0f.c
|
||||
.for ii in config.h doc/README
|
||||
${MV} ${WRKSRC}/${ii} ${WRKSRC}/${ii}.orig
|
||||
${SED} -e "s=/etc=${PREFIX}/etc=g" < ${WRKSRC}/${ii}.orig > \
|
||||
${WRKSRC}/${ii}
|
||||
.endfor
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/p0f ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/p0frep ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/p0f.fp ${PREFIX}/etc
|
||||
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for ii in ${DOCFILES}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/${ii} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
${ECHO_CMD} bin/p0f > ${PLIST}
|
||||
|
@ -42,12 +47,4 @@ pre-install:
|
|||
${ECHO_CMD} "@dirrm share/doc/p0f" >> ${PLIST}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for i in ${DOCFILES}
|
||||
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/p0f
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1 +1 @@
|
|||
MD5 (p0f-1.8.2.tgz) = fdc811dda8e0d261a5564d1f3ad5c24c
|
||||
MD5 (p0f-2.0.1.tgz) = 50a8f485a13843f2cd20e40c9f3cb6ad
|
||||
|
|
16
net-mgmt/p0f/files/patch-FreeBSD
Normal file
16
net-mgmt/p0f/files/patch-FreeBSD
Normal file
|
@ -0,0 +1,16 @@
|
|||
$FreeBSD$
|
||||
|
||||
--- mk/FreeBSD.orig Sat Aug 30 15:41:17 2003
|
||||
+++ mk/FreeBSD Mon Sep 8 03:58:17 2003
|
||||
@@ -7,10 +7,9 @@
|
||||
# (C) Copyright 2000-2003 by Michal Zalewski <lcamtuf@coredump.cx>
|
||||
#
|
||||
|
||||
-CC = gcc
|
||||
+CC? = gcc
|
||||
LIBS = -lpcap -I/usr/include/pcap -I/usr/local/include/pcap
|
||||
STRIP = strip
|
||||
-CFLAGS = -O3 -Wall -fomit-frame-pointer -funroll-loops
|
||||
FILE = p0f
|
||||
|
||||
all: $(FILE) strip
|
|
@ -1,17 +0,0 @@
|
|||
--- Makefile.orig Sat Sep 2 17:41:34 2000
|
||||
+++ Makefile Sat Sep 2 17:41:48 2000
|
||||
@@ -3,11 +3,12 @@
|
||||
# (c) <lcamtuf@tpi.pl>
|
||||
#
|
||||
|
||||
-CC = gcc
|
||||
+CC ?= gcc
|
||||
CLIBS = -lpcap
|
||||
SUNLIBS = -lsocket -lnsl -D_SUN_=1
|
||||
STRIP = strip
|
||||
-CFLAGS = -O3 -Wall
|
||||
+CFLAGS ?= -O3
|
||||
+CFLAGS += -Wall
|
||||
FILE = p0f
|
||||
VERSION = 1.7
|
||||
|
|
@ -6,30 +6,35 @@
|
|||
#
|
||||
|
||||
PORTNAME= p0f
|
||||
PORTVERSION= 1.8.2
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.0.1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.stearns.org/p0f/
|
||||
MASTER_SITES= http://lcamtuf.coredump.cx/p0f/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= trevor@FreeBSD.org
|
||||
COMMENT= Passive OS fingerprinting tool
|
||||
|
||||
USE_REINPLACE= yes
|
||||
DOCFILES= COPYING CREDITS ChangeLog README
|
||||
MAN1= p0f.1
|
||||
DOCFILES= COPYING CREDITS KNOWN_BUGS README TODO winxp-memleak.txt
|
||||
PLIST= ${WRKDIR}/pkg-plist
|
||||
WRKSRC= ${WRKDIR}/p0f
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e "s=/etc=${PREFIX}/etc=g" \
|
||||
${WRKSRC}/README \
|
||||
${WRKSRC}/p0f.c
|
||||
.for ii in config.h doc/README
|
||||
${MV} ${WRKSRC}/${ii} ${WRKSRC}/${ii}.orig
|
||||
${SED} -e "s=/etc=${PREFIX}/etc=g" < ${WRKSRC}/${ii}.orig > \
|
||||
${WRKSRC}/${ii}
|
||||
.endfor
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/p0f ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/p0frep ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/p0f.fp ${PREFIX}/etc
|
||||
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for ii in ${DOCFILES}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/${ii} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
${ECHO_CMD} bin/p0f > ${PLIST}
|
||||
|
@ -42,12 +47,4 @@ pre-install:
|
|||
${ECHO_CMD} "@dirrm share/doc/p0f" >> ${PLIST}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for i in ${DOCFILES}
|
||||
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/p0f
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1 +1 @@
|
|||
MD5 (p0f-1.8.2.tgz) = fdc811dda8e0d261a5564d1f3ad5c24c
|
||||
MD5 (p0f-2.0.1.tgz) = 50a8f485a13843f2cd20e40c9f3cb6ad
|
||||
|
|
16
net/p0f/files/patch-FreeBSD
Normal file
16
net/p0f/files/patch-FreeBSD
Normal file
|
@ -0,0 +1,16 @@
|
|||
$FreeBSD$
|
||||
|
||||
--- mk/FreeBSD.orig Sat Aug 30 15:41:17 2003
|
||||
+++ mk/FreeBSD Mon Sep 8 03:58:17 2003
|
||||
@@ -7,10 +7,9 @@
|
||||
# (C) Copyright 2000-2003 by Michal Zalewski <lcamtuf@coredump.cx>
|
||||
#
|
||||
|
||||
-CC = gcc
|
||||
+CC? = gcc
|
||||
LIBS = -lpcap -I/usr/include/pcap -I/usr/local/include/pcap
|
||||
STRIP = strip
|
||||
-CFLAGS = -O3 -Wall -fomit-frame-pointer -funroll-loops
|
||||
FILE = p0f
|
||||
|
||||
all: $(FILE) strip
|
|
@ -1,17 +0,0 @@
|
|||
--- Makefile.orig Sat Sep 2 17:41:34 2000
|
||||
+++ Makefile Sat Sep 2 17:41:48 2000
|
||||
@@ -3,11 +3,12 @@
|
||||
# (c) <lcamtuf@tpi.pl>
|
||||
#
|
||||
|
||||
-CC = gcc
|
||||
+CC ?= gcc
|
||||
CLIBS = -lpcap
|
||||
SUNLIBS = -lsocket -lnsl -D_SUN_=1
|
||||
STRIP = strip
|
||||
-CFLAGS = -O3 -Wall
|
||||
+CFLAGS ?= -O3
|
||||
+CFLAGS += -Wall
|
||||
FILE = p0f
|
||||
VERSION = 1.7
|
||||
|
Loading…
Reference in a new issue