Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2000 09:02:12 -0700 (PDT)
From:      perky@python.or.kr
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/20885: new port request
Message-ID:  <20000827160212.2233E37B43E@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         20885
>Category:       ports
>Synopsis:       new port request
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 27 09:10:03 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Chang, Hye-Shik
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
Yonsei University
>Environment:
FreeBSD faith.freebsd-kr.org 4.1-STABLE FreeBSD 4.1-STABLE #3: Wed Aug 23 00:43:21 KST 2000     root@faith.freebsd-kr.org:/usr/src/sys/compile/ARA  i386
>Description:
this is new port 'mod_python' request.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mod_python
#	mod_python/Makefile
#	mod_python/files
#	mod_python/files/md5
#	mod_python/pkg
#	mod_python/pkg/COMMENT
#	mod_python/pkg/DESCR
#	mod_python/pkg/PLIST
#
echo c - mod_python
mkdir -p mod_python > /dev/null 2>&1
echo x - mod_python/Makefile
sed 's/^X//' >mod_python/Makefile << 'END-of-mod_python/Makefile'
X# New ports collection makefile for:	mod_python
X# Date created:		28 August 2000
X# Whom:			Hye-Shik Chang <perky@freebsd-kr.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_python
XPORTVERSION=	2.4.1
XCATEGORIES=	python www
XMASTER_SITES=	ftp://freebsd-kr.org/pub/FreeBSD/ \
X		http://www.modpython.org/dist/ \
X		ftp://ftp.python.org/pub/python/src/ \
X		ftp://ftp.cdrom.com/pub/python/www.python.org/ftp/python/src/ \
X		http://sunsite.org.uk/Mirrors/ftp.python.org/pub/www.python.org/ftp/python/src/
XDISTFILES=      mod_python-2.4.1.tgz py152.tgz
X
XMAINTAINER=	perky@freebsd-kr.org
X
XBUILD_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 \
X		${LOCALBASE}/bin/python:${PORTSDIR}/lang/python \
X		${LOCALBASE}/lib/python1.5/compileall.py:${PORTSDIR}/lang/python
XRUN_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
X
XY2K=		http://www.python.org/cgi-bin/faqw.py?query=y2k&querytype=anykeywords&casefold=yes&req=search
X
XAPXS=		${PREFIX}/sbin/apxs
X
X.if exists(${APXS})
XAP_LIBEXEC!=    ${APXS} -q LIBEXEC
X.else
XAP_LIBEXEC=     ${PREFIX}/libexec/apache
X.endif
X
XPYTHON=         ${LOCALBASE}/bin/python
XCOMPILEALL=     ${LOCALBASE}/lib/python1.5/compileall.py
XPYTHON_SITEPACKAGES=	${LOCALBASE}/lib/python1.5/site-packages
X
XPLIST_SUB=	AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///} \
X		PYTHON_SITEPACKAGES=${PYTHON_SITEPACKAGES:S/^${PREFIX}\///}
X
Xdo-build:
X	@${ECHO} "=> Building libpython1.5.a for mod_python ..."
X	@${ECHO} "refer this : http://www.modpython.org/live/mod_python-2.4.1/doc/installation.html#dynamic"
X	cd ${WRKSRC}/../Python-1.5.2;./configure;${MAKE} libpython1.5.a
X	@${ECHO} "=> Building mod_python.so ..."
X	cd ${WRKSRC}/src;${APXS} -I ../../Python-1.5.2/Include -I ../../Python-1.5.2 -c mod_python.c -lm ../../Python-1.5.2/libpython1.5.a
X	${PYTHON} ${COMPILEALL} ${WRKSRC}/lib/python/mod_python
X
Xdo-install:
X	cd ${WRKSRC}/src;${APXS} -i -a mod_python.so
X	${MKDIR} ${PYTHON_SITEPACKAGES}/mod_python
X	${INSTALL_SCRIPT} ${WRKSRC}/lib/python/mod_python/* ${PYTHON_SITEPACKAGES}/mod_python
X
Xpost-install:
X	@${ECHO_MSG} "======================================================="
X	@${ECHO_MSG} "  mod_python was installed successfully."
X	@${ECHO_MSG}
X	@${ECHO_MSG} "  plz read the manual at http://www.modpython.org"
X	@${ECHO_MSG} "======================================================="
X
X.include <bsd.port.mk>
END-of-mod_python/Makefile
echo c - mod_python/files
mkdir -p mod_python/files > /dev/null 2>&1
echo x - mod_python/files/md5
sed 's/^X//' >mod_python/files/md5 << 'END-of-mod_python/files/md5'
XMD5 (mod_python-2.4.1.tgz) = 00e0f3684e34009c468d48df7198a7b9
XMD5 (py152.tgz) = e9d677ae6d5a3efc6937627ed8a3e752
XMD5 (mod_python-2.4.1-Leonid.diff.gz) = 1295064c264d5361925a45398cb05cb6
END-of-mod_python/files/md5
echo c - mod_python/pkg
mkdir -p mod_python/pkg > /dev/null 2>&1
echo x - mod_python/pkg/COMMENT
sed 's/^X//' >mod_python/pkg/COMMENT << 'END-of-mod_python/pkg/COMMENT'
XApache module for integrating Python
END-of-mod_python/pkg/COMMENT
echo x - mod_python/pkg/DESCR
sed 's/^X//' >mod_python/pkg/DESCR << 'END-of-mod_python/pkg/DESCR'
XMod_python allows embedding Python within the Apache http server
Xfor a considerable boost in performance and added flexibility
Xin designing web based applications.
X
XWWW: http://www.modpython.org/
Xdeveloped by Gregory Trubetskoy <grisha@ispol.com>
X
X- Hye-Shik "Perky" Chang
Xperky@freebsd-kr.org
END-of-mod_python/pkg/DESCR
echo x - mod_python/pkg/PLIST
sed 's/^X//' >mod_python/pkg/PLIST << 'END-of-mod_python/pkg/PLIST'
X%%AP_LIBEXEC%%/mod_python.so
X%%PYTHON_SITEPACKAGES%%/mod_python/__init__.py
X%%PYTHON_SITEPACKAGES%%/mod_python/__init__.pyc
X%%PYTHON_SITEPACKAGES%%/mod_python/apache.py
X%%PYTHON_SITEPACKAGES%%/mod_python/apache.pyc
X%%PYTHON_SITEPACKAGES%%/mod_python/cgihandler.py
X%%PYTHON_SITEPACKAGES%%/mod_python/cgihandler.pyc
X%%PYTHON_SITEPACKAGES%%/mod_python/httpdapi.py
X%%PYTHON_SITEPACKAGES%%/mod_python/httpdapi.pyc
X%%PYTHON_SITEPACKAGES%%/mod_python/zhandler.py
X%%PYTHON_SITEPACKAGES%%/mod_python/zhandler.pyc
X@dirrm %%PYTHON_SITEPACKAGES%%/mod_python
END-of-mod_python/pkg/PLIST
exit


>How-To-Repeat:
well..
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000827160212.2233E37B43E>