Date: Friday, February 27, 2015 @ 13:40:15 Author: heftig Revision: 232068
1.2.9 Modified: colord/trunk/PKGBUILD colord/trunk/colord.install ----------------+ PKGBUILD | 4 ++-- colord.install | 16 +++++++--------- 2 files changed, 9 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-02-27 12:30:20 UTC (rev 232067) +++ PKGBUILD 2015-02-27 12:40:15 UTC (rev 232068) @@ -3,7 +3,7 @@ # Contributor: Ionut Biru <[email protected]> pkgname=colord -pkgver=1.2.8 +pkgver=1.2.9 pkgrel=1 pkgdesc="System daemon for managing color devices" arch=(i686 x86_64) @@ -17,7 +17,7 @@ replaces=('shared-color-profiles') install=colord.install source=($url/releases/$pkgname-$pkgver.tar.xz{,.asc}) -sha1sums=('e5c2a3432896cac180b089291c0e38bd809328cf' +sha1sums=('1b6319812b12ab7f906983959bbaaf2e5b78bdb7' 'SKIP') validpgpkeys=('163EB50119225DB3DF8F49EA17ACBA8DFA970E17') Modified: colord.install =================================================================== --- colord.install 2015-02-27 12:30:20 UTC (rev 232067) +++ colord.install 2015-02-27 12:40:15 UTC (rev 232068) @@ -1,17 +1,15 @@ post_install() { - glib-compile-schemas /usr/share/glib-2.0/schemas - getent group colord >/dev/null || groupadd -g 124 colord - getent passwd colord >/dev/null || useradd -d /var/lib/colord -u 124 -g colord -s /bin/false colord - chown colord:colord /var/lib/colord - chown colord:colord /var/lib/colord/*.db 2>/dev/null || return 0 + glib-compile-schemas /usr/share/glib-2.0/schemas + if ! getent passwd colord >/dev/null; then + groupadd -g 124 colord + useradd -d /var/lib/colord -u 124 -g colord -s /bin/false colord + fi } post_upgrade() { - post_install + glib-compile-schemas /usr/share/glib-2.0/schemas } post_remove() { - glib-compile-schemas /usr/share/glib-2.0/schemas - getent passwd colord >/dev/null && userdel colord - getent group colord >/dev/null && groupdel colord + glib-compile-schemas /usr/share/glib-2.0/schemas }
