Codebase list powerdevil / 59caa83
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
4 changed file(s) with 29 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
33 * New upstream release (5.20.3).
44 * Update build-deps with the info from cmake.
55 * Update list of installed files.
6
7 [ Alexander Volkov ]
8 * Set CAP_WAKE_ALARM capability for powerdevil in postinst.
69
710 -- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Tue, 17 Nov 2020 10:43:46 +0900
811
6969 Package: powerdevil
7070 Architecture: any
7171 Depends: powerdevil-data (= ${source:Version}),
72 libcap2-bin [linux-any],
7273 ${misc:Depends},
7374 ${shlibs:Depends},
7475 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
00 #!/usr/bin/make -f
11
22 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
3
4 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
35
46 libpkgs_gen_strict_local_shlibs = $(libpkgs_all_packages)
57 include /usr/share/pkg-kde-tools/qt-kde-team/2/library-packages.mk
911
1012 override_dh_gencontrol-arch: libpkgs_gen_strict_local_shlibs
1113 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