summaryrefslogtreecommitdiff
path: root/security/libprelude/Makefile.common
blob: f1cd7e9509c259b197976b14c9da4159c4a4a449 (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
58
59
60
# $NetBSD: Makefile.common,v 1.3 2009/10/07 19:39:42 joerg Exp $
#
# used by security/libprelude/Makefile
# used by security/libprelude-lua/Makefile
# used by security/libprelude-perl/Makefile
# used by security/libprelude-python/Makefile
# used by security/libprelude-ruby/Makefile

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

MAINTAINER=		shannonjr@NetBSD.org
HOMEPAGE=		http://www.prelude-ids.org/download/releases/

PKG_DESTDIR_SUPPORT=	user-destdir

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 ${ROOT_USER} ${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"