From 4c4c51db4655ebda88d2bb76a1bb6b14f47963fd Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 14 Mar 2018 11:25:55 +0100 Subject: [PATCH] added install file --- PKGBUILD | 3 ++- mozilla-firefox-sync-server.install | 10 ++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 0ab61f1..b1845e5 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ pkgname=mozilla-firefox-sync-server pkgver=1.7.0 -pkgrel=5 +pkgrel=6 pkgdesc="Mozilla Sync Server for built-in Firefox Sync" arch=('any') 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") sha512sums=('c66aed1195138f15729ed7ef3fb31837bd74f751c0df4f93d0d6c3a8b34687d7dc02e201cfb6c218aab1d769698950ea316f688b51d90b87e8c495d573b85cc3') backup=('etc/webapps/mozilla-firefox-sync-server/syncserver.ini') +install=('mozilla-firefox-sync-server.install') prepare() { cd "syncserver-${pkgver}" diff --git a/mozilla-firefox-sync-server.install b/mozilla-firefox-sync-server.install index 03e415d..2a96a66 100644 --- a/mozilla-firefox-sync-server.install +++ b/mozilla-firefox-sync-server.install @@ -1,16 +1,14 @@ post_install() { getent group ffsync &>/dev/null || groupadd -r ffsync >/dev/null 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 - systemd-tmpfiles --create ffsync.conf + chown -R ffsync:ffsync /var/lib/mozilla-firefox-sync-server /etc/webapps/mozilla-firefox-sync-server + #systemd-tmpfiles --create ffsync.conf } post_update() { - chown -R ffsync:ffsync /var/lib/ffsync - chown -R ffsync:http /run/ffsync - + chown -R ffsync:ffsync /var/lib/mozilla-firefox-sync-server /etc/webapps/mozilla-firefox-sync-server echo ">> Documentation: https://wiki.archlinux.org/index.php/Mozilla_Firefox_Sync_Server" }