2010-02-06 19:45:36 +01:00
|
|
|
# New ports collection makefile for: supervisor
|
|
|
|
# Date created: 30 Dec, 2009
|
|
|
|
# Whom: Hizbulin Ildar <hizel@vyborg.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= supervisor
|
2012-01-10 12:07:57 +01:00
|
|
|
PORTVERSION= 3.0a12
|
2010-02-06 19:45:36 +01:00
|
|
|
CATEGORIES= sysutils python
|
2010-11-22 19:54:49 +01:00
|
|
|
MASTER_SITES= http://dist.supervisord.org/ \
|
|
|
|
CHEESESHOP
|
2010-02-06 19:45:36 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= hizel@vyborg.ru
|
|
|
|
COMMENT= System to monitor and control a number of processes on UNIX-like OS
|
|
|
|
|
2011-09-05 11:54:51 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}meld3>=0.6.4:${PORTSDIR}/www/py-meld3
|
2010-04-03 19:37:19 +02:00
|
|
|
|
2012-01-10 12:07:57 +01:00
|
|
|
PORTDOCS= *.txt *.rst
|
|
|
|
|
2011-09-05 11:54:51 +02:00
|
|
|
USE_PYTHON= 2.5-2.7
|
2010-02-06 19:45:36 +01:00
|
|
|
USE_PYDISTUTILS= easy_install
|
2010-04-03 19:37:19 +02:00
|
|
|
PIDDIR?= /var/run/supervisor
|
2010-02-06 19:45:36 +01:00
|
|
|
|
2010-04-03 19:37:19 +02:00
|
|
|
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
|
|
|
|
PIDDIR=${PIDDIR}
|
|
|
|
PLIST_SUB= PIDDIR=${PIDDIR}
|
|
|
|
USE_RC_SUBR= supervisord
|
|
|
|
|
|
|
|
post-patch:
|
2012-01-10 12:07:57 +01:00
|
|
|
@${REINPLACE_CMD} -e 's!%%PREFIX%%!${PREFIX}!' ${WRKSRC}/supervisor/options.py
|
2010-04-03 19:37:19 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
[ -d ${PIDDIR} ] || ${MKDIR} ${PIDDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/supervisord.conf.sample ${PREFIX}/etc
|
|
|
|
[ -f ${PREFIX}/etc/supervisord.conf ] || ${CP} -p ${PREFIX}/etc/supervisord.conf.sample ${PREFIX}/etc/supervisord.conf
|
2012-01-10 12:07:57 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.endif
|
2010-02-06 19:45:36 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|