summaryrefslogtreecommitdiff
path: root/security/libprelude/Makefile
blob: 5c7dab9770772afc0ad6abd54139078594e5d42a (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
# $NetBSD: Makefile,v 1.5 2006/03/04 12:35:31 shannonjr Exp $
#
DISTNAME=		libprelude-0.9.6.1
#PKGREVISION=		1
CATEGORIES=		security
MASTER_SITES=		http://www.prelude-ids.org/download/releases/

MAINTAINER=		shannonjr@NetBSD.org
HOMEPAGE=		http://www.prelude-ids.org/download/releases/
COMMENT=		Provides the framework for using the Prelude system

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

PRELUDE_USER?=          _prelude
PRELUDE_GROUP?=         _prelude

USE_PKGLOCALEDIR=	yes
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes
USE_TOOLS+=		make bison gawk
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=	--localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+=	--with-html-dir=${PREFIX}/share/doc
PRELUDE_USER?=		_prelude
PRELUDE_GROUP?=		_prelude
PRELUDE_HOME?=		${VARBASE:Q}/spool/prelude
PKG_USERS=	${PRELUDE_USER}:${PRELUDE_GROUP}::Prelude\ IDS:${PRELUDE_HOME}:${NOLOGIN}
PKG_GROUPS=	${PRELUDE_GROUP}

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/libprelude/
	${INSTALL_DATA} ${WRKSRC}/client.conf \
		${PREFIX}/share/examples/libprelude/client.conf-dist
	${INSTALL_DATA} ${WRKSRC}/global.conf \
		${PREFIX}/share/examples/libprelude/global.conf-dist
	${INSTALL_DATA} ${WRKSRC}/idmef-client.conf \
		${PREFIX}/share/examples/libprelude/idmef-client.conf-dist
	${INSTALL_DATA} ${WRKSRC}/tls.conf \
		${PREFIX}/share/examples/libprelude/tls.conf-dist
	${CHOWN} -R ${PRELUDE_USER}:${PRELUDE_GROUP} ${PRELUDE_HOME}

.include "../../security/gnutls/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"