A well-behaved Unix daemon process is tricky to get right, but the required steps are much the same for every daemon program. A DaemonContext instance holds the behaviour and configured process environment for the program; use the instance as a context manager to enter a daemon state.
31 lines
915 B
Makefile
31 lines
915 B
Makefile
# $NetBSD: Makefile,v 1.1 2012/08/14 12:29:50 imil Exp $
|
|
#
|
|
|
|
DISTNAME= python-daemon-1.5.5
|
|
EGG_NAME= python_daemon-1.5.5
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-//}
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= http://pypi.python.org/packages/source/p/python-daemon/
|
|
|
|
MAINTAINER= kamel.derouiche@gmail.com
|
|
HOMEPAGE= http://pypi.python.org/pypi/python-daemon/
|
|
COMMENT= Library to implement a well-behaved Unix daemon process
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-lockfile>=0.9:../../devel/py-lockfile
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}/python-daemon-1.5.5
|
|
USE_LANGUAGES= # none
|
|
|
|
REPLACE_INTERPRETER+= python
|
|
REPLACE.python.old= /usr/bin/env
|
|
REPLACE.python.new= ${PYTHONBIN}
|
|
REPLACE_FILES.python= ${WRKSRC}/daemon/version/version_info.py
|
|
|
|
do-test:
|
|
${RUN} cd ${WRKSRC}; ${SETENV} ${TEST_ENV} ${PYTHONBIN} test/test_runner.py
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|