[arch-commits] Commit in seahorse/trunk (PKGBUILD seahorse-ssh-askpass.sh)

Jan Steffens heftig at archlinux.org
Mon Oct 17 04:51:34 EDT 2011


    Date: Monday, October 17, 2011 @ 04:51:34
  Author: heftig
Revision: 140589

add askpass support

Added:
  seahorse/trunk/seahorse-ssh-askpass.sh
Modified:
  seahorse/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |   18 ++++++++++++------
 seahorse-ssh-askpass.sh |    3 +++
 2 files changed, 15 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-17 08:41:26 UTC (rev 140588)
+++ PKGBUILD	2011-10-17 08:51:34 UTC (rev 140589)
@@ -4,21 +4,25 @@
 
 pkgname=seahorse
 pkgver=3.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc="GNOME application for managing PGP keys."
 arch=(i686 x86_64)
 license=('GPL')
 url="http://projects.gnome.org/seahorse/"
 depends=('gtk3' 'libgnome-keyring' 'gnome-keyring' 'libsoup' 'gpgme' 'desktop-file-utils' 'hicolor-icon-theme' 'dconf')
 makedepends=('gettext' 'libldap' 'intltool' 'pkgconfig' 'gnome-doc-utils' 'gobject-introspection' 'openssh' 'libsm')
+optdepends=('openssh: SSH support')
+provides=('x11-ssh-askpass')
 options=('!libtool' '!emptydirs')
 groups=('gnome-extra')
 install=seahorse.install
-source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz)
-sha256sums=('ef76aed10bac519fa854a869dc713cd7b49a41fbd2085647067444595302b6f7')
+source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
+        seahorse-ssh-askpass.sh)
+sha256sums=('ef76aed10bac519fa854a869dc713cd7b49a41fbd2085647067444595302b6f7'
+            '1792ab2c0bbad446b8fad0a0c9008a75f60a9666c895d37d2adcd827e49fafbb')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "$srcdir/$pkgname-$pkgver"
   ./configure --prefix=/usr --sysconfdir=/etc \
       --localstatedir=/var --disable-static \
       --enable-ldap --enable-hkp \
@@ -29,6 +33,8 @@
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  make DESTDIR="${pkgdir}" install
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -Dm755 "$srcdir/seahorse-ssh-askpass.sh" \
+    "$pkgdir/etc/profile.d/seahorse-ssh-askpass.sh"
 }

Added: seahorse-ssh-askpass.sh
===================================================================
--- seahorse-ssh-askpass.sh	                        (rev 0)
+++ seahorse-ssh-askpass.sh	2011-10-17 08:51:34 UTC (rev 140589)
@@ -0,0 +1,3 @@
+if [ -z "$SSH_ASKPASS" ]; then
+  export SSH_ASKPASS=/usr/lib/seahorse/seahorse-ssh-askpass
+fi



More information about the arch-commits mailing list