[arch-commits] Commit in pwsafe/repos (6 files)
Sergej Pupykin
spupykin at archlinux.org
Fri Feb 17 21:19:29 UTC 2017
Date: Friday, February 17, 2017 @ 21:19:28
Author: spupykin
Revision: 212984
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
pwsafe/repos/community-staging-i686/
pwsafe/repos/community-staging-i686/PKGBUILD
(from rev 212983, pwsafe/trunk/PKGBUILD)
pwsafe/repos/community-staging-i686/pwsafe-XChangeProperty.patch
(from rev 212983, pwsafe/trunk/pwsafe-XChangeProperty.patch)
pwsafe/repos/community-staging-x86_64/
pwsafe/repos/community-staging-x86_64/PKGBUILD
(from rev 212983, pwsafe/trunk/PKGBUILD)
pwsafe/repos/community-staging-x86_64/pwsafe-XChangeProperty.patch
(from rev 212983, pwsafe/trunk/pwsafe-XChangeProperty.patch)
-------------------------------------------------------+
community-staging-i686/PKGBUILD | 41 ++++++++++++++++
community-staging-i686/pwsafe-XChangeProperty.patch | 20 +++++++
community-staging-x86_64/PKGBUILD | 41 ++++++++++++++++
community-staging-x86_64/pwsafe-XChangeProperty.patch | 20 +++++++
4 files changed, 122 insertions(+)
Copied: pwsafe/repos/community-staging-i686/PKGBUILD (from rev 212983, pwsafe/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-02-17 21:19:28 UTC (rev 212984)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Vesa Kaihlavirta <vegai at iki.fi>
+
+pkgname=pwsafe
+pkgver=20160304
+_commit=9d9758fa540ab673376dc855d331aaf80192c6c6
+pkgrel=2
+pkgdesc="A commandline program for managing encrypted password databases"
+arch=('i686' '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
+}
Copied: pwsafe/repos/community-staging-i686/pwsafe-XChangeProperty.patch (from rev 212983, pwsafe/trunk/pwsafe-XChangeProperty.patch)
===================================================================
--- community-staging-i686/pwsafe-XChangeProperty.patch (rev 0)
+++ community-staging-i686/pwsafe-XChangeProperty.patch 2017-02-17 21:19:28 UTC (rev 212984)
@@ -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*>(×tamp), 1);
++ XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_INTEGER, 32, PropModeReplace, reinterpret_cast<const unsigned char*>(×tamp), 1);
+ }
+ else if (xev.xselectionrequest.target == XA_TEXT(xdisplay) ||
+ xev.xselectionrequest.target == XA_STRING) {
Copied: pwsafe/repos/community-staging-x86_64/PKGBUILD (from rev 212983, pwsafe/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-02-17 21:19:28 UTC (rev 212984)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Vesa Kaihlavirta <vegai at iki.fi>
+
+pkgname=pwsafe
+pkgver=20160304
+_commit=9d9758fa540ab673376dc855d331aaf80192c6c6
+pkgrel=2
+pkgdesc="A commandline program for managing encrypted password databases"
+arch=('i686' '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
+}
Copied: pwsafe/repos/community-staging-x86_64/pwsafe-XChangeProperty.patch (from rev 212983, pwsafe/trunk/pwsafe-XChangeProperty.patch)
===================================================================
--- community-staging-x86_64/pwsafe-XChangeProperty.patch (rev 0)
+++ community-staging-x86_64/pwsafe-XChangeProperty.patch 2017-02-17 21:19:28 UTC (rev 212984)
@@ -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*>(×tamp), 1);
++ XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_INTEGER, 32, PropModeReplace, reinterpret_cast<const unsigned char*>(×tamp), 1);
+ }
+ else if (xev.xselectionrequest.target == XA_TEXT(xdisplay) ||
+ xev.xselectionrequest.target == XA_STRING) {
More information about the arch-commits
mailing list