change default sqlite db path

This commit is contained in:
Jonas Heinrich 2018-03-14 10:58:43 +01:00
parent c45da9cc9b
commit 7e51c902ba
2 changed files with 16 additions and 7 deletions

View file

@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
# Sun Mar 11 21:23:15 UTC 2018
# Wed Mar 14 09:58:29 UTC 2018
pkgbase = mozilla-firefox-sync-server
pkgdesc = Mozilla Sync Server for built-in Firefox Sync
pkgver = 1.7.0
pkgrel = 4
pkgrel = 5
url = http://docs.services.mozilla.com/howtos/run-sync-1.5.html
arch = any
license = GPL
@ -19,7 +19,7 @@ pkgbase = mozilla-firefox-sync-server
depends = python2-pyramid-hawkauth
depends = python2-tokenlib
depends = python2-sqlalchemy
backup = usr/share/webapps/mozilla-firefox-sync-server/syncserver.ini
backup = etc/webapps/mozilla-firefox-sync-server/syncserver.ini
source = mozilla-firefox-sync-server-1.7.0.tar.gz::https://github.com/mozilla-services/syncserver/archive/v1.7.0.tar.gz
sha512sums = c66aed1195138f15729ed7ef3fb31837bd74f751c0df4f93d0d6c3a8b34687d7dc02e201cfb6c218aab1d769698950ea316f688b51d90b87e8c495d573b85cc3

View file

@ -4,7 +4,7 @@
pkgname=mozilla-firefox-sync-server
pkgver=1.7.0
pkgrel=4
pkgrel=5
pkgdesc="Mozilla Sync Server for built-in Firefox Sync"
arch=('any')
url='http://docs.services.mozilla.com/howtos/run-sync-1.5.html'
@ -13,13 +13,22 @@ depends=('python2' 'python2-pyramid' 'python2-mozsvc' 'python2-konfig' 'python2-
'python2-simplejson' 'python2-paste-deploy' 'python2-syncstorage' 'python2-pyramid-hawkauth' 'python2-tokenlib' 'python2-sqlalchemy')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mozilla-services/syncserver/archive/v${pkgver}.tar.gz")
sha512sums=('c66aed1195138f15729ed7ef3fb31837bd74f751c0df4f93d0d6c3a8b34687d7dc02e201cfb6c218aab1d769698950ea316f688b51d90b87e8c495d573b85cc3')
backup=('usr/share/webapps/mozilla-firefox-sync-server/syncserver.ini')
backup=('etc/webapps/mozilla-firefox-sync-server/syncserver.ini')
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
}
package() {
cd "syncserver-${pkgver}"
python2 setup.py install --root "${pkgdir}"
install -dm 755 "${pkgdir}/usr/share/webapps/mozilla-firefox-sync-server"
cp syncserver.ini syncserver.wsgi "${pkgdir}/usr/share/webapps/mozilla-firefox-sync-server/"
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/"
}
# vim: ft=sh syn=sh ts=2 sw=2 et: