diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2011-09-05 13:42:35 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-09-05 13:42:35 -0500 |
commit | 05bc19a05fa55e1f76965ee1257d920cc1b4a85b (patch) | |
tree | 39bdc4f8541eb320b26c396753229e298898aab7 /network/mod_perl/mod_perl.SlackBuild | |
parent | 2f5cc7ca8d0675deb4139f16a63eef97e9d25030 (diff) | |
download | slackbuilds-05bc19a05fa55e1f76965ee1257d920cc1b4a85b.tar.gz |
network/mod_perl: Updated for version 2.0.5.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/mod_perl/mod_perl.SlackBuild')
-rw-r--r-- | network/mod_perl/mod_perl.SlackBuild | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/network/mod_perl/mod_perl.SlackBuild b/network/mod_perl/mod_perl.SlackBuild index a0892bf752..33249f80e2 100644 --- a/network/mod_perl/mod_perl.SlackBuild +++ b/network/mod_perl/mod_perl.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for mod_perl -# Copyright 2007-2008 Heinz Wiesinger <hmwiesinger@gmx.at> +# Copyright 2007-2011 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,16 +23,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mod_perl -VERSION=2.0.4 -BUILD=${BUILD:-3} +VERSION=2.0.5 +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -49,7 +47,6 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then LIBDIRSUFFIX="64" else - SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi @@ -64,7 +61,11 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -perl Makefile.PL MP_APXS=/usr/sbin/apxs INSTALLDIRS=vendor +perl \ + Makefile.PL \ + MP_APXS=/usr/sbin/apxs \ + INSTALLDIRS=vendor + make make install DESTDIR=$PKG @@ -72,29 +73,18 @@ mkdir -p $PKG/etc/httpd/extra sed "s%@baselibdir@%lib${LIBDIRSUFFIX}%g" $CWD/mod_perl.conf > \ $PKG/etc/httpd/extra/mod_perl.conf.example +mv $PKG/usr/share/man $PKG/usr/man +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true +find $PKG -depth -type d -empty -delete || true + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a Changes INSTALL LICENSE README* RELEASE STATUS \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mv $PKG/usr/share/man $PKG/usr/man -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) -rm -rf $PKG/usr/share -( cd $PKG - # Remove 'special' files - find . -name perllocal.pod \ - -o -name ".packlist" \ - -o -name "*.bs" \ - | xargs rm -f - # Remove empty directory - eval $(perl '-V:archlib') - eval $(perl '-V:vendorlib') - rmdir --parents $PKG/$archlib $PKG/$vendorlib 2> /dev/null || true -) - mkdir -p $PKG/install cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc |