pkgsrc/net/snort/Makefile.common
adrianp 50d878d662 - Upgrade snort to 2.1.3
- Grab maintainership of the package (with ok of previous owner)
- Use SUBST_* code

Ok'ed wiz@, snj@, salo@

From the changelog:

2004-05-06 Daniel Roelker <droelker@sourcefire.com>

    * src/detection-plugins/sp_pattern_match.c:
      Fixed rule read up error when parsing hexmode content options.
      Thanks for pointing it out Toni Maatta.  (Roelker)

    * src/preprocessors/spp_stream4.c:
       Fixed null pointer dereference when detect_scans were enabled and
       creating a new session that had funky flags.  Thanks to Chad
       Kreimendahl for reporting the bug and testing the fix.  (Roelker)

2004-04-20 Daniel Roelker <droelker@sourcefire.com>

    * src/event_queue.c:
    * src/event_queue.h:
    * src/sfutil/sfeventq.c:
    * src/sfutil/sfeventq.h:
      Added multi-event queueing in Snort.  Snort now supports logging
      multiple events per packet, and prioritizing those events using
      different methods.  Thanks to H.D. Moore for illustrating event
      obfuscations when snort only logged one event per packet. (Roelker)

    * src/snort.c:
    * src/decode.c:
    * src/detect.c:
    * src/fpcreate.c:
    * src/fpdetect.c:
    * src/preprocessors/spp_arpspoof.c:
    * src/preprocessors/spp_bo.c:
    * src/preprocessors/spp_frag2.c:
    * src/preprocessors/snort_httpinspect.c:
    * src/preprocessors/spp_rpc_decode.c:
    * src/preprocessors/spp_stream4.c:
      Updated event generators to use new event queueing sytem.  (Roelker)

    * src/output-plugins/spo_alert_fast.c:
      Added newline to 'cmg' alert output, so IP decode is easier to
      read.  (Roelker)

    * src/output-plugins/spo_database.c:
      Updated how current/utc times are calculated, as well as how they are
      formatted, thanks Marcus Janoski.  (Reid)

    * src/parser.c:
      Error on unterminated IP lists.  Added 'config event_queue' parameter.
      Configuration changes to 'config checksum_mode' for specifying
      which checksums to do.  (Norton)

    * src/plugbase.h:
      Fixes from Chris Reid for timestamp routines.  (Reid)

    * src/tag.c:
      Revert to old tag functionality.  Will add proposed tagging
      configurations in the future.  (Roelker)
2004-07-01 17:10:22 +00:00

84 lines
2.7 KiB
Makefile

# $NetBSD: Makefile.common,v 1.15 2004/07/01 17:10:22 adrianp Exp $
#
DISTNAME= snort-2.1.3
CATEGORIES= net security
MASTER_SITES= http://www.snort.org/dl/ \
ftp://the.wiretapped.net/pub/security/network-intrusion-detection/snort/ \
ftp://gd.tuwien.ac.at/infosys/security/snort/dl/
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.snort.org/
USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-libpcap-includes=${BUILDLINK_PREFIX.libpcap}/include
CONFIGURE_ARGS+= --with-libpcap-libraries=${BUILDLINK_PREFIX.libpcap}/lib
PKG_SYSCONFSUBDIR= snort
RCD_SCRIPTS= snort
SNORT_USER?= snort
SNORT_GROUP?= snort
PKG_GROUPS= ${SNORT_GROUP}
PKG_USERS= ${SNORT_USER}:${SNORT_GROUP}::Snort\\ user
FILES_SUBST+= SNORT_USER="${SNORT_USER}" SNORT_GROUP="${SNORT_GROUP}"
OWN_DIRS_PERMS= /var/log/snort ${SNORT_USER} ${SNORT_GROUP} 700
CONF_FILES= ${EGDIR}/snort.conf.default \
${PKG_SYSCONFDIR}/snort.conf
CONF_FILES+= ${EGDIR}/threshold.conf \
${PKG_SYSCONFDIR}/threshold.conf
CONF_FILES+= ${EGDIR}/classification.config \
${PKG_SYSCONFDIR}/classification.config
CONF_FILES+= ${EGDIR}/reference.config \
${PKG_SYSCONFDIR}/reference.config
SUPPORT_FILES+= ${EGDIR}/gen-msg.map \
${PKG_SYSCONFDIR}/gen-msg.map
SUPPORT_FILES+= ${EGDIR}/generators \
${PKG_SYSCONFDIR}/generators
SUPPORT_FILES+= ${EGDIR}/sid \
${PKG_SYSCONFDIR}/sid
SUPPORT_FILES+= ${EGDIR}/sid-msg.map \
${PKG_SYSCONFDIR}/sid-msg.map
SUPPORT_FILES+= ${EGDIR}/unicode.map \
${PKG_SYSCONFDIR}/unicode.map
EGDIR= ${PREFIX}/share/examples/snort
SUBST_CLASSES= paths
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= etc/snort.conf
SUBST_SED.paths= -e "s|@PREFIX@|${PREFIX}|g"
SUBST_MESSAGE.cgi= "Fixing paths."
post-install:
@${CP} ${WRKSRC}/etc/snort.conf ${WRKSRC}/etc/snort.conf.default
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/etc/*.config \
${WRKSRC}/etc/*.map \
${WRKSRC}/etc/generators \
${WRKSRC}/etc/sid \
${WRKSRC}/etc/threshold.conf \
${WRKSRC}/etc/snort.conf.default ${EGDIR}/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snort
cd ${WRKSRC}/doc ; \
for i in `${LS} | ${EGREP} -v "(Makefile|signatures)"` ; do \
${INSTALL_DATA} $$i ${PREFIX}/share/doc/snort ; \
done
cd ${WRKSRC}/doc ; \
${RM} -rf signatures/CVS; \
${PAX} -rw -pm signatures ${PREFIX}/share/doc/snort
${INSTALL_DATA_DIR} ${PREFIX}/share/snort/rules
cd ${WRKSRC}/rules ; \
for i in `${LS} | ${GREP} -v Makefile` ; do \
${INSTALL_DATA} $$i ${PREFIX}/share/snort/rules ; \
done
${INSTALL_MAN} ${WRKSRC}/snort.8 ${PREFIX}/man/man8
.include "../../devel/pcre/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"