gsmartcontrol: update to 1.1.0
This commit is contained in:
parent
63e47f7b7b
commit
66dc2df2a9
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
pkexec --disable-internal-agent "/usr/bin/gsmartcontrol" "$@"
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
|
||||
<action id="org.void.pkexec.gsmartcontrol">
|
||||
<message>Authentication is required to run GSmartControl</message>
|
||||
<icon_name>gsmartcontrol</icon_name>
|
||||
<defaults>
|
||||
<allow_any>auth_admin</allow_any>
|
||||
<allow_inactive>auth_admin</allow_inactive>
|
||||
<allow_active>auth_admin</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/gsmartcontrol</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'gsmartcontrol'
|
||||
pkgname=gsmartcontrol
|
||||
version=1.0.2
|
||||
version=1.1.0
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config"
|
||||
|
@ -11,20 +11,9 @@ maintainer="yopito <pierre.bourgin@free.fr>"
|
|||
license="GPL-3"
|
||||
homepage="http://gsmartcontrol.sourceforge.net/"
|
||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
|
||||
checksum=4f70451c359d95edc974498b860696b698f19b187340dc7207b4b38cbaf5e207
|
||||
checksum=90c9ead852255f5e1a74a3ff6c265d1cbcba19ad2fc77059c60737c13a3cd2c8
|
||||
|
||||
post_install() {
|
||||
# license files uneeded
|
||||
rm -f ${DESTDIR}/usr/share/doc/${pkgname}/LICENSE_*
|
||||
|
||||
# PolicyKit support
|
||||
vinstall ${FILESDIR}/org.void.pkexec.gsmartcontrol.policy 644 /usr/share/polkit-1/actions
|
||||
vbin ${FILESDIR}/gsmartcontrol-pkexec
|
||||
|
||||
sed -i "s|^Exec=.*|Exec="/usr/bin/gsmartcontrol-pkexec"|" \
|
||||
${DESTDIR}/usr/share/applications/gsmartcontrol.desktop
|
||||
|
||||
# no more need of gsmartcontrol-root since polkit
|
||||
rm -f ${DESTDIR}/usr/bin/${pkgname}-root
|
||||
rm -f ${DESTDIR}/usr/share/man/man1/gsmartcontrol-root.1
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue