diff options
author | SanskritFritz | 2016-06-21 10:38:43 +0200 |
---|---|---|
committer | SanskritFritz | 2016-06-21 10:38:43 +0200 |
commit | 5218d0bbf15b04e6b3a57be0be6e8ff1e9a952d6 (patch) | |
tree | cce5dc579f8b615516d2a4d60239a47498fec645 | |
parent | 6c087dc8b6eb074fe1073f8aa69c7c41837ba5be (diff) | |
download | aur-5218d0bbf15b04e6b3a57be0be6e8ff1e9a952d6.tar.gz |
Post install not interactive anymore. I simply search for kdesu/gksu etc now.
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 25 | ||||
-rw-r--r-- | timekpr.install | 4 |
3 files changed, 26 insertions, 12 deletions
@@ -1,13 +1,18 @@ +# Generated by mksrcinfo v8 +# Tue Jun 21 08:34:49 UTC 2016 pkgbase = timekpr - pkgdesc = Control the computer usage of your user accounts. You can limit their daily usage based on a timed access duration and configure periods of day when they can log in. + pkgdesc = Control the computer usage of your users. You can limit daily usage based on a timed access duration and configure periods of day when they can log in. pkgver = 0.3.2 - pkgrel = 11 + pkgrel = 12 url = https://launchpad.net/timekpr install = timekpr.install arch = i686 arch = x86_64 license = GPL depends = python2 + optdepends = gksu: run with root privileges + optdepends = kdesu: run with root privileges + optdepends = kdesudo: run with root privileges backup = etc/timekpr.conf source = http://launchpad.net/timekpr/trunk/0.3.2/+download/timekpr_0.3.2~ppa1~ubuntu2.tar.gz source = timekpr.service @@ -2,25 +2,38 @@ pkgname=timekpr pkgver=0.3.2 -pkgrel=11 -pkgdesc="Control the computer usage of your user accounts. You can limit their daily usage based on a timed access duration and configure periods of day when they can log in." +pkgrel=12 +pkgdesc="Control the computer usage of your users. You can limit daily usage based on a timed access duration and configure periods of day when they can log in." arch=('i686' 'x86_64') url=https://launchpad.net/timekpr license=('GPL') depends=('python2') -source=(http://launchpad.net/$pkgname/trunk/$pkgver/+download/${pkgname}_${pkgver}~ppa1~ubuntu2.tar.gz - timekpr.service - Initializes_lastNotified_before_it_is_used.patch) +optdepends=('gksu: run with root privileges' + 'kdesu: run with root privileges' + 'kdesudo: run with root privileges') +source=("http://launchpad.net/$pkgname/trunk/$pkgver/+download/${pkgname}_${pkgver}~ppa1~ubuntu2.tar.gz" + "timekpr.service" + "Initializes_lastNotified_before_it_is_used.patch") backup=('etc/timekpr.conf') install='timekpr.install' md5sums=('0626ee6b6b6d218dfdd6e79331f789a2' '9e88ee02b5b8cb6b5e0730e3847c4217' '23848ef2578571d7dc4871fbd15f41ed') -build() { +prepare() { cd "$srcdir"/stable/gui/client # https://bugs.launchpad.net/timekpr/+bug/761647 patch -p1 < "$srcdir"/Initializes_lastNotified_before_it_is_used.patch + + for su_cmd in "/usr/bin/kdesudo" "/usr/bin/kdesu" + do + if [ -f $su_cmd ]; + then + # Prefer KDE su over GTK one: + sed -i "s#gksu#$su_cmd#" "$srcdir/stable/debian/timekpr.desktop" + break + fi + done } package() { diff --git a/timekpr.install b/timekpr.install index f184647f4537..e02d7f55bf53 100644 --- a/timekpr.install +++ b/timekpr.install @@ -1,10 +1,6 @@ post_install() { /usr/bin/timekpr.postinst - - echo "Your su command (gksu|gksudo|kdesu|kdesudo etc) for starting timekpr-gui as root: " - read su_command; - sed -i "s/gksu/${su_command}/" "/usr/share/applications/timekpr.desktop" } post_upgrade() { |