summaryrefslogtreecommitdiff
path: root/extra/gcr
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gcr')
-rw-r--r--extra/gcr/10-gcr.conf3
-rw-r--r--extra/gcr/PKGBUILD17
2 files changed, 15 insertions, 5 deletions
diff --git a/extra/gcr/10-gcr.conf b/extra/gcr/10-gcr.conf
new file mode 100644
index 000000000..0394220f9
--- /dev/null
+++ b/extra/gcr/10-gcr.conf
@@ -0,0 +1,3 @@
+@users - memlock 1024
+
+# vim:set ft=limits:
diff --git a/extra/gcr/PKGBUILD b/extra/gcr/PKGBUILD
index 2a22df456..bdb1d23c1 100644
--- a/extra/gcr/PKGBUILD
+++ b/extra/gcr/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 169875 2012-10-30 22:25:35Z heftig $
+# $Id: PKGBUILD 170868 2012-11-12 21:20:07Z heftig $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
pkgname=gcr
-pkgver=3.6.1
-pkgrel=1
+pkgver=3.6.2
+pkgrel=2
pkgdesc="A library for bits of crypto UI and parsing"
arch=(i686 x86_64)
url="http://www.gnome.org"
@@ -12,8 +12,10 @@ depends=('dconf' 'desktop-file-utils' 'gtk3' 'hicolor-icon-theme' 'libgcrypt')
makedepends=('intltool' 'gobject-introspection')
options=(!libtool)
install=gcr.install
-source=(http://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz)
-sha256sums=('d95f8b70bdcc371c2712ba166e124114bd99bbde1173c0cbe7a8462f146a9927')
+source=(http://download.gnome.org/sources/$pkgname/${pkgver::3}/$pkgname-$pkgver.tar.xz
+ 10-gcr.conf)
+sha256sums=('f709db2435e3635b68d8aa212863e0a8e81b1cc33442852a5183762876c7be9b'
+ '5f2eda7175ae9f23ee0e09d2beceb24fd2f6daafd7bddfcc1c1f5a3734eb60fc')
build() {
cd "$pkgname-$pkgver"
@@ -28,6 +30,11 @@ build() {
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
+
+ # gcr wants to lock some memory to prevent swapping out private keys
+ # https://bugs.archlinux.org/task/32616
+ # https://bugzilla.gnome.org/show_bug.cgi?id=688161
+ install -Dm644 ../10-gcr.conf "$pkgdir/etc/security/limits.d/10-gcr.conf"
}
# vim:set ts=2 sw=2 et: