added ksshaskpass

This commit is contained in:
Andrei Nistor 2010-09-06 10:31:18 +00:00
parent ea7f38ef50
commit 41da00a461
2 changed files with 78 additions and 0 deletions

44
ksshaskpass/PKGBUILD Normal file
View File

@ -0,0 +1,44 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dot]org>
# maintainer (x86_64): Nistor Andrei <coder[dot]tux[at]ceata[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=ksshaskpass
pkgver=0.5.3
pkgrel=1
pkgdesc="A KDE 4 version of ssh-askpass with KWallet support."
arch=('i686' 'x86_64')
url="http://kde-apps.org/content/show.php/Ksshaskpass?content=50971"
license=('GPL')
groups=()
depends=(kdelibs openssh)
makedepends=(cmake)
options=()
source=("http://kde-apps.org/CONTENT/content-files/50971-${pkgname}-${pkgver}.tar.gz")
md5sums=('05dad7745e9d92b08bd86e7ab7a9540d')
build() {
cd "${srcdir}"
pushd "${pkgname}-${pkgver}"
patch -p1 < ../../autostart.patch
popd
mkdir build
cd build
export XDG_CONFIG_DIRS=/etc/xdg/
cmake ../"${pkgname}-${pkgver}" \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "${srcdir}"/build
make DESTDIR="$pkgdir/" install
}

View File

@ -0,0 +1,34 @@
diff -ruN ksshaskpass-0.5.3-orig/CMakeLists.txt ksshaskpass-0.5.3/CMakeLists.txt
--- ksshaskpass-0.5.3-orig/CMakeLists.txt 2010-01-01 23:12:21.000000000 +0000
+++ ksshaskpass-0.5.3/CMakeLists.txt 2010-09-06 17:33:37.427336334 +0000
@@ -15,4 +15,7 @@
install(TARGETS ksshaskpass DESTINATION ${BIN_INSTALL_DIR})
install(FILES src/ksshaskpass.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
+install(PROGRAMS autostart/start-ksshaskpass.sh DESTINATION ${BIN_INSTALL_DIR})
+install(FILES autostart/start-ksshaskpass.desktop DESTINATION $ENV{XDG_CONFIG_DIRS}/autostart)
+
install(FILES doc/ksshaskpass.1 DESTINATION ${MAN_INSTALL_DIR}/man1)
diff -ruN ksshaskpass-0.5.3-orig/autostart/start-ksshaskpass.desktop ksshaskpass-0.5.3/autostart/start-ksshaskpass.desktop
--- ksshaskpass-0.5.3-orig/autostart/start-ksshaskpass.desktop 1970-01-01 00:00:00.000000000 +0000
+++ ksshaskpass-0.5.3/autostart/start-ksshaskpass.desktop 2010-09-06 17:24:01.410669667 +0000
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=Ksshaskpass
+Comment=Start ksshaskpass
+Exec=start-ksshaskpass.sh
+Terminal=false
+Type=Application
+Categories=
+GenericName=
+OnlyShowIn=KDE;
diff -ruN ksshaskpass-0.5.3-orig/autostart/start-ksshaskpass.sh ksshaskpass-0.5.3/autostart/start-ksshaskpass.sh
--- ksshaskpass-0.5.3-orig/autostart/start-ksshaskpass.sh 1970-01-01 00:00:00.000000000 +0000
+++ ksshaskpass-0.5.3/autostart/start-ksshaskpass.sh 2010-09-06 17:24:01.504003002 +0000
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+export SSH_ASKPASS=/usr/bin/ksshaskpass
+/usr/bin/ssh-add < /dev/null