openbsd-ports/www/puppetboard/Makefile
sebastia 381babf6b9 puppetboard doesn't need to run as root, so add a user for it.
feedback and OK jasper@ (MAINTAINER)
2014-08-13 08:44:47 +00:00

41 lines
940 B
Makefile

# $OpenBSD: Makefile,v 1.8 2014/08/13 08:44:47 sebastia Exp $
COMMENT= web interface to PuppetDB
MODPY_EGG_VERSION= 0.0.4
DISTNAME= puppetboard-${MODPY_EGG_VERSION}
REVISION= 1
CATEGORIES= www
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
# Apache2
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_PYPI:=p/puppetboard/}
MODULES= lang/python
NO_BUILD= Yes
NO_TEST= Yes
PKG_ARCH= *
RUN_DEPENDS= databases/py-puppetdb>=0.1.0 \
www/py-flask-wtf>=0.9.4p0 \
www/py-gunicorn \
www/py-requests
PREFIX= ${VARBASE}/www
INSTDIR= ${PREFIX}/puppetboard
SUBST_VARS+= INSTDIR
do-install:
cp -Rp ${WRKSRC} ${INSTDIR}
mv ${INSTDIR}/puppetboard/default_settings.py \
${INSTDIR}/puppetboard/default_settings.py.dist
${INSTALL_DATA_DIR} ${INSTDIR}/puppetboard/{public,tmp}/
${INSTALL_DATA} ${FILESDIR}/puppetboard_wsgi.py ${INSTDIR}
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
.include <bsd.port.mk>