summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/sphinx/PKGBUILD6
-rw-r--r--pcr/sphinx/sphinx.install10
2 files changed, 11 insertions, 5 deletions
diff --git a/pcr/sphinx/PKGBUILD b/pcr/sphinx/PKGBUILD
index 96f149275..a2e2e58b2 100644
--- a/pcr/sphinx/PKGBUILD
+++ b/pcr/sphinx/PKGBUILD
@@ -8,8 +8,8 @@
# Contributor (Arch): Florijan Hamzic <florijanh@gmail.com>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname='sphinx'
-pkgver=2.2.9
-pkgrel=1
+pkgver=2.2.10
+pkgrel=2
pkgdesc='Free open-source SQL full-text search engine.'
arch=('i686' 'x86_64')
url='http://www.sphinxsearch.com/'
@@ -51,7 +51,7 @@ package() {
install -Dm644 api/sphinxapi.py "${pkgdir}/usr/share/sphinx/lib/sphinxapi.py"
install -Dm644 "${srcdir}/sphinx.tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/sphinx.conf"
}
-md5sums=('1fcc3d180c0559bdeb93602ef248caf4'
+md5sums=('dda52b24d8348fc09e26d8a649a231d2'
'48e3e1857919d26d5104a48caffb531b'
'faaa8310af97ff1dbdaf08612e442020'
'fe06a8aff0520a6f75596ee43d2e5935'
diff --git a/pcr/sphinx/sphinx.install b/pcr/sphinx/sphinx.install
index bb4d80f4a..60001f6c9 100644
--- a/pcr/sphinx/sphinx.install
+++ b/pcr/sphinx/sphinx.install
@@ -1,9 +1,15 @@
post_install() {
- groupadd sphinx
- useradd -d /var/lib/sphinx -g sphinx sphinx
+ groupadd sphinx &>/dev/null
+ useradd -g sphinx -d /var/lib/sphinx -s /bin/false sphinx &>/dev/null
chown -R sphinx:sphinx /var/lib/sphinx
}
+post_upgrade(){
+ getent group sphinx >/dev/null 2>&1 || groupadd sphinx &>/dev/null
+ getent passwd sphinx >/dev/null 2>&1 || useradd -g sphinx -d /var/lib/sphinx \
+ -s /bin/false sphinx &>/dev/null
+}
+
## arg 1: the old package version
post_remove() {
userdel sphinx