summaryrefslogtreecommitdiff
path: root/security/libprelude/Makefile.common
blob: 612ae3931d9a3736e5d9908913a3581edaa49a6f (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
54
55
56
57
# $NetBSD: Makefile.common,v 1.11 2017/04/22 17:51:16 taca Exp $
#
# used by security/libprelude/Makefile
# used by security/libprelude-lua/Makefile
# used by security/libprelude-perl/Makefile
# used by security/libprelude-python/Makefile

DISTNAME=		libprelude-${VERSION}
VERSION=		0.9.24.1
CATEGORIES=		security
MASTER_SITES=		http://www.prelude-ids.com/download/releases/libprelude/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://www.prelude-siem.org/

PATCHDIR=		${.CURDIR}/../../security/libprelude/patches
DISTINFO_FILE=		${.CURDIR}/../../security/libprelude/distinfo

BUILD_DEFS+=		VARBASE

USE_PKGLOCALEDIR=	yes
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes
USE_TOOLS+=		chown bison gawk gmake pkg-config
USE_LANGUAGES=		c c++
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASEDIR:Q}
CONFIGURE_ARGS+=	--localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+=	--with-html-dir=${PREFIX}/share/doc
CONFIGURE_ARGS+=	--enable-easy-bindings
PKG_SYSCONFSUBDIR=	prelude

PRELUDE_USER?=		_prelude
PRELUDE_GROUP?=		_prelude
PRELUDE_HOME?=		${VARBASE}/spool/prelude

PKG_GROUPS=		${PRELUDE_GROUP}
PKG_USERS=		${PRELUDE_USER}:${PRELUDE_GROUP}

PKG_GROUPS_VARS+=	PRELUDE_GROUP
PKG_USERS_VARS+=	PRELUDE_USER

PKG_GECOS.${PRELUDE_USER}=	Prelude IDS
PKG_HOME.${PRELUDE_USER}=	${PRELUDE_HOME}

EGDIR=			${PREFIX}/share/examples/libprelude
REQD_DIRS=		${EGDIR}
MAKE_DIRS=		${PKG_SYSCONFDIR}/default ${PKG_SYSCONFDIR}/profile
MAKE_DIRS_PERMS+=	${PKG_SYSCONFDIR}/profile ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0711

SUBST_CLASSES+=		make
SUBST_STAGE.make=	post-patch
SUBST_FILES.make=	Makefile.in
SUBST_SED.make=		-e 's,@EGDIR@,${EGDIR},g'

INSTALLATION_DIRS=	share/examples/libprelude

.include "../../mk/bsd.prefs.mk"