Minor PKGBUILD changes
Added optional dependencies as well as provides/conflicts Updated description Changed sqluri not being commented out by default Minor formatting changes
This commit is contained in:
parent
6e0a7bcdd0
commit
839b9c0eeb
2 changed files with 20 additions and 15 deletions
8
.SRCINFO
8
.SRCINFO
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = mozilla-firefox-sync-server-git
|
pkgbase = mozilla-firefox-sync-server-git
|
||||||
pkgdesc = Mozilla Sync Server for built-in Firefox Sync - 1.5+ version for Firefox 29+
|
pkgdesc = Mozilla Sync Server for built-in Firefox Sync
|
||||||
pkgver = 1.8.0.r67.g516807e
|
pkgver = 1.8.0.r67.g516807e
|
||||||
pkgrel = 3
|
pkgrel = 4
|
||||||
url = http://docs.services.mozilla.com/howtos/run-sync-1.5.html
|
url = http://docs.services.mozilla.com/howtos/run-sync-1.5.html
|
||||||
install = mozilla-firefox-sync-server-git.install
|
install = mozilla-firefox-sync-server-git.install
|
||||||
arch = i686
|
arch = i686
|
||||||
|
@ -14,6 +14,10 @@ pkgbase = mozilla-firefox-sync-server-git
|
||||||
makedepends = git
|
makedepends = git
|
||||||
depends = python2
|
depends = python2
|
||||||
depends = python2-virtualenv
|
depends = python2-virtualenv
|
||||||
|
optdepends = uwsgi-plugin-python2: Serve the webapp using uwsgi
|
||||||
|
optdepends = mozilla-firefox-account-server: Run your own firefox account server
|
||||||
|
provides = mozilla-firefox-sync-server
|
||||||
|
conflicts = mozilla-firefox-sync-server
|
||||||
conflicts = mozilla-firefox-sync-server-hg
|
conflicts = mozilla-firefox-sync-server-hg
|
||||||
options = !debug
|
options = !debug
|
||||||
backup = opt/mozilla-firefox-sync-server/syncserver.ini
|
backup = opt/mozilla-firefox-sync-server/syncserver.ini
|
||||||
|
|
25
PKGBUILD
25
PKGBUILD
|
@ -3,16 +3,17 @@
|
||||||
|
|
||||||
pkgname=mozilla-firefox-sync-server-git
|
pkgname=mozilla-firefox-sync-server-git
|
||||||
pkgver=1.8.0.r67.g516807e
|
pkgver=1.8.0.r67.g516807e
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Mozilla Sync Server for built-in Firefox Sync - 1.5+ version for Firefox 29+"
|
pkgdesc='Mozilla Sync Server for built-in Firefox Sync'
|
||||||
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
||||||
url='http://docs.services.mozilla.com/howtos/run-sync-1.5.html'
|
url='http://docs.services.mozilla.com/howtos/run-sync-1.5.html'
|
||||||
license=('MPL2')
|
license=('MPL2')
|
||||||
depends=('python2' 'python2-virtualenv')
|
depends=('python2' 'python2-virtualenv')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
options=(!debug)
|
options=(!debug)
|
||||||
conflicts=('mozilla-firefox-sync-server-hg')
|
conflicts=('mozilla-firefox-sync-server' 'mozilla-firefox-sync-server-hg')
|
||||||
install=${pkgname}.install
|
provides=('mozilla-firefox-sync-server')
|
||||||
|
install="${pkgname}.install"
|
||||||
source=("${pkgname}::git+https://github.com/mozilla-services/syncserver"
|
source=("${pkgname}::git+https://github.com/mozilla-services/syncserver"
|
||||||
'ffsync.service'
|
'ffsync.service'
|
||||||
'ffsync.tmpfiles')
|
'ffsync.tmpfiles')
|
||||||
|
@ -23,29 +24,29 @@ sha384sums=('SKIP'
|
||||||
'a7384b5b55b2377ee4445e45bfd0545435c2a6a19730ff4219340e3c6e8a3b51fcb46e4215093df860f9fa99a0b471ab'
|
'a7384b5b55b2377ee4445e45bfd0545435c2a6a19730ff4219340e3c6e8a3b51fcb46e4215093df860f9fa99a0b471ab'
|
||||||
'236b285f7e390d31cd13a0ac78c524acfbc8a7325d7b0b114b39f69a5963535d5f1f73bdef575728b2f6e81860c4ea16')
|
'236b285f7e390d31cd13a0ac78c524acfbc8a7325d7b0b114b39f69a5963535d5f1f73bdef575728b2f6e81860c4ea16')
|
||||||
backup=('opt/mozilla-firefox-sync-server/syncserver.ini')
|
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')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd ${pkgname}
|
cd "${pkgname}"
|
||||||
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd ${pkgname}
|
cd "${pkgname}"
|
||||||
|
|
||||||
# Change default sqlite database location
|
# Change default sqlite database location
|
||||||
sed -i "s|/tmp/syncserver.db|/var/lib/ffsync/sync_storage.db|g" syncserver.ini
|
sed -i "s|/tmp/syncserver.db|/var/lib/ffsync/sync_storage.db|g" syncserver.ini
|
||||||
|
sed -i "s|^\#sqluri|sqluri|" syncserver.ini
|
||||||
|
|
||||||
# Remove obsolete parameter
|
# Remove obsolete parameter
|
||||||
sed -i "s| --no-site-packages||g" Makefile
|
sed -i "s| --no-site-packages||g" Makefile
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname}
|
cd "${pkgname}"
|
||||||
make build
|
make build
|
||||||
|
|
||||||
# SQLite support
|
|
||||||
#local/bin/pip install pysqlite2
|
|
||||||
|
|
||||||
# MySQL support (should already be included)
|
# MySQL support (should already be included)
|
||||||
#local/bin/pip install PyMySQL
|
#local/bin/pip install PyMySQL
|
||||||
|
|
||||||
|
@ -65,13 +66,13 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd ${pkgname}
|
cd "${pkgname}"
|
||||||
|
|
||||||
#make test
|
#make test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd ${pkgname}
|
cd "${pkgname}"
|
||||||
|
|
||||||
# There is no install target in the Makefile, installing manually
|
# There is no install target in the Makefile, installing manually
|
||||||
install -dm 755 "${pkgdir}"/opt/${pkgname/-git} "${pkgdir}"/var/lib/ffsync
|
install -dm 755 "${pkgdir}"/opt/${pkgname/-git} "${pkgdir}"/var/lib/ffsync
|
||||||
|
|
Loading…
Reference in a new issue