[arch-commits] Commit in (6 files)
Tobias Powalowski
tpowa at archlinux.org
Sat Aug 1 13:36:13 UTC 2009
Date: Saturday, August 1, 2009 @ 09:36:13
Author: tpowa
Revision: 48310
'add scripts to extra'
Added:
kde-agent/
kde-agent/repos/
kde-agent/trunk/
kde-agent/trunk/PKGBUILD
kde-agent/trunk/agent-shutdown.sh
kde-agent/trunk/agent-startup.sh
-------------------+
PKGBUILD | 20 ++++++++++++++++++++
agent-shutdown.sh | 13 +++++++++++++
agent-startup.sh | 19 +++++++++++++++++++
3 files changed, 52 insertions(+)
Added: kde-agent/trunk/PKGBUILD
===================================================================
--- kde-agent/trunk/PKGBUILD (rev 0)
+++ kde-agent/trunk/PKGBUILD 2009-08-01 13:36:13 UTC (rev 48310)
@@ -0,0 +1,20 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=kde-agent
+pkgver=20090801
+pkgrel=1
+pkgdesc="Startup and shutdown scripts for gpg-agent and ssh-agent in KDE"
+arch=('i686' 'x86_64')
+url='http://www.kde.org'
+license=('GPL' 'LGPL' 'FDL')
+depends=('pinentry' 'openssh' 'qt')
+source=(agent-startup.sh
+ agent-shutdown.sh)
+
+build() {
+ install -D -m 755 $srcdir/agent-startup.sh $pkgdir/usr/env/agent-startup.sh
+ install -D -m 755 $srcdir/agent-shutdown.sh $pkgdir/usr/shutdown/agent-shutdown.sh
+}
+md5sums=('7daec96c125e1e238a35f31ea4a476f0'
+ '18e8d01124b19f7df2937c06e177bf7f')
Property changes on: kde-agent/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
+ Id
Added: kde-agent/trunk/agent-shutdown.sh
===================================================================
--- kde-agent/trunk/agent-shutdown.sh (rev 0)
+++ kde-agent/trunk/agent-shutdown.sh 2009-08-01 13:36:13 UTC (rev 48310)
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# This file is executed at kde shutdown.
+# Uncomment the following lines to kill the agents
+# that were started at session startup.
+
+if [ "${GPG_AGENT_INFO}" ]; then
+ kill $(echo ${GPG_AGENT_INFO} | cut -d':' -f 2) >/dev/null 2>&1
+fi
+#
+if [ "${SSH_AGENT_PID}" ]; then
+ ssh-agent -k
+fi
Added: kde-agent/trunk/agent-startup.sh
===================================================================
--- kde-agent/trunk/agent-startup.sh (rev 0)
+++ kde-agent/trunk/agent-startup.sh 2009-08-01 13:36:13 UTC (rev 48310)
@@ -0,0 +1,19 @@
+# Agents startup file
+#
+# This file is sourced at kde startup, so that
+# the environment variables set here are available
+# throughout the session.
+
+# Uncomment the following lines to start gpg-agent
+# and/or ssh-agent at kde startup.
+# If you do so, do not forget to uncomment the respective
+# lines in KDEDIR/shutdown/agent-shutdown.sh to
+# properly kill the agents when the session ends.
+
+if [ -x /usr/bin/gpg-agent ]; then
+ eval "$(/usr/bin/gpg-agent --daemon --pinentry-program /usr/bin/pinentry-qt4)"
+fi
+#
+if [ -x /usr/bin/ssh-agent ]; then
+ eval "$(/usr/bin/ssh-agent -s)"
+fi
More information about the arch-commits
mailing list