PR: 230711 Submitted by: sergey@akhmatov.ru Approved by: maintainer(timeout, > 30 days) Differential Revision: https://reviews.freebsd.org/D16776
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# Created by: Hizbulin Ildar <hizel@vyborg.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= supervisor
|
|
PORTVERSION= 3.3.4
|
|
PORTEPOCH= 1
|
|
CATEGORIES= sysutils python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= hizel@vyborg.ru
|
|
COMMENT= System for controlling process state under UNIX
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}meld3>=0.6.5:www/py-meld3@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0.5.0:devel/py-mock@${PY_FLAVOR}
|
|
|
|
USES= python:2.7 shebangfix
|
|
USE_PYTHON= distutils autoplist
|
|
PIDDIR?= /var/run/supervisor
|
|
|
|
NO_ARCH= yes
|
|
PLIST_FILES= '@sample etc/supervisord.conf.sample'
|
|
PLIST_DIRS= ${PIDDIR}
|
|
|
|
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
|
|
PIDDIR=${PIDDIR}
|
|
PLIST_SUB= PIDDIR=${PIDDIR}
|
|
USE_RC_SUBR= supervisord
|
|
|
|
SHEBANG_FILES= supervisor/scripts/*.py supervisor/tests/fixtures/*.py
|
|
python_OLD_CMD+= "<<PYTHON>>"
|
|
|
|
PORTDOCS= *.txt *.rst
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's!%%PREFIX%%!${PREFIX}!' ${WRKSRC}/supervisor/options.py \
|
|
${WRKSRC}/supervisor/tests/test_options.py
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${FILESDIR}/supervisord.conf.sample ${STAGEDIR}${PREFIX}/etc
|
|
${INSTALL} -d ${STAGEDIR}${PIDDIR}
|
|
|
|
post-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
|
|
.endfor
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.mk>
|