gnome-keyring: fail gracefully if setcap fails, e.g fakeroot case.
This commit is contained in:
parent
d59573c970
commit
73f27e281e
2 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,12 @@
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
post)
|
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
|
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
|
esac
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'gnome-keyring'
|
# Template file for 'gnome-keyring'
|
||||||
pkgname=gnome-keyring
|
pkgname=gnome-keyring
|
||||||
version=3.2.0
|
version=3.2.0
|
||||||
revision=1
|
revision=2
|
||||||
distfiles="${GNOME_SITE}/$pkgname/3.2/$pkgname-$version.tar.xz"
|
distfiles="${GNOME_SITE}/$pkgname/3.2/$pkgname-$version.tar.xz"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
configure_args="--localstatedir=/var --with-pam-dir=/lib/security
|
configure_args="--localstatedir=/var --with-pam-dir=/lib/security
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue