mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
5005b67362
OPTIONS_DEFINE. This policy has been implemented only recently that's why we have many ports violating this policy. This patch adds the default options specified in the Porter's Handbook to OPTIONS_DEFINE where they are being used. Ports maintained by gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded. Approved by: portmgr (bapt)
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# Created by: trevor
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= p0f
|
|
PORTVERSION= 3.06b
|
|
CATEGORIES= net-mgmt security
|
|
MASTER_SITES= http://lcamtuf.coredump.cx/p0f3/releases/ \
|
|
http://fossies.org/unix/privat/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= fbsd-ports@opsec.eu
|
|
COMMENT= Passive OS fingerprinting tool
|
|
|
|
LICENSE= LGPL21
|
|
|
|
PLIST_FILES= bin/p0f bin/p0f-client bin/p0f-sendsyn \
|
|
bin/p0f-sendsyn6 etc/p0f.fp
|
|
PORTDOCS= ChangeLog README TODO existential-notes.txt \
|
|
extra-sigs.txt
|
|
|
|
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS}"
|
|
|
|
NO_STAGE= yes
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/README
|
|
@${REINPLACE_CMD} -e 's|p0f.fp|${PREFIX}/etc/p0f.fp|g' ${WRKSRC}/config.h
|
|
|
|
do-install:
|
|
.for ii in p0f tools/p0f-client tools/p0f-sendsyn tools/p0f-sendsyn6
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${ii} ${PREFIX}/bin
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/p0f.fp ${PREFIX}/etc/
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}
|
|
.for ii in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/${ii} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|