-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (49 loc) · 1.54 KB
/
Makefile
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# $OpenBSD: Makefile,v 1.73 2013/01/16 04:52:53 lteo Exp $
SHARED_ONLY = Yes
COMMENT = highly flexible sniffer/NIDS
VERSION = 2.9.4.0
DISTNAME = snort-2.9.4
PKGNAME = snort-${VERSION}
CATEGORIES = net security
HOMEPAGE = http://www.snort.org/
MAINTAINER = Markus Lude <markus.lude@gmx.de>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c crypto daq dnet m pcap pcre pthread z
MASTER_SITES = http://www.snort.org/dl/snort-current/
USE_LIBTOOL = Yes
USE_GROFF = Yes
SEPARATE_BUILD = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
--disable-static-daq
LIB_DEPENDS = devel/pcre \
net/libdnet \
net/daq
CONFIGS = classification.config gen-msg.map reference.config \
snort.conf threshold.conf unicode.map
PREPROC = decoder.rules preprocessor.rules
DOCS = AUTHORS CREDITS README README.* *.pdf TODO USAGE \
WISHLIST
V = ${VERSION:S/.//g}
SUBST_VARS += V
pre-configure:
@${SUBST_CMD} ${WRKSRC}/etc/snort.conf
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snort
.for i in ${CONFIGS}
${INSTALL_DATA} ${WRKSRC}/etc/${i} ${PREFIX}/share/examples/snort
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/generators ${PREFIX}/share/examples/snort
.for i in ${PREPROC}
${INSTALL_DATA} ${WRKSRC}/preproc_rules/${i} ${PREFIX}/share/examples/snort
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snort
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/snort
.endfor
NO_REGRESS = Yes
.include <bsd.port.mk>