2018-03-11 21:39:07 +01:00
|
|
|
# Maintainer: Jonas Heinrich <onny@project-insanity.org>
|
|
|
|
# Contributor: Jonas Heinrich <onny@project-insanity.org>
|
2018-03-11 11:14:36 +01:00
|
|
|
# Contributor: Timothée Ravier <tim@siosm.fr>
|
|
|
|
|
|
|
|
pkgname=mozilla-firefox-sync-server
|
2018-06-08 09:29:48 +02:00
|
|
|
pkgver=1.8.0
|
|
|
|
pkgrel=1
|
2018-03-11 11:14:36 +01:00
|
|
|
pkgdesc="Mozilla Sync Server for built-in Firefox Sync"
|
|
|
|
arch=('any')
|
|
|
|
url='http://docs.services.mozilla.com/howtos/run-sync-1.5.html'
|
|
|
|
license=('GPL')
|
2018-03-11 21:39:07 +01:00
|
|
|
depends=('python2' 'python2-pyramid' 'python2-mozsvc' 'python2-konfig' 'python2-configparser' 'python2-tokenserver'
|
2018-03-11 21:47:10 +01:00
|
|
|
'python2-simplejson' 'python2-paste-deploy' 'python2-syncstorage' 'python2-pyramid-hawkauth' 'python2-tokenlib' 'python2-sqlalchemy')
|
2018-06-08 09:29:48 +02:00
|
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mozilla-services/syncserver/archive/${pkgver}.tar.gz")
|
|
|
|
sha512sums=('73f7e32e900fac5e8385b2b7b521aed964ec85879283733daf84a8afe194e1775b654074ae19e7bf574a2e41a01a821104a10f4c4794eecacffb7a903814e093')
|
2018-03-14 10:58:43 +01:00
|
|
|
backup=('etc/webapps/mozilla-firefox-sync-server/syncserver.ini')
|
2018-03-14 11:27:44 +01:00
|
|
|
install='mozilla-firefox-sync-server.install'
|
2018-06-08 09:29:48 +02:00
|
|
|
optdepends=('uwsgi-plugin-python2: Serve the webapp using uwsgi'
|
|
|
|
'mozilla-firefox-account-server: Run your own firefox account server')
|
2018-03-14 10:58:43 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "syncserver-${pkgver}"
|
|
|
|
sed -i 's/tmp\/syncserver.db/var\/lib\/mozilla-firefox-sync-server\/syncserver.db/' syncserver.ini
|
|
|
|
sed -i 's/^\#sqluri/sqluri/' syncserver.ini
|
|
|
|
}
|
2018-03-11 11:14:36 +01:00
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "syncserver-${pkgver}"
|
2018-03-11 21:39:07 +01:00
|
|
|
python2 setup.py install --root "${pkgdir}"
|
2018-03-14 10:58:43 +01:00
|
|
|
install -dm 755 "${pkgdir}/usr/share/webapps/mozilla-firefox-sync-server" "${pkgdir}/etc/webapps/mozilla-firefox-sync-server" \
|
|
|
|
"${pkgdir}/var/lib/mozilla-firefox-sync-server"
|
|
|
|
cp syncserver.wsgi "${pkgdir}/usr/share/webapps/mozilla-firefox-sync-server/"
|
|
|
|
cp syncserver.ini "${pkgdir}/etc/webapps/mozilla-firefox-sync-server/"
|
|
|
|
ln -s /etc/webapps/mozilla-firefox-sync-server/syncserver.ini "${pkgdir}/usr/share/webapps/mozilla-firefox-sync-server/"
|
2018-03-11 11:14:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim: ft=sh syn=sh ts=2 sw=2 et:
|