summaryrefslogtreecommitdiff
path: root/net/oinkmaster/Makefile
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2005-05-02 10:48:16 +0000
committeradrianp <adrianp@pkgsrc.org>2005-05-02 10:48:16 +0000
commit5b585238b23217d00d989e1f57a8231c05cd297c (patch)
tree05f880ecb4b72e5476241936a4d56754db153074 /net/oinkmaster/Makefile
parentda839e5a55f3041f7317ae0af0f85e77d52b6163 (diff)
downloadpkgsrc-5b585238b23217d00d989e1f57a8231c05cd297c.tar.gz
- Update oinkmaster to nb1
- Fix SUBST_* to get it working in the right order - Change location of oinkmaster.conf - Update MESSAGE to show where oinkmaster.conf is now stored - Depend on the snort{-pgsql,-mysql} package - Automagically ${LN} files instead of just telling the user to do it - Whitespace police
Diffstat (limited to 'net/oinkmaster/Makefile')
-rw-r--r--net/oinkmaster/Makefile35
1 files changed, 24 insertions, 11 deletions
diff --git a/net/oinkmaster/Makefile b/net/oinkmaster/Makefile
index f49ce8ae3a9..f5bfd64b4ca 100644
--- a/net/oinkmaster/Makefile
+++ b/net/oinkmaster/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2005/04/27 19:50:48 adrianp Exp $
+# $NetBSD: Makefile,v 1.5 2005/05/02 10:48:16 adrianp Exp $
DISTNAME= oinkmaster-1.2
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=oinkmaster/}
@@ -9,6 +10,7 @@ HOMEPAGE= http://oinkmaster.sourceforge.net/
COMMENT= Manage snort rule updates
DEPENDS+= wget>=1.00:../../net/wget
+DEPENDS+= snort{,-mysql,-pgsql}-[0-9]*:../../net/snort
USE_PKGINSTALL= yes
USE_PERL5= yes
@@ -17,32 +19,43 @@ NO_BUILD= yes
CONF_FILES= ${PREFIX}/share/examples/oinkmaster/oinkmaster.conf \
${PKG_SYSCONFDIR}/oinkmaster.conf
PERL5_REQD+= 5.6.1
-EGDIR= ${PREFIX}/share/examples/oinkmaster
+EGDIR= ${PREFIX}/share/examples/oinkmaster
DOCDIR= ${PREFIX}/share/doc/oinkmaster
DOCS= INSTALL LICENSE README README.templates UPGRADING FAQ
REPLACE_PERL+= ${WRKSRC}/oinkmaster.pl
-MESSAGE_SUBST+= LN=${LN}
-SUBST_CLASSES= pub
-SUBST_STAGE.pub= post-patch
-SUBST_FILES.pub= oinkmaster.pl oinkmaster.conf oinkmaster.1
-SUBST_SED.pub= -e "s|/usr/local|${PREFIX}|g" \
- -e "s|/usr/local/etc|${PKG_SYSCONFDIR}|g"
-SUBST_MESSAGE.pub= "Fixing harcoded paths."
+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_MESSAGE.pub= "Fixing harcoded paths."
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/oinkmaster
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/oinkmaster
-. for f in ${DOCS}
+. for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}/${f}
-. endfor
+. endfor
. undef f
${INSTALL_DATA} ${WRKSRC}/oinkmaster.conf ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/template-examples.conf ${EGDIR}
${INSTALL_MAN} ${WRKSRC}/oinkmaster.1 ${PREFIX}/man/man1
${INSTALL_SCRIPT} ${WRKSRC}/oinkmaster.pl ${PREFIX}/bin/oinkmaster
+ ${LN} -s ${PKG_SYSCONFDIR}/classification.config \
+ ${PREFIX}/share/snort/rules/classification.config
+ ${LN} -s ${PKG_SYSCONFDIR}/reference.config \
+ ${PREFIX}/share/snort/rules/reference.config
+ ${LN} -s ${PKG_SYSCONFDIR}/gen-msg.map \
+ ${PREFIX}/share/snort/rules/gen-msg.map
+ ${LN} -s ${PKG_SYSCONFDIR}/sid-msg.map \
+ ${PREFIX}/share/snort/rules/sid-msg.map
+ ${LN} -s ${PKG_SYSCONFDIR}/unicode.map \
+ ${PREFIX}/share/snort/rules/unicode.map
.include "../../mk/bsd.pkg.mk"