diff options
author | Niels Horn <niels.horn@gmail.com> | 2010-09-21 06:13:09 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-09-21 22:09:44 -0500 |
commit | 9f5d613d23d0ccc723ab7960bf0b885ef544ccca (patch) | |
tree | fbf51cc8353854174f56929c26a1564772c43fde /libraries | |
parent | c5810e0d216ea12fe33fa5945b9bc0080366e6de (diff) | |
download | slackbuilds-9f5d613d23d0ccc723ab7960bf0b885ef544ccca.tar.gz |
libraries/adodb: Added (PHP database abstraction library)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/adodb/README | 15 | ||||
-rw-r--r-- | libraries/adodb/adodb.SlackBuild | 57 | ||||
-rw-r--r-- | libraries/adodb/adodb.info | 10 | ||||
-rw-r--r-- | libraries/adodb/slack-desc | 19 |
4 files changed, 101 insertions, 0 deletions
diff --git a/libraries/adodb/README b/libraries/adodb/README new file mode 100644 index 0000000000..25862e14f5 --- /dev/null +++ b/libraries/adodb/README @@ -0,0 +1,15 @@ +ADOdb is a database abstraction library for PHP. It supports MySQL, +PostgreSQL, Interbase, Firebird, Informix, Oracle, MS SQL, Foxpro, Access, +ADO, Sybase, FrontBase, DB2, SAP DB, SQLite, Netezza, LDAP, and generic ODBC, +ODBTP. + +This SlackBuild uses the following defaults: +* DOCROOT=/var/www/htdocs +* PHPUSER=root +* PHPGROUP=apache + +Change these at build time if preferred: + + # DOCROOT=/your/preferred/directory \ + PHPUSER=youruser PHPGROUP=yourgroup \ + ./adodb.SlackBuild diff --git a/libraries/adodb/adodb.SlackBuild b/libraries/adodb/adodb.SlackBuild new file mode 100644 index 0000000000..e7f155c852 --- /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} diff --git a/libraries/adodb/adodb.info b/libraries/adodb/adodb.info new file mode 100644 index 0000000000..a32cdca76e --- /dev/null +++ b/libraries/adodb/adodb.info @@ -0,0 +1,10 @@ +PRGNAM="adodb" +VERSION="5.11" +HOMEPAGE="http://adodb.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/adodb/adodb511.tgz" +MD5SUM="cacb00b066fee3c2dbf4bdc09e20c503" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Niels Horn" +EMAIL="niels.horn@gmail.com" +APPROVED="dsomero" diff --git a/libraries/adodb/slack-desc b/libraries/adodb/slack-desc new file mode 100644 index 0000000000..4abf805bfe --- /dev/null +++ b/libraries/adodb/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +adodb: adodb (PHP database abstraction library) +adodb: +adodb: ADOdb is a database abstraction library for PHP. It supports MySQL, +adodb: PostgreSQL, Interbase, Firebird, Informix, Oracle, MS SQL, Foxpro, +adodb: Access, ADO, Sybase, FrontBase, DB2, SAP DB, SQLite, Netezza, LDAP, +adodb: and generic ODBC, ODBTP. +adodb: +adodb: Homepage: http://adodb.sourceforge.net/ +adodb: +adodb: +adodb: |