aboutsummaryrefslogtreecommitdiff
path: root/libraries/adodb/adodb.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-09-21 06:13:09 -0400
committerRobby Workman <rworkman@slackbuilds.org>2010-09-21 22:09:44 -0500
commit9f5d613d23d0ccc723ab7960bf0b885ef544ccca (patch)
treefbf51cc8353854174f56929c26a1564772c43fde /libraries/adodb/adodb.SlackBuild
parentc5810e0d216ea12fe33fa5945b9bc0080366e6de (diff)
libraries/adodb: Added (PHP database abstraction library)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/adodb/adodb.SlackBuild')
-rw-r--r--libraries/adodb/adodb.SlackBuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/libraries/adodb/adodb.SlackBuild b/libraries/adodb/adodb.SlackBuild
new file mode 100644
index 0000000000000..e7f155c852061
--- /dev/null
+++ b/libraries/adodb/adodb.SlackBuild
@@ -0,0 +1,57 @@
+#!/bin/sh
+
+# Slackware build script for adodb:
+# PHP database abstraction library
+
+# Written by Niels Horn <niels.horn@gmail.com>
+# revision date 2010/09/19
+
+PRGNAM=adodb
+VERSION=${VERSION:-5.11}
+ARCH=noarch
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+SRCMAJOR=$(echo $VERSION | cut -d. -f1)
+SRCMINOR=$(echo $VERSION | cut -d. -f2)
+SRCVERSION=${SRCMAJOR}${SRCMINOR}
+
+DOCROOT=${DOCROOT:-/var/www/htdocs}
+PHPUSER=${PHPUSER:-root}
+PHPGROUP=${PHPGROUP:-apache}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $TMP/${PRGNAM}${SRCMAJOR} $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+tar xvf $CWD/${PRGNAM}${SRCVERSION}.tgz
+cd ${PRGNAM}${SRCMAJOR}
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+# "Install" to $DOCROOT/adodb
+mkdir -p $PKG/$DOCROOT/$PRGNAM
+cp -a \
+ *.php *.dtd \
+ contrib datadict drivers lang perf session tests xsl \
+ $PKG/$DOCROOT/$PRGNAM/
+chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/$PRGNAM
+
+# Copy docs
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ license.txt readme.txt docs/* pear \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}