blob: 6a6795d80ea96cd8958948743cb879bf1bce7bbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $NetBSD: Makefile,v 1.3 2000/07/28 17:25:49 tsarna Exp $
#
DISTNAME= Zope-2.2.0-src
PKGNAME= py-pcgi-2.2.0
CATEGORIES= www
MASTER_SITES= http://www.zope.org/Products/Zope/2.2.0/
EXTRACT_SUFX= .tgz
MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://starship.python.net/crew/jbauer/persistcgi/
DEPENDS+= python-1.5.2:../../lang/python
HAS_CONFIGURE= yes
SITE_PKG= lib/python1.5/site-packages
PYTHON_LIBDIR= ${LOCALBASE}/${SITE_PKG}
EXTRACT_ELEMENTS= ${DISTNAME}/pcgi
WRKSRC= ${WRKDIR}/${DISTNAME}/pcgi
post-build:
(cd ${WRKSRC}; ${LOCALBASE}/bin/python ${PREFIX}/lib/python1.5/compileall.py .)
(cd ${WRKSRC}; ${LOCALBASE}/bin/python -O ${PREFIX}/lib/python1.5/compileall.py .)
(cd ${WRKSRC}/Util; \
${SED} -e s,/usr/local,${PREFIX}, <pcgifile.py >pcgifile; \
${SED} -e s,/usr/local,${PREFIX}, <killpcgi.py >killpcgi )
do-install:
${INSTALL_SCRIPT_DIR} ${PYTHON_LIBDIR}
${INSTALL_SCRIPT} ${WRKSRC}/pcgi_publisher.py* ${PYTHON_LIBDIR}
${INSTALL_PROGRAM} ${WRKSRC}/pcgi-wrapper ${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKSRC}/Util/pcgifile ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/Util/killpcgi ${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"
|