summaryrefslogtreecommitdiff
path: root/extra/signon
diff options
context:
space:
mode:
Diffstat (limited to 'extra/signon')
-rw-r--r--extra/signon/PKGBUILD53
-rw-r--r--extra/signon/signon.install6
-rw-r--r--extra/signon/use_keyring.patch12
3 files changed, 71 insertions, 0 deletions
diff --git a/extra/signon/PKGBUILD b/extra/signon/PKGBUILD
new file mode 100644
index 000000000..51d85f4e7
--- /dev/null
+++ b/extra/signon/PKGBUILD
@@ -0,0 +1,53 @@
+# $Id: PKGBUILD 197629 2013-10-27 14:39:15Z andrea $
+#Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+
+pkgbase=signon
+pkgname=('signon' 'signon-doc')
+pkgver=8.54
+pkgrel=2
+arch=('i686' 'x86_64' 'mips64el')
+url="http://code.google.com/p/accounts-sso/"
+license=('LGPL')
+makedepends=('qt4' 'libproxy' 'doxygen' 'graphviz' 'ttf-font')
+options=('!emptydirs')
+source=("http://accounts-sso.googlecode.com/files/$pkgbase-$pkgver.tar.bz2"
+ 'use_keyring.patch')
+sha1sums=('a29a12d6fe3747930e94932f6e1b1339b471d108'
+ 'cfdd48b494ad267654ceba23f1b81bcb8f56b9a1')
+
+prepare() {
+ cd $pkgbase-$pkgver
+
+ # Use gnome-keyring secrets storage if signon-keyring-extension is available
+ patch -Np1 -i "$srcdir/use_keyring.patch"
+
+ # qt4 fix
+ sed -i 's/qdbusxml2cpp/qdbusxml2cpp-qt4/' src/signond/signond.pro
+}
+
+build() {
+ cd $pkgbase-$pkgver
+ qmake-qt4 PREFIX=/usr LIBDIR=/usr/lib
+ make
+}
+
+package_signon() {
+ pkgdesc="Framework to provide credential storage and authentication service"
+ depends=('qt4' 'libproxy')
+ backup=('etc/signond.conf')
+ install=$pkgname.install
+
+ cd $pkgbase-$pkgver
+ make INSTALL_ROOT="$pkgdir" install
+
+ # Split out documentation
+ mv "$pkgdir/usr/share/doc" "$srcdir"
+}
+
+package_signon-doc() {
+ pkgdesc="Developer documention of signon"
+
+ mkdir -p "$pkgdir/usr/share"
+ mv "$srcdir/doc" "$pkgdir/usr/share"
+}
diff --git a/extra/signon/signon.install b/extra/signon/signon.install
new file mode 100644
index 000000000..4ccb62fcb
--- /dev/null
+++ b/extra/signon/signon.install
@@ -0,0 +1,6 @@
+post_upgrade() {
+ if [ "$(vercmp 8.44 "$2")" -eq 1 ]; then
+ printf '==> Default config location changed\n'
+ printf ' Move the file signon.db from ~/.signon/ to ~/.config/signond/\n'
+ fi
+}
diff --git a/extra/signon/use_keyring.patch b/extra/signon/use_keyring.patch
new file mode 100644
index 000000000..55b593a26
--- /dev/null
+++ b/extra/signon/use_keyring.patch
@@ -0,0 +1,12 @@
+=== modified file 'src/signond/signond.conf'
+--- old/src/signond/signond.conf 2012-07-25 14:57:50 +0000
++++ new/src/signond/signond.conf 2012-07-25 19:27:16 +0000
+@@ -17,6 +17,7 @@
+ FileSystemName=signonfs
+ Size=8
+ FileSystemType=ext2
++SecretsStorage=gnome-keyring
+
+ [ObjectTimeouts]
+ IdentityTimeout=300
+