2003-12-31 15:11:42 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.13 2003/12/31 14:11:42 salo Exp $
|
2002-04-15 10:31:14 +02:00
|
|
|
#
|
|
|
|
|
2003-12-31 15:11:42 +01:00
|
|
|
DISTNAME= snort-2.1.0
|
2003-09-23 17:43:50 +02:00
|
|
|
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/
|
2002-04-15 10:31:14 +02:00
|
|
|
|
2003-09-23 17:43:50 +02:00
|
|
|
MAINTAINER= salo@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.snort.org/
|
2002-04-15 10:31:14 +02:00
|
|
|
|
2003-12-31 15:11:42 +01:00
|
|
|
USE_BUILDLINK2= YES
|
2003-09-23 17:43:50 +02:00
|
|
|
USE_PKGINSTALL= YES
|
|
|
|
GNU_CONFIGURE= YES
|
2003-03-04 02:02:25 +01:00
|
|
|
|
2003-04-16 17:51:22 +02:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2003-03-04 02:02:25 +01:00
|
|
|
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
|
2003-12-31 15:11:42 +01:00
|
|
|
CONF_FILES+= ${EGDIR}/threshold.conf \
|
|
|
|
${PKG_SYSCONFDIR}/threshold.conf
|
2003-03-04 02:02:25 +01:00
|
|
|
CONF_FILES+= ${EGDIR}/classification.config \
|
|
|
|
${PKG_SYSCONFDIR}/classification.config
|
|
|
|
CONF_FILES+= ${EGDIR}/reference.config \
|
|
|
|
${PKG_SYSCONFDIR}/reference.config
|
2003-12-31 15:11:42 +01:00
|
|
|
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
|
2003-03-04 02:02:25 +01:00
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/snort
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${SED} ${FILES_SUBST_SED} ${WRKSRC}/etc/snort.conf > \
|
|
|
|
${WRKDIR}/snort.conf.default
|
2002-04-15 10:31:14 +02:00
|
|
|
|
|
|
|
post-install:
|
2003-03-04 02:02:25 +01:00
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
2003-12-31 15:11:42 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/*.config \
|
|
|
|
${WRKSRC}/etc/*.map \
|
|
|
|
${WRKSRC}/etc/generators \
|
|
|
|
${WRKSRC}/etc/sid \
|
|
|
|
${WRKSRC}/etc/threshold.conf \
|
2003-03-04 02:02:25 +01:00
|
|
|
${WRKDIR}/snort.conf.default ${EGDIR}/
|
2002-04-15 10:31:14 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snort
|
2002-10-13 06:42:12 +02:00
|
|
|
cd ${WRKSRC}/doc ; \
|
2003-07-26 13:13:16 +02:00
|
|
|
for i in `${LS} | ${EGREP} -v "(Makefile|signatures)"` ; do \
|
2002-10-13 06:42:12 +02:00
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/snort ; \
|
2002-04-15 10:31:14 +02:00
|
|
|
done
|
2003-09-23 17:43:50 +02:00
|
|
|
cd ${WRKSRC}/doc ; \
|
2003-07-26 13:13:16 +02:00
|
|
|
${RM} -rf signatures/CVS; \
|
|
|
|
${PAX} -rw -pm signatures ${PREFIX}/share/doc/snort
|
2002-10-13 06:42:12 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/snort/rules
|
|
|
|
cd ${WRKSRC}/rules ; \
|
2003-03-04 02:02:25 +01:00
|
|
|
for i in `${LS} | ${GREP} -v Makefile` ; do \
|
2002-10-13 06:42:12 +02:00
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/snort/rules ; \
|
2002-04-15 10:31:14 +02:00
|
|
|
done
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/snort.8 ${PREFIX}/man/man8
|
2003-12-31 15:11:42 +01:00
|
|
|
|
|
|
|
.include "../../devel/pcre/buildlink2.mk"
|
|
|
|
.include "../../net/libpcap/buildlink2.mk"
|