summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD64
1 files changed, 51 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 44cad380352..05f284cad09 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,63 @@
# Maintainer: James An <james@jamesan.ca>
pkgname=aegir
-pkgver=0.1
+pkgver=7.x_3.0_alpha2
pkgrel=1
-pkgdesc="Aegir systemd target for a dedicated Aegir VPS."
+pkgdesc="Configuration for a dedicated Aegir server."
arch=('any')
url='http://aegirproject.org'
license=('GPL')
-depends=('systemd' 'aegir-hostmaster')
-source=(
- aegir.target
- stop-when-unneeded.conf
+depends=(
+ 'aegir-provision'
+ 'aegir-hostmaster'
+ 'cron'
+ 'nginx'
+ 'php-fpm'
+ 'php-gd'
+ 'rsync'
+ 'mariadb'
+ 'sudo'
+ 'smtp-forwarder'
+ 'unzip'
)
-md5sums=(
- 80773e4278e09b14cc6843e346540a9d
- 7e34786351f538d2db0bd2d3e64db43f
+options=(emptydirs)
+install=$pkgname.install
+source=(
+ 'aegir.target'
+ 'php.ini'
+ 'nginx.conf'
+ 'nginx.svc.conf'
+ 'service'
+ 'sudoers'
)
+md5sums=('80773e4278e09b14cc6843e346540a9d'
+ '6c534cc2a9bea282b9895f099c902ca2'
+ '7edbcc6b449a2f09ed93f88b77f300a5'
+ '75535f9870f06c540f513262a9b7b1ab'
+ '4889b3de48732ec149a71aeb72039455'
+ '1736705ac5a1c2982ce5b4eee09b0831')
package() {
- install -Dm755 aegir.target "${pkgdir}/usr/lib/systemd/system/aegir.target"
- for service in aegir mysqld nginx php-fpm; do
- install -Dm755 stop-when-unneeded.conf "${pkgdir}/usr/lib/systemd/system/${service}.service.d/stop-when-unneeded.conf"
- done
+ msg2 'Adding config files'
+ install -dm750 "$pkgdir/etc/sudoers.d"
+ install -Dm440 sudoers "$pkgdir/etc/sudoers.d/$pkgname"
+ install -Dm644 nginx.conf "$pkgdir/etc/nginx/$pkgname.conf"
+ install -Dm644 php.ini "$pkgdir/etc/php/conf.d/$pkgname.ini"
+
+ msg2 'Adding systemd files'
+ install -Dm644 nginx.svc.conf "$pkgdir/usr/lib/systemd/system/nginx.service.d/$pkgname.conf"
+ install -Dm644 service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+
+ msg2 'Creating aegir directory structure'
+ mkdir -pm700 "$pkgdir/var/lib/aegir/config/server_master/nginx/"{platform,post,pre,subdir,platform,vhost}".d"
+ mkdir -pm755 "$pkgdir/var/lib/aegir/"{backups,clients,config{,/{includes,self,server_localhost,server_master{,/nginx}}}}
+ mkdir -pm755 "$pkgdir/var/lib/aegir/"{.drush/cache,platforms}
+ ln -sr server_master/nginx.conf "$pkgdir/var/lib/aegir/config/nginx.conf"
+ ln -sr nginx_vhost_common.conf "$pkgdir/var/lib/aegir/config/includes/nginx_advanced_include.conf"
+ ln -sr nginx_vhost_common.conf "$pkgdir/var/lib/aegir/config/includes/nginx_simple_include.conf"
+
+ install -Dm644 <( ) "$pkgdir/var/spool/cron/http"
+ install -Dm644 aegir.target "$pkgdir/usr/lib/systemd/system/aegir.target"
+
+ chown -R http:http "$pkgdir/var/lib/$pkgname" "$pkgdir/var/spool/cron/http"
}