libraries/adodb: Added (PHP database abstraction library)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Niels Horn 2010-09-21 06:13:09 -04:00 committed by Robby Workman
parent c5810e0d21
commit 9f5d613d23
4 changed files with 101 additions and 0 deletions

15
libraries/adodb/README Normal file
View File

@ -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

View File

@ -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}

View File

@ -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"

View File

@ -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: