From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Dec 9 23:50:23 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE1BE16A4CE for ; Thu, 9 Dec 2004 23:50:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D04543D55 for ; Thu, 9 Dec 2004 23:50:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB9NoNQ7036007 for ; Thu, 9 Dec 2004 23:50:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB9NoN2r036005; Thu, 9 Dec 2004 23:50:23 GMT (envelope-from gnats) Resent-Date: Thu, 9 Dec 2004 23:50:23 GMT Resent-Message-Id: <200412092350.iB9NoN2r036005@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "ports@c0decafe.net" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F9E716A4CF for ; Thu, 9 Dec 2004 23:50:05 +0000 (GMT) Received: from iris2.directnic.com (iris2.directnic.com [204.251.10.82]) by mx1.FreeBSD.org (Postfix) with SMTP id 1FAD643D62 for ; Thu, 9 Dec 2004 23:50:04 +0000 (GMT) (envelope-from ports@c0decafe.net) Received: by iris2.directnic.com (iris/0.168:423476); 9 Dec 2004 23:49:57 +0000 Received: from [194.126.9.126] (EHLO atlantis.local) (194.126.9.126) by pop.directnic.com (iris/0.167:423476/relay) with ESMTP for ; 9 Dec 2004 23:49:46 +0000 Received: from atlantis.local (localhost [127.0.0.1]) by atlantis.local (8.13.1/8.13.1) with ESMTP id iB9No5G4070408; Fri, 10 Dec 2004 01:50:06 +0200 (EET) (envelope-from ports@c0decafe.net) Received: (from bartender@localhost) by atlantis.local (8.13.1/8.13.1/Submit) id iB9No49Z070407; Fri, 10 Dec 2004 01:50:04 +0200 (EET) (envelope-from ports@c0decafe.net) Message-Id: <200412092350.iB9No49Z070407@atlantis.local> Date: Fri, 10 Dec 2004 01:50:04 +0200 (EET) From: "ports@c0decafe.net" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: apache@FreeBSD.org Subject: ports/74907: [PATCH] www/mod_perl: cleanups X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2004 23:50:24 -0000 >Number: 74907 >Category: ports >Synopsis: [PATCH] www/mod_perl: cleanups >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Dec 09 23:50:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: ports@c0decafe.net >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD atlantis.local 5.3-STABLE FreeBSD 5.3-STABLE #0: Tue Dec 7 20:25:50 EET >Description: - USE_APACHE - www/p5-libwww is actually only needed for tests which we do not perform - pkg-(de)install scripts are not really needed Removed file(s): - files/patch-Makefile.PL - pkg-deinstall - pkg-install Port maintainer (apache@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- mod_perl-1.29_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/www/mod_perl.orig/Makefile /usr/ports/www/mod_perl/Makefile --- /usr/ports/www/mod_perl.orig/Makefile Thu Sep 2 12:58:25 2004 +++ /usr/ports/www/mod_perl/Makefile Fri Dec 10 00:56:52 2004 @@ -15,15 +15,9 @@ MAINTAINER= apache@FreeBSD.org COMMENT= Embeds a Perl interpreter in the Apache server -BUILD_DEPENDS= ${APXS}:${PORTSDIR}/${APACHE_PORT} \ - ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww -RUN_DEPENDS= ${BUILD_DEPENDS} - +USE_APACHE= yes PERL_CONFIGURE= yes -CONFIGURE_ARGS+= USE_APXS=1 EVERYTHING=1 INSTALLSITELIB=${SITE_PERL} \ - INSTALLSITEARCH=${SITE_PERL}/${PERL_ARCH} \ - WITH_APXS=${APXS} \ - PERL_EXTRA_CFLAGS='-DDEFAULT_PATH=\"/bin:/usr/bin:/usr/local/bin\"' +CONFIGURE_ARGS+=USE_APXS=1 EVERYTHING=1 WITH_APXS=${APXS} MAN3= Apache.3 Apache::Constants.3 Apache::ExtUtils.3 \ Apache::FakeRequest.3 Apache::File.3 Apache::Leak.3 \ @@ -52,13 +46,8 @@ .endif post-install: - ${MKDIR} ${PREFIX}/include/apache/modules/perl + @${MKDIR} ${PREFIX}/include/apache/modules/perl ${INSTALL_DATA} ${WRKSRC}/src/modules/perl/*.h \ ${PREFIX}/include/apache/modules/perl - ${INSTALL_PROGRAM} ${WRKSRC}/apaci/libperl.so ${PREFIX}/libexec/apache - @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - -post-deinstall: - @PKG_PREFIX=${PREFIX} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL .include diff -ruN --exclude=CVS /usr/ports/www/mod_perl.orig/files/patch-Makefile.PL /usr/ports/www/mod_perl/files/patch-Makefile.PL --- /usr/ports/www/mod_perl.orig/files/patch-Makefile.PL Wed Aug 18 22:11:12 2004 +++ /usr/ports/www/mod_perl/files/patch-Makefile.PL Thu Jan 1 02:00:00 1970 @@ -1,15 +0,0 @@ ---- Makefile.PL.orig Thu Feb 15 12:39:35 2001 -+++ Makefile.PL Thu Feb 15 12:41:28 2001 -@@ -1300,7 +1300,11 @@ - my $string = $self->MM::install; - my $add = ""; - if($USE_APXS) { -- $add = "apxs_install"; -+# XXX The FreeBSD port for mod_perl takes care of installing libperl.so -+# itself via the pkg-install script. -+# -+# $add = "apxs_install"; -+ print "Disabling apxs_install target; deferred to pkg-install\n"; - } - elsif ($win32_auto and $win32_args{INSTALL_DLL}) { - $add = 'amp_install'; diff -ruN --exclude=CVS /usr/ports/www/mod_perl.orig/pkg-deinstall /usr/ports/www/mod_perl/pkg-deinstall --- /usr/ports/www/mod_perl.orig/pkg-deinstall Mon May 28 23:52:46 2001 +++ /usr/ports/www/mod_perl/pkg-deinstall Thu Jan 1 02:00:00 1970 @@ -1,57 +0,0 @@ -#!/bin/sh -# -# Try to de-activate mod_perl in the installed httpd.conf and warn -# if this fails. -# -# $FreeBSD: ports/www/mod_perl/pkg-deinstall,v 1.1 2001/05/28 20:52:46 sheldonh Exp $ -# - -if [ "$2" != "POST-DEINSTALL" ]; then - exit 0 -fi - -TMPDIR=${TMPDIR:=/tmp} -PKG_TMPDIR=${PKG_TMPDIR:=${TMPDIR}} - -apxscmd=${PKG_PREFIX}/sbin/apxs -tmpdir=${PKG_TMPDIR}/deinstmod_perl.$$ - -if [ ! -x ${apxscmd} ]; then - echo Can\'t find the apxs program: ${apxscmd}. - exit 1 -fi - -confdir=`${apxscmd} -q SYSCONFDIR` - -if [ ! -d ${confdir} ]; then - echo Can\'t find Apache conf dir: ${confdir} - exit 1 -fi - -if [ -f ${confdir}/httpd.conf ]; then - conffile=httpd.conf -fi -if [ -f ${confdir}/httpd.conf.default ]; then - conffile="${conffile} httpd.conf.default" -fi -if [ -z "${conffile}" ]; then - echo Can\'t find either of ${confdir}/httpd.conf or - echo ${confdir}/httpd.conf.default. - exit 1 -fi - -if ! mkdir ${tmpdir}; then - echo Can\'t create temporary directory: ${tmpdir} - exit 1 -fi - -for i in ${conffile}; do - awk '{if (!/^LoadModule perl_module/ && !/^AddModule mod_perl.c/) \ - print $0}' < ${confdir}/$i > ${tmpdir}/$i - echo Updating $i in config dir: ${confdir} - cat ${tmpdir}/$i > ${confdir}/$i -done - -rm -rf ${tmpdir} - -exit 0 diff -ruN --exclude=CVS /usr/ports/www/mod_perl.orig/pkg-install /usr/ports/www/mod_perl/pkg-install --- /usr/ports/www/mod_perl.orig/pkg-install Fri Nov 5 16:50:26 1999 +++ /usr/ports/www/mod_perl/pkg-install Thu Jan 1 02:00:00 1970 @@ -1,65 +0,0 @@ -#!/bin/sh -# -# Try to activate mod_perl in the installed httpd.conf and warn -# if this fails. This script could be replaced with a simple @exec -# line in the PLIST if the apache13 package installed an httpd.conf. -# -# $FreeBSD: ports/www/mod_perl/pkg-install,v 1.1.1.1 1999/11/05 14:50:26 sheldonh Exp $ -# - -if [ "$2" != "POST-INSTALL" ]; then - exit 0 -fi - -TMPDIR=${TMPDIR:=/tmp} -PKG_TMPDIR=${PKG_TMPDIR:=${TMPDIR}} - -apxscmd=${PKG_PREFIX}/sbin/apxs -perlmod=${PKG_PREFIX}/libexec/apache/libperl.so -tmpdir=${PKG_TMPDIR}/instmod_perl.$$ - -if [ ! -x ${apxscmd} ]; then - echo Can\'t find the apxs program: ${apxscmd}. - exit 1 -fi - -confdir=`${apxscmd} -q SYSCONFDIR` - -if [ ! -d ${confdir} ]; then - echo Can\'t find Apache conf dir: ${confdir} - exit 1 -fi - -if [ ! -f ${confdir}/httpd.conf ]; then - if [ ! -f ${confdir}/httpd.conf.default ]; then - echo Can\'t find either of ${confdir}/httpd.conf nor - echo ${confdir}/httpd.conf.default. - exit 1 - fi - - if ! mkdir ${tmpdir}; then - echo Can\'t create temporary directory: ${tmpdir} - exit 1 - fi - - cp ${confdir}/httpd.conf.default ${tmpdir}/httpd.conf - if ${apxscmd} -e -S SYSCONFDIR=${tmpdir} -a -n perl ${perlmod}; then - echo Updating httpd.conf.default in config dir: ${confdir} - cat ${tmpdir}/httpd.conf > ${confdir}/httpd.conf.default - rm -rf ${tmpdir} - exit 0 - else - rm -rf ${tmpdir} - echo The apxs command failed to activate mod_perl in the config - echo file: ${tmpdir}/httpd.conf. - exit 1 - fi -elif ${apxscmd} -e -a -n perl ${perlmod}; then - exit 0 -else - echo The apxs command failed to activate mod_perl in the config - echo file: ${confdir}/httpd.conf - exit 1 -fi - -exit 0 diff -ruN --exclude=CVS /usr/ports/www/mod_perl.orig/pkg-plist /usr/ports/www/mod_perl/pkg-plist --- /usr/ports/www/mod_perl.orig/pkg-plist Sun Mar 28 19:58:28 2004 +++ /usr/ports/www/mod_perl/pkg-plist Fri Dec 10 00:30:07 2004 @@ -64,6 +64,8 @@ %%SITE_PERL%%/%%PERL_ARCH%%/mod_perl_traps.pod %%SITE_PERL%%/%%PERL_ARCH%%/mod_perl_tuning.pod libexec/apache/libperl.so +@exec %D/sbin/apxs -e -a -n perl %D/%f +@unexec %D/sbin/apxs -e -A -n perl %D/%f @dirrm include/apache/modules/perl @dirrm include/apache/modules @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache/include/modules/perl --- mod_perl-1.29_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: