1 # Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
2 # http://github.com/fukawi2/aur-packages
7 pkgdesc="web-based bug tracking system written on PHP. Includes fully custom templates, advanced filters, LDAP support, email notifications, subscriptions, reminders, flexible permissions management and graphical project metrics"
9 url="http://code.google.com/p/etraxis/"
11 depends=('php>=5.1' 'php-gd' 'php-xsl')
12 optdepends=('php-pgsql: for postgresql database support' 'php-ldap: for ldap authentication')
13 install="$pkgname.install"
14 backup=("srv/http/$pkgname/engine/config.php")
15 source=("http://$pkgname.googlecode.com/files/$pkgname-$pkgver.zip")
16 md5sums=('5a37762870f73d4b4643580071c3bb5e')
19 msg "Nothing to compile for $pkgname"
23 _INST_DIR="srv/http/$pkgname"
24 _SHARE_DIR="usr/share/$pkgname"
26 # Install webroot files
27 mkdir -p $pkgdir/$_INST_DIR || return 1
28 cp -r $srcdir/$pkgname-$pkgver/src/* $pkgdir/$_INST_DIR || return 1
30 # Install SQL schema files
31 mkdir -p $pkgdir/$_SHARE_DIR || return 1
32 cp -r $srcdir/$pkgname-$pkgver/tools/sql $pkgdir/$_SHARE_DIR/ || return 1
34 # Fix our configuration file
36 -e "s|/usr/local/apache/htdocs/etraxis|/$_INST_DIR|g" \
37 -e "s|/usr/local/etraxis/bins/|/$_INST_DIR/attachments|g" \
38 $pkgdir/$_INST_DIR/engine/config.php || return 1
39 mkdir -p $pkgdir/$_INST_DIR/attachments
41 # Set correct permissions
42 chown -R 33:33 $pkgdir/$_INST_DIR || return 1
43 chmod -R u=rwX,go=rX $pkgdir/$_INST_DIR || return 1
46 # vim:set ts=2 sw=2 et: