pkgsrc/net/oinkmaster/Makefile
adrianp 06c5666ddd Update to 2.0
> o Major version bump to celebrate that Oinkmaster has now turned 5
>   years old!
> o When using the -U argument to merge new variables, you can now also
>   specify -S <file> to specify which files in the downloaded rules
>   archive(s) to search for new variables. If -S is not specified, only
>   snort.conf is searched, just like before. As usual, no variable
>   merge is done unless -U is specified. You may specify multiple
>   -S <file> arguments to search for variables in multiple files, e.g.
>   "... -S snort.conf -S foo.conf ...".
> o Handle multi-line variable definitions when merging variables.
> o Obfuscate the oinkcode when printing URLs, unless running in verbose
>   mode.
> o Added ability to grab rules files from a local directory by
>   specifying dir://<directory> as URL.
> o Suppress warnings about using modifysid on non-existent SIDs when
>   running in quiet mode.
> o Added some modifysid sanity checks
> o Added Q33 to the FAQ on how to disable all rules by default and
>   only activate specific ones, with example how to automatically
>   update only a few selected rules from Bleeding Snort.
> o Other documentation updates.
> o Misc improvements to the config file parser.
> o You can now set the HTTP User-Agent header string for Oinkmaster by
>   specifying "user_agent = ..." in oinkmaster.conf. The default
>   User-Agent string is unchanged, i.e. the string that LWP or wget set
>   it to by default. Based on patch from Derek Edwards.
> o Make contrib/addmsg.pl handle some multi-line statements.
> o contrib/create-sidmap.pl:
>   - don't ignore rules that are commented out
>   - ignore the file deleted.rules by default (you don't use it, do you?!)
2006-03-09 14:06:03 +00:00

59 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2006/03/09 14:06:03 adrianp Exp $
DISTNAME= oinkmaster-2.0
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=oinkmaster/}
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
CONF_FILES= ${PREFIX}/share/examples/oinkmaster/oinkmaster.conf \
${PKG_SYSCONFDIR}/oinkmaster.conf
EGDIR= ${PREFIX}/share/examples/oinkmaster
DOCDIR= ${PREFIX}/share/doc/oinkmaster
DOCS= INSTALL LICENSE README README.templates UPGRADING FAQ
USE_TOOLS+= perl:run
REPLACE_PERL+= ${WRKSRC}/oinkmaster.pl
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.
INSTALLATION_DIRS= bin share/snort/rules
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/oinkmaster
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/oinkmaster
. for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}/${f}
. endfor
${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"