blob: 95085ee7af0662f40b888d117b02d941ce6f330e (
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
|
# $NetBSD: Makefile,v 1.3 2006/03/06 00:18:22 wiz Exp $
#
DISTNAME= prewikka-0.9.3
PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= http://prelude-ids.org/download/releases/
MAINTAINER= shannonjr@NetBSD.org
HOMEPAGE= http://prelude-ids.org/download/releases/
COMMENT= Prelude-IDS console
.include "../../mk/bsd.prefs.mk"
PYDISTUTILSPKG= yes
PYBINMODULE= yes
PYSETUP= setup.py
REPLACE_PYTHON= prewikka-httpd
PREWIKKA_USER?= prewikka
PREWIKKA_GROUP?= prewikka
PREWIKKA_HOME= /nonexistent
RCD_SCRIPTS= prewikka
PKG_USERS= ${PREWIKKA_USER}:${PREWIKKA_GROUP}::Prelude\-IDS\ console:${PREWIKKA_HOME}:${NOLOGIN}
PKG_GROUPS= ${PREWIKKA_GROUP}
SUBST_CLASSES+= code
SUBST_STAGE.code= post-patch
SUBST_FILES.code= runPrewikka.c
SUBST_SED.code= -e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.code+= -e 's,@PREWIKKA_USER@,${PREWIKKA_USER},g'
FILES_SUBST+= PREWIKKA_USER=${PREWIKKA_USER:Q}
pre-patch:
${CP} ${FILESDIR}/runPrewikka.c ${WRKSRC}
post-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} -o runPrewikka runPrewikka.c
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/runPrewikka ${PREFIX}/sbin/runPrewikka
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../security/libpreludedb/buildlink3.mk"
.include "../../security/libprelude/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|