Compare commits
No commits in common. "7adf098a9654a9f1a70f9e75e809fc05602319cd" and "4c4c51db4655ebda88d2bb76a1bb6b14f47963fd" have entirely different histories.
7adf098a96
...
4c4c51db46
3 changed files with 50 additions and 102 deletions
46
.SRCINFO
46
.SRCINFO
|
@ -1,31 +1,27 @@
|
||||||
|
# Generated by mksrcinfo v8
|
||||||
|
# Wed Mar 14 09:58:29 UTC 2018
|
||||||
pkgbase = mozilla-firefox-sync-server
|
pkgbase = mozilla-firefox-sync-server
|
||||||
pkgdesc = Mozilla Sync Server for built-in Firefox Sync
|
pkgdesc = Mozilla Sync Server for built-in Firefox Sync
|
||||||
pkgver = 1.9.1
|
pkgver = 1.7.0
|
||||||
pkgrel = 1
|
pkgrel = 5
|
||||||
url = https://mozilla-services.readthedocs.io/en/latest/howtos/run-sync-1.5.html
|
url = http://docs.services.mozilla.com/howtos/run-sync-1.5.html
|
||||||
install = mozilla-firefox-sync-server.install
|
arch = any
|
||||||
arch = i686
|
license = GPL
|
||||||
arch = x86_64
|
|
||||||
arch = arm
|
|
||||||
arch = armv6h
|
|
||||||
arch = armv7h
|
|
||||||
arch = aarch64
|
|
||||||
license = MPL2
|
|
||||||
depends = python2
|
depends = python2
|
||||||
depends = python2-virtualenv
|
depends = python2-pyramid
|
||||||
optdepends = uwsgi-plugin-python2: Serve the webapp using uwsgi
|
depends = python2-mozsvc
|
||||||
optdepends = mozilla-firefox-account-server: Run your own firefox account server
|
depends = python2-konfig
|
||||||
options = !debug
|
depends = python2-configparser
|
||||||
backup = opt/mozilla-firefox-sync-server/syncserver.ini
|
depends = python2-tokenserver
|
||||||
source = https://github.com/mozilla-services/syncserver/archive/1.9.1.tar.gz
|
depends = python2-simplejson
|
||||||
source = ffsync.service
|
depends = python2-paste-deploy
|
||||||
source = ffsync.tmpfiles
|
depends = python2-syncstorage
|
||||||
sha256sums = dd12e7b4d97052ab5227151886a92ecbc368a987c4ad5fef7a9b759197a86c1f
|
depends = python2-pyramid-hawkauth
|
||||||
sha256sums = 8664ad8361d6751aad47e86900270d2efd8b65d520248cd1c164432baba42212
|
depends = python2-tokenlib
|
||||||
sha256sums = 462bfdccc672339a03622dbe0a76a2df1b4293de8b240e82fe127a6befaa1a89
|
depends = python2-sqlalchemy
|
||||||
sha384sums = 8dfe5784a013c4b8af16bc9af4b1c1c7d36261c62d16e6b5afb986b473195e051f8b1d392db96c562c06095da0596c6f
|
backup = etc/webapps/mozilla-firefox-sync-server/syncserver.ini
|
||||||
sha384sums = a7384b5b55b2377ee4445e45bfd0545435c2a6a19730ff4219340e3c6e8a3b51fcb46e4215093df860f9fa99a0b471ab
|
source = mozilla-firefox-sync-server-1.7.0.tar.gz::https://github.com/mozilla-services/syncserver/archive/v1.7.0.tar.gz
|
||||||
sha384sums = 236b285f7e390d31cd13a0ac78c524acfbc8a7325d7b0b114b39f69a5963535d5f1f73bdef575728b2f6e81860c4ea16
|
sha512sums = c66aed1195138f15729ed7ef3fb31837bd74f751c0df4f93d0d6c3a8b34687d7dc02e201cfb6c218aab1d769698950ea316f688b51d90b87e8c495d573b85cc3
|
||||||
|
|
||||||
pkgname = mozilla-firefox-sync-server
|
pkgname = mozilla-firefox-sync-server
|
||||||
|
|
||||||
|
|
96
PKGBUILD
96
PKGBUILD
|
@ -1,81 +1,35 @@
|
||||||
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
# Maintainer: Jonas Heinrich <onny@project-insanity.org>
|
||||||
# Contributor: Jonas Heinrich <onny@project-insanity.org>
|
# Contributor: Jonas Heinrich <onny@project-insanity.org>
|
||||||
# Contributor: Timothée Ravier <tim@siosm.fr>
|
# Contributor: Timothée Ravier <tim@siosm.fr>
|
||||||
|
|
||||||
pkgname=mozilla-firefox-sync-server
|
pkgname=mozilla-firefox-sync-server
|
||||||
pkgver=1.9.1
|
pkgver=1.7.0
|
||||||
pkgrel=1
|
pkgrel=6
|
||||||
pkgdesc='Mozilla Sync Server for built-in Firefox Sync'
|
pkgdesc="Mozilla Sync Server for built-in Firefox Sync"
|
||||||
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
arch=('any')
|
||||||
url='https://mozilla-services.readthedocs.io/en/latest/howtos/run-sync-1.5.html'
|
url='http://docs.services.mozilla.com/howtos/run-sync-1.5.html'
|
||||||
license=('MPL2')
|
license=('GPL')
|
||||||
depends=('python2' 'python2-virtualenv')
|
depends=('python2' 'python2-pyramid' 'python2-mozsvc' 'python2-konfig' 'python2-configparser' 'python2-tokenserver'
|
||||||
options=(!debug)
|
'python2-simplejson' 'python2-paste-deploy' 'python2-syncstorage' 'python2-pyramid-hawkauth' 'python2-tokenlib' 'python2-sqlalchemy')
|
||||||
install="${pkgname}.install"
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mozilla-services/syncserver/archive/v${pkgver}.tar.gz")
|
||||||
source=("https://github.com/mozilla-services/syncserver/archive/${pkgver}.tar.gz"
|
sha512sums=('c66aed1195138f15729ed7ef3fb31837bd74f751c0df4f93d0d6c3a8b34687d7dc02e201cfb6c218aab1d769698950ea316f688b51d90b87e8c495d573b85cc3')
|
||||||
'ffsync.service'
|
backup=('etc/webapps/mozilla-firefox-sync-server/syncserver.ini')
|
||||||
'ffsync.tmpfiles')
|
install=('mozilla-firefox-sync-server.install')
|
||||||
sha256sums=('dd12e7b4d97052ab5227151886a92ecbc368a987c4ad5fef7a9b759197a86c1f'
|
|
||||||
'8664ad8361d6751aad47e86900270d2efd8b65d520248cd1c164432baba42212'
|
|
||||||
'462bfdccc672339a03622dbe0a76a2df1b4293de8b240e82fe127a6befaa1a89')
|
|
||||||
sha384sums=('8dfe5784a013c4b8af16bc9af4b1c1c7d36261c62d16e6b5afb986b473195e051f8b1d392db96c562c06095da0596c6f'
|
|
||||||
'a7384b5b55b2377ee4445e45bfd0545435c2a6a19730ff4219340e3c6e8a3b51fcb46e4215093df860f9fa99a0b471ab'
|
|
||||||
'236b285f7e390d31cd13a0ac78c524acfbc8a7325d7b0b114b39f69a5963535d5f1f73bdef575728b2f6e81860c4ea16')
|
|
||||||
backup=('opt/mozilla-firefox-sync-server/syncserver.ini')
|
|
||||||
optdepends=('uwsgi-plugin-python2: Serve the webapp using uwsgi'
|
|
||||||
'mozilla-firefox-account-server: Run your own firefox account server')
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "syncserver-${pkgver}"
|
cd "syncserver-${pkgver}"
|
||||||
|
sed -i 's/tmp\/syncserver.db/var\/lib\/mozilla-firefox-sync-server\/syncserver.db/' syncserver.ini
|
||||||
# Change default sqlite database location
|
sed -i 's/^\#sqluri/sqluri/' syncserver.ini
|
||||||
sed -i "s|/tmp/syncserver.db|/var/lib/ffsync/sync_storage.db|g" syncserver.ini
|
|
||||||
sed -i "0,/^\#sqluri/s//sqluri/" syncserver.ini
|
|
||||||
|
|
||||||
# Remove obsolete parameter
|
|
||||||
sed -i "s| --no-site-packages||g" Makefile
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "syncserver-${pkgver}"
|
|
||||||
make build
|
|
||||||
|
|
||||||
# MySQL support (should already be included)
|
|
||||||
#local/bin/pip install PyMySQL
|
|
||||||
|
|
||||||
# PostgreSQL support
|
|
||||||
#local/bin/pip install psycopg2
|
|
||||||
|
|
||||||
# There is no install target in the Makefile, so let's do some cleaning
|
|
||||||
rm -rf .git .gitignore Dockerfile Makefile MANIFEST.in README.rst setup.py \
|
|
||||||
local/bin/pep8 local/bin/build* local/bin/easy_install* local/bin/pip* \
|
|
||||||
local/COMPLETE
|
|
||||||
|
|
||||||
# Remove compiled python files as they may cause issues
|
|
||||||
find . -name '*.pyc' -delete
|
|
||||||
|
|
||||||
# Manually fix install path
|
|
||||||
find . -type f -exec sed -i "s|${srcdir}/syncserver-${pkgver}|/opt/${pkgname}|g" {} \;
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
cd "syncserver-${pkgver}"
|
|
||||||
|
|
||||||
#make test
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "syncserver-${pkgver}"
|
cd "syncserver-${pkgver}"
|
||||||
|
python2 setup.py install --root "${pkgdir}"
|
||||||
# There is no install target in the Makefile, installing manually
|
install -dm 755 "${pkgdir}/usr/share/webapps/mozilla-firefox-sync-server" "${pkgdir}/etc/webapps/mozilla-firefox-sync-server" \
|
||||||
install -dm 755 "${pkgdir}"/opt/${pkgname} "${pkgdir}"/var/lib/ffsync
|
"${pkgdir}/var/lib/mozilla-firefox-sync-server"
|
||||||
cp -a * "${pkgdir}"/opt/${pkgname}
|
cp syncserver.wsgi "${pkgdir}/usr/share/webapps/mozilla-firefox-sync-server/"
|
||||||
|
cp syncserver.ini "${pkgdir}/etc/webapps/mozilla-firefox-sync-server/"
|
||||||
# Manually fix permissions
|
ln -s /etc/webapps/mozilla-firefox-sync-server/syncserver.ini "${pkgdir}/usr/share/webapps/mozilla-firefox-sync-server/"
|
||||||
cd "${pkgdir}"/opt/${pkgname}
|
|
||||||
find . -exec chmod go-w {} \;
|
|
||||||
find . -type f -exec chmod a+r {} \;
|
|
||||||
|
|
||||||
install -Dm 644 "${srcdir}"/ffsync.service "${pkgdir}"/usr/lib/systemd/system/ffsync.service
|
|
||||||
install -Dm 644 "${srcdir}"/ffsync.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/ffsync.conf
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# vim: ft=sh syn=sh ts=2 sw=2 et:
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue