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


1.13
date	2013.02.18.01.22.29;	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.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.10;

1.10
date	2011.08.16.21.50.57;	author zi;	state Exp;
branches;
next	1.9;

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

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

1.7
date	2008.06.01.11.48.57;	author rafan;	state Exp;
branches;
next	1.6;

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

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

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

1.3
date	2006.11.10.22.30.03;	author itetcu;	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.31.02.43.25;	author alepulver;	state Exp;
branches;
next	;


desc
@@


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

PORTNAME=	sguil-server
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

RUN_DEPENDS=	p0f:${PORTSDIR}/net-mgmt/p0f \
		tcpflow:${PORTSDIR}/net/tcpflow \
		dtplite:${PORTSDIR}/devel/tcllib \
		${LOCALBASE}/lib/tclx8.4/tclx.tcl:${PORTSDIR}/lang/tclX
LIB_DEPENDS=	tls:${PORTSDIR}/devel/tcltls

OPTIONS_DEFINE=	MYSQL
MYSQL_DESC=	Depend on databases/mysqltcl

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

IS_INTERACTIVE=	yes
NO_BUILD=	yes
USE_RC_SUBR=	sguild
TCL_VER=	8.5
TCLSH=		tclsh${TCL_VER}
MYSQLTCL_CMDS=	cd ${PORTSDIR}/databases/mysqltcl && ${MAKE} -V PORTVERSION
SGUILDIR?=	sguild
WRKSRC=		${WRKDIR}/sguil-${PORTVERSION}
PATCH_WRKSRC=	${WRKSRC}/server
PLIST_SUB=	SGUILDIR=${SGUILDIR}
SUB_FILES=	pkg-message pkg-install pkg-deinstall
SUB_LIST=	SGUILDIR=${SGUILDIR} TCLSH=${TCLSH}
CONFS=	autocat.conf sguild.access sguild.email	sguild.reports sguild.conf sguild.queries sguild.users

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

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMYSQL}
	@@${ECHO_CMD} $$(${MYSQLTCL_CMDS})
	RUN_DEPENDS+=	${LOCALBASE}/lib/mysqltcl-${MYSQLTCL_VER}:${PORTSDIR}/databases/mysqltcl
.endif

post-patch:
	@@${REINPLACE_CMD} 's|/bin/sh|/usr/local/bin/${TCLSH}|' \
		${PATCH_WRKSRC}/sguild

pre-install:
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
	@@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
		${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
.endif
	@@${MKDIR} ${PREFIX}/etc/${SGUILDIR}
	@@${MKDIR} ${PREFIX}/lib/${SGUILDIR}
	@@${MKDIR} ${PREFIX}/share/${SGUILDIR}
	@@${MKDIR} ${PREFIX}/share/${SGUILDIR}/contrib
	@@${MKDIR} /var/run/${SGUILDIR}
do-install:
	(cd ${WRKSRC}/server/lib && ${COPYTREE_BIN} \* ${PREFIX}/lib/${SGUILDIR})
	(cd ${WRKSRC}/server/sql_scripts && ${COPYTREE_SHARE} \* ${PREFIX}/share/${SGUILDIR})
	(cd ${WRKSRC}/server/contrib && ${COPYTREE_SHARE} \* ${PREFIX}/share/${SGUILDIR}/contrib)
.for f in sguild
	${INSTALL_SCRIPT} -m 555 ${WRKSRC}/server/${f} ${PREFIX}/bin/${f}
.endfor
.for f in ${CONFS}
	${INSTALL_DATA} -m 441 ${PATCH_WRKSRC}/${f} ${PREFIX}/etc/${SGUILDIR}/${f}-sample
.endfor

post-install:
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
	@@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
		${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif

.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS1} ${DOCSDIR}
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS2} ${DOCSDIR}
.endif

	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.12
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	sguil-server
# Date created:				9 Oct 2006
# Whom:					Paul Schmehl <pauls@@utdallas.edu>
#
# $FreeBSD: head/security/sguil-server/Makefile 302141 2012-08-05 23:19:36Z dougb $
#
d5 1
a5 2
PORTVERSION=	0.7.0
PORTREVISION=	4
d18 8
d28 4
a31 2
TCLSH_CMD?=	${PREFIX}/bin/tclsh8.4
SGUILDIR?=	sguil-server
d36 2
a37 17
SUB_LIST=	SGUILDIR=${SGUILDIR} TCLSH=${TCLSH_CMD} CURDIR=${.CURDIR} \
		WRKSRC=${WRKSRC} DOCSDIR=${DOCSDIR}
LIBRARIES=	SguildAccess.tcl SguildGenericDB.tcl SguildReportBuilder.tcl \
		SguildAutoCat.tcl SguildGenericEvent.tcl SguildSendComms.tcl \
		SguildClientCmdRcvd.tcl SguildHealthChecks.tcl SguildSensorAgentComms.tcl \
		SguildConnect.tcl SguildLoaderd.tcl SguildSensorCmdRcvd.tcl \
		SguildCreateDB.tcl SguildMysqlMerge.tcl SguildTranscript.tcl \
		SguildEmailEvent.tcl SguildPadsLib.tcl SguildUtils.tcl \
		SguildEvent.tcl SguildQueryd.tcl
SCRIPTS=	create_ruledb.sql update_0.7.tcl update_sguildb_v7-v8.sql \
		create_sguildb.sql update_sguildb_v10-v11.sql update_sguildb_v8-v9.sql \
		migrate_event.tcl update_sguildb_v11-v12.sql update_sguildb_v9-v10.sql \
		migrate_sancp.tcl update_sguildb_v5-v6.sql sancp_cleanup.tcl update_sguildb_v6-v7.sql
CONFS=		autocat.conf sguild.access sguild.conf sguild.email sguild.queries sguild.reports sguild.users

PORTDOCS=	CHANGES FAQ INSTALL INSTALL.openbsd LICENSE.QPL \
		OPENSSL.README TODO UPGRADE USAGE sguildb.dia
d39 2
a40 1
OPTIONS=	MYSQL50 "Install mysql50 server" off
d42 1
a42 1
.include <bsd.port.pre.mk>
d44 3
a46 2
.if defined(WITH_MYSQL50)
RUN_DEPENDS+=	${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql50-server
a48 4
MYSQLTCL_VER!=	cd ${PORTSDIR}/databases/mysqltcl && ${MAKE} -V PORTVERSION

RUN_DEPENDS+=	${LOCALBASE}/lib/mysqltcl-${MYSQLTCL_VER}:${PORTSDIR}/databases/mysqltcl

d50 2
a51 3
.for f in archive_sguildb.tcl sguild contrib/incident_report.tcl
	@@${REINPLACE_CMD} -e 's:exec tclsh:exec ${TCLSH_CMD}:g' ${WRKSRC}/server/${f}
.endfor
d61 1
d64 5
a68 5
.for f in archive_sguildb.tcl sguild
	${INSTALL_SCRIPT} -m 751 ${WRKSRC}/server/${f} ${PREFIX}/bin/${f}
.endfor
.for f in incident_report.tcl
	${INSTALL_SCRIPT} -m 751 ${WRKSRC}/server/contrib/${f} ${PREFIX}/bin/${f}
d71 1
a71 7
	${INSTALL_DATA} ${WRKSRC}/server/${f} ${PREFIX}/etc/${SGUILDIR}/${f}-sample
.endfor
.for f in ${LIBRARIES}
	${INSTALL_DATA} ${WRKSRC}/server/lib/${f} ${PREFIX}/lib/${SGUILDIR}/${f}
.endfor
.for f in ${SCRIPTS}
	${INSTALL_DATA} ${WRKSRC}/server/sql_scripts/${f} ${PREFIX}/share/${SGUILDIR}/${f}
d73 1
d79 2
a80 1
.if !defined(NOPORTDOCS)
d82 2
a83 1
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
d88 1
a88 1
.include <bsd.port.post.mk>
@


1.11
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
@d5 1
a5 1
# $FreeBSD$
@


1.10
log
@Improve interoperability with mysql-server 5.5

PR:		ports/159763
Submitted by:	Paul Schmehl <pauls@@utdallas.edu> (maintainer)
Approved by:	wxs (mentor)
@
text
@d24 1
a24 1
USE_RC_SUBR=	sguild.sh
@


1.9
log
@- Switch SourceForge ports to the new File Release System: categories starting with P,R,S
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.8
log
@- Fix database updates

PR:		136391
Submitted by:	Paul Schmehl <pauls@@utdallas.edu> (maintainer)
@
text
@d12 1
a12 2
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	sguil
@


1.7
log
@- From PR

 If a user opts out of the first part of the pkg-install script, but
 elects to interact with the second part of the script and decides to
 create new certs, the creation of the certs will fail silently if the
 certs directory does not exist. This is because the certs directory
 is created (if necessary) in the pre-install portion of the pkg-install
 script, but the certs are created in the post-install part of the script.

 This PR corrects this problem by moving the creation of the certs directory
 to the same subroutine that the certs are created in.

PR:		ports/123883
Submitted by:	Paul Schmehl <pauls at utdallas.edu> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	2
@


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

PR:		ports/123613
Reported by:	pointyhat via pav
Submitted by:	Pauls Schmehl <pauls@@utdallas.edu> (maintainer)
Reviewed by:	araujo (myself)
@
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
d67 2
a68 1
pre-su-install:
d71 2
a72 2

pre-install:
d93 4
a100 2
	@@${SETENV} PKG_PREFIX=${PREFIX} && PORTSDIR=${PORTSDIR} \
		${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@


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}
a19 1
		barnyard:${PORTSDIR}/security/barnyard-sguil6 \
d30 5
a34 4
SUB_FILES=	pkg-message
SUB_LIST=	SGUILDIR=${SGUILDIR} TCLSH=${TCLSH_CMD}
LIBRARIES=	SguildAccess.tcl SguildEvent.tcl SguildReportBuilder.tcl \
		SguildAutoCat.tcl SguildGenericDB.tcl SguildSendComms.tcl \
d38 6
a43 4
		SguildEmailEvent.tcl SguildQueryd.tcl SguildUtils.tcl
SCRIPTS=	create_ruledb.sql update_sguildb_v10-v11.sql update_sguildb_v8-v9.sql \
		create_sguildb.sql update_sguildb_v5-v6.sql update_sguildb_v9-v10.sql \
		migrate_event.tcl update_sguildb_v6-v7.sql migrate_sancp.tcl update_sguildb_v7-v8.sql
d46 4
a49 2
PORTDOCS=	CHANGES INSTALL INSTALL.openbsd LICENSE.QPL \
		OPENSSL.README TODO USAGE sguildb.dia
d53 4
d66 5
a70 2
do-install:
	@@${MKDIR} ${PREFIX}/etc/${SGUILDIR}
d73 2
d95 3
@


1.3
log
@Fix typo in COMMENT

PR:		105391
Submitted by:	Paul Schmehl (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 is an open source tool to implement Network
Security Monitoring (NSM).  NSM is the collection,
analysis, and escalation of indications and warnings
to detect and respond to intrusions.  NSM tools are
used more for network audit and specialized
applications than traditional alert-centric "intrusion
detection" systems.

Want to learn more about Network Security Monitoring
(NSM)? Then check out Richard Bejtlich's recently
released book, The Tao of Network Security Monitoring:
Beyond Intrusion Detection. An excerpt reads:

"Network security monitoring (NSM) equips security
staff to deal with the inevitable consequences of too
few resources and too many responsibilities. NSM collects
the data needed to generate better assessment, detection,
and response processes--resulting in decreased impact from
unauthorized activities."

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

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

