head	1.37;
access;
symbols
	RELEASE_9_0_0:1.36
	RELEASE_7_4_0:1.33
	RELEASE_8_2_0:1.33
	RELEASE_6_EOL:1.33
	RELEASE_8_1_0:1.32
	RELEASE_7_3_0:1.30
	RELEASE_8_0_0:1.30
	RELEASE_7_2_0:1.28
	RELEASE_7_1_0:1.26
	RELEASE_6_4_0:1.26
	RELEASE_5_EOL:1.26
	RELEASE_7_0_0:1.26
	RELEASE_6_3_0:1.26
	PRE_XORG_7:1.26
	RELEASE_4_EOL:1.26
	RELEASE_6_2_0:1.26
	RELEASE_6_1_0:1.25
	RELEASE_5_5_0:1.25
	RELEASE_6_0_0:1.25
	RELEASE_5_4_0:1.25
	RELEASE_4_11_0:1.24
	RELEASE_5_3_0:1.24
	RELEASE_4_10_0:1.24
	RELEASE_5_2_1:1.22
	RELEASE_5_2_0:1.22
	RELEASE_4_9_0:1.20
	RELEASE_5_1_0:1.20
	RELEASE_4_8_0:1.19
	RELEASE_5_0_0:1.18
	RELEASE_4_7_0:1.16
	RELEASE_4_6_2:1.15
	RELEASE_4_6_1:1.15
	RELEASE_4_6_0:1.15
	RELEASE_5_0_DP1:1.13
	RELEASE_4_5_0:1.13
	RELEASE_4_4_0:1.11
	RELEASE_4_3_0:1.7
	RELEASE_4_2_0:1.3;
locks; strict;
comment	@# @;


1.37
date	2012.01.01.19.30.48;	author ohauer;	state dead;
branches;
next	1.36;

1.36
date	2011.11.02.03.43.38;	author pgollucci;	state Exp;
branches;
next	1.35;

1.35
date	2011.09.07.03.00.43;	author pgollucci;	state Exp;
branches;
next	1.34;

1.34
date	2011.08.27.09.54.36;	author ohauer;	state Exp;
branches;
next	1.33;

1.33
date	2010.09.22.21.50.02;	author pgollucci;	state Exp;
branches;
next	1.32;

1.32
date	2010.05.25.20.17.35;	author pgollucci;	state Exp;
branches;
next	1.31;

1.31
date	2010.04.28.22.24.38;	author pgollucci;	state Exp;
branches;
next	1.30;

1.30
date	2009.05.17.23.49.03;	author pgollucci;	state Exp;
branches;
next	1.29;

1.29
date	2009.05.17.09.02.49;	author pgollucci;	state Exp;
branches;
next	1.28;

1.28
date	2009.01.12.00.11.49;	author pgollucci;	state Exp;
branches;
next	1.27;

1.27
date	2008.12.29.22.17.45;	author pgollucci;	state Exp;
branches;
next	1.26;

1.26
date	2006.08.13.22.04.14;	author shaun;	state Exp;
branches;
next	1.25;

1.25
date	2005.02.14.23.25.09;	author pav;	state Exp;
branches;
next	1.24;

1.24
date	2004.03.11.13.20.00;	author perky;	state Exp;
branches;
next	1.23;

1.23
date	2004.03.11.11.45.26;	author eik;	state Exp;
branches;
next	1.22;

1.22
date	2003.11.07.09.12.55;	author marcus;	state Exp;
branches;
next	1.21;

1.21
date	2003.09.27.01.01.07;	author edwin;	state Exp;
branches;
next	1.20;

1.20
date	2003.04.13.21.41.19;	author naddy;	state Exp;
branches;
next	1.19;

1.19
date	2003.02.20.19.15.29;	author knu;	state Exp;
branches;
next	1.18;

1.18
date	2002.11.10.16.48.25;	author lioux;	state Exp;
branches;
next	1.17;

1.17
date	2002.11.06.22.47.18;	author adamw;	state Exp;
branches;
next	1.16;

1.16
date	2002.09.09.18.30.09;	author dinoex;	state Exp;
branches;
next	1.15;

1.15
date	2002.05.07.22.37.18;	author jedgar;	state Exp;
branches;
next	1.14;

1.14
date	2002.05.07.03.10.28;	author jedgar;	state Exp;
branches;
next	1.13;

1.13
date	2001.11.06.14.24.29;	author petef;	state Exp;
branches;
next	1.12;

1.12
date	2001.10.07.02.03.44;	author petef;	state Exp;
branches;
next	1.11;

1.11
date	2001.08.16.09.31.29;	author olgeni;	state Exp;
branches;
next	1.10;

1.10
date	2001.05.27.15.18.40;	author olgeni;	state Exp;
branches;
next	1.9;

1.9
date	2001.05.19.19.08.26;	author ijliao;	state Exp;
branches;
next	1.8;

1.8
date	2001.05.11.12.38.46;	author jeh;	state Exp;
branches;
next	1.7;

1.7
date	2001.03.23.00.27.40;	author jeh;	state Exp;
branches;
next	1.6;

1.6
date	2001.02.24.21.05.26;	author olgeni;	state Exp;
branches;
next	1.5;

1.5
date	2001.01.16.17.33.00;	author sobomax;	state Exp;
branches;
next	1.4;

1.4
date	2000.12.27.16.15.52;	author kevlo;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.15.14.09.36;	author sobomax;	state Exp;
branches;
next	1.2;

1.2
date	2000.11.08.22.49.53;	author steve;	state Exp;
branches;
next	1.1;

1.1
date	2000.10.28.01.20.02;	author will;	state Exp;
branches;
next	;


desc
@@


1.37
log
@- remove apache13 and ports depending on apache13 from portstree
  ( EXPIRATION_DATE=2012-01-01 )

with hat apache@@
@
text
@# New ports collection makefile for:	mod_python
# Date created:				28 August 2000
# Whom:					Hye-Shik Chang <perky@@python.or.kr>
#
# $FreeBSD: ports/www/mod_python/Makefile,v 1.36 2011/11/02 03:43:38 pgollucci Exp $
#

PORTNAME=	mod_python
PORTVERSION=	2.7.11
CATEGORIES=	www python
MASTER_SITES=	${MASTER_SITE_APACHE_HTTPD}
MASTER_SITE_SUBDIR=	modpython
PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
EXTRACT_SUFX=	.tgz
DIST_SUBDIR=	python

MAINTAINER=	apache@@FreeBSD.org
COMMENT=	Apache 1.3 module for integrating Python

DEPRECATED=	apache13 is deprecated, migrate to 2.2.x+ now
EXPIRATION_DATE=	2012-01-01

MAKE_JOBS_SAFE=	yes

.if defined(PACKAGE_BUILDING)
IGNORE=	Requires python WITHOUT_THREADS
.endif

USE_APACHE=	13
NO_PACKAGE=	Requires Python without threads support
USE_PYTHON=	yes

PORTSCOUT=	limit:^2

.include <bsd.port.pre.mk>

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--with-apxs=${APXS}
CONFIGURE_ENV=	PYTHON_BIN=${PYTHON_CMD}
MAKE_ENV=	PORTS_APXS=${APXS}
PLIST_SUB+=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}

pre-everything::
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "Note that this is for Apache 1.3 only, use www/mod_python 3 for Apache 2.x"
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "You may use the following build option:"
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "  WANT_EAPI=yes  build as apache EAPI module (for apache13-modssl)"
	@@${ECHO_MSG} ""

pre-patch:
.if defined(WANT_EAPI)
	cd ${WRKSRC} && ${PATCH} -p2 -s < ${PATCHDIR}/optpatch-WANT_EAPI
.endif

post-configure:
	@@${SH} ${PKGREQ}.threads ${PYTHON_CMD}
.if defined(OPTIONAL_LIBS)
	${SED} 's/^\(LIBS=.*\)/\1 ${OPTIONAL_LIBS}/' ${WRKSRC}/src/Makefile \
		> ${WRKSRC}/src/Makefile.tmp && \
		${MV} -f ${WRKSRC}/src/Makefile.tmp ${WRKSRC}/src/Makefile
.endif

post-build:
.if !defined(DONT_STRIP) && exists(${STRIP_CMD})
	${STRIP_CMD} ${WRKSRC}/src/mod_python.so
.endif

post-install:
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.36
log
@- sync apache13 related EXPIRATION_DATE

With Hat:	apache@@
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.35
log
@- Set EXPIRATION_DATE to an actual date (9.0 is behind, so guess 2 months from now).
- This can be changed later as needed, if at all, either way we won't remove them
  until after 9.0 is released.

With Hat:   apache@@
Reported by:    dvl via freshports
@
text
@d21 1
a21 1
EXPIRATION_DATE=	2011-11-01
@


1.34
log
@- set EXPIRATION_DATE to "one week after FreeBSD 9.0-RELEASE-p0"

with hat apache@@
@
text
@d21 1
a21 1
EXPIRATION_DATE=	one week after FreeBSD 9.0-RELEASE-p0
@


1.33
log
@- Mark mod_* modules MAKE_JOBS_SAFE=yes

With Hat:   apache@@
Tested by:  Several P6 TB runs
@
text
@d20 3
@


1.32
log
@Mk/bsd.apache.mk can not sufficiently alter things before Mk/bsd.options.mk
in Mk/bsd.ports.mk due to ordering in Mk/bsd.port.mk.  This causes OPTIONSFILE
to be incorrectly set during some make phases as a result of the recent
PKGNAMEPREFIX for apache ports.

'Revert' some of the PKGNAMEPREFIX changes for apXX-.
   - Must be manually requested in tbe port Makefile either by
     a) AP_FAST_BUILD=yes
     b) PKGNAMEPREFIX=${APACHE_PKGNAMEPREFIX}
   - Going forward, we will only do this for ports where WITH_APACHE
       is NOT optional, but required.  mod_* ports are a good fit.

141 ports are mod_ ports
  80 of those use AP_FAST_BUILD and thus are auto hooked by this patch [a].
  61 remaining are then patched to mirror the other $lang frameworks [b].

PR:             ports/146956
Reported by:    Hans F. Nordhaug <Hans.F.Nordhaug@@hiMolde.no>, several
Discussed with: pav, itectu on #bsdports
Tested by:      P6 TB run
Approved by:    portmgr (pav)
@
text
@d20 2
@


1.31
log
@- Assign some ports to apache@@
@
text
@d13 1
@


1.30
log
@- fix typo s/pythong/python/

Reported by:	pav
@
text
@d16 1
a16 1
MAINTAINER=	pgollucci@@FreeBSD.org
@


1.29
log
@IGNORE when PACKAGE_BUILDING the default python has Threads
and this port requires WITHOUT_THREADS.

Ideally you should www/mod_python3 instead.

Use %%APACHEMODIR%% in pkg-plist
@
text
@d20 1
a20 1
IGNORE=	Requires pythong WITHOUT_THREADS
@


1.28
log
@This port is only for www/apache13* and as such is only for the 2.7.x series
@
text
@d19 4
@


1.27
log
@Since I'm maintaining www/mod_python3 I'll take this one too.
@
text
@d23 2
@


1.26
log
@- Relinquish maintainership.
- Require Apache 1.3, and add a note for Apache 2.x users.

PR:		ports/101827
Submitted by:	Josh Elsasser <josh@@elsasser.org> (maintainer)
@
text
@d16 1
a16 1
MAINTAINER=	ports@@FreeBSD.org
@


1.25
log
@- Update to 2.7.11

PR:		ports/77474
Submitted by:	Josh Elsasser <josh@@elsasser.org> (maintainer)
@
text
@d16 2
a17 2
MAINTAINER=	josh@@elsasser.org
COMMENT=	Apache module for integrating Python
d19 2
a20 2
USE_APACHE=	yes
NO_PACKAGE=	"Requires Python without threads support"
d33 2
@


1.24
log
@- Update to 2.7.10 and unmark BROKEN. [1]
- Respect LOCALBASE for APXS location. [2]
- Assign maintainership to submitter. [2]

PR:		63960 [2]
Submitted by:	Simon Barner <barner@@in.tum.de> [1],
		Josh Elsasser <jre@@vineyard.net> [2]
Requested by:	Hideki Machida <hido@@neojapangz.com> [1]
@
text
@d9 1
a9 1
PORTVERSION=	2.7.10
d16 1
a16 1
MAINTAINER=	jre@@vineyard.net
@


1.23
log
@mark FORBIDDEN: denial of service vulnerability

http://people.freebsd.org/~eik/portaudit/1ed556e6-734f-11d8-868e-000347dd607f.html
@
text
@d9 1
a9 1
PORTVERSION=	2.7.8
d16 1
a16 1
MAINTAINER=	ports@@FreeBSD.org
a18 2
FORBIDDEN=	denial of service vulnerability

d28 1
a29 2

STRIP_CMD?=	strip
@


1.22
log
@Use the new Apache bits from bsd.port.mk.

Submitted by:	dinoex
@
text
@d19 2
@


1.21
log
@KATO mega patch

- ECHO -> ECHO_MSG

For some ports:
- pre-fetch -> pre-everything
- ECHO -> ECHO_CMD

PR:		ports/56820-56858
Submitted by:	KATO Tsuguru <tkato@@prontomail.com>
@
text
@d19 1
a19 3
BUILD_DEPENDS=	${APXS}:${APACHE_PORT}
RUN_DEPENDS=	${APXS}:${APACHE_PORT}

a23 3

APXS?=		${LOCALBASE}/sbin/apxs
APACHE_PORT?=	${PORTSDIR}/www/apache13
@


1.20
log
@Update master site.

PR:		50408
Submitted by:	Mark Linimon <linimon@@lonesome.com>
@
text
@d37 6
a42 6
pre-fetch:
	@@${ECHO} ""
	@@${ECHO} "You may use the following build option:"
	@@${ECHO} ""
	@@${ECHO} "  WANT_EAPI=yes  build as apache EAPI module (for apache13-modssl)"
	@@${ECHO} ""
@


1.19
log
@De-pkg-comment.
@
text
@d11 3
a13 2
MASTER_SITES=	http://www.modpython.org/dist/ \
		ftp://ftp.nuug.no/pub/anders/distfiles/
a14 1
EXTRACT_SUFX=	.tgz
@


1.18
log
@o Rollback PORTCOMMENT modifications while this feature's implementation
  is better studied
o Turn PORTCOMMENT variable in Makefile back into pkg-comment files

Approved by:	kris (portmgr hat),
		portmgr, re (silence)
@
text
@d17 1
@


1.17
log
@Use PORTCOMMENT in the Makefile, and whack the pkg-comment.

Approved by:	pat
@
text
@a17 2
PORTCOMMENT=	Apache module for integrating Python

@


1.16
log
@support appache13-modssl by defining APACHE_PORT in /etc/make.conf
others variants of the apache ports can be used too.
@
text
@d18 2
@


1.15
log
@Update port to 2.7.8, unmark FORBIDDEN.

PR:		37726
Submitted by:	Allan Saddi <asaddi@@philosophysw.com>
@
text
@d18 2
a19 2
BUILD_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
RUN_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
d27 1
@


1.14
log
@Mark FORBIDDEN:
  Contains a vulnerability allowing a publisher to access an indirectly
  imported module allowing a remote attacker to call functions from that
  module.

  http://www.modpython.org/pipermail/mod_python/2002-April/001991.html
@
text
@d9 1
a9 1
PORTVERSION=	2.7.6
a16 2

FORBIDDEN=	"Contains a vulnerability allowing a publisher to access an indirectly imported module allowing a remote attacker to call functions from that module"
@


1.13
log
@- Remove old maintainer from pkg-descr
- Fix pkg-req script
 -Set NO_PACKAGE, as this port requires Python without threads support

PR:		31273
Submitted by:	Anders Nordby <anders@@fix.no>
@
text
@d18 2
@


1.12
log
@Set maintainer to ports@@FreeBSD.org

Submitted by:	Anders Nordby <anders@@fix.no> (previous maintainer)
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_python/Makefile,v 1.11 2001/08/16 09:31:29 olgeni Exp $
d21 1
d48 1
a48 1
	@@${SH} ${PKGREQ}.threads ${PYTHON_CMD} ${PYTHON_BASE}
@


1.11
log
@Update port to version 2.7.6, make it work with Python 2.1.1.

Assign maintainership to Anders Nordby <anders@@fix.no> (approved by current maintainer)

PR:		29738
Submitted by:	Anders Nordby <anders@@fix.no>
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_python/Makefile,v 1.10 2001/05/27 15:18:40 olgeni Exp $
d16 1
a16 1
MAINTAINER=	anders@@fix.no
@


1.10
log
@Fix build when WRKDIRPREFIX is set to a different path.
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_python/Makefile,v 1.9 2001/05/19 19:08:26 ijliao Exp $
d9 1
a9 1
PORTVERSION=	2.7.3
d11 2
a12 4
MASTER_SITES=	http://www.python.org/ftp/python/${PYTHON_VERSION:S/python//g}/ \
		http://www.modpython.org/dist/ \
		http://www3.kr.freebsd.org/~perky/distfiles/
DISTFILES=	mod_python-${PORTVERSION}.tgz ${PYTHON_DISTFILE}
d14 1
d16 1
a16 1
MAINTAINER=	perky@@python.or.kr
d25 1
a25 2
PYTHON_WRKSRC=	${WRKSRC}/../Python-${PYTHON_VERSION:S/python//g}
APXS=		${PREFIX}/sbin/apxs
d28 1
a28 1
CONFIGURE_ARGS+=--with-apxs=${APXS} --with-python=${PYTHON_WRKSRC}
a31 5
.if defined(WITH_OPENPTY)
OPTIONAL_LIBS+=	-lutil
.endif

PYTHON_CONFIGURE_ARGS+=	--without-threads
a38 1
	@@${ECHO} "  WITH_OPENPTY=yes  enables openpty function in posixmodule"
a41 3
.if !defined(WITH_OPENPTY)
	cd ${PYTHON_WRKSRC} && ${PATCH} -s < ${PATCHDIR}/optpatch-WITHOUT_OPENPTY
.endif
a45 3
pre-configure:
	cd ${PYTHON_WRKSRC} && ./configure ${PYTHON_CONFIGURE_ARGS}

d47 1
a52 3

pre-build:
	cd ${PYTHON_WRKSRC} && ${MAKE}
@


1.9
log
@upgrade to 2.7.3

PR:		27379
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_python/Makefile,v 1.8 2001/05/11 12:38:46 jeh Exp $
d51 1
a51 1
	${PATCH} -s < ${PATCHDIR}/optpatch-WITHOUT_OPENPTY
d54 1
a54 1
	${PATCH} -s < ${PATCHDIR}/optpatch-WANT_EAPI
@


1.8
log
@updates 2.7.2_2
. Python 2.1 support
. EAPI option added. (for www/apache13-modssl)
. MASTER_SITES order changed (www.modpython.org site is always slow)

PR:		27214
Submitted by:	Chang, Hye-Shik <perky@@python.or.kr> MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_python/Makefile,v 1.7 2001/03/23 00:27:40 jeh Exp $
d9 1
a9 2
PORTVERSION=	2.7.2
PORTREVISION=	2
@


1.7
log
@more flexible build options:
.enables apache module to embeded more python features.
 (crypt, cmath, strop.. and so many;same to lang/python port)
 but useless features (openpty, gnu readline) are disabled
 by default.
.strip object at post-build phase by default.

Assorted cleanup for portlint

PR:		25839
Submitted by:	Chang, Hye-Shik <perky@@python.or.kr> MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_python/Makefile,v 1.6 2001/02/24 21:05:26 olgeni Exp $
d10 1
a10 1
PORTREVISION=	1
d12 2
a13 2
MASTER_SITES=	http://www.modpython.org/dist/ \
		http://www.python.org/ftp/python/2.0/ \
a23 1
INSTALLS_SHLIB=	yes
d31 2
a32 3
CONFIGURE_ARGS+=	--with-apxs=${LOCALBASE}/sbin/apxs \
		--with-python=${PYTHON_WRKSRC}
CONFIGURE_ENV=	PYTHON_BIN=${LOCALBASE}/bin/python
a38 4
.if defined(WITH_GNUREADLINE)
OPTIONAL_LIBS+=	-lreadline
.endif

d40 1
a40 2
PYTHON_SETUP_FILE?=	${PORTSDIR}/lang/python/files/Setup
STRIP_BIN?=	    /usr/bin/strip
d46 1
a46 1
	@@${ECHO} "  PYTHON_SETUP_FILE=path  specify python modules setup file"
a47 2
	@@${ECHO} "  WITH_GNUREADLINE=yes  enables gnu readline library"
	@@${ECHO} "  DONT_STRIP=yes  don't strip shared object"
d51 5
a55 2
.if !defined(${WITH_OPENPTY})
	${PATCH} -s <files/optpatch-Python::configure
a59 13
.if !exists(${PYTHON_SETUP_FILE})
	@@${ECHO} ""
	@@${ECHO} "### COULD NOT FIND PYTHON SETUP FILE"
	@@${ECHO} "### SPECIFY FILE PATH OR INSTALL PORT 'lang/python'"
	@@${ECHO} ""
.endif

.if !defined(WITH_GNUREADLINE)
	${SED} 's/^readline/#without_readline/g' ${PYTHON_SETUP_FILE} \
		> ${PYTHON_WRKSRC}/Modules/Setup
.else
	${CP} ${PYTHON_SETUP_FILE} ${PYTHON_WRKSRC}/Modules/Setup
.endif
d72 2
a73 2
.if !defined(DONT_STRIP) && exists(${STRIP_BIN})
	${STRIP_BIN} ${WRKSRC}/src/mod_python.so
@


1.6
log
@Update port to version 2.7.2 (security fixes)

PR:		25127
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_python/Makefile,v 1.5 2001/01/16 17:33:00 sobomax Exp $
d10 1
d23 5
d32 1
a32 2
USE_PYTHON=	yes
CONFIGURE_ARGS=	--with-apxs=${LOCALBASE}/sbin/apxs \
d37 27
d65 21
a85 1
	cd ${PYTHON_WRKSRC} && ./configure --without-threads && cd Modules && ${MAKE} -f Makefile.pre Makefile
d90 5
d98 1
a98 1
.include <bsd.port.mk>
@


1.5
log
@Massive style enforcement - use ^I instead of spaces for variables identation.
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_python/Makefile,v 1.4 2000/12/27 16:15:52 kevlo Exp $
d9 1
a9 1
PORTVERSION=	2.7.1
@


1.4
log
@Update to 2.7.1

PR: 23874
Submitted by: MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_python/Makefile,v 1.3 2000/11/15 14:09:36 sobomax Exp $
d9 1
a9 1
PORTVERSION= 	2.7.1
d14 1
a14 1
DISTFILES=      mod_python-${PORTVERSION}.tgz ${PYTHON_DISTFILE}
@


1.3
log
@Update to 2.6.3.

PR:		22850
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_python/Makefile,v 1.2 2000/11/08 22:49:53 steve Exp $
d9 1
a9 1
PORTVERSION= 	2.6.3
d12 2
a13 1
		http://www.pythonlabs.com/products/python2.0/downloads/
d30 1
a30 1
PLIST_SUB+=	PYTHON_LIBPATH=${PYTHON_LIBPATH:S/^${LOCALBASE}//g}lib
@


1.2
log
@This port requires python version 1.5 which is now in lang/python15.
@
text
@d3 1
a3 1
# Whom:					Hye-Shik Chang <perky@@freebsd-kr.org>
d5 1
a5 1
# $FreeBSD: ports/www/mod_python/Makefile,v 1.1 2000/10/28 01:20:02 will Exp $
d9 1
a9 1
PORTVERSION=	2.6
d11 2
a12 5
MASTER_SITES=	ftp://freebsd-kr.org/pub/FreeBSD/ \
		http://www.modpython.org/dist/ \
		ftp://ftp.python.org/pub/python/src/ \
		ftp://ftp.cdrom.com/pub/python/www.python.org/ftp/python/src/ \
		http://sunsite.org.uk/Mirrors/ftp.python.org/pub/www.python.org/ftp/python/src/
d14 1
d16 1
a16 1
MAINTAINER=	perky@@freebsd-kr.org
d18 1
a18 2
BUILD_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 \
		${LOCALBASE}/bin/${PYTHON_VERSION}:${PORTSDIR}/lang/python15
d21 15
a35 26
APXS=			${PREFIX}/sbin/apxs
PYTHON_VERSION=		python1.5
PYTHON_NO_DEPENDS=	yes

.if exists(${APXS})
AP_LIBEXEC!=    ${APXS} -q LIBEXEC
.else
AP_LIBEXEC=     ${PREFIX}/libexec/apache
.endif

COMPILEALL=	${PYTHON_LIBDIR}/compileall.py

PLIST_SUB+=	AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///} \
		PYTHON_SITELIBDIR="${PYTHON_SITELIBDIR:S/^${PREFIX}\///}"

do-build:
	@@${ECHO} "=> Building lib${PYTHON_VERSION}.a for mod_python ..."
	cd ${PYTHON_WRKSRC} && ./configure && ${MAKE} lib${PYTHON_VERSION}.a
	@@${ECHO} "=> Building mod_python.so ..."
	cd ${WRKSRC}/src;${APXS} -I../../Python-1.5.2/Include -I../../Python-1.5.2 -I${WRKSRC}/src/include -c mod_python.c -lm ../../Python-1.5.2/lib${PYTHON_VERSION}.a
	${PYTHON_CMD} ${COMPILEALL} ${WRKSRC}/lib/python/mod_python

do-install:
	cd ${WRKSRC}/src;${APXS} -i -a mod_python.so
	${MKDIR} ${PYTHON_SITELIBDIR}/mod_python
	${INSTALL_SCRIPT} ${WRKSRC}/lib/python/mod_python/* ${PYTHON_SITELIBDIR}/mod_python
d38 1
a38 4
	@@${ECHO_MSG} "======================================================="
	@@${ECHO_MSG} "  mod_python was installed successfully."
	@@${ECHO_MSG} "  please read the manual at http://www.modpython.org"
	@@${ECHO_MSG} "======================================================="
@


1.1
log
@Add mod_python 2.6, an Apache module that allows embedding python within
the Apache http server for performance and flexibility boosts.

PR:		20885
Submitted by:	Chang, Hye-Shik <perky@@python.or.kr>
@
text
@d5 1
a5 1
# $FreeBSD$
d21 1
a21 1
		${LOCALBASE}/bin/${PYTHON_VERSION}:${PORTSDIR}/lang/python
@

