the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: mod-perl2-pm%type_pkg[perl]
Version: 2.0.5
Revision: 2
Architecture: (%type_pkg[perl] = 581) powerpc, (%type_pkg[perl] = 584) powerpc
Distribution: (%type_pkg[perl] = 581) 10.4, (%type_pkg[perl] = 584) 10.4, (%type_pkg[perl] = 586) 10.4, (%type_pkg[perl] = 586) 10.5
DocFiles: BRANCHING Changes INSTALL MANIFEST META.yml README README-SVN RELEASE STATUS SVN-MOVE
Description: Embed perl in Apache 2
License: OSI-Approved
Maintainer: Dave Vasilevsky
Homepage: http://perl.apache.org
UpdatePOD: true
Type: perl (5.8.1 5.8.4 5.8.6 5.8.8 5.10.0)
BuildDepends: fink (>= 0.20.3), apache2-dev (>= 2.0.58-14), libapr.0-dev, libaprutil.0-dev, openldap24-dev, libiconv-dev, cyrus-sasl2-dev (>= 2.1.21-1), gdbm3, expat1, db47-aes | db47
# The main splitoff isn't much good without the module, but we let it install
# separately anyhow so that different pm5* don't conflict. It would suck if
# -dev depended on conflicting pm5* packages.
Depends: perl%type_pkg[perl]-core, apache2 (>= 2.0.58-14), libapr.0-shlibs, libaprutil.0-shlibs
# need to keep P/C/R:apache-test-pmXXX in 10.<7 because have had
# packages that depends on it (if they were installed, then upgrading
# to a %n that does not have this block would be a deadlock)
Provides: apache-test-pm%type_pkg[perl]
Conflicts: apache-test-pm%type_pkg[perl]
Replaces: apache-test-pm%type_pkg[perl]
Source: mirror:apache:perl/mod_perl-%v.tar.gz
Source-MD5: 03d01d135a122bd8cebd0cd5b185d674
#PatchScript: <<
# #!/bin/sh -ev
#
# # Need full path to perl
# PERL=`which perl%type_raw[perl]`
#
# # Perl's PERLPATH isn't quite right, need to replace it with the right one
# perl -i -pe "s|sub perl_config\b|sub perl_config_perlpath{'$PERL'}\$&|" lib/Apache2/Build.pm
#dmacks removed ^^ as of 2.0.4-2. Not sure the intended result, but:
# sub perl_config_perlpath{'/usr/bin/perl5.10.0'}sub perl_config {
#doesn't seem right and builds find on multiple platforms without it.
#<<
ConfigureParams: MP_APR_CONFIG=%p/bin/apr-config MP_APXS=%p/bin/apxs2
CompileScript: <<
%{default_script}
<<
# Don't test, the tests apparently try to use the system's httpd.conf
NoPerlTests: true
InstallScript: <<
#!/bin/sh -ev
%{default_script}
/bin/mv %i/share/man %i/lib/perl5/%type_raw[perl]
(
cat <
EOF
) >mod_perl.load
install -d -m 755 '%i/etc/apache2/mods-available'
/usr/bin/install -m 644 mod_perl.load %i/etc/apache2/mods-available
install -d -m 755 '%i/bin'
/usr/bin/install -m 755 blib/script/mp2bug %i/bin
<<
DescDetail: <<
mod_perl 2.0 allows Apache 2.x to interact with Perl. Some of the features:
* Accelerate CGI scripts
* Hook into Apache requests
* Configure Apache with perl
<<
SplitOff: <<
Package: libapache2-mod-perl2-perl%type_pkg[perl]
Files: lib/apache2 bin etc
DocFiles: LICENSE
Depends: mod-perl2-pm%type_pkg[perl] (= %v-%r)
Replaces: %{ni}581, %{ni}584, %{ni}586, %{ni}588, %{ni}5100
Conflicts: %{ni}581, %{ni}584, %{ni}586, %{ni}588, %{ni}5100
ConfFiles: <<
%p/etc/apache2/mods-available/mod_perl.load
<<
PostInstScript: <<
echo "Enabling mod_perl module..."
%p/sbin/a2enmod mod_perl
if [ -f /Library/StartupItems/daemonic-apache2/daemonic-apache2 ]
then
echo "Restarting apache2..."
%p/sbin/apache2ctl restart
fi
exit 0
<<
PreRmScript: <<
if [ "$1" != "remove" -a "$1" != "purge" ]; then
exit 0
fi
echo "Disabling mod_perl module..."
%p/sbin/a2dismod mod_perl
<<
<<
SplitOff2: <<
Package: %N-dev
Files: include
DocFiles: LICENSE
Depends: %N (= %v-%r)
Replaces: %{Ni}581-dev, %{Ni}584-dev, %{Ni}586-dev, %{Ni}588-dev, %{Ni}5100-dev
Conflicts: %{Ni}581-dev, %{Ni}584-dev, %{Ni}586-dev, %{Ni}588-dev, %{Ni}5100-dev
BuildDependsOnly: true
<<
<<