blob: b4740804466505e05ed8e01c8c8e399286b884c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $NetBSD: Makefile,v 1.11 2001/08/24 11:43:47 abs Exp $
#
DISTNAME= snort-1.8.1-RELEASE
PKGNAME= ${DISTNAME:C/-RELEASE//}
CATEGORIES= net security
MASTER_SITES= http://www.snort.org/Files/ \
ftp://the.wiretapped.net/pub/security/network-intrusion-detection/snort/ \
http://www.centus.com/snort/ \
http://snort.whitehats.com/ \
http://snort.safenetworks.com/ \
ftp://gd.tuwien.ac.at/infosys/security/snort/ \
http://snort.sourcefire.com/releases/
MAINTAINER= rh@netbsd.org
HOMEPAGE= http://www.snort.org/
COMMENT= Libpcap-based packet sniffer/logger
GNU_CONFIGURE= YES
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
DEPENDS+= libpcap>=0.4:../../net/libpcap
ROOTGROUP= root
.endif
ROOTGROUP?= wheel
#WRKSRC= ${WRKDIR}/snort
post-install:
${INSTALL_DATA_DIR} -m 700 -o root -g ${ROOTGROUP} /var/log/snort
${INSTALL_DATA_DIR} ${PREFIX}/share/snort
cd ${WRKSRC} ; \
for i in snort.conf *.config *.rules ; do \
${INSTALL_DATA} $$i ${PREFIX}/share/snort ; \
done
:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snort
cd ${WRKSRC} ; \
for f in [A-LN-Z]* ; do \
${INSTALL_DATA} $$f ${PREFIX}/share/doc/snort ; \
done
:
${INSTALL_DATA_DIR} ${PREFIX}/share/snort/MIBS
cd ${WRKSRC}/MIBS ; \
for m in SnortCommonMIB.txt SnortIDAlertMIB.txt ; do \
${INSTALL_DATA} $$m ${PREFIX}/share/snort/MIBS ; \
done
${INSTALL_MAN} ${WRKSRC}/snort.8 ${PREFIX}/man/man8
.include "../../mk/bsd.pkg.mk"
|