8
0
OBS User unknown
2007-01-15 22:51:15 +00:00
committed by Git OBS Bridge
commit 5d1d9c72cf
10 changed files with 913 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

248
apache2-mod_perl.changes Normal file
View File

@@ -0,0 +1,248 @@
-------------------------------------------------------------------
Wed Aug 9 14:37:59 CEST 2006 - poeml@suse.de
- build fix for sles9: add openldap2-devel to BuildRequires
-------------------------------------------------------------------
Fri Jul 14 08:06:08 CEST 2006 - olh@suse.de
- rename gzip archive from .bz2 to .gz
-------------------------------------------------------------------
Tue Jul 4 12:41:08 CEST 2006 - poeml@suse.de
- add mod_perl-r411028-t_api_status.patch and
mod_perl-t_content_length-r412063.patch, which both fix test
cases to work with httpd trunk
- remove SOL_IPV6-test.c and mod_perl-1.99_09-ipv6.dif, which have
not been needed for long enough now
- enable more apache modules in testing (deflate, proxy,
proxy_http)
-------------------------------------------------------------------
Mon Jan 30 13:29:22 CET 2006 - poeml@suse.de
- removed libapr-util1-devel from BuildRequires (apache2-devel does
require it)
-------------------------------------------------------------------
Wed Jan 25 21:34:18 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Dec 21 08:22:54 CET 2005 - varkoly@suse.de
- Update to 2.0.2
-------------------------------------------------------------------
Mon Dec 12 12:10:39 CET 2005 - poeml@suse.de
- fix quoting of dollar sign in here document which creates the
startup file [#136882]
-------------------------------------------------------------------
Tue Nov 15 18:19:36 CET 2005 - uli@suse.de
- disabled tests on ARM, don't make much sense with current QEMU
-------------------------------------------------------------------
Fri Aug 12 15:57:57 CEST 2005 - poeml@suse.de
- install documentation [#95243]
-------------------------------------------------------------------
Tue Aug 2 15:57:54 CEST 2005 - pth@suse.de
- mod_perl2 needs a different startup file (#99275)
-------------------------------------------------------------------
Wed Jul 27 12:24:24 CEST 2005 - pth@suse.de
- Update to 2.0.1
-------------------------------------------------------------------
Tue Jan 25 13:22:13 CET 2005 - poeml@suse.de
- update 2.0.0 to release candidate 4
- move usage hints from %post into package description
- remove obsolete stuff from %clean
-------------------------------------------------------------------
Mon Dec 20 20:27:17 CET 2004 - poeml@suse.de
- update to 2.0.0, release candidate 1
- comment out mod_perl-1.99_09-ipv6.dif, it shouldn't be needed
anymore for the build farm
- the call to /usr/share/apache2/get_module_list is not needed
- fix startup file for recent changes
-------------------------------------------------------------------
Mon Oct 11 09:48:51 CEST 2004 - poeml@suse.de
- update to 1.99_15_20040907
- put Apache-Test in separate tarball
-------------------------------------------------------------------
Tue Mar 2 22:59:26 CET 2004 - poeml@suse.de
- update to CVS snapshot 1.99_12_20040302
- two tests need small tweaks for file permissions
- mod_perl-1.99_09-perlmm.dif is obsolete
- remove file ROADMAP from filelist
-------------------------------------------------------------------
Thu Feb 19 17:26:44 CET 2004 - ro@suse.de
- added check-build.sh (build on 2.6 hosts only)
-------------------------------------------------------------------
Wed Jan 28 14:11:44 CET 2004 - ro@suse.de
- build as normal user
-------------------------------------------------------------------
Tue Nov 18 14:46:35 CET 2003 - poeml@suse.de
- add some comments about the SOL_IPV6-test.c test program [#31246]
-------------------------------------------------------------------
Mon Sep 22 14:34:11 CEST 2003 - mls@suse.de
- fix build for official perl-5.8.1 (missing MM initialization)
-------------------------------------------------------------------
Thu Aug 28 12:34:39 CEST 2003 - poeml@suse.de
- last added patch is not needed
- clean up some old cruft from the spec file
- use only IPv4 sockets for testing, if SOL_IPV6 socket option is
not available. With this the package builds on all machines.
-------------------------------------------------------------------
Thu Aug 21 18:45:11 CEST 2003 - mjancar@suse.cz
- honor user supplied OPTIMIZE like original MakeMaker does
- use $RPM_OPT_FLAGS
-------------------------------------------------------------------
Wed Aug 20 19:39:49 CEST 2003 - mjancar@suse.cz
- require the perl version we build with
-------------------------------------------------------------------
Thu Aug 7 13:16:09 CEST 2003 - poeml@suse.de
- update to snapshot 1.99_09_20030803
- enable t/apr-ext/uuid.t (problem was that apr-config wasn't found)
- add db-devel to neededforbuild, so APR.so can be linked with
`apu-config --ldflags --libs`
-------------------------------------------------------------------
Wed Aug 6 10:51:15 CEST 2003 - poeml@suse.de
- fix last change: config-dist.sh did never exit with "ok"
-------------------------------------------------------------------
Wed Aug 6 00:04:48 CEST 2003 - ro@suse.de
- use different string in config-dist.sh (one we check for ...)
-------------------------------------------------------------------
Mon Aug 4 18:34:53 CEST 2003 - poeml@suse.de
- config-dist.sh: build only on hosts that support listening on
IPv6-only sockets
- increase the timeout when waiting for the test server.
- add extra precautions to stop test server. The start can hang if
the random device blocks, and when no pid file has been written
the testsuite will not kill it
- don't make use of %jobs, it doesn't work
- obsolete mod_perl_2, the precursor
- fix typo in %post
-------------------------------------------------------------------
Mon Aug 4 11:09:30 CEST 2003 - poeml@suse.de
- update to snapshot 1.99_09_20030803
- disable a new test that fails
- add a diagnostic config-dist.sh
-------------------------------------------------------------------
Mon Jul 28 01:41:13 CEST 2003 - poeml@suse.de
- update to snapshot 1.99_09_20030727
- add sudo to the buildsystem, so the tests can be run as nobody
- don't explicitely strip binaries since RPM handles it, and may
keep the stripped information somewhere
- add perl-Compress-Zlib to the buildsystem (for another test)
- CFLAGS can be taken from apxs -q CFLAGS, and they'll match. It's
better not to miss _FILE_OFFSET_BITS=64
- allow passing of "jobs" define from rpm for make -j
- install with install_vendor target, and use %{perl_vendorarch}
macro
-------------------------------------------------------------------
Tue Jul 1 21:58:59 CEST 2003 - ro@suse.de
- use perl_process_packlist macro
-------------------------------------------------------------------
Tue Jun 17 12:50:20 CEST 2003 - poeml@suse.de
- add missing directories
- add a hint on how to configure mod_perl
-------------------------------------------------------------------
Tue Jun 10 18:52:04 CEST 2003 - poeml@suse.de
- update to 2.0_20030610110118 snapshot (called 1.99_09_20030610)
-------------------------------------------------------------------
Fri Feb 28 18:02:42 CET 2003 - poeml@suse.de
- make the test suite pass again, by renaming two .pl files of the
test suite to .shtml, because mod_include didn't include files
other than .shtml any longer
-------------------------------------------------------------------
Wed Feb 12 15:15:24 CET 2003 - poeml@suse.de
- rename package from mod_perl_2 to apache2-mod_perl
-------------------------------------------------------------------
Tue Feb 11 13:11:56 CET 2003 - poeml@suse.de
- call the new apache configuration script, so modules that are
needed for the test get loaded
-------------------------------------------------------------------
Mon Feb 10 20:08:23 CET 2003 - poeml@suse.de
- MPM specific links to mod_dav_svn.so are no longer needed
- add apache_libexecdir to filelist
-------------------------------------------------------------------
Tue Jan 14 07:19:25 CET 2003 - poeml@suse.de
- update to 1.99_08
- <Perl> directive missing closing '>' bug fixed, and much else
- drop /etc/apache2/modules/mod_perl
- add /etc/apache2/mod_perl-startup.pl, setting up with
/srv/www/perl-lib in @INC
- add /etc/apache2/conf.d/mod_perl.conf, setting up scriptaliases
/perl/, and /cgi-perl/ (for unaltered CGI scripts under mod_perl)
- use %defattr
-------------------------------------------------------------------
Wed Dec 4 18:18:31 CET 2002 - poeml@suse.de
- update to 1.99_07
- build one module, it works for all MPMs
- use RPM_OPT_FLAGS
-------------------------------------------------------------------
Fri Aug 30 02:03:17 CEST 2002 - poeml@suse.de
- new package with mod_perl-1.99_05 for Apache 2

397
apache2-mod_perl.spec Normal file
View File

@@ -0,0 +1,397 @@
#
# spec file for package apache2-mod_perl (Version 2.0.2)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: apache2-mod_perl
BuildRequires: apache2-devel db-devel ed pcre-devel perl-BSD-Resource perl-Compress-Zlib perl-Tie-IxHash perl-libwww-perl sudo
%if 0%{sles_version} == 9
BuildRequires: openldap2-devel
%endif
%define apxs /usr/sbin/apxs2
%define apache apache2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
%define apache_includedir %(%{apxs} -q INCLUDEDIR)
%define apache_serverroot %(%{apxs} -q PREFIX)
%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
Summary: Embedded Perl for Apache
Group: Productivity/Networking/Web/Servers
Autoreqprov: on
License: Other License(s), see package, Apache
Requires: apache2 %{apache_mmn}
Requires: perl = %{perl_version}
Requires: perl-HTML-Parser perl-Tie-IxHash
Requires: perl-URI perl-libwww-perl
Obsoletes: mod_perl_2
Conflicts: mod_perl
Autoreqprov: on
Version: 2.0.2
Release: 16
Source0: mod_perl-%{version}.tar.gz
#%define apache_test_version 1_99_15
# cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic up -r MODPERL_%{apache_test_version}
#Source1: Apache-Test-%{apache_test_version}.tar.bz2
# patches for tests to run with httpd trunk
Patch1: mod_perl-r411028-t_api_status.patch
Patch2: mod_perl-t_content_length-r412063.patch
URL: http://perl.apache.org/
Icon: mod_perl.xpm
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Apache/Perl integration project brings together the full power of
the Perl programming language and the Apache HTTP server.
With mod_perl, it is possible to write Apache modules entirely in Perl.
The persistent interpreter embedded in the server avoids the overhead
of starting an external interpreter and the penalty of Perl start-up
time.
Note that you do not need mod_perl to run perl scripts via the common
gateway interface (CGI). mod_perl enables you to run Perl scripts in an
embedded interpreter if the additional performance is needed, but may
require modifications to the scripts.
Usage:
Add mod_perl to APACHE_MODULES in /etc/sysconfig/apache2 to load it
into Apache. To learn about the configuration, the best reference
unequivocally is http://perl.apache.org/docs/
For porting 1.0 applications to 2.0, the page
http://perl.apache.org/docs/2.0/user/porting/compat.html should give
the required information.
Most mod_perl handlers use the perl-script handler. Scripts can run in
"mod_perl mode" (preconfigured for URLs starting with /perl/) or "perl
cgi mode" (preconfigured for URLs starting /cgi-perl). Plain CGI
scripts can be run via /cgi-bin/. In all these cases, the script would
be placed inside the /srv/www/cgi-bin/ directory. Refer to
/etc/apache2/conf.d/mod_perl.conf about this configuration.
%prep
#%setup -q -n modperl-2.0 -a 1
%setup -q -n mod_perl-%{version}
%patch1 -p3
%patch2 -p1
%build
perl Makefile.PL MP_APXS=`which %{apxs}` MP_CCOPTS="$(%{apxs} -q CFLAGS)"
ln -s Apache-mod_perl_guide-1.29/bin bin
make
# XXX mod_include/SSI does not include files when they are not named .shtml
mv t/htdocs/includes-registry/test.pl t/htdocs/includes-registry/test.shtml
mv t/htdocs/includes-registry/cgipm.pl t/htdocs/includes-registry/cgipm.shtml
sed 's/\.pl/.shtml/' t/htdocs/includes/test.shtml > tmpfile && mv tmpfile t/htdocs/includes/test.shtml
%ifnarch %arm
#
# Run tests
#
# Don't use sendfile because most systems on which this package will be built don't run a
# kernel that has it implemented, actually
# (Files smaller than 256 bytes will be delivered via conventional read/write, so most of the tests would pass nevertheless.)
echo -e '\n\nEnableSendfile off' >> t/conf/extra.conf.in
#
# fix for bad_scripts.t in 1.99_12
# [Tue Mar 02 17:28:26 2004] [error] file permissions deny server execution/usr/src/packages/BUILD/modperl-2.0/ModPerl-Registry/t/cgi-bin/r_inherited.pl
if test -e ModPerl-Registry/t/cgi-bin/r_inherited.pl; then chmod +x ModPerl-Registry/t/cgi-bin/r_inherited.pl; fi
#
# 1.99_12_20040302 fix for t/hooks/cleanup.t and t/hooks/cleanup2.t
# [Tue Mar 02 18:38:41 2004] [error] [client 127.0.0.1] can't open /usr/src/packages/BUILD/modperl-2.0/t/htdocs/hooks/cleanup2: Permission denied at /usr/src/packages/BUILD/modperl-2.0/Apache-Test/lib/Apache/TestUtil.pm line 82.
#
# enable more apache modules
# we can't simply use a2enmod, since we are not root.
cat >> t/conf/extra.conf.in <<-EOF
LoadModule deflate_module /usr/%_lib/apache2-prefork/mod_deflate.so
LoadModule proxy_module /usr/%_lib/apache2-prefork/mod_proxy.so
LoadModule proxy_http_module /usr/%_lib/apache2-prefork/mod_proxy_http.so
EOF
mkdir -p t/htdocs/hooks
chmod 2770 t/htdocs/hooks
#
# run test suite:
#
#make TEST_VERBOSE=1 APACHE_TEST_PORT=select APACHE_TEST_STARTUP_TIMEOUT=360 test || {
# ps aufx | grep "/usr/sbin/httpd2-prefork -d /usr/src/packages/BUILD/modperl-2.0" \
# | grep -v grep | awk '{print $2}' | xargs -r kill
# exit 1
#}
t/TEST -start-httpd -port select -startup_timeout 720
t/TEST -run-tests || {
t/TEST -stop-httpd
exit 1
}
t/TEST -stop-httpd
# in case of failures, see http://perl.apache.org/docs/2.0/user/help/help.html#_C_make_test___Failures
# then, debug like this:
# t/TEST -start-httpd
# tail -F t/logs/*&
# t/TEST -run-tests -verbose $failed_test
# t/TEST -stop-httpd
%endif
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir}
cp -p src/modules/perl/mod_perl.so $RPM_BUILD_ROOT/%{apache_libexecdir}
mkdir -p $RPM_BUILD_ROOT/%{apache_includedir}/modules/perl
cp src/modules/perl/*.h $RPM_BUILD_ROOT/%{apache_includedir}/modules/perl/
%perl_process_packlist
mkdir -p $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d
cat > $RPM_BUILD_ROOT/%{apache_sysconfdir}/mod_perl-startup.pl <<-EOF
# Taken from http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File
if ( ! \$ENV{MOD_PERL}) { die "GATEWAY_INTERFACE not Perl!"; }
use lib qw(/srv/www/perl-lib);
# enable if the mod_perl 1.0 compatibility is needed
# use Apache2::compat ();
# preload all mp2 modules
# use ModPerl::MethodLookup;
# ModPerl::MethodLookup::preload_all_modules();
use ModPerl::Util (); #for CORE::GLOBAL::exit
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::RequestUtil ();
use Apache2::ServerRec ();
use Apache2::ServerUtil ();
use Apache2::Connection ();
use Apache2::Log ();
use APR::Table ();
use ModPerl::Registry ();
use Apache2::Const -compile => ':common';
use APR::Const -compile => ':common';
1;
EOF
mkdir -p $RPM_BUILD_ROOT/%{apache_serverroot}/perl-lib
cat > $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d/mod_perl.conf <<EOF
<Directory "%{apache_serverroot}/perl-lib">
AllowOverride None
Options None
Order allow,deny
Deny from all
</Directory>
<IfModule mod_perl.c>
PerlRequire "/etc/apache2/mod_perl-startup.pl"
ScriptAlias /perl/ "%{apache_serverroot}/cgi-bin/"
<Location /perl/>
# mod_perl mode
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
ScriptAlias /cgi-perl/ "%{apache_serverroot}/cgi-bin/"
<Location /cgi-perl>
# perl cgi mode
SetHandler perl-script
PerlResponseHandler ModPerl::PerlRun
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
# The /cgi-bin/ ScriptAlias is already set up in httpd.conf
</IfModule>
# vim: ft=apache
EOF
# install documentation files alongside perl modules, where applicable
cp -av docs/api/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/
cp -av docs/api/APR/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/APR/
cp -av docs/api/Apache2/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/Apache2/
cp -av docs/api/ModPerl/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/ModPerl/
# remove unwanted files
find $RPM_BUILD_ROOT/%{perl_sitearch} -name .packlist | xargs --no-run-if-empty rm -v
%files
%defattr(-,root,root)
%doc Changes INSTALL LICENSE README RELEASE STATUS
%doc docs
%dir %{apache_libexecdir}
%{apache_libexecdir}/mod_perl.so
/var/adm/perl-modules/%{name}
%dir %{apache_includedir}
%dir %{apache_includedir}/modules
%{apache_includedir}/modules/perl
%config(noreplace) %{apache_sysconfdir}/mod_perl-startup.pl
%config(noreplace) %{apache_sysconfdir}/conf.d/mod_perl.conf
%dir %{apache_serverroot}/perl-lib
%{_mandir}/man3/*
%{perl_vendorarch}/Apache
%{perl_vendorarch}/Apache2
%{perl_vendorarch}/APR
%{perl_vendorarch}/APR.pm
%{perl_vendorarch}/Bundle
%{perl_vendorarch}/ModPerl
#%dir %{perl_sitearch}/auto
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/mod_perl2.pm
%{perl_vendorarch}/*.pod
/usr/bin/mp2bug
%clean
if ! test -f /.buildenv; then
rm -rf $RPM_BUILD_ROOT
fi
%changelog -n apache2-mod_perl
* Wed Aug 09 2006 - poeml@suse.de
- build fix for sles9: add openldap2-devel to BuildRequires
* Fri Jul 14 2006 - olh@suse.de
- rename gzip archive from .bz2 to .gz
* Tue Jul 04 2006 - poeml@suse.de
- add mod_perl-r411028-t_api_status.patch and
mod_perl-t_content_length-r412063.patch, which both fix test
cases to work with httpd trunk
- remove SOL_IPV6-test.c and mod_perl-1.99_09-ipv6.dif, which have
not been needed for long enough now
- enable more apache modules in testing (deflate, proxy,
proxy_http)
* Mon Jan 30 2006 - poeml@suse.de
- removed libapr-util1-devel from BuildRequires (apache2-devel does
require it)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Dec 21 2005 - varkoly@suse.de
- Update to 2.0.2
* Mon Dec 12 2005 - poeml@suse.de
- fix quoting of dollar sign in here document which creates the
startup file [#136882]
* Tue Nov 15 2005 - uli@suse.de
- disabled tests on ARM, don't make much sense with current QEMU
* Fri Aug 12 2005 - poeml@suse.de
- install documentation [#95243]
* Tue Aug 02 2005 - pth@suse.de
- mod_perl2 needs a different startup file (#99275)
* Wed Jul 27 2005 - pth@suse.de
- Update to 2.0.1
* Tue Jan 25 2005 - poeml@suse.de
- update 2.0.0 to release candidate 4
- move usage hints from %%post into package description
- remove obsolete stuff from %%clean
* Mon Dec 20 2004 - poeml@suse.de
- update to 2.0.0, release candidate 1
- comment out mod_perl-1.99_09-ipv6.dif, it shouldn't be needed
anymore for the build farm
- the call to /usr/share/apache2/get_module_list is not needed
- fix startup file for recent changes
* Mon Oct 11 2004 - poeml@suse.de
- update to 1.99_15_20040907
- put Apache-Test in separate tarball
* Tue Mar 02 2004 - poeml@suse.de
- update to CVS snapshot 1.99_12_20040302
- two tests need small tweaks for file permissions
- mod_perl-1.99_09-perlmm.dif is obsolete
- remove file ROADMAP from filelist
* Thu Feb 19 2004 - ro@suse.de
- added check-build.sh (build on 2.6 hosts only)
* Wed Jan 28 2004 - ro@suse.de
- build as normal user
* Tue Nov 18 2003 - poeml@suse.de
- add some comments about the SOL_IPV6-test.c test program [#31246]
* Mon Sep 22 2003 - mls@suse.de
- fix build for official perl-5.8.1 (missing MM initialization)
* Thu Aug 28 2003 - poeml@suse.de
- last added patch is not needed
- clean up some old cruft from the spec file
- use only IPv4 sockets for testing, if SOL_IPV6 socket option is
not available. With this the package builds on all machines.
* Thu Aug 21 2003 - mjancar@suse.cz
- honor user supplied OPTIMIZE like original MakeMaker does
- use $RPM_OPT_FLAGS
* Wed Aug 20 2003 - mjancar@suse.cz
- require the perl version we build with
* Thu Aug 07 2003 - poeml@suse.de
- update to snapshot 1.99_09_20030803
- enable t/apr-ext/uuid.t (problem was that apr-config wasn't found)
- add db-devel to neededforbuild, so APR.so can be linked with
`apu-config --ldflags --libs`
* Wed Aug 06 2003 - poeml@suse.de
- fix last change: config-dist.sh did never exit with "ok"
* Wed Aug 06 2003 - ro@suse.de
- use different string in config-dist.sh (one we check for ...)
* Mon Aug 04 2003 - poeml@suse.de
- config-dist.sh: build only on hosts that support listening on
IPv6-only sockets
- increase the timeout when waiting for the test server.
- add extra precautions to stop test server. The start can hang if
the random device blocks, and when no pid file has been written
the testsuite will not kill it
- don't make use of %%jobs, it doesn't work
- obsolete mod_perl_2, the precursor
- fix typo in %%post
* Mon Aug 04 2003 - poeml@suse.de
- update to snapshot 1.99_09_20030803
- disable a new test that fails
- add a diagnostic config-dist.sh
* Mon Jul 28 2003 - poeml@suse.de
- update to snapshot 1.99_09_20030727
- add sudo to the buildsystem, so the tests can be run as nobody
- don't explicitely strip binaries since RPM handles it, and may
keep the stripped information somewhere
- add perl-Compress-Zlib to the buildsystem (for another test)
- CFLAGS can be taken from apxs -q CFLAGS, and they'll match. It's
better not to miss _FILE_OFFSET_BITS=64
- allow passing of "jobs" define from rpm for make -j
- install with install_vendor target, and use %%{perl_vendorarch}
macro
* Tue Jul 01 2003 - ro@suse.de
- use perl_process_packlist macro
* Tue Jun 17 2003 - poeml@suse.de
- add missing directories
- add a hint on how to configure mod_perl
* Tue Jun 10 2003 - poeml@suse.de
- update to 2.0_20030610110118 snapshot (called 1.99_09_20030610)
* Fri Feb 28 2003 - poeml@suse.de
- make the test suite pass again, by renaming two .pl files of the
test suite to .shtml, because mod_include didn't include files
other than .shtml any longer
* Wed Feb 12 2003 - poeml@suse.de
- rename package from mod_perl_2 to apache2-mod_perl
* Tue Feb 11 2003 - poeml@suse.de
- call the new apache configuration script, so modules that are
needed for the test get loaded
* Mon Feb 10 2003 - poeml@suse.de
- MPM specific links to mod_dav_svn.so are no longer needed
- add apache_libexecdir to filelist
* Tue Jan 14 2003 - poeml@suse.de
- update to 1.99_08
- <Perl> directive missing closing '>' bug fixed, and much else
- drop /etc/apache2/modules/mod_perl
- add /etc/apache2/mod_perl-startup.pl, setting up with
/srv/www/perl-lib in @INC
- add /etc/apache2/conf.d/mod_perl.conf, setting up scriptaliases
/perl/, and /cgi-perl/ (for unaltered CGI scripts under mod_perl)
- use %%defattr
* Wed Dec 04 2002 - poeml@suse.de
- update to 1.99_07
- build one module, it works for all MPMs
- use RPM_OPT_FLAGS
* Fri Aug 30 2002 - poeml@suse.de
- new package with mod_perl-1.99_05 for Apache 2

29
check-build.sh Normal file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
# Copyright (c) 2003 SuSE Linux AG, Germany. All rights reserved.
#
# Authors: Thorsten Kukuk <kukuk@suse.de>
#
# this script use the following variable(s):
#
# - $BUILD_DIST
#
case $BUILD_BASENAME in
*axp*|*i386|*i686|*ia64|*ppc|*ppc64|*s390|*s390x|*x86_64)
grep "Linux version 2.[0-5].[0-9][0-9]" /proc/version > /dev/null
if [ $? -ne 1 ]; then
echo "FATAL: kernel too old, need kernel >= 2.6.2 for this package"
exit 1
fi
grep "Linux version 2.6.[0-1]-" /proc/version > /dev/null
if [ $? -eq 0 ]; then
echo "FATAL: kernel too old, need kernel >= 2.6.2 for this package"
exit 1
fi
;;
*)
;;
esac
exit 0

3
mod_perl-2.0.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:64a3f54111c953c46ed7b1bafb4ebb034447ca6baba73a8657ad7a39ddeca906
size 3692744

View File

@@ -0,0 +1,91 @@
From modperl-cvs-return-5835-apmail-perl-modperl-cvs-archive=perl.apache.org@perl.apache.org Fri Jun 02 04:16:39 2006
Return-Path: <modperl-cvs-return-5835-apmail-perl-modperl-cvs-archive=perl.apache.org@perl.apache.org>
Delivered-To: apmail-perl-modperl-cvs-archive@www.apache.org
Received: (qmail 47261 invoked from network); 2 Jun 2006 04:16:39 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur.apache.org with SMTP; 2 Jun 2006 04:16:39 -0000
Received: (qmail 98474 invoked by uid 500); 2 Jun 2006 04:16:39 -0000
Delivered-To: apmail-perl-modperl-cvs-archive@perl.apache.org
Received: (qmail 98456 invoked by uid 500); 2 Jun 2006 04:16:39 -0000
Mailing-List: contact modperl-cvs-help@perl.apache.org; run by ezmlm
Precedence: bulk
list-help: <mailto:modperl-cvs-help@perl.apache.org>
list-unsubscribe: <mailto:modperl-cvs-unsubscribe@perl.apache.org>
List-Post: <mailto:modperl-cvs@perl.apache.org>
Reply-To: dev@perl.apache.org
List-Id: <modperl-cvs.perl.apache.org>
Delivered-To: mailing list modperl-cvs@perl.apache.org
Received: (qmail 98445 invoked by uid 99); 2 Jun 2006 04:16:39 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 21:16:39 -0700
X-ASF-Spam-Status: No, hits=-9.4 required=10.0
tests=ALL_TRUSTED,NO_REAL_NAME
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 21:16:38 -0700
Received: by eris.apache.org (Postfix, from userid 65534)
id 1EB831A9842; Thu, 1 Jun 2006 21:16:18 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r411028 - in /perl/modperl/trunk/t: api/status.t
response/TestAPI/status.pm
Date: Fri, 02 Jun 2006 04:16:17 -0000
To: modperl-cvs@perl.apache.org
From: pgollucci@apache.org
X-Mailer: svnmailer-1.0.8
Message-Id: <20060602041618.1EB831A9842@eris.apache.org>
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N
Author: pgollucci
Date: Thu Jun 1 21:16:17 2006
New Revision: 411028
URL: http://svn.apache.org/viewvc?rev=411028&view=rev
Log:
$r->status_line must be valid and match $r->status
or it is 'zapped' by httpd as of 2.2.1
Modified:
perl/modperl/trunk/t/api/status.t
perl/modperl/trunk/t/response/TestAPI/status.pm
Modified: perl/modperl/trunk/t/api/status.t
URL: http://svn.apache.org/viewvc/perl/modperl/trunk/t/api/status.t?rev=411028&r1=411027&r2=411028&view=diff
==============================================================================
--- perl/modperl/trunk/t/api/status.t (original)
+++ perl/modperl/trunk/t/api/status.t Thu Jun 1 21:16:17 2006
@@ -29,6 +29,10 @@
# it also tries to set status (to a different value), but it
# should be ignored by Apache, since status_line is supposed to
# override status. the handler also sets a custom code message
+ # modules/http/http_filters.c r372958
+ # httpd 'zaps' the status_line if it doesn't match the status
+ # as of 2.2.1 (not released) so 2.2.2 (released)
+
my $code = 499; # not in HTTP/1.1
my $message = "FooBared";
my $res = GET "$location?$code=$message";
Modified: perl/modperl/trunk/t/response/TestAPI/status.pm
URL: http://svn.apache.org/viewvc/perl/modperl/trunk/t/response/TestAPI/status.pm?rev=411028&r1=411027&r2=411028&view=diff
==============================================================================
--- perl/modperl/trunk/t/response/TestAPI/status.pm (original)
+++ perl/modperl/trunk/t/response/TestAPI/status.pm Thu Jun 1 21:16:17 2006
@@ -20,7 +20,9 @@
my ($code, $string) = split /=/, $r->args || '';
if ($string) {
- $r->status(200); # status_line should override status
+ # status_line must be valid and match status
+ # or it is 'zapped' by httpd as of 2.2.1
+ $r->status($code);
$r->status_line("$code $string");
}
else {

View File

@@ -0,0 +1,41 @@
diff -uNr mod_perl-2.0.2.orig/t/apache/content_length_header.t mod_perl-2.0.2/t/apache/content_length_header.t
--- mod_perl-2.0.2.orig/t/apache/content_length_header.t 2005-10-21 02:04:31.000000000 +0200
+++ mod_perl-2.0.2/t/apache/content_length_header.t 2006-07-04 12:32:00.000000000 +0200
@@ -45,7 +45,7 @@
my $cl = 0;
my $head_cl = undef;
-
+
ok t_cmp $res->code, 200, "$method $uri code";
ok t_cmp ($res->header('Content-Length'),
$method eq 'GET' ? $cl : $head_cl,
@@ -65,8 +65,26 @@
my $res = $method->($uri);
my $cl = 0;
- my $head_cl = undef;
-
+ my $head_cl;
+
+ ## 2.2.1, 2.0.56, 2.0.57 were not released
+ ## but we use the versions the changes went into
+ ## to protect against wierd SVN checkout building.
+ ## XXX: I'm starting to think this test is more
+ ## trouble then its worth.
+ if (have_min_apache_version("2.2.1")) {
+ $head_cl = 25;
+ }
+ elsif (have_min_apache_version("2.2.0")) {
+ # $head_cl = undef; # avoid warnings
+ }
+ elsif (have_min_apache_version("2.0.56")) {
+ $head_cl = 25;
+ }
+ else {
+ # $head_cl = undef; # avoid warnings
+ }
+
ok t_cmp $res->code, 200, "$method $uri code";
ok t_cmp ($res->header('Content-Length'),
$method eq 'GET' ? $cl : $head_cl,

80
mod_perl.xpm Normal file
View File

@@ -0,0 +1,80 @@
/* XPM */
static char *mod_perl[] = {
/* width height num_colors chars_per_pixel */
" 90 30 43 1",
/* colors */
". c #ffffff",
"# c #080808",
"a c #101010",
"b c #181818",
"c c #212121",
"d c #292929",
"e c #313131",
"f c #393939",
"g c #424242",
"h c #4a4a4a",
"i c #525252",
"j c #5a5a5a",
"k c #636363",
"l c #6b6b6b",
"m c #737373",
"n c #7b7b7b",
"o c #848484",
"p c #8c8c8c",
"q c #949494",
"r c #9c9c9c",
"s c #a5a5a5",
"t c #adadad",
"u c #b5b5b5",
"v c #bdbdbd",
"w c #c6c6c6",
"x c #cecece",
"y c #d6d6d6",
"z c #dedede",
"A c #e7e7e7",
"B c #efefef",
"C c #f7f7f7",
"D c #ff1000",
"E c #f73900",
"F c #ff7300",
"G c #efd600",
"H c #4a00ce",
"I c #7b00ff",
"J c #c600ff",
"K c #f700e7",
"L c #f700ad",
"M c #f70073",
"N c #ef0021",
"O c #000000",
/* pixels */
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"AOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOh",
"AOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOh",
"AOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOh",
"AOOOOOOHHIIOOOOOOOJJJJJJJKKKKOOOOOOLLLLLOOOOOOOOMMMMNNNDOOOOODDDOOOOOOEFFOOOOFFGGGGGGGGGOh",
"AOOOOOHHHIIIOOOOOOJJJOOOOOOKKKOOOOLLLOLLLOOOOOOMMMOOOONDDOOOODDDOOOOOOEFFOOOOFFGOOOOOOOOOh",
"AOOOOHHHOOIIIOOOOOJJJOOOOOOKKKOOOKLLOOOLLLOOOOOMMOOOOOOOOOOOODDDDEEEEEEFFOOOOFFGGGGGOOOOOh",
"AOOOHHHOOOOIIIOOOOJJJJJJJKKKKOOOKKLOOOOOLLMOOOOMMOOOOOOOOOOOODDDDEEEEEEFFOOOOFFGOOOOOOOOOh",
"AOOHHHHHHIIIIIJOOOJJJOOOOOOOOOOKKKLLLLLLLLMhhhhhhhOOOONDDOOOODDDOOOOOOEFFOOOOFFGOOOOOOOOOh",
"AOHHHOOOOOOOOIJJOOJJJOOOOOOOOOKKKOOOOOOOOhh.........NNNDOOOOODDDOOOOOOEFFOOOOFFGGGGGGGGGOh",
"AOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOhh..lp.........#OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOh",
"AOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOh...k#kOB...yauy.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOh",
"AOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOh...u#nbaO...OhOql.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOh",
"AOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOh...CdwBidkOC.#lez...OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOh",
"Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...movsqr.nOzijfj....hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh",
"A......................................AmwioqwByehlimi...................................h",
"A................................OO....eo.Asss.ucisqgf..............................OO...h",
"A................................OO...rmfctnsrukdyttOz..............................OO...h",
"A................................OO...hzibeeixkdbhsOu...............................OO...h",
"A.OO.OOO..OOO......OOOO......OOOOOO...rvgujfqmjdagnu...OO.OOO.......OOOO....OO.OOO..OO...h",
"A.OOO..OOO..OO....OO..OO....OO...OO....x#.wOsOs.Os.....OOO..OO.....OO..OO...OOOOOO..OO...h",
"A.OO...OO...OO...OO....OO..OO....OO....yf.Be.O#.Op.....OO....OO...OO...OO...OO......OO...h",
"A.OO...OO...OO...OO....OO..OO....OO....vm.Cl.Bi.jt.....OO....OO...OOOOOOO...OO......OO...h",
"A.OO...OO...OO...OO....OO..OO....OO....xt..xzBp.hC.....OO....OO...OO........OO......OO...h",
"A.OO...OO...OO...OO....OO..OO....OO....Cw...tv..nA.....OO....OO...OO........OO......OO...h",
"A.OO...OO...OO....OO..OO....OO..OOO....Cu..xhw..xw.....OO...OO.....OO..OO...OO......OO...h",
"A.OO...OO...OO.....OOOO......OOO.OO....xj..xzpB..u.....OOOOOO.......OOOO....OO......OO...h",
"A.......................................v........rs....OO................................h",
"A......................................................OO................................h",
"AhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhOOOOOOOOOOOOOOOOOhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh"
};

0
ready Normal file
View File