diff options
author | M0Rf30 | 2015-06-17 15:24:38 +0200 |
---|---|---|
committer | M0Rf30 | 2015-06-17 15:24:38 +0200 |
commit | 70a3a88e1d418718d502b8740d69da3099f5f9af (patch) | |
tree | e57f9d966b6350484d514bd879b76dcb67f09e3e | |
download | aur-70a3a88e1d418718d502b8740d69da3099f5f9af.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | cake.sh | 9 | ||||
-rwxr-xr-x | httpd-cakephp2.conf | 10 |
4 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b13039ad0785 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = cakephp2 + pkgdesc = The Rapid Development Framework for PHP + pkgver = 2.6.4 + pkgrel = 1 + url = http://cakephp.org/ + arch = any + license = MIT + depends = php + options = !strip + source = cakephp-2.6.4.tar.gz::https://github.com/cakephp/cakephp/tarball/2.6.4 + source = cake.sh + source = httpd-cakephp2.conf + md5sums = f1c60d68442693075474f881baee725c + md5sums = d0bd278b4ad99ff5ffa69161de14da29 + md5sums = 5f3cad61b94b911e697f45a00ac8b0e6 + +pkgname = cakephp2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8ec9ba19a069 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: M0Rf30 + +_pkg=cakephp +pkgname=cakephp2 +pkgver=2.6.4 +pkgrel=1 +pkgdesc='The Rapid Development Framework for PHP' +arch=('any') +url='http://cakephp.org/' +license=('MIT') +depends=('php') +source=("$_pkg-$pkgver.tar.gz::https://github.com/$_pkg/$_pkg/tarball/$pkgver" + 'cake.sh' + 'httpd-cakephp2.conf') +options=('!strip') +webapps=usr/share/webapps + +package() { + cd $srcdir/cakephp-cakephp-* + mkdir -p $pkgdir/$webapps + cp -R $srcdir/cakephp-cakephp-* "$pkgdir/$webapps/cakephp2" + install -D -m 755 "$srcdir/cake.sh" "$pkgdir/usr/bin/cake2" + install -D -m 755 "$srcdir/httpd-cakephp2.conf" "$pkgdir/etc/webapps/cakephp2/httpd-cakephp2.conf" + mkdir -p $pkgdir/var/log/httpd/cakephp2 + +# Fix permissions + chmod 777 -R $pkgdir/$webapps/cakephp2/app/tmp/cache/ + chmod 777 -R $pkgdir/$webapps/cakephp2/lib/Cake/Console/Templates/skel/tmp/ +# Database + mv $pkgdir/$webapps/cakephp2/app/Config/database.php.default $pkgdir/$webapps/cakephp2/app/Config/database.php +} + +md5sums=('f1c60d68442693075474f881baee725c' + 'd0bd278b4ad99ff5ffa69161de14da29' + '5f3cad61b94b911e697f45a00ac8b0e6') diff --git a/cake.sh b/cake.sh new file mode 100644 index 000000000000..bd815a8b9b92 --- /dev/null +++ b/cake.sh @@ -0,0 +1,9 @@ +#!/bin/bash +clear + +LIB="/usr/share/webapps/cakephp2/lib/Cake/Console/" +APP=`pwd` + +exec php -q ${LIB}cake.php -working "${APP}" "$@" + +exit diff --git a/httpd-cakephp2.conf b/httpd-cakephp2.conf new file mode 100755 index 000000000000..f1b80b4cc851 --- /dev/null +++ b/httpd-cakephp2.conf @@ -0,0 +1,10 @@ +Alias /cakephp2 "/usr/share/webapps/cakephp2" + <Directory "/usr/share/webapps/cakephp2"> + AllowOverride All + Options FollowSymlinks + Order allow,deny + Allow from all + php_admin_value open_basedir "/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:/usr/share/pear/" + </Directory> + ErrorLog "/var/log/httpd/cakephp2/error.log" + CustomLog "/var/log/httpd/cakephp2/access.log" combined |