[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / security / py-prewikka

File: [cvs.NetBSD.org] / pkgsrc / security / py-prewikka / Attic / Makefile (download)

Revision 1.49, Fri Apr 26 13:14:13 2019 UTC (4 years, 10 months ago) by maya
Branch: MAIN
Changes since 1.48: +2 -2 lines

Omit mentions of python 34 and 35, after those were removed.

- Includes some whitespace changes, to be handled in a separate commit.

# $NetBSD: Makefile,v 1.49 2019/04/26 13:14:13 maya Exp $

DISTNAME=		prewikka-${VERSION}
PKGNAME=		${PYPKGPREFIX}-prewikka-${VERSION}
PKGREVISION=		1
CATEGORIES=		security
#MASTER_SITES=		http://www.prelude-ids.org/download/releases/prewikka/
#MASTER_SITES+=		http://www.prelude-ids.org/download/releases/old/

MAINTAINER=		pkgsrc-users@NetBSD.org
#HOMEPAGE=		http://prelude-ids.org/download/releases/
COMMENT=		Prelude-IDS console

DEPENDS+=		${PYPKGPREFIX}-cheetah-[0-9]*:../../devel/py-cheetah

VERSION=		0.9.17.1

CONFLICTS=		prewikka-[0-9]*

USE_TOOLS+=		msgfmt

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

PYDISTUTILSPKG=		yes
PYSETUP=		setup.py
REPLACE_PYTHON=	scripts/prewikka-httpd
PYTHON_VERSIONS_INCOMPATIBLE=	 36 37 # py-cheetah

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=	pre-configure
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"