summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph R. Prostko2015-07-03 21:08:57 -0400
committerJoseph R. Prostko2015-07-03 21:08:57 -0400
commitd223f0090116e9e24d4a707678b37518f728be8f (patch)
tree6a28a759fd8a88bebfa664a4b208dc220a22eab6
downloadaur-d223f0090116e9e24d4a707678b37518f728be8f.tar.gz
Commit concrete5 5.7.4.2 to AUR4
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD30
-rw-r--r--concrete5.install50
3 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fb4aadcfd4e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = concrete5
+ pkgdesc = A PHP-based open source content management system
+ pkgver = 5.7.4.2
+ pkgrel = 1
+ url = http://www.concrete5.org/
+ install = concrete5.install
+ arch = any
+ license = MIT
+ depends = php
+ depends = mysql
+ optdepends = apache: Web server to run concrete5
+ optdepends = nginx: Web server to run concrete5
+ optdepends = cherokee: Web server to run concrete5
+ optdepends = lighttpd: Web server to run concrete5
+ options = !strip
+ source = http://www.concrete5.org/releases/concrete5.7.4.2.zip
+ sha256sums = 22b29f6d7bd6c821777505abe4c84df17312566540dcd91465130ed88de593f1
+
+pkgname = concrete5
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b26f7385511
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Joseph R. Prostko <joe dot prostko at gmail dot com>
+
+pkgname=concrete5
+_pkgname=concrete
+pkgver=5.7.4.2
+pkgrel=1
+pkgdesc="A PHP-based open source content management system"
+arch=('any')
+url="http://www.concrete5.org/"
+license=('MIT')
+depends=('php' 'mysql')
+optdepends=('apache: Web server to run concrete5'
+ 'nginx: Web server to run concrete5'
+ 'cherokee: Web server to run concrete5'
+ 'lighttpd: Web server to run concrete5')
+install="$pkgname.install"
+options=('!strip')
+source=(http://www.concrete5.org/releases/$_pkgname$pkgver.zip)
+sha256sums=('22b29f6d7bd6c821777505abe4c84df17312566540dcd91465130ed88de593f1')
+
+package() {
+ _instdir=$pkgdir/usr/share/webapps/$pkgname
+ install -d ${_instdir}
+ cp -a ${_pkgname}$pkgver/* ${_instdir}
+
+ # Make certain directories writable by the web server
+ chown -R http:http ${_instdir}/packages
+ chown -R http:http ${_instdir}/application/config
+ chown -R http:http ${_instdir}/application/files
+}
diff --git a/concrete5.install b/concrete5.install
new file mode 100644
index 00000000000..3e3b87d291c
--- /dev/null
+++ b/concrete5.install
@@ -0,0 +1,50 @@
+post_install() {
+ echo ''
+ echo 'concrete5 was installed to /usr/share/webapps/concrete5'
+ echo 'Please make sure that the mysqli extension is enabled in /etc/php/php.ini.'
+ echo ''
+}
+
+pre_remove() {
+ if [ -d "/usr/share/webapps/concrete5_backup" ]; then
+ echo ''
+ echo 'There is already a concrete5 backup directory in place.'
+ echo 'It will be replaced in favor of the concrete5 installation which is currently'
+ echo ' being uninstalled.'
+ rm -rf /usr/share/webapps/concrete5_backup
+ fi
+
+ mv /usr/share/webapps/concrete5 /usr/share/webapps/concrete5_backup
+ echo ''
+ echo 'Your concrete5 installation was backed up to /usr/share/webapps/concrete5_backup.'
+ echo 'To permanently remove concrete5, delete that directory and its contents.'
+ echo ''
+}
+
+post_remove() {
+ # Nothing needs to be done, so do a noop, as otherwise will get an error
+ :
+}
+
+pre_upgrade() {
+ oldpkgver=${2%-*}
+
+ # Move the old installation temporarily
+ mv /usr/share/webapps/concrete5 /usr/share/webapps/concrete$oldpkgver
+}
+
+post_upgrade() {
+ newpkgver=${1%-*}
+ oldpkgver=${2%-*}
+
+ # Apply the newest concrete5 update into /usr/share/webapps/concrete5/updates
+ mv /usr/share/webapps/concrete5 /usr/share/webapps/concrete$newpkgver
+ mv /usr/share/webapps/concrete$oldpkgver /usr/share/webapps/concrete5
+ mv /usr/share/webapps/concrete$newpkgver /usr/share/webapps/concrete5/updates
+
+ echo ''
+ echo 'The latest concrete5 update was placed in /usr/share/webapps/concrete5/updates.'
+ echo 'Go to Dashboard -> System & Settings -> Backup & Restore -> Update concrete5'
+ echo ' to finish the update process.'
+ echo ''
+}