1 # $NetBSD: Makefile,v 1.35 2012/10/23 18:16:54 asau Exp $
4 DISTNAME
= prewikka-
${VERSION}
5 PKGNAME
= ${PYPKGPREFIX}-prewikka-
${VERSION}
7 MASTER_SITES
= http
://www.prelude-ids.org
/download
/releases
/prewikka
/ \
8 http
://www.prelude-ids.org
/download
/releases
/old
/
12 CONFLICTS
= prewikka-
[0-9]*
14 MAINTAINER
= pkgsrc-users@NetBSD.org
15 HOMEPAGE
= http
://prelude-ids.org
/download
/releases
/
16 COMMENT
= Prelude-IDS console
18 DEPENDS
+= ${PYPKGPREFIX}-cheetah-
[0-9]*:..
/..
/devel
/py-cheetah
22 .
include "../../mk/bsd.prefs.mk"
26 PYTHON_PATCH_SCRIPTS
= scripts
/prewikka-httpd
27 PREWIKKA_USER?
= prewikka
28 PREWIKKA_GROUP?
= prewikka
29 PREWIKKA_HOME
= /nonexistent
31 PKG_SYSCONFSUBDIR
= prewikka
33 PKG_GROUPS
= ${PREWIKKA_GROUP}
34 PKG_USERS
= ${PREWIKKA_USER}:${PREWIKKA_GROUP}
36 PKG_GECOS.
${PREWIKKA_USER}= Prelude-IDS console
37 PKG_HOME.
${PREWIKKA_USER}= ${PREWIKKA_HOME}
39 PKG_GROUPS_VARS
+= PREWIKKA_GROUP
40 PKG_USERS_VARS
+= PREWIKKA_USER
43 SUBST_STAGE.code
= post-patch
44 SUBST_FILES.code
= runPrewikka.c
45 SUBST_SED.code
= -e
's,@PREFIX@,${PREFIX},g'
46 SUBST_SED.code
+= -e
's,@PREWIKKA_USER@,${PREWIKKA_USER},g'
47 SUBST_SED.code
+= -e
's,@PYTHONBIN@,${PYTHONBIN},g'
49 FILES_SUBST
+= PREWIKKA_USER
=${PREWIKKA_USER
:Q
}
51 MAKE_ENV
+= EXAMPLEDIR
=share
/examples
/${PKGBASE}
53 INSTALLATION_DIRS
+= share
/examples
/${PKGBASE} sbin
54 CONF_FILES
+= ${PREFIX}/share
/examples
/${PKGBASE}/prewikka.conf
${PKG_SYSCONFDIR}/prewikka.conf
57 cp
${FILESDIR}/runPrewikka.c
${WRKSRC}
60 cd
${WRKSRC} && env
${MAKE_ENV} ${CC} ${CFLAGS} -o runPrewikka runPrewikka.c
63 ${INSTALL_PROGRAM} ${WRKSRC}/runPrewikka
${DESTDIR}${PREFIX}/sbin
/runPrewikka
65 .
include "../../lang/python/application.mk"
66 .
include "../../lang/python/extension.mk"
67 BUILDLINK_API_DEPENDS.libpreludedb
+= libpreludedb
>=0.9.9
68 .
include "../../security/libpreludedb-python/buildlink3.mk"
69 .
include "../../security/libprelude-python/buildlink3.mk"
70 .
include "../../mk/bsd.pkg.mk"