summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartłomiej Piotrowski2018-01-07 17:38:55 +0100
committerBartłomiej Piotrowski2018-01-07 17:38:55 +0100
commit193b3b556fb688329ced174497d60083cfb15f80 (patch)
treea16e92f10578baf7a9d34b33e34d86a542eafd3d
downloadaur-193b3b556fb688329ced174497d60083cfb15f80.tar.gz
Import from official repositories
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD41
-rw-r--r--pwsafe-XChangeProperty.patch20
3 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fbe423734a1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = pwsafe
+ pkgdesc = A commandline program for managing encrypted password databases
+ pkgver = 20160304
+ pkgrel = 2
+ url = https://github.com/nsd20463/pwsafe
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = openssl
+ depends = libxmu
+ source = git://github.com/nsd20463/pwsafe.git#commit=9d9758fa540ab673376dc855d331aaf80192c6c6
+ source = pwsafe-XChangeProperty.patch
+ md5sums = SKIP
+ md5sums = cff6aee2e43f5fbe82e8cd7ccfefb099
+
+pkgname = pwsafe
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..40f726d6f5a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
+
+pkgname=pwsafe
+pkgver=20160304
+_commit=9d9758fa540ab673376dc855d331aaf80192c6c6
+pkgrel=2
+pkgdesc="A commandline program for managing encrypted password databases"
+arch=('x86_64')
+url="https://github.com/nsd20463/pwsafe"
+license=('GPL')
+depends=('openssl' 'libxmu')
+makedepends=('git')
+source=("git://github.com/nsd20463/pwsafe.git#commit=${_commit}"
+ pwsafe-XChangeProperty.patch)
+md5sums=('SKIP'
+ 'cff6aee2e43f5fbe82e8cd7ccfefb099')
+
+prepare() {
+ cd "$srcdir"/${pkgname}
+ # Patch from fedora, fixes FS#28339
+ patch -Np0 -i ../pwsafe-XChangeProperty.patch
+}
+
+build() {
+ cd "$srcdir"/${pkgname}
+ aclocal
+ autoheader
+ automake --add-missing
+ autoconf
+ ./configure --prefix=/usr --mandir=/usr/share/man
+ make
+}
+
+package() {
+ cd "$srcdir"/${pkgname}
+ make DESTDIR="$pkgdir" install
+ # Make pwsafe suid root so it can seed rng as a user
+ chmod +s "$pkgdir"/usr/bin/pwsafe
+}
diff --git a/pwsafe-XChangeProperty.patch b/pwsafe-XChangeProperty.patch
new file mode 100644
index 00000000000..6758a573dc6
--- /dev/null
+++ b/pwsafe-XChangeProperty.patch
@@ -0,0 +1,20 @@
+Index: pwsafe.cpp
+===================================================================
+RCS file: /cvsroot/pwsafe/pwsafe/pwsafe.cpp,v
+retrieving revision 1.57
+diff -u -r1.57 pwsafe.cpp
+--- pwsafe.cpp 12 Aug 2007 12:33:06 -0000 1.57
++++ pwsafe.cpp 5 Jan 2011 22:16:43 -0000
+@@ -1820,10 +1820,10 @@
+ if (xev.xselectionrequest.target == XA_TARGETS(xdisplay)) {
+ // tell them what we can supply
+ const Atom targets[] = { XA_TARGETS(xdisplay), XA_TIMESTAMP(xdisplay), XA_TEXT(xdisplay), XA_STRING };
+- XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_TARGETS(xdisplay), 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&targets), sizeof(targets)/sizeof(targets[0]));
++ XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_ATOM, 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&targets), sizeof(targets)/sizeof(targets[0]));
+ }
+ else if (xev.xselectionrequest.target == XA_TIMESTAMP(xdisplay)) {
+- XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_TIMESTAMP(xdisplay), 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&timestamp), 1);
++ XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_INTEGER, 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&timestamp), 1);
+ }
+ else if (xev.xselectionrequest.target == XA_TEXT(xdisplay) ||
+ xev.xselectionrequest.target == XA_STRING) {