head	1.14;
access;
symbols
	RELEASE_8_3_0:1.11
	RELEASE_9_0_0:1.10
	RELEASE_7_4_0:1.8
	RELEASE_8_2_0:1.8
	RELEASE_6_EOL:1.8
	RELEASE_8_1_0:1.3;
locks; strict;
comment	@# @;


1.14
date	2012.11.17.06.01.16;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.11.03.13.14.06;	author ohauer;	state Exp;
branches;
next	1.12;

1.12
date	2012.04.21.15.29.29;	author ohauer;	state Exp;
branches;
next	1.11;

1.11
date	2012.03.10.20.46.26;	author ohauer;	state Exp;
branches;
next	1.10;

1.10
date	2011.05.14.18.30.32;	author ohauer;	state Exp;
branches;
next	1.9;

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

1.8
date	2010.10.31.23.51.24;	author ohauer;	state Exp;
branches;
next	1.7;

1.7
date	2010.10.31.21.22.40;	author ohauer;	state Exp;
branches;
next	1.6;

1.6
date	2010.10.31.21.03.27;	author ohauer;	state Exp;
branches;
next	1.5;

1.5
date	2010.08.03.19.16.35;	author ohauer;	state Exp;
branches;
next	1.4;

1.4
date	2010.08.03.19.03.38;	author ohauer;	state Exp;
branches;
next	1.3;

1.3
date	2010.07.02.19.49.44;	author sylvio;	state Exp;
branches;
next	1.2;

1.2
date	2010.06.30.22.49.13;	author sylvio;	state Exp;
branches;
next	1.1;

1.1
date	2010.05.10.02.53.35;	author miwi;	state Exp;
branches;
next	;


desc
@@


1.14
log
@Switch exporter over
@
text
@# Create by: Olli Hauer
# $FreeBSD: head/security/pulledpork/Makefile 306914 2012-11-03 13:14:06Z ohauer $

PORTNAME=	pulledpork
PORTVERSION=	0.6.1
PORTREVISION=	3
CATEGORIES=	security
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}

MAINTAINER=	ohauer@@FreeBSD.org
COMMENT=	Script to update snort-2.8+ rules

LICENSE=	GPLv2

RUN_DEPENDS=	p5-Crypt-SSLeay>=0.57:${PORTSDIR}/security/p5-Crypt-SSLeay \
		p5-LWP-Protocol-https>=6.00:${PORTSDIR}/www/p5-LWP-Protocol-https \
		p5-libwww>=0:${PORTSDIR}/www/p5-libwww

NO_BUILD=	yes
USE_PERL5_RUN=	yes

PLIST_DIRSTRY=	%%ETCDIR%%
PLIST_DIRS=	%%DATADIR%%

PLIST_FILES=	bin/pulledpork.pl \
		%%ETCDIR%%/disablesid.conf.sample \
		%%ETCDIR%%/dropsid.conf.sample \
		%%ETCDIR%%/enablesid.conf.sample \
		%%ETCDIR%%/modifysid.conf.sample \
		%%ETCDIR%%/pulledpork.conf.sample \
		%%DATADIR%%/README.CONTRIB \
		%%DATADIR%%/oink-conv.pl

SUB_FILES=	pkg-message

.if !defined(NOPORTDOCS)
PORTDOCS=	LICENSE README README.CATEGORIES README.CHANGES README.RULESET README.SHAREDOBJECTS
.endif

post-patch:
	@@${REINPLACE_CMD} -e "s|/usr/bin/perl|${PERL}|" ${WRKSRC}/pulledpork.pl
	@@${REINPLACE_CMD} -e 's|snort/enablesid.conf|pulledpork/enablesid.conf|g' \
		-e 's|snort/dropsid.conf|pulledpork/dropsid.conf|g' \
		-e 's|snort/disablesid.conf|pulledpork/disablesid.conf|g' \
		-e 's|snort/modifysid.conf|pulledpork/modifysid.conf|g' \
		-e "s|/usr/local/lib/snort_dynamicrules/|${PREFIX}/etc/snort/so_rules/|g" \
		${WRKSRC}/etc/pulledpork.conf
	@@${REINPLACE_CMD} -e "s| /usr/bin/perl|${PERL}|" ${WRKSRC}/contrib/oink-conv.pl

do-install:
	@@${INSTALL_SCRIPT} ${WRKSRC}/pulledpork.pl ${PREFIX}/bin
	@@${MKDIR} -m 750 ${ETCDIR}
	# pulledpork.conf contains the snort user registration key, do not install world readable
	@@${INSTALL_DATA} -m 440 ${WRKSRC}/etc/pulledpork.conf ${ETCDIR}/pulledpork.conf.sample
	@@${INSTALL_DATA} ${WRKSRC}/etc/disablesid.conf ${ETCDIR}/disablesid.conf.sample
	@@${INSTALL_DATA} ${WRKSRC}/etc/dropsid.conf    ${ETCDIR}/dropsid.conf.sample
	@@${INSTALL_DATA} ${WRKSRC}/etc/enablesid.conf  ${ETCDIR}/enablesid.conf.sample
	@@${INSTALL_DATA} ${WRKSRC}/etc/modifysid.conf  ${ETCDIR}/modifysid.conf.sample
	@@${MKDIR} ${DATADIR}
	@@${INSTALL_DATA} ${WRKSRC}/contrib/README.CONTRIB ${DATADIR}/
	@@${INSTALL_SCRIPT} ${WRKSRC}/contrib/oink-conv.pl ${DATADIR}/

.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
	@@${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}/
	@@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
	@@${INSTALL_DATA} ${WRKSRC}/doc/README.CATEGORIES ${DOCSDIR}/
	@@${INSTALL_DATA} ${WRKSRC}/doc/README.CHANGES ${DOCSDIR}/
	@@${INSTALL_DATA} ${WRKSRC}/doc/README.RULESET ${DOCSDIR}/
	@@${INSTALL_DATA} ${WRKSRC}/doc/README.SHAREDOBJECTS ${DOCSDIR}/
.endif

post-install:
	@@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
@


1.13
log
@SVN rev 306914 on 2012-11-03 13:14:06Z by ohauer

- update to svn revision 243

Changes: http://code.google.com/p/pulledpork/source/detail?r=243
- Bug #121 - Update to allow for new etpro.com url and cert!
- Bug #119 - Fixed regex [^\\]...
- Unlisted Bug - Allow for escaped ; "\;" in references

Feature safe: yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.12
log
@- update to svn revision 241 (v0.6.2dev)

Bug Fixes:
- Bug #79 - Fixed race condition that did not allow for disabled rules to be modified using modifysid
   These rules would then be enabled by flowbit dependency check and be unmodified
- Bug #77 - Adjusted chown property of archive::tar
- Bug #78 - Adjusted per bug report to allow for proper ignoring of preproc.rules
- Bug #102 - Only Enabled rules are written to sid-msg.map now when -E flag is specified
- Bug #99 - Doc Bug, updated docs associated with snort_version variable
- Bug #96 - Modified code to allow for same-line traling comments: "1:10011 #can haz disable!"
       Also updated the rulestate files (enable,disable,drop)
- Bug #82 - Modified run order to force modifysid to run before all other sid state modification routines
       This allows for sid changes to be made prior to automatic state determination ala automatic
       flowbit resolution.  NOTE that this DOES NOT AND WILL NOT disable automatic flowbit
       resolution, this is a critical piece.
- Bug #81 - Updated valid SO distro pre-compiled list

New Features / changes:
- Bug #105 - Removed Switch function as it is deprecated in > 5.12 perl

Changelog: http://code.google.com/p/pulledpork/source/browse/trunk/doc/README.CHANGES?r=241
@
text
@d1 1
a1 4
# New ports collection makefile for:	pulledpork
# Date created:				01 Mai 2010
# Whom:					Olli Hauer
#
a2 1
#
d6 1
a6 1
PORTREVISION=	2
a48 3
# pulledpork bug id:110
	@@${REINPLACE_CMD} -e 's|distro=FreeBSD-8.0|distro=FreeBSD-8-1|g' \
		${WRKSRC}/etc/pulledpork.conf
@


1.11
log
@- adjust FreeBSD version provuded by snort-rules
  ( pulledpork bug id:110)
- fix SSL download
- remove check for perl < 501000
- portlint

Feature safe:	yes
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.10
log
@- update to version 0.6.1

PR:		ports/156976
Submitted by:	Ryan Steinmetz <rpsfa _at_ rit.edu>
@
text
@d10 1
d17 2
d20 1
a22 2
LICENSE=	GPLv2

d26 2
a27 2
PLIST_DIRS=	%%ETCDIR%% \
		%%DATADIR%%
a39 6
.include <bsd.port.pre.mk>

.if (${PERL_LEVEL} < 501000)
RUN_DEPENDS+=	p5-Archive-Tar>=1.52:${PORTSDIR}/archivers/p5-Archive-Tar
.endif

d53 3
d82 1
a82 1
.include <bsd.port.post.mk>
@


1.9
log
@ - update to version 0.6.0

 Changelog: http://code.google.com/p/pulledpork/wiki/Timeline
@
text
@d9 1
a9 1
PORTVERSION=	0.6.0
@


1.8
log
@ - correct PLIST_DIR again
 - bump PORTREVISION

Approved by:	glarkin (mentor, implicit)
@
text
@d9 1
a9 2
PORTVERSION=	0.5.0
PORTREVISION=	1
@


1.7
log
@ - PLIST_DIRS correction

Approved by:	glarkin (maintainer, implicit)
@
text
@d10 1
d25 3
a27 1
PLIST_DIRS=	%%ETCDIR%%
a36 2
PLIST_DIRS=	%%DATADIR%%

@


1.6
log
@ - update pulledpork to version 0.5.0
 - replace pkg-descr text with feature list from README
 - update my email address

Approved by:	glarkin (maintainer, implicit)
@
text
@d31 4
a34 2
		%%DATADIR%%/contrib/README.CONTRIB \
		%%DATADIR%%/contrib/oink-conv.pl
d67 3
a69 3
	@@${MKDIR} ${DATADIR}/contrib
	@@${INSTALL_DATA} ${WRKSRC}/contrib/README.CONTRIB ${DATADIR}/contrib/
	@@${INSTALL_SCRIPT} ${WRKSRC}/contrib/oink-conv.pl ${DATADIR}/contrib/
@


1.5
log
@- force commit PR ports/148267

PR:		ports/148267
Approved by:	glarkin (mentor)
@
text
@d9 1
a9 2
PORTVERSION=	0.4.2
PORTREVISION=	1
d13 1
a13 1
MAINTAINER=	ohauer@@gmx.de
d16 2
a17 2
RUN_DEPENDS=	${SITE_PERL}/LWP/Simple.pm:${PORTSDIR}/www/p5-libwww \
		p5-Crypt-SSLeay>=0.57:${PORTSDIR}/security/p5-Crypt-SSLeay
d29 4
a32 1
		%%ETCDIR%%/pulledpork.conf.sample
d51 1
d54 1
d57 1
a57 1
	${INSTALL_SCRIPT} ${WRKSRC}/pulledpork.pl ${PREFIX}/bin
d60 8
a67 4
	${INSTALL_DATA} -m 440 ${WRKSRC}/etc/pulledpork.conf ${ETCDIR}/pulledpork.conf.sample
	${INSTALL_DATA} ${WRKSRC}/etc/disablesid.conf ${ETCDIR}/disablesid.conf.sample
	${INSTALL_DATA} ${WRKSRC}/etc/dropsid.conf    ${ETCDIR}/dropsid.conf.sample
	${INSTALL_DATA} ${WRKSRC}/etc/enablesid.conf  ${ETCDIR}/enablesid.conf.sample
@


1.4
log
@- enable LICENSE framework (thanks to swell.k _at_ gmail.com)

Approved by:	glarkin (mentor)
@
text
@@


1.3
log
@- Add p5-Crypt-SSLeay to RUN_DEPENDS to solve download issues and 501 errors.
- BUMP PORTREVISION

PR:		ports/148313
Submitted by:	Olli Hauer <ohauer@@gmx.de> (maintainer)
Feature safe:	yes
@
text
@d20 1
a20 1
#LICENSE=	GPLv2
d25 1
a25 1
PLIST_DIRS=	etc/pulledpork
d27 4
a30 4
		${PLIST_DIRS}/disablesid.conf.sample \
		${PLIST_DIRS}/dropsid.conf.sample \
		${PLIST_DIRS}/enablesid.conf.sample \
		${PLIST_DIRS}/pulledpork.conf.sample
a31 1
CONFIG_DIR=	${PREFIX}/${PLIST_DIRS}
a32 1
SUB_LIST=	CONFIGDIR=${CONFIG_DIR}
d54 1
a54 1
	@@${MKDIR} -m 750 ${CONFIG_DIR}
d56 4
a59 4
	${INSTALL_DATA} -m 440 ${WRKSRC}/etc/pulledpork.conf ${CONFIG_DIR}/pulledpork.conf.sample
	${INSTALL_DATA} ${WRKSRC}/etc/disablesid.conf ${CONFIG_DIR}/disablesid.conf.sample
	${INSTALL_DATA} ${WRKSRC}/etc/dropsid.conf    ${CONFIG_DIR}/dropsid.conf.sample
	${INSTALL_DATA} ${WRKSRC}/etc/enablesid.conf  ${CONFIG_DIR}/enablesid.conf.sample
@


1.2
log
@- Update to 0.4.2

PR:		ports/148247
Submitted by:	Olli Hauer <ohauer@@gmx.de> (maintainer)
Feature safe:	yes
@
text
@d10 1
d17 2
a18 1
RUN_DEPENDS=	${SITE_PERL}/LWP/Simple.pm:${PORTSDIR}/www/p5-libwww
@


1.1
log
@pulledpork is a Perl script which helps to update your Snort 2.8+ rules.

The sample config file comes predefined with the new settings for
snort.org downloads, which will change in June 2010.

BE SURE to read through the master pulledpork.conf file thoroughly,
as there are many changes as of snort 2.8.6.0 that WILL affect you,
even if you are NOT yet running 2.8.6.0!

Features:
    * Flowbit tracking!
    * capability to specify base ruleset (see README.RULESETS) in master
      pulledpork.conf file.
    * Handle preprocessor and sensitive-information rulesets
    * Ability to define sid ranges in any of the sid modification .conf files
    * Ability to specify references in any of the sid modification .conf files
    * Ability to ignore entire rule categories (i.e. not include them)
    * Specify locally stored rules files that need their meta data included
      in sid-msg.map
    * Ability to specify your arch for so_rules
    * Rules are written to only two distinct files
    * Support metadata based VRT recommended rulesets
    * Maintain an optional rule changelog
    * Support for setting rules to Drop
    * Support for multi-line rules
    * Rule modification, i.e. disabling of specific rules within rule sets
    * Outputs changes in rules files if any rules have been added / modified
    * Compares new rules files with current rule sets
    * Automated retrieval of certain variables (Distro, Snort Version.. etc)
    * Downloads latest rules file
    * Verifies MD5 of local rules file
    * If MD5 has not changed from snort.org.. doesn't fetch files again
    * handle both rules and so_rules
    * Capability to generate stub files

WWW: http://code.google.com/p/pulledpork/

PR:		ports/146239
Submitted by:	Olli Hauer
@
text
@d9 1
a9 1
PORTVERSION=	0.4.1
a11 1
DISTNAME=	${PORTNAME}-${PORTVERSION}
d18 2
d41 1
a41 1
PORTDOCS=	LICENSE README README.CHANGES README.RULESET
d65 4
a68 2
	@@${INSTALL_DATA} ${WRKSRC}/README.CHANGES ${DOCSDIR}/
	@@${INSTALL_DATA} ${WRKSRC}/README.RULESET ${DOCSDIR}/
@

