summaryrefslogtreecommitdiff
path: root/network/mod_perl/mod_perl.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <HMWiesinger@gmx.at>2010-05-13 00:37:18 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:37:18 +0200
commit3befa4be87073136f51ace5ecb02c722840e7eca (patch)
treeadb0d86adad8a199fbb0c37f13295475eba3a8da /network/mod_perl/mod_perl.SlackBuild
parentbb003907682d3c9ea99361a128926d7c15ff8326 (diff)
downloadslackbuilds-3befa4be87073136f51ace5ecb02c722840e7eca.tar.gz
network/mod_perl: Updated for version 2.0.4
Diffstat (limited to 'network/mod_perl/mod_perl.SlackBuild')
-rw-r--r--network/mod_perl/mod_perl.SlackBuild17
1 files changed, 14 insertions, 3 deletions
diff --git a/network/mod_perl/mod_perl.SlackBuild b/network/mod_perl/mod_perl.SlackBuild
index 78289a9369..911fc7c824 100644
--- a/network/mod_perl/mod_perl.SlackBuild
+++ b/network/mod_perl/mod_perl.SlackBuild
@@ -33,6 +33,14 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i486" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+fi
+
set -e
rm -rf $PKG
@@ -49,7 +57,8 @@ make
make install DESTDIR=$PKG
mkdir -p $PKG/etc/httpd
-cat $CWD/mod_perl.conf > $PKG/etc/httpd/mod_perl.conf.example
+sed "s%@baselibdir@%lib${LIBDIRSUFFIX}%g" $CWD/mod_perl.conf > \
+ $PKG/etc/httpd/mod_perl.conf.example
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a Changes INSTALL LICENSE README* RELEASE STATUS \
@@ -69,7 +78,9 @@ rm -rf $PKG/usr/share
-o -name "*.bs" \
| xargs rm -f
# Remove empty directory
- rmdir --parents $PKG/usr/lib/perl5/5.10.0/i486-linux-thread-multi 2>/dev/null || true
+ eval $(perl '-V:archlib')
+ eval $(perl '-V:vendorlib')
+ rmdir --parents $PKG/$archlib $PKG/$vendorlib 2> /dev/null || true
)
mkdir -p $PKG/install
@@ -77,4 +88,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}