# $NetBSD: Makefile,v 1.16 2023/07/19 12:48:21 wiz Exp $ DISTNAME= supervisor-4.2.5 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} PKGREVISION= 1 CATEGORIES= sysutils python MASTER_SITES= ${MASTER_SITE_PYPI:=s/supervisor/} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://supervisord.org/ COMMENT= System for controlling process state under UNIX LICENSE= original-bsd DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools PYTHON_VERSIONS_INCOMPATIBLE= 27 REPLACE_PYTHON+= supervisor/scripts/*.py PYTHON_SELF_CONFLICT= yes USE_PKG_RESOURCES= yes SUBST_CLASSES+= python SUBST_STAGE.python= pre-build SUBST_MESSAGE.python= Fixing Python path. SUBST_FILES.python+= supervisor/tests/fixtures/unkillable_spew.py SUBST_FILES.python+= supervisor/tests/fixtures/spew.py SUBST_SED.python+= -e "s,<>,${PYTHONBIN}," SUBST_CLASSES+= varbase SUBST_STAGE.varbase= pre-build SUBST_MESSAGE.varbase= Fixing /var path. SUBST_VARS.varbase+= VARBASE SUBST_FILES.varbase+= supervisor/skel/sample.conf FILES_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} EGDIR= share/examples/supervisor RCD_SCRIPTS= supervisord INSTALLATION_DIRS+= ${EGDIR} share/examples/rc.d CONF_FILES+= ${EGDIR}/supervisord.conf ${PKG_SYSCONFDIR}/supervisord.conf post-install: .for bin in echo_supervisord_conf pidproxy supervisorctl supervisord cd ${DESTDIR}${PREFIX}/bin && \ ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE} .endfor ${INSTALL_DATA} ${WRKSRC}/supervisor/skel/sample.conf \ ${DESTDIR}${PREFIX}/share/examples/supervisor/supervisord.conf .include "../../lang/python/application.mk" .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk"