gnome-keyring: fail gracefully if setcap fails, e.g fakeroot case.
This commit is contained in:
parent
d59573c970
commit
73f27e281e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue