gnome-keyring: fail gracefully if setcap fails, e.g fakeroot case.

This commit is contained in:
Juan RP 2011-10-05 10:51:13 +02:00
parent d59573c970
commit 73f27e281e
2 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,12 @@
case "${ACTION}" in
post)
# Set IPC capability.
# Set IPC capability, exit gracefully if we cannot set the capability
# due to invalid permissions (fakeroot install).
set +e
setcap cap_ipc_lock=ep usr/bin/gnome-keyring-daemon
if [ $? -ne 0 ]; then
echo "ERROR: failed to set ipc_lock capability on gnome-keyring-daemon."
exit 0
fi
;;
esac

View file

@ -1,7 +1,7 @@
# Template file for 'gnome-keyring'
pkgname=gnome-keyring
version=3.2.0
revision=1
revision=2
distfiles="${GNOME_SITE}/$pkgname/3.2/$pkgname-$version.tar.xz"
build_style=gnu_configure
configure_args="--localstatedir=/var --with-pam-dir=/lib/security