Set CAP_WAKE_ALARM capability for powerdevil in postinst.
powerdevil needs this since version 5.20 to wake system up by schedule,
which can be used for example by an alarm application or a push notification
helper.
Alexander Volkov
3 years ago
3 | 3 |
* New upstream release (5.20.3).
|
4 | 4 |
* Update build-deps with the info from cmake.
|
5 | 5 |
* Update list of installed files.
|
|
6 |
|
|
7 |
[ Alexander Volkov ]
|
|
8 |
* Set CAP_WAKE_ALARM capability for powerdevil in postinst.
|
6 | 9 |
|
7 | 10 |
-- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Tue, 17 Nov 2020 10:43:46 +0900
|
8 | 11 |
|
69 | 69 |
Package: powerdevil
|
70 | 70 |
Architecture: any
|
71 | 71 |
Depends: powerdevil-data (= ${source:Version}),
|
|
72 |
libcap2-bin [linux-any],
|
72 | 73 |
${misc:Depends},
|
73 | 74 |
${shlibs:Depends},
|
74 | 75 |
Description: Global power saver settings.
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
set -e
|
|
3 |
|
|
4 |
if [ "$1" = configure ]; then
|
|
5 |
# Set the capabilities
|
|
6 |
if command -v setcap > /dev/null && \
|
|
7 |
setcap "CAP_WAKE_ALARM=+ep" \
|
|
8 |
"/usr/lib/#DEB_HOST_MULTIARCH#/libexec/org_kde_powerdevil"; then
|
|
9 |
echo "Sucessfully set capabilities for powerdevil"
|
|
10 |
else
|
|
11 |
echo "Failed to set capabilities for powerdevil" >&2
|
|
12 |
fi
|
|
13 |
fi
|
|
14 |
|
|
15 |
#DEBHELPER#
|
|
16 |
|
|
17 |
exit 0
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
|
2 | 2 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
3 |
|
|
4 |
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
3 | 5 |
|
4 | 6 |
libpkgs_gen_strict_local_shlibs = $(libpkgs_all_packages)
|
5 | 7 |
include /usr/share/pkg-kde-tools/qt-kde-team/2/library-packages.mk
|
|
9 | 11 |
|
10 | 12 |
override_dh_gencontrol-arch: libpkgs_gen_strict_local_shlibs
|
11 | 13 |
dh_gencontrol -a
|
|
14 |
|
|
15 |
override_dh_installdeb:
|
|
16 |
sed 's/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/' \
|
|
17 |
debian/powerdevil.postinst.in > debian/powerdevil.postinst
|
|
18 |
dh_installdeb
|