summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorOtto Sabart2015-06-30 09:22:25 +0000
committerOtto Sabart2015-06-30 09:22:25 +0000
commitb6b1994283206aa8313ed0c5405d1d01b555de0f (patch)
tree298302c8c5abba8a702d1e51704bbb1abf06e3c6 /PKGBUILD
downloadaur-b6b1994283206aa8313ed0c5405d1d01b555de0f.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ed4405596b2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Sabart Otto - Seberm <seberm[at]gmail[dot]com>
+
+pkgname=adminer
+pkgver=4.2.1
+pkgrel=1
+pkgdesc="A full-featured MySQL management tool written in PHP"
+arch=('any')
+license=('Apache License, Version 2.0')
+depends=('php')
+conflicts=('adminer-git')
+optdepends=('mysql' 'apache' 'adminer-skins' 'postgresql' 'sqlite3')
+url="http://www.adminer.org"
+install=adminer.install
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.php")
+
+package() {
+ _instdir=$pkgdir/usr/share/webapps/$pkgname
+ mkdir -p ${_instdir} $pkgdir/etc/webapps/$pkgname $pkgdir/etc/httpd/conf/extra
+
+ install -D -m644 $srcdir/${pkgname}-${pkgver}.php $_instdir/index.php
+
+ # It's similar to phpMyAdmin
+ cat >$pkgdir/etc/webapps/$pkgname/apache.example.conf <<EOF
+ Alias /${pkgname} "/usr/share/webapps/${pkgname}"
+ <Directory "/usr/share/webapps/${pkgname}">
+ AllowOverride All
+ Options FollowSymlinks
+ Require all granted
+ php_admin_value open_basedir "/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:/usr/share/pear/"
+ </Directory>
+EOF
+
+ cp $pkgdir/etc/webapps/$pkgname/apache.example.conf $pkgdir/etc/httpd/conf/extra/httpd-${pkgname}.conf
+# echo "Include conf/extra/httpd-${pkgname}.conf" >> $pkgdir/etc/httpd/conf/httpd.conf
+
+}
+
+md5sums=('7b65ca8647349ca14d96735b414e439f')