2004-05-07 11:28:31 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.12 2004/05/07 15:28:32 naddy Exp $
|
2001-10-28 22:20:38 -05:00
|
|
|
# $NetBSD: Makefile,v 1.1.1.2 2001/03/26 11:59:15 hubertf Exp $
|
|
|
|
|
2001-12-08 15:13:53 -05:00
|
|
|
COMMENT= "passive OS fingerprinting tool"
|
2001-10-28 22:20:38 -05:00
|
|
|
|
2003-07-19 13:02:06 -04:00
|
|
|
DISTNAME= p0f-1.8.3
|
2003-02-09 17:06:33 -05:00
|
|
|
CATEGORIES= security net
|
2001-10-28 22:20:38 -05:00
|
|
|
|
2002-01-27 13:28:32 -05:00
|
|
|
HOMEPAGE= http://www.stearns.org/p0f/
|
2001-10-28 22:20:38 -05:00
|
|
|
|
2003-07-19 13:02:06 -04:00
|
|
|
# GPL
|
2001-10-28 22:20:38 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-02-05 17:56:12 -05:00
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
2003-07-19 13:02:06 -04:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
FLAVORS= mysql
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
EXAMPLES= p0f.fp
|
|
|
|
|
|
|
|
.if ${FLAVOR:L} == "mysql"
|
2004-01-01 23:56:24 -05:00
|
|
|
LIB_DEPENDS= lib/mysql/mysqlclient.10::databases/mysql
|
2003-07-19 13:02:06 -04:00
|
|
|
ALL_TARGET= p0f-mysql
|
|
|
|
EXAMPLES+= mysql/db.sql mysql/p0f-mysql.conf
|
|
|
|
.endif
|
2001-10-28 22:20:38 -05:00
|
|
|
|
2001-12-08 15:13:53 -05:00
|
|
|
MAKE_FLAGS= CC='${CC}' \
|
|
|
|
CFLAGS='${CFLAGS} -DSYSCONFDIR="\"${SYSCONFDIR}\""'
|
2001-10-29 19:31:32 -05:00
|
|
|
NO_REGRESS= Yes
|
2001-10-28 22:20:38 -05:00
|
|
|
|
2003-07-19 13:02:06 -04:00
|
|
|
post-patch:
|
|
|
|
@perl -i -pe 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/Makefile
|
|
|
|
|
2001-10-28 22:20:38 -05:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/p0f ${PREFIX}/bin/p0f
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/p0f
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/p0f
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/p0f/README
|
2004-05-03 11:59:36 -04:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/p0f.1 ${PREFIX}/man/man1/p0f.1
|
2003-07-19 13:02:06 -04:00
|
|
|
.for file in ${EXAMPLES}
|
|
|
|
.if ${FLAVOR:L} == "mysql"
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/p0f/mysql
|
|
|
|
.endif
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/examples/p0f/${file}
|
|
|
|
.endfor
|
2001-10-28 22:20:38 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|