Move to virtualenv environment

Refactored and reformatted entire PKGBUILD
Added support for ARM
Fix several build errors with patches to the Makefile
Fix package using wrong license (The project is using MPL 2.0)
This commit is contained in:
Manuel 2020-06-02 04:33:17 +02:00
parent b97f0c9f22
commit c24d2425eb
3 changed files with 101 additions and 46 deletions

View file

@ -1,12 +1,16 @@
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/mozilla-firefox-sync-server ffsync >/dev/null
chown -R ffsync:ffsync /var/lib/mozilla-firefox-sync-server /etc/webapps/mozilla-firefox-sync-server
-g ffsync -G ffsync,http -d /var/lib/ffsync ffsync >/dev/null
chown -R ffsync:ffsync /var/lib/ffsync
systemd-tmpfiles --create ffsync.conf
}
post_update() {
chown -R ffsync:ffsync /var/lib/mozilla-firefox-sync-server /etc/webapps/mozilla-firefox-sync-server
chown -R ffsync:ffsync /var/lib/ffsync
chown -R ffsync:http /run/ffsync
echo ">> Documentation: https://wiki.archlinux.org/index.php/Mozilla_Firefox_Sync_Server"
}