diff options
author | nils <nils@pkgsrc.org> | 2017-06-15 18:37:31 +0000 |
---|---|---|
committer | nils <nils@pkgsrc.org> | 2017-06-15 18:37:31 +0000 |
commit | 22fba2910ad88f5b9b38c798eabac455d114cb4d (patch) | |
tree | 7b8ec168d1d2e728d67d0780d998f118a84ad28d | |
parent | 93dd178db46c6aee0b08ff4fdddbe06041f1b059 (diff) | |
download | pkgsrc-22fba2910ad88f5b9b38c798eabac455d114cb4d.tar.gz |
Initial import of pulledpork, version 0.7.2, into pkgsrc.
PulledPork is a script for Snort and Suricata rule management.
-rw-r--r-- | net/pulledpork/DESCR | 19 | ||||
-rw-r--r-- | net/pulledpork/Makefile | 72 | ||||
-rw-r--r-- | net/pulledpork/PLIST | 16 | ||||
-rw-r--r-- | net/pulledpork/distinfo | 6 |
4 files changed, 113 insertions, 0 deletions
diff --git a/net/pulledpork/DESCR b/net/pulledpork/DESCR new file mode 100644 index 00000000000..d8c98001226 --- /dev/null +++ b/net/pulledpork/DESCR @@ -0,0 +1,19 @@ +PulledPork is a script for Snort and Suricata rule management. + +Features and Capabilities : +- Automated downloading, parsing, state modification and rule + modification for all of your snort rulesets. +- Checksum verification for all major rule downloads +- Automatic generation of updated sid-msg.map file +- Capability to include your local.rules in sid-msg.map file +- Capability to pull rules tarballs from custom urls +- Complete Shared Object support +- Complete IP Reputation List support +- Capability to download multiple disparate rulesets at once +- Maintains accurate changelog +- Capability to HUP processes after rules download and process +- Aids in tuning of rulesets +- Verbose output so that you know EXACTLY what is happening +- Minimal Perl Module dependencies +- Support for Suricata, and ETOpen/ETPro rulesets +- A sweet smokey flavor throughout the pork! diff --git a/net/pulledpork/Makefile b/net/pulledpork/Makefile new file mode 100644 index 00000000000..65c4ce20216 --- /dev/null +++ b/net/pulledpork/Makefile @@ -0,0 +1,72 @@ +# $NetBSD: Makefile,v 1.1 2017/06/15 18:37:31 nils Exp $ + +DISTNAME= pulledpork-0.7.2 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_GITHUB:=shirkdog/} + +MAINTAINER= nils@NetBSD.org +HOMEPAGE= https://github.com/shirkdog/pulledpork/ +COMMENT= Script for Snort and Suricata rule management +LICENSE= gnu-gpl-v2 + +GITHUB_TAG= v${PKGVERSION_NOREV} +NO_BUILD= yes +USE_TOOLS+= perl:run +REPLACE_PERL+= pulledpork.pl +REPLACE_PERL+= contrib/oink-conv.pl +WRKSRC= ${WRKDIR}/pulledpork-${PKGVERSION_NOREV} +BUILD_DEFS+= VARBASE + +# File/Find.pm is a part of lang/perl5 +# File/Basename.pm is a part of lang/perl5 +# File/Copy.pm is a part of lang/perl5 +DEPENDS+= p5-Crypt-SSLeay-[0-9]*:../../security/p5-Crypt-SSLeay +DEPENDS+= p5-Sys-Syslog-[0-9]*:../../sysutils/p5-Sys-Syslog +DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5 +DEPENDS+= p5-File-Path-[0-9]*:../../devel/p5-File-Path +DEPENDS+= p5-Getopt-Long-[0-9]*:../../devel/p5-Getopt-Long +DEPENDS+= p5-Archive-Tar-[0-9]*:../../archivers/p5-Archive-Tar +DEPENDS+= p5-PathTools-[0-9]*:../../devel/p5-PathTools +DEPENDS+= p5-Data-Dumper-[0-9]*:../../devel/p5-Data-Dumper +DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww +# LWP/Useragent.pm is part of www/p5-libwww +DEPENDS+= p5-HTTP-Message-[0-9]*:../../www/p5-HTTP-Message +# Request/Common.pm is part of www/p5-HTTP-Message +# Status.pm is part of www/p5-HTTP-Message +DEPENDS+= p5-Carp-[0-9]*:../../devel/p5-Carp + +EGDIR= ${PREFIX}/share/examples/pulledpork +PKG_SYSCONFSUBDIR= pulledpork +DOCDIR= share/doc/pulledpork +INSTALLATION_DIRS+= ${EGDIR} ${PKG_SYSCONFDIR} ${OWN_DIRS} ${DOCDIR} bin +INSTALLATION_DIRS+= share/pulledpork/contrib +AUTO_MKDIRS= yes +USE_LANGUAGES= # none + +CONF_FILES= ${EGDIR}/disablesid.conf \ + ${PKG_SYSCONFDIR}/disablesid.conf +CONF_FILES+= ${EGDIR}/dropsid.conf \ + ${PKG_SYSCONFDIR}/dropsid.conf +CONF_FILES+= ${EGDIR}/enablesid.conf \ + ${PKG_SYSCONFDIR}/enablesid.conf +CONF_FILES+= ${EGDIR}/modifysid.conf \ + ${PKG_SYSCONFDIR}/modifysid.conf +CONF_FILES+= ${EGDIR}/pulledpork.conf \ + ${PKG_SYSCONFDIR}/pulledpork.conf + +SUBST_CLASSES+= install +SUBST_STAGE.install= pre-install +SUBST_MESSAGE.install= correcting installation path +SUBST_FILES.install= ${WRKSRC}/etc/pulledpork.conf +SUBST_SED.install= -e 's,/usr/local,${PREFIX},g' +SUBST_SED.install+= -e 's,/var,${VARBASE},g' + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/pulledpork.pl ${DESTDIR}${PREFIX}/bin/pulledpork + ${INSTALL_SCRIPT} ${WRKSRC}/contrib/oink-conv.pl ${DESTDIR}${PREFIX}/share/pulledpork/ + ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/pulledpork/ + ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/pulledpork/ + ${INSTALL_DATA} ${WRKSRC}/doc/README.* ${DESTDIR}${PREFIX}/share/doc/pulledpork/ + ${INSTALL_DATA} ${WRKSRC}/etc/*.conf ${DESTDIR}${EGDIR} + +.include "../../mk/bsd.pkg.mk" diff --git a/net/pulledpork/PLIST b/net/pulledpork/PLIST new file mode 100644 index 00000000000..2b9e377f104 --- /dev/null +++ b/net/pulledpork/PLIST @@ -0,0 +1,16 @@ +@comment $NetBSD: PLIST,v 1.1 2017/06/15 18:37:31 nils Exp $ +bin/pulledpork +share/doc/pulledpork/LICENSE +share/doc/pulledpork/README.CATEGORIES +share/doc/pulledpork/README.CHANGES +share/doc/pulledpork/README.RULESET +share/doc/pulledpork/README.SHAREDOBJECTS +share/doc/pulledpork/README.md +share/examples/pulledpork/disablesid.conf +share/examples/pulledpork/dropsid.conf +share/examples/pulledpork/enablesid.conf +share/examples/pulledpork/modifysid.conf +share/examples/pulledpork/pulledpork.conf +share/pulledpork/oink-conv.pl +@pkgdir share/pulledpork/contrib +@pkgdir etc/pulledpork diff --git a/net/pulledpork/distinfo b/net/pulledpork/distinfo new file mode 100644 index 00000000000..7973943b498 --- /dev/null +++ b/net/pulledpork/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2017/06/15 18:37:31 nils Exp $ + +SHA1 (pulledpork-0.7.2.tar.gz) = 76d0fd0f8a84922d30eaed25930ec39b7030d17b +RMD160 (pulledpork-0.7.2.tar.gz) = 021d71baa64c09f3524edb01b63bccc60ba77aa4 +SHA512 (pulledpork-0.7.2.tar.gz) = b227378dc298fdd2e422c459aad156dd58d7c3bb7eec8f0514501eecd80ab75b9bd7c476efcf8185ac2ee648a0f8bed91d9be9156fcf802585a35dc3c6468c67 +Size (pulledpork-0.7.2.tar.gz) = 41740 bytes |