diff options
Diffstat (limited to 'network/mod_perl/mod_perl.SlackBuild')
-rw-r--r-- | network/mod_perl/mod_perl.SlackBuild | 17 |
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} |