blob: 5229b4e0b9866c32d7d4876328b562f7ea6ca766 (
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
61
62
63
64
65
66
67
68
69
70
71
72
|
# $NetBSD: Makefile,v 1.34 2012/04/08 19:09:12 wiz Exp $
#
DISTNAME= prewikka-${VERSION}
PKGNAME= ${PYPKGPREFIX}-prewikka-${VERSION}
CATEGORIES= security
MASTER_SITES= http://www.prelude-ids.org/download/releases/prewikka/ \
http://www.prelude-ids.org/download/releases/old/
PKG_DESTDIR_SUPPORT= user-destdir
VERSION= 0.9.17.1
CONFLICTS= prewikka-[0-9]*
MAINTAINER= shannonjr@NetBSD.org
HOMEPAGE= http://prelude-ids.org/download/releases/
COMMENT= Prelude-IDS console
DEPENDS+= ${PYPKGPREFIX}-cheetah-[0-9]*:../../devel/py-cheetah
USE_TOOLS+= msgfmt
.include "../../mk/bsd.prefs.mk"
PYDISTUTILSPKG= yes
PYSETUP= setup.py
PYTHON_PATCH_SCRIPTS= scripts/prewikka-httpd
PREWIKKA_USER?= prewikka
PREWIKKA_GROUP?= prewikka
PREWIKKA_HOME= /nonexistent
RCD_SCRIPTS= prewikka
PKG_SYSCONFSUBDIR= prewikka
PKG_GROUPS= ${PREWIKKA_GROUP}
PKG_USERS= ${PREWIKKA_USER}:${PREWIKKA_GROUP}
PKG_GECOS.${PREWIKKA_USER}= Prelude-IDS console
PKG_HOME.${PREWIKKA_USER}= ${PREWIKKA_HOME}
PKG_GROUPS_VARS+= PREWIKKA_GROUP
PKG_USERS_VARS+= PREWIKKA_USER
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'
SUBST_SED.code+= -e 's,@PYTHONBIN@,${PYTHONBIN},g'
FILES_SUBST+= PREWIKKA_USER=${PREWIKKA_USER:Q}
MAKE_ENV+= EXAMPLEDIR=share/examples/${PKGBASE}
INSTALLATION_DIRS+= share/examples/${PKGBASE} sbin
CONF_FILES+= ${PREFIX}/share/examples/${PKGBASE}/prewikka.conf ${PKG_SYSCONFDIR}/prewikka.conf
pre-patch:
cp ${FILESDIR}/runPrewikka.c ${WRKSRC}
post-build:
cd ${WRKSRC} && env ${MAKE_ENV} ${CC} ${CFLAGS} -o runPrewikka runPrewikka.c
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/runPrewikka ${DESTDIR}${PREFIX}/sbin/runPrewikka
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
BUILDLINK_API_DEPENDS.libpreludedb+= libpreludedb>=0.9.9
.include "../../security/libpreludedb-python/buildlink3.mk"
.include "../../security/libprelude-python/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|