Update to 3.3.3, which fixes a security vulnerability (CVE-2017-11610). While I'm here, level up port compliance, limiting changes to a minimum. Still TODO: - Regenerate/verify patches - Clarify/Add LICENSE ('BSD-derived') - Fix/verify use of @[un]exec in pkg-plist Changelog: http://supervisord.org/changes.html PR: 221539 Submitted by: Dani <i.dani outlook com> Approved by: portmgr (maintainer timeout, 1 month) Security: c9460380-81e3-11e7-93af-005056925db4 MFH: 2017Q3
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# Created by: Hizbulin Ildar <hizel@vyborg.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= supervisor
|
|
PORTVERSION= 3.3.3
|
|
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
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0.5.0:devel/py-mock
|
|
|
|
PORTDOCS= *.txt *.rst
|
|
|
|
NO_ARCH= yes
|
|
|
|
USES= python:2.7 shebangfix
|
|
USE_PYTHON= distutils autoplist
|
|
PIDDIR?= /var/run/supervisor
|
|
|
|
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= "/usr/bin/env python"
|
|
python_OLD_CMD+= "<<PYTHON>>"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's!%%PREFIX%%!${PREFIX}!' ${WRKSRC}/supervisor/options.py
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${FILESDIR}/supervisord.conf.sample ${STAGEDIR}${PREFIX}/etc
|
|
${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>
|