-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (40 loc) · 1.38 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
# $OpenBSD: Makefile.template,v 1.86 2019/11/19 12:39:04 espie Exp $
COMMENT = log analysis engine
V = 2.0.0
DISTNAME = sagan
REVISION = 4
PKGNAME = sagan-${V}
GH_ACCOUNT = beave
GH_PROJECT = sagan
GH_COMMIT = ea5116f1f53be3949df4facb0ee1533a43f2b30d
CATEGORIES = security
HOMEPAGE = https://quadrantsec.com/sagan_log_analysis_engine
MAINTAINER = litew <[email protected]>
# GPLv2
PERMIT_PACKAGE = Yes
WANTLIB = c m pthread pcap
MASTER_SITES = https://github.com/beave/sagan/archive/
COMPILER = base-clang ports-gcc
#BUILD_DEPENDS = devel/autoconf/2.67 devel/automake/1.15
#LIB_DEPENDS = devel/pcre>=3.0 \
# devel/libyaml \
# devel/liblognorm \
# net/curl \
# net/libmaxminddb \
# databases/libhiredis
SAMPLES_DIR = ${PREFIX}/share/examples/sagan
FAKE_FLAGS = sysconfdir=${SAMPLES_DIR}
CONFIGURE_STYLE = autoreconf
CONFIGURE_ARGS = --enable-geoip \
--enable-redis \
--enable-libpcap \
--enable-system-strstr
AUTOCONF_VERSION = 2.67
AUTOMAKE_VERSION = 1.15
AUTORECONF = ./autogen.sh
SUBST_VARS = VARBASE
post-install:
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/rules
${INSTALL_DATA} ${WRKSRC}/etc/sagan.yaml ${SAMPLES_DIR}
# ${INSTALL_DATA} ${WRKSRC}/rules/*.rules ${SAMPLES_DIR}/rules
.include <bsd.port.mk>