-
Notifications
You must be signed in to change notification settings - Fork 114
/
Makefile
46 lines (34 loc) · 1.1 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
COMMENT = utilities to read and parse Argus data
VERSION = 3.0.8.4
DISTNAME = argus-clients-${VERSION}
CATEGORIES = net
HOMEPAGE = https://openargus.org/
GH_ACCOUNT = openargus
GH_PROJECT = clients
GH_TAGNAME = v${VERSION}
MAINTAINER = Steven Mestdagh <steven@openbsd.org>
# GPLv2
PERMIT_PACKAGE = Yes
WANTLIB = c m curses readline z pthread ft
NO_TEST = Yes
LIB_DEPENDS = net/flow-tools
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = LOCALBASE=${LOCALBASE}
CONFIGURE_ARGS += --with-libft=yes \
--without-mysql \
--without-GeoIP \
--without-sasl
MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/config
BUILD_DEPENDS = devel/bison
MAKE_FLAGS = CCOPT="${CFLAGS}" COMPATLIB="-lm -lz -L${LOCALBASE}/lib -lft"
FAKE_FLAGS = docdir=${PREFIX}/share/doc/argus-clients/
post-extract:
@find ${WRKSRC} -name '.gdb_history' -delete
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/argus/
mv ${PREFIX}/argus/* ${PREFIX}/share/argus/
rmdir ${PREFIX}/argus
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/argus-clients/
cd ${WRKSRC}/support && tar cf - . | \
tar -C ${PREFIX}/share/examples/argus-clients/ -xf -
.include <bsd.port.mk>