head	1.8;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.5
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1;
locks; strict;
comment	@# @;


1.8
date	2012.11.17.06.01.20;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.08.21.21.00.33;	author dougb;	state Exp;
branches;
next	1.6;

1.6
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.5;

1.5
date	2011.11.29.12.47.07;	author scheidell;	state Exp;
branches;
next	1.4;

1.4
date	2011.06.15.13.52.50;	author wxs;	state Exp;
branches;
next	1.3;

1.3
date	2009.12.31.20.18.29;	author miwi;	state Exp;
branches;
next	1.2;

1.2
date	2009.12.25.14.20.41;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2008.09.03.23.02.16;	author jmelo;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Switch exporter over
@
text
@# New ports collection makefile for:	SnortSam
# Date created:        27 August 2008
# Whom:                Danton Dorati <urisso@@bsd.com.br>
#
# $FreeBSD: head/security/snortsam/Makefile 302901 2012-08-21 21:00:33Z dougb $
#

PORTNAME=	snortsam
PORTVERSION=	2.70
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	http://www.snortsam.net/files/snortsam/
DISTNAME=	${PORTNAME}-src-${PORTVERSION}

MAINTAINER=	urisso@@bsd.com.br
COMMENT=	SnortSam is a output plugin for Snort

OPTIONS=	IPFW	"checks if configured tables are available" on \
		SAMTOOL "install samtool" on \
		DEBUG	"build with verbose messages" off

.include <bsd.port.pre.mk>

USE_RC_SUBR=	snortsam
SUB_FILES=	pkg-message \
		pkg-install

HAS_CONFIGURE=	yes
NO_BUILD=	yes
CONFIGURE_SCRIPT=	src/Makefile

CONFIG_DIR?=	${PREFIX}/etc/snortsam

PLIST_DIRS=	etc/snortsam
PLIST_FILES=	sbin/snortsam \
		etc/snortsam/snortsam.conf.sample \
		etc/snortsam/country-rootservers.conf.sample \
		etc/snortsam/rootservers.cfg.sample

.if defined(WITH_SAMTOOL)
PLIST_FILES+=	sbin/samtool
.endif

PORTDOCS=	AUTHORS BUGS CREDITS FAQ INSTALL LICENSE README README.ciscoacl \
		README.conf README.iptables README.netscreen README.pf README.pf2 \
		README.rules README.slackware README.snmp_interface_down README.wgrd \
		README_8signs.rtf TODO

.if defined(WITHOUT_IPFW)
EXTRA_PATCHES+=	${FILESDIR}/ssp_ipfw2_no_table_check.patch
.endif

.if defined(WITH_DEBUG)
DEBUG=-DDEBUG
.endif

post-extract:
	@@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}

pre-configure:
	@@${REINPLACE_CMD} -e "s|/etc/snortsam.conf|${CONFIG_DIR}/snortsam.conf|g" ${WRKSRC}/conf/snortsam.conf.sample
	@@${REINPLACE_CMD} -e "s|/etc/snortsam.conf|${CONFIG_DIR}/snortsam.conf|g" ${WRKSRC}/docs/README.conf
	@@${REINPLACE_CMD} -e "s|/etc/snortsam.conf|${CONFIG_DIR}/snortsam.conf|g" ${WRKSRC}/src/snortsam.h
	@@${REINPLACE_CMD} -e "s|/etc/snortsam.conf|${CONFIG_DIR}/snortsam.conf|g" ${WRKSRC}/contrib/snortsam-state.c
	@@${CHMOD} +x ${WRKSRC}/makesnortsam.sh

do-configure:
	@@cd ${WRKSRC}/src && ${MAKE} ${DEBUG}
	@@cd ${WRKSRC}/src && ${MAKE} samtool ${DEBUG}

# no access to snortsam.conf and samtool for non root users!
do-install:
	@@${INSTALL_PROGRAM} ${WRKSRC}/snortsam ${PREFIX}/sbin
.if defined(WITH_SAMTOOL)
	@@${INSTALL} -o root -g wheel -m 500 ${WRKSRC}/samtool ${PREFIX}/sbin
.endif
	@@${MKDIR} -m 700 ${CONFIG_DIR}
	@@${INSTALL_DATA} -m 600 ${WRKSRC}/conf/snortsam.conf.sample ${CONFIG_DIR}/snortsam.conf.sample
	@@${INSTALL_DATA} ${WRKSRC}/conf/rootservers.cfg ${CONFIG_DIR}/rootservers.cfg.sample
	@@${INSTALL_DATA} ${WRKSRC}/conf/country-rootservers.conf ${CONFIG_DIR}/country-rootservers.conf.sample

.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	@@${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
.endfor
.endif

post-install:
	@@${SH} ${PKGINSTALL} ${DISTNAME} POST-INSTALL
	@@${CAT} ${PKGMESSAGE}

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


1.7
log
@SVN rev 302901 on 2012-08-21 21:00:33Z by dougb

Fix problem introduced in r302141.  The directory for the unpacked source
files is unversioned, so it conflicts with the name of the rc.d script in
WRKDIR after SUB_FILES is applied.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.6
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
@a30 1
WRKSRC=		${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}
d57 3
@


1.5
log
@- on some (amd64, 7.4 at least), return from successful system call
- was generating a 0x4700.  system calls sb short (0xff)
- this patch masks the 0xff bits only, and is safe for all disto
- Also sent upstream to author
- Maintainer Timeout

PR:		161383
Approved by:	urisso@@bsd.com.br (maintainer timeout) gabor (mentor)
Feature safe:	yes
@
text
@d24 1
a24 1
USE_RC_SUBR=	snortsam.sh
@


1.4
log
@- Update to 2.70.

PR:		ports/157486
Submitted by:	Ryan Steinmetz <rpsfa@@rit.edu>
Approved by:	maintainer timeout
@
text
@d10 1
@


1.3
log
@- Update to 2.69

Changelog:
	http://snortsam.net/news.html

PR:		140881
Submitted by:	olli hauer <ohauer@@gmx.de>
Approved by:	maintainer timeout
@
text
@d9 1
a9 1
PORTVERSION=	2.69
@


1.2
log
@- Update to 2.63

PR:		139460
Submitted by:	Paul J Murphy <paulm@@srv00.inetstat.net>
Approved by:	Maintainer Timout
@
text
@d9 1
a9 1
PORTVERSION=	2.63
d11 1
a11 2
MASTER_SITES=	http://www.snortsam.net/files/snortsam/ \
		http://www.freebsdbrasil.com.br/~urisso/files/snortsam/
d17 9
a25 1
WRKSRC=		${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}
d29 2
d32 1
a32 5
SYSCONFDIR=	${PREFIX}/etc/snortsam

CONFIGURE_SCRIPT=	makesnortsam.sh

USE_RC_SUBR=	snortsam.sh
d35 4
a38 2
PLIST_FILES=	etc/snortsam/rootservers.cfg etc/snortsam/snortsam.conf.sample sbin/snortsam sbin/snortsam-debug
PORTDOCS=	INSTALL README README.conf README.snmp_interface_down
d40 3
a42 1
OPTIONS=	IPFW	"Enable IPFW table checking if it set deny rules" on
d44 4
a47 1
.include <bsd.port.pre.mk>
d50 1
a50 2
PATCH_SITES+=http://www.freebsdbrasil.com.br/~urisso/files/snortsam/:ipfw
PATCHFILES+=ssp_ipfw2.c.diff:ipfw
d53 3
a55 3
post-extract:
	@@${CAT} ${PATCHDIR}/pkg-message-snortsam
	@@sleep 5
d58 9
a66 5
	${REINPLACE_CMD} -e 's|/etc/snortsam.conf|/usr/local/etc/snortsam.conf|g' ${WRKSRC}/conf/snortsam.conf.sample
	${REINPLACE_CMD} -e 's|/etc/snortsam.conf|/usr/local/etc/snortsam.conf|g' ${WRKSRC}/docs/README.conf
	${REINPLACE_CMD} -e 's|/etc/snortsam.conf|/usr/local/etc/snortsam.conf|g' ${WRKSRC}/src/snortsam.c
	${REINPLACE_CMD} -e 's|/etc/snortsam.conf|/usr/local/etc/snortsam.conf|g' ${WRKSRC}/contrib/snortsam-state.c
	${CHMOD} +x ${WRKSRC}/makesnortsam.sh
d68 1
d70 8
a77 5
	${INSTALL_PROGRAM} ${WRKSRC}/snortsam ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/snortsam-debug ${PREFIX}/sbin
	${MKDIR} ${SYSCONFDIR}
	${INSTALL_DATA} ${WRKSRC}/conf/snortsam.conf.sample ${SYSCONFDIR}/snortsam.conf.sample
	${INSTALL_DATA} ${WRKSRC}/conf/*rootservers.cfg ${SYSCONFDIR}/
d80 1
d82 1
a82 2
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
d86 4
@


1.1
log
@New port: security/snortsam

SnortSam is a plugin for Snort, an open-source light-weight
Intrusion Detection System (IDS). The plugin allows for
automated blocking of IP addresses on many firewalls.

WWW: http://www.snortsam.net

PR:		ports/126896
Submitted by:	Danton Dorati <danton@@freebsdbrasil.com.br>
@
text
@d9 1
a9 1
PORTVERSION=	2.60
@

