Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / py-prewikka / Makefile
bloba4f053aaceb4cc9a3913ed56431b13ad8b6e3b78
1 # $NetBSD: Makefile,v 1.35 2012/10/23 18:16:54 asau Exp $
4 DISTNAME= prewikka-${VERSION}
5 PKGNAME= ${PYPKGPREFIX}-prewikka-${VERSION}
6 CATEGORIES= security
7 MASTER_SITES= http://www.prelude-ids.org/download/releases/prewikka/ \
8 http://www.prelude-ids.org/download/releases/old/
10 VERSION= 0.9.17.1
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
20 USE_TOOLS+= msgfmt
22 .include "../../mk/bsd.prefs.mk"
24 PYDISTUTILSPKG= yes
25 PYSETUP= setup.py
26 PYTHON_PATCH_SCRIPTS= scripts/prewikka-httpd
27 PREWIKKA_USER?= prewikka
28 PREWIKKA_GROUP?= prewikka
29 PREWIKKA_HOME= /nonexistent
30 RCD_SCRIPTS= prewikka
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
42 SUBST_CLASSES+= code
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
56 pre-patch:
57 cp ${FILESDIR}/runPrewikka.c ${WRKSRC}
59 post-build:
60 cd ${WRKSRC} && env ${MAKE_ENV} ${CC} ${CFLAGS} -o runPrewikka runPrewikka.c
62 post-install:
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"