added install file

This commit is contained in:
Jonas Heinrich 2018-03-14 11:25:55 +01:00
parent 7e51c902ba
commit 4c4c51db46
2 changed files with 6 additions and 7 deletions

View file

@ -4,7 +4,7 @@
pkgname=mozilla-firefox-sync-server pkgname=mozilla-firefox-sync-server
pkgver=1.7.0 pkgver=1.7.0
pkgrel=5 pkgrel=6
pkgdesc="Mozilla Sync Server for built-in Firefox Sync" pkgdesc="Mozilla Sync Server for built-in Firefox Sync"
arch=('any') arch=('any')
url='http://docs.services.mozilla.com/howtos/run-sync-1.5.html' url='http://docs.services.mozilla.com/howtos/run-sync-1.5.html'
@ -14,6 +14,7 @@ depends=('python2' 'python2-pyramid' 'python2-mozsvc' 'python2-konfig' 'python2-
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mozilla-services/syncserver/archive/v${pkgver}.tar.gz") source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mozilla-services/syncserver/archive/v${pkgver}.tar.gz")
sha512sums=('c66aed1195138f15729ed7ef3fb31837bd74f751c0df4f93d0d6c3a8b34687d7dc02e201cfb6c218aab1d769698950ea316f688b51d90b87e8c495d573b85cc3') sha512sums=('c66aed1195138f15729ed7ef3fb31837bd74f751c0df4f93d0d6c3a8b34687d7dc02e201cfb6c218aab1d769698950ea316f688b51d90b87e8c495d573b85cc3')
backup=('etc/webapps/mozilla-firefox-sync-server/syncserver.ini') backup=('etc/webapps/mozilla-firefox-sync-server/syncserver.ini')
install=('mozilla-firefox-sync-server.install')
prepare() { prepare() {
cd "syncserver-${pkgver}" cd "syncserver-${pkgver}"

View file

@ -1,16 +1,14 @@
post_install() { post_install() {
getent group ffsync &>/dev/null || groupadd -r ffsync >/dev/null getent group ffsync &>/dev/null || groupadd -r ffsync >/dev/null
getent passwd ffsync &>/dev/null || useradd -r -s /usr/bin/false \ getent passwd ffsync &>/dev/null || useradd -r -s /usr/bin/false \
-g ffsync -G ffsync,http -d /var/lib/ffsync ffsync >/dev/null -g ffsync -G ffsync,http -d /var/lib/mozilla-firefox-sync-server ffsync >/dev/null
chown -R ffsync:ffsync /var/lib/ffsync chown -R ffsync:ffsync /var/lib/mozilla-firefox-sync-server /etc/webapps/mozilla-firefox-sync-server
systemd-tmpfiles --create ffsync.conf #systemd-tmpfiles --create ffsync.conf
} }
post_update() { post_update() {
chown -R ffsync:ffsync /var/lib/ffsync chown -R ffsync:ffsync /var/lib/mozilla-firefox-sync-server /etc/webapps/mozilla-firefox-sync-server
chown -R ffsync:http /run/ffsync
echo ">> Documentation: https://wiki.archlinux.org/index.php/Mozilla_Firefox_Sync_Server" echo ">> Documentation: https://wiki.archlinux.org/index.php/Mozilla_Firefox_Sync_Server"
} }