head	1.10;
access;
symbols
	RELEASE_8_3_0:1.8
	RELEASE_9_0_0:1.8
	RELEASE_7_4_0:1.8
	RELEASE_8_2_0:1.8
	RELEASE_6_EOL:1.8
	RELEASE_8_1_0:1.8
	RELEASE_7_3_0:1.8
	RELEASE_8_0_0:1.8
	RELEASE_7_2_0:1.8
	RELEASE_7_1_0:1.7
	RELEASE_6_4_0:1.7
	RELEASE_5_EOL:1.7
	RELEASE_7_0_0:1.7
	RELEASE_6_3_0:1.7
	PRE_XORG_7:1.6
	RELEASE_4_EOL:1.5
	RELEASE_6_2_0:1.5
	RELEASE_6_1_0:1.4
	RELEASE_5_5_0:1.4
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3;
locks; strict;
comment	@# @;


1.10
date	2013.02.18.21.46.33;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.11.17.06.01.22;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2009.01.06.17.59.21;	author pav;	state Exp;
branches;
next	1.7;

1.7
date	2007.06.14.14.37.05;	author jmelo;	state Exp;
branches;
next	1.6;

1.6
date	2007.01.31.14.09.54;	author pav;	state Exp;
branches;
next	1.5;

1.5
date	2006.05.13.04.15.17;	author edwin;	state Exp;
branches;
next	1.4;

1.4
date	2005.11.14.17.07.07;	author sem;	state Exp;
branches;
next	1.3;

1.3
date	2005.02.13.12.25.45;	author niels;	state Exp;
branches;
next	1.2;

1.2
date	2005.01.11.11.01.21;	author niels;	state Exp;
branches;
next	1.1;

1.1
date	2005.01.11.10.24.36;	author niels;	state Exp;
branches;
next	;


desc
@@


1.10
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312526
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# New ports collection makefile for:	unicornscan
# Date created:		4 October 2004
# Whom:			cykyc
#
# $FreeBSD: head/security/unicornscan/Makefile 312526 2013-02-18 21:13:02Z dinoex $
#

PORTNAME=	unicornscan
PORTVERSION=	0.4.2
PORTREVISION=	4
CATEGORIES=	security
MASTER_SITES=	http://www.unicornscan.org/releases/

MAINTAINER=	cykyc@@yahoo.com
COMMENT=	Next-generation of udpscan plus a high-speed TCP scanner

LIB_DEPENDS=	net:${PORTSDIR}/net/libnet

USE_GMAKE=	yes
MAKE_ENV=	LIBNET_CONFIG="${LIBNET_CONFIG}"
CFLAGS+=	-DWITH_LONGOPTS

MAN1=		unicornscan.1

PKGMESSAGE=	${WRKDIR}/pkg-message

LIBNET_CONFIG?=	${LOCALBASE}/bin/libnet11-config

.include <bsd.port.pre.mk>

post-patch:
.for text in pkg-message
	@@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
	${PKGDIR}/${text} >${WRKDIR}/${text}
.endfor
	@@${REINPLACE_CMD} -e 's|-lnet|`${LIBNET_CONFIG} --libs`|' \
		${WRKSRC}/src/scan_progs/Makefile ${WRKSRC}/src/tools/Makefile

do-install:
	${MKDIR} ${PREFIX}/etc/unicornscan
	${MKDIR} ${PREFIX}/libexec/unicornscan/modules
	${MKDIR} ${PREFIX}/share/unicornscan
	${MKDIR} ${PREFIX}/var/unicornscan
	${INSTALL_PROGRAM} ${WRKSRC}/src/unicornscan ${PREFIX}/bin/
	${INSTALL_PROGRAM} ${WRKSRC}/src/tools/fantaip ${PREFIX}/bin/
	${INSTALL_PROGRAM} ${WRKSRC}/src/scan_progs/unisend ${PREFIX}/libexec/unicornscan
	${INSTALL_PROGRAM} ${WRKSRC}/src/scan_progs/unilisten ${PREFIX}/libexec/unicornscan
	${REINPLACE_CMD} -e 's|/usr/local/share|${PREFIX}/etc|' \
		${WRKSRC}/fconf/unicorn.conf
	for confs in ${WRKSRC}/fconf/*.conf; do\
		${INSTALL_DATA} $$confs ${PREFIX}/etc/unicornscan/`basename $$confs`.sample ;\
	done
	${INSTALL_DATA} ${WRKSRC}/fconf/port-numbers ${PREFIX}/share/unicornscan
	for mods in ${WRKSRC}/src/payload_modules/*.so; do\
		${INSTALL_PROGRAM} $$mods ${PREFIX}/libexec/unicornscan/modules/ ;\
	done
	for mods in ${WRKSRC}/src/report_modules/shlibs/*.so; do\
		${INSTALL_PROGRAM} $$mods ${PREFIX}/libexec/unicornscan/modules/ ;\
	done
	for pofs in p0f.fp p0fa.fp p0fr.fp; do\
		${INSTALL_DATA} ${WRKSRC}/src/report_modules/p0f/$$pofs ${PREFIX}/share/unicornscan/ ;\
	done
	${INSTALL_PROGRAM} ${WRKSRC}/src/report_modules/shlibs/libp0f.so \
		${PREFIX}/libexec/unicornscan/modules/
	${INSTALL_MAN} ${WRKSRC}/docs/unicornscan.1 ${PREFIX}/man/man1/
	for files in LICENSE README misc/UDP_PAYLOADS_NEEDED \
	TODO_BUGSTOFIX README.database; do\
		${INSTALL_DATA} ${WRKSRC}/$$files ${PREFIX}/share/unicornscan/ ;\
	done
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.9
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/security/unicornscan/Makefile 300897 2012-07-14 14:29:18Z beat $
d10 1
a10 1
PORTREVISION=	3
d17 1
a17 1
BUILD_DEPENDS=	${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
@


1.8
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.7
log
@- Fix mastersite.

PR:		ports/113595
Submitted by:	Jon Passki<jon.passki@@hursk.com>
Approved by:	maintainer
@
text
@d21 1
a30 14
# Check if where building on a 5.3 or older system. Older
# system require libpcap 0.8.x to be installed.

.if ${OSVERSION} < 503000
BUILD_DEPENDS+=	${PREFIX}/lib/libpcap.a:${PORTSDIR}/net/libpcap
.endif

# Systems newer then 502103 include the getopt_long
# function

.if ${OSVERSION} > 502103
CFLAGS+=	-DWITH_LONGOPTS
.endif

@


1.6
log
@- Patch net/libnet* to versioned libraries and header files, so they can
  coexist

PR:		ports/103861
Submitted by:	alepulver
Tested by:	pointyhat
With hat:	portmgr
@
text
@d12 1
a12 1
MASTER_SITES=	http://www.dyadsecurity.com/unicornscan/
@


1.5
log
@Remove USE_REINPLACE from all categories starting with S
@
text
@d10 1
a10 1
PORTREVISION=	2
d17 1
a17 1
BUILD_DEPENDS=	libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
d20 1
d24 3
a26 1
PKGMESSAGE=     ${WRKDIR}/pkg-message
d41 1
a41 1
CFLAGS+= -DWITH_LONGOPTS
d49 2
@


1.4
log
@libnet update:
- move 1.0 obsoleted version to net/libnet10
  net/libnet is latest Stable Version
  net/libnet is latest Beta Version

- Fix all depended ports with a new DEPENDS scheme

- While I'm here fix security/yersinia build on 4.x
  (getopt_long and ncurses issues)

PR:		ports/85519 (based on)
Submitted by:	Stas Yakovlev <stas.yakovlev_at_gmail.com>
@
text
@a19 1
USE_REINPLACE=	yes
@


1.3
log
@Fixed libpcap dependency, bumped PORTREVISION
Derived from maintainer patch.

Approved by:	nectar (mentor)
Reported by:	kris (via pointyhat)
Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	1
d17 1
a17 1
BUILD_DEPENDS=	${LOCALBASE}/include/libnet/libnet-types.h:${PORTSDIR}/net/libnet-devel
@


1.2
log
@Applied patches to work on 4.x, they should have been included in
the initial commit.

Approved by:	nectar (mentor, implicit)
@
text
@d10 1
d32 1
a32 1
BUILD_DEPENDS+= libpcap:${PORTSDIR}/net/libpcap
@


1.1
log
@New port: unicornscan, a UDP and TCP portscanner that can be used
for information gathering using fingerprinting (p0f based) and
banner grabbing techniques.

PR:		ports/72752
Submitted by:	Jon Passki <cykyc(at)yahoo.com>
Approved by:	nectar (mentor)
@
text
@d25 16
d80 1
a80 1
.include <bsd.port.mk>
@

