head	1.13;
access;
symbols
	RELEASE_8_3_0:1.9
	RELEASE_9_0_0:1.9
	RELEASE_7_4_0:1.9
	RELEASE_8_2_0:1.9
	RELEASE_6_EOL:1.9
	RELEASE_8_1_0:1.8
	RELEASE_7_3_0:1.8
	RELEASE_8_0_0:1.8
	RELEASE_7_2_0:1.7
	RELEASE_7_1_0:1.7
	RELEASE_6_4_0:1.7
	RELEASE_5_EOL:1.7
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.4
	RELEASE_6_2_0:1.1;
locks; strict;
comment	@# @;


1.13
date	2013.02.18.01.16.40;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2012.11.17.06.01.19;	author svnexp;	state Exp;
branches;
next	1.11;

1.11
date	2012.08.11.10.59.54;	author dougb;	state Exp;
branches;
next	1.10;

1.10
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.9;

1.9
date	2010.08.18.18.10.06;	author ohauer;	state Exp;
branches;
next	1.8;

1.8
date	2009.08.22.00.35.05;	author amdmi3;	state Exp;
branches;
next	1.7;

1.7
date	2008.05.20.19.02.07;	author araujo;	state Exp;
branches;
next	1.6;

1.6
date	2008.05.18.00.14.19;	author araujo;	state Exp;
branches;
next	1.5;

1.5
date	2008.05.03.13.22.16;	author araujo;	state Exp;
branches;
next	1.4;

1.4
date	2007.01.16.12.45.11;	author bsam;	state Exp;
branches;
next	1.3;

1.3
date	2006.11.10.21.07.22;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2006.10.31.22.08.40;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2006.10.09.19.04.38;	author bsam;	state Exp;
branches;
next	;


desc
@@


1.13
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312466
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Paul Schmehl <pauls@@utdallas.edu>
# $FreeBSD: head/security/sguil-sensor/Makefile 312466 2013-02-18 00:56:47Z miwi $

PORTNAME=	sguil-sensor
PORTVERSION=	0.8.0
CATEGORIES=	security
MASTER_SITES=	SF/sguil/sguil/sguil-${PORTVERSION}

MAINTAINER=	pauls@@utdallas.edu
COMMENT=	Sguil is a network security monitoring program

LIB_DEPENDS=	tls:${PORTSDIR}/devel/tcltls
RUN_DEPENDS=	barnyard2:${PORTSDIR}/security/barnyard2-sguil \
		${LOCALBASE}/lib/tclx8.4/tclx.tcl:${PORTSDIR}/lang/tclX

OPTIONS_DEFINE=	PADS SANCP
PADS_DESC=	Include pads sensor
SANCP_DESC=	Include sancp sensor

LICENSE_NAME=	QPLv1.0
LICENSE_FILE=	${WRKSRC}/doc/LICENSE.QPL
LICENSE_PERMS=	auto-accept

NO_BUILD=	yes
USE_RC_SUBR=	pcap_agent snort_agent
TCL_VER=	8.5
TCLSH=		tclsh${TCL_VER}
WRKSRC=		${WRKDIR}/sguil-${PORTVERSION}
PATCH_WRKSRC=	${WRKSRC}/sensor
SGUILDIR?=	sguil-sensor
SUB_LIST=	SGUILDIR=${SGUILDIR} TCLSH=${TCLSH}
SUB_FILES=	pkg-message
PLIST_SUB=	SGUILDIR=${SGUILDIR}
AGENTS=		pcap_agent.tcl snort_agent.tcl
CONFS=		pcap_agent.conf snort_agent.conf
LOG_SCRIPTS=	log_packets-daemonlogger.sh log_packets.sh
WITH_PCRE=	true

PORTDOCS1=	README
PORTDOCS2=	README.daemonlogger
PORTDOCS3=	CHANGES FAQ INSTALL INSTALL.openbsd OPENSSL.README \
		TODO UPGRADE USAGE sguildb.dia

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSANCP}
AGENTS+=	sancp_agent.tcl pcap_agent-sancp.tcl
CONFS+=		sancp_agent.conf sancp-indexed.conf pcap_agent-sancp.conf
RUN_DEPENDS+=	sancp:${PORTSDIR}/security/sancp
USE_RC_SUBR+=	sancp_agent pcap_agent-sancp
PLIST_SUB+=	USESANCP=""
.else
PLIST_SUB+=	USESANCP="@@comment "
.endif

.if ${PORT_OPTIONS:MPADS}
AGENTS+=	pads_agent.tcl
CONFS+=		pads_agent.conf
RUN_DEPENDS+=	pads:${PORTSDIR}/net-mgmt/pads
USE_RC_SUBR+=	pads_agent
PLIST_SUB+=	USEPADS=""
.else
PLIST_SUB+=	USEPADS="@@comment "
.endif

post-patch:
.for f in ${AGENTS}
	@@${REINPLACE_CMD} 's|/bin/sh|${PREFIX}/bin/${TCLSH}|' \
		${WRKSRC}/sensor/${f}
.endfor

do-install:
	@@${MKDIR} ${PREFIX}/bin/${SGUILDIR}
	@@${MKDIR} ${PREFIX}/etc/${SGUILDIR}
	@@${MKDIR} ${PREFIX}/share/${SGUILDIR}
	@@${MKDIR} ${PREFIX}/share/${SGUILDIR}/contrib
	@@${MKDIR} ${PREFIX}/share/${SGUILDIR}/init
	(cd ${WRKSRC}/sensor/contrib && ${COPYTREE_SHARE} \* ${PREFIX}/share/${SGUILDIR}/contrib "! -name ossec_agent.tcl.orig")
	(cd ${WRKSRC}/sensor/init && ${COPYTREE_SHARE} \* ${PREFIX}/share/${SGUILDIR}/init)
.for f in ${AGENTS}
	${INSTALL_SCRIPT} -m 751 ${WRKSRC}/sensor/${f} \
		${PREFIX}/bin/${SGUILDIR}/${f}
.endfor
.for f in ${LOG_SCRIPTS}
	${INSTALL_SCRIPT} -m 751 ${WRKSRC}/sensor/${f} \
		${PREFIX}/bin/${SGUILDIR}/${f}
.endfor
.for f in ${CONFS}
	${INSTALL_DATA} ${WRKSRC}/sensor/${f} \
		${PREFIX}/etc/${SGUILDIR}/${f}-sample
.endfor
.if ${PORT_OPTIONS:MSANCP}
.for f in log_packets-sancp.sh
	${INSTALL_SCRIPT} -m 751 ${WRKSRC}/sensor/${f} \
		${PREFIX}/bin/${SGUILDIR}/${f}
.endfor
.for f in sancp.conf
	${INSTALL_DATA} ${WRKSRC}/sensor/sancp/${f} \
		${PREFIX}/etc/${SGUILDIR}/${f}-sample
.endfor
.endif
post-install:

.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS1} ${DOCSDIR}
	cd ${WRKSRC}/sensor && ${INSTALL_DATA} ${PORTDOCS2} ${DOCSDIR}
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS3} ${DOCSDIR}
.if ${PORT_OPTIONS:MSANCP}
.for f in README.sancp_indexed_pcap
	cd ${WRKSRC}/sensor && ${INSTALL_DATA} ${f} ${DOCSDIR}
.endfor
.endif
.endif
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.12
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	sguil-sensor
# Date created:				23 Mar 2006
# Whom:					Paul Schmehl <pauls@@utdallas.edu>
#
# $FreeBSD: head/security/sguil-sensor/Makefile 302407 2012-08-11 10:59:54Z dougb $
#
d5 1
a5 2
PORTVERSION=	0.7.0
PORTREVISION=	3
d13 1
a13 2
RUN_DEPENDS=	snort:${PORTSDIR}/security/snort \
		barnyard2:${PORTSDIR}/security/barnyard2 \
d16 7
a22 2
OPTIONS=	SANCP "Include sancp sensor" off \
		PADS "Include pads sensor" off
d25 3
a27 2
USE_RC_SUBR=	example_agent pcap_agent snort_agent
TCLSH_CMD?=	tclsh8.4
d29 3
a31 1
SUB_LIST=	SGUILDIR=${SGUILDIR}
d34 3
a36 8
SGUILDIR?=	sguil-sensor
AGENTS=		example_agent.tcl pads_agent.tcl pcap_agent.tcl sancp_agent.tcl snort_agent.tcl

PORTDOCS=	CHANGES FAQ INSTALL INSTALL.openbsd LICENSE.QPL \
		OPENSSL.README TODO UPGRADE USAGE sguildb.dia

.include <bsd.port.pre.mk>

d39 10
a48 1
.if defined(WITH_SANCP)
d50 2
a51 2
USE_RC_SUBR+=	sancp_agent
PLIST_SUB+=	USESANCP=
d56 3
a58 1
.if defined(WITH_PADS)
d61 1
a61 1
PLIST_SUB+=	USEPADS=
d68 1
a68 3
	@@${REINPLACE_CMD} -e 's:exec tclsh:exec ${PREFIX}/bin/${TCLSH_CMD}:g' \
		${WRKSRC}/sensor/${f}
	@@${REINPLACE_CMD} -e 's:/etc/:${PREFIX}/etc/${SGUILDIR}/:g' \
d75 6
a80 1
.for f in example_agent.tcl pcap_agent.tcl snort_agent.tcl
d84 1
a84 1
.for f in log_packets.sh
d88 1
a88 1
.for f in example_agent.conf pcap_agent.conf snort_agent.conf
d92 4
a95 8
.for f in log_packets.conf
	${INSTALL_DATA} ${FILESDIR}/${f} \
		${PREFIX}/etc/${SGUILDIR}/${f}-sample
.endfor
.if defined(WITH_SANCP)
.for f in sancp_agent.conf
	${INSTALL_DATA} ${WRKSRC}/sensor/${f} \
		${PREFIX}/etc/${SGUILDIR}/${f}-sample
a98 10
		${PREFIX}/etc/${f}-sample
.endfor
.for f in sancp_agent.tcl
	${INSTALL_SCRIPT} ${WRKSRC}/sensor/${f} \
		${PREFIX}/bin/${SGUILDIR}/${f}
.endfor
.endif
.if defined(WITH_PADS)
.for f in pads_agent.conf
	${INSTALL_DATA} ${WRKSRC}/sensor/${f} \
a100 4
.for f in pads_agent.tcl
	${INSTALL_SCRIPT} ${WRKSRC}/sensor/${f} \
		${PREFIX}/bin/${SGUILDIR}/${f}
.endfor
d104 1
a104 1
.if !defined(NOPORTDOCS)
d106 8
a113 2
	cd ${WRKSRC}/doc && ${INSTALL_DATA} \
		${PORTDOCS} ${DOCSDIR}
d117 1
a117 1
.include <bsd.port.post.mk>
@


1.11
log
@SVN rev 302407 on 2012-08-11 10:59:54Z by dougb

Fix post r302141: The files in USE_RC_SUBR are already included in SUB_FILES

I caught most of these, but missed this one, apologies
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.10
log
@SVN rev 302141 on 2012-08-05 23:19:36Z by dougb

Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
@
text
@d30 1
a30 1
SUB_FILES=	pkg-message example_agent.sh pcap_agent.sh snort_agent.sh
a44 1
SUB_FILES+=	sancp_agent.sh
a52 1
SUB_FILES+=	pads_agent.sh
@


1.9
log
@ - replace RUN_DEPENDS barnyard (deprecated) with barnyard2
 - bump PORTREVISION

PR:		149718
Submitted by:	Paul Schmehl <pauls _at_ utdallas.edu> (maintainer)
Approved by:	glarkin (mentor)
@
text
@d26 1
a26 1
USE_RC_SUBR=	example_agent.sh pcap_agent.sh snort_agent.sh
d44 1
a44 1
USE_RC_SUBR+=	sancp_agent.sh
d53 1
a53 1
USE_RC_SUBR+=	pads_agent.sh
@


1.8
log
@- Switch SourceForge ports to the new File Release System: categories starting with P,R,S
@
text
@d10 1
a10 1
PORTREVISION=	2
d19 1
a19 1
		barnyard:${PORTSDIR}/security/barnyard-sguil \
@


1.7
log
@- Fixed some errors introduced during the upgrade from version 0.6.1 to 0.7.0.
- Bump PORTREVISION.

Reported by:	pointyhat via erwin, pav
Submitted by:	Paul Schmehl <pauls@@utdallas.edu> (maintainer)
@
text
@d12 1
a12 2
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	sguil
@


1.6
log
@- Removed a wrong patch forgotten in last commit.
- Bump PORTREVISION.

Reported by:	pointyhat via erwin
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.5
log
@- Update to 0.7.0.

PR:		ports/122645, ports/122646, ports/122647
Submitted by:	Paul Schmehl <pauls@@utdallas.edu> (maintainer)
@
text
@d10 1
@


1.4
log
@. correct init scripts,  [1] [2]
. bump PORTREVISIONs.

PR:		107894 [1], 107895 [2]
Submitted by:	Paul Schmehl <pauls at utdallas.edu> (maintainer) [1], [2]
@
text
@d9 1
a9 2
PORTVERSION=	0.6.1
PORTREVISION=	1
d11 1
a11 1
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
d17 1
d19 1
a19 1
		barnyard:${PORTSDIR}/security/barnyard-sguil6 \
d22 2
a23 2
OPTIONS=	SANCP "Include sancp support" off \
		TLS "Include openssl support" off
d26 1
a26 1
USE_RC_SUBR=	sensor_agent.sh
d30 1
a30 1
SUB_FILES=	pkg-message sensor_agent.sh
d33 1
d44 2
d51 7
a57 2
.if defined(WITH_TLS)
LIB_DEPENDS+=	tls:${PORTSDIR}/devel/tcltls
d61 1
a61 1
.for f in sensor_agent.tcl
d64 2
d70 5
a74 2
	${INSTALL_SCRIPT} -m 751 ${WRKSRC}/sensor/sensor_agent.tcl \
		${PREFIX}/bin/${SGUILDIR}/sensor_agent.tcl
d79 1
a79 1
.for f in sensor_agent.conf
d81 1
a81 1
		${PREFIX}/etc/${f}-sample
d85 1
a85 1
		${PREFIX}/etc/${f}-sample
d88 4
d96 14
d111 2
@


1.3
log
@- Fix typo in COMMENT

PR:		ports/105388
Submitted by:	Paul Schmehl <pauls@@utdallas.edu> (maintainer)
@
text
@d10 1
@


1.2
log
@- Fix COMMENT

PR:		ports/104987, ports/104991
Submitted by:	Paul Schmehl <pauls@@utdallas.edu> (maintainer)
@
text
@d15 1
a15 1
COMMENT=	Squil is a network security monitoring program
@


1.1
log
@Sguil (pronounced "sgweel") is a graphical interface to snort
(www.snort.org), an open source intrusion detection system.
The actual interface and GUI server are written in tcl/tk
(www.tcl.tk). Sguil also relies on other open source software
in order to function properly.

The sensor list includes security/barnyard, security/snort,
security/sancp, tcpdump (a part of the OS) and devel/tcltls as
well as lang/tcl84 and lang/tclX.  Care has been taken to ensure
that everything you need to build a working sguil operation is
in the FreeBSD ports system or part of the OS already.

Sguil currently functions as an analysis interface and has
no snort sensor or rule management capabilities.

WWW: http://sguil.sourceforge.net/index.php
pauls@@utdallas.edu

PR:		ports/95018
Submitted by:	Paul Schmehl <pauls at utdallas.edu>
@
text
@d15 1
a15 1
COMMENT=	Squil is a network security management program
@

