summaryrefslogtreecommitdiff
path: root/net/oinkmaster
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2008-12-08 13:05:22 +0000
committeradrianp <adrianp@pkgsrc.org>2008-12-08 13:05:22 +0000
commit56e1b071d4d16b6abfea7e300501f6498453edc2 (patch)
tree3970a8529aa74b12f06a7087e592192489bdcea7 /net/oinkmaster
parent8943b093350743fcdc18a0e485b4f2dfc507b4e5 (diff)
downloadpkgsrc-56e1b071d4d16b6abfea7e300501f6498453edc2.tar.gz
Oinkmaster can either use external tools or Perl modules to do it's job
so expose this via options.mk Silence SUBST_SED pkglint warning PKGREVISION++
Diffstat (limited to 'net/oinkmaster')
-rw-r--r--net/oinkmaster/Makefile10
-rw-r--r--net/oinkmaster/options.mk18
2 files changed, 24 insertions, 4 deletions
diff --git a/net/oinkmaster/Makefile b/net/oinkmaster/Makefile
index 91d23716624..47921f63236 100644
--- a/net/oinkmaster/Makefile
+++ b/net/oinkmaster/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2007/02/22 19:26:57 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2008/12/08 13:05:22 adrianp Exp $
DISTNAME= oinkmaster-2.0
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=oinkmaster/}
@@ -8,7 +9,6 @@ MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://oinkmaster.sourceforge.net/
COMMENT= Manage snort rule updates
-DEPENDS+= wget>=1.00:../../net/wget
DEPENDS+= snort{,-mysql,-pgsql}-[0-9]*:../../net/snort
NO_BUILD= yes
@@ -22,13 +22,15 @@ DOCS= INSTALL LICENSE README README.templates UPGRADING FAQ
USE_TOOLS+= perl:run
REPLACE_PERL+= ${WRKSRC}/oinkmaster.pl
+.include "options.mk"
+
PKG_SYSCONFSUBDIR= snort
SUBST_CLASSES+= pub
SUBST_STAGE.pub= post-patch
SUBST_FILES.pub= oinkmaster.pl oinkmaster.conf oinkmaster.1
-SUBST_SED.pub= -e "s|/usr/local/etc|${PKG_SYSCONFDIR}|g" \
- -e "s|/usr/local|${PREFIX}|g"
+SUBST_SED.pub= -e "s|/usr/local/etc|${PKG_SYSCONFDIR}|g"
+SUBST_SED.pub+= -e "s|/usr/local|${PREFIX}|g"
SUBST_MESSAGE.pub= Fixing harcoded paths.
INSTALLATION_DIRS= bin share/snort/rules
diff --git a/net/oinkmaster/options.mk b/net/oinkmaster/options.mk
new file mode 100644
index 00000000000..d64ac6031dd
--- /dev/null
+++ b/net/oinkmaster/options.mk
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.1 2008/12/08 13:05:22 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.oinkmaster
+
+PKG_SUPPORTED_OPTIONS= oinkmaster-perl-tools
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Use perl tools for downloading rule files
+###
+.if !empty(PKG_OPTIONS:Moinkmaster-perl-tools)
+DEPENDS+= p5-Archive-Tar-[0-9]*:../../archivers/p5-Archive-Tar
+DEPENDS+= p5-IO-Zlib-[0-9]*:../../devel/p5-IO-Zlib
+DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww
+.else
+DEPENDS+= wget>=1.00:../../net/wget
+.endif