summaryrefslogtreecommitdiff
path: root/pinentry
diff options
context:
space:
mode:
authorThomas Penteker <tek@serverop.de>2010-03-27 01:33:37 +0100
committerThomas Penteker <tek@serverop.de>2010-03-27 01:33:37 +0100
commitfef6b25033fce064b6455e216f1894b2716c8ebb (patch)
tree9e3ee63091568ea8e30a9c23af6f31cec2800868 /pinentry
parent444a6b5b6d7affc315336467adf62e5ac1b27ce3 (diff)
downloadopt-fef6b25033fce064b6455e216f1894b2716c8ebb.tar.gz
opt-fef6b25033fce064b6455e216f1894b2716c8ebb.tar.xz
[notify] pinentry: 0.7.5 -> 0.8.0
The pinentry port was split into: pinentry pinentry-gtk2 pinentry-qt4 whereas the -gtk2 and -qt4 ports depend on pinentry. This allows you to have pinentry without it's usual X dependencies installed. The pinentry port now only contains the curses-based interface and a wrapper to automatically select the interface.
Diffstat (limited to 'pinentry')
-rw-r--r--pinentry/.footprint3
-rw-r--r--pinentry/.md5sum4
-rw-r--r--pinentry/Pkgfile27
-rwxr-xr-xpinentry/pinentry17
-rw-r--r--pinentry/pinentry-0.7.5.patch30
5 files changed, 33 insertions, 48 deletions
diff --git a/pinentry/.footprint b/pinentry/.footprint
index 5b46820eb..2237c6af6 100644
--- a/pinentry/.footprint
+++ b/pinentry/.footprint
@@ -1,5 +1,4 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-lrwxrwxrwx root/root usr/bin/pinentry -> pinentry-gtk-2
+-rwxr-xr-x root/root usr/bin/pinentry
-rwxr-xr-x root/root usr/bin/pinentry-curses
--rwxr-xr-x root/root usr/bin/pinentry-gtk-2
diff --git a/pinentry/.md5sum b/pinentry/.md5sum
index 6372e0e1f..7dcd4dae3 100644
--- a/pinentry/.md5sum
+++ b/pinentry/.md5sum
@@ -1,2 +1,2 @@
-75037de4a7c18df1f1d1cc5b7e58aa51 pinentry-0.7.5.patch
-ca492afbbb59cd19f1c875533f18b269 pinentry-0.7.5.tar.gz
+b66d05feddf92184d9b1db4fff4bfe66 pinentry
+590be1b00f9ab63205843c7fed8caf35 pinentry-0.8.0.tar.gz
diff --git a/pinentry/Pkgfile b/pinentry/Pkgfile
index e9fa267de..eceda9bf6 100644
--- a/pinentry/Pkgfile
+++ b/pinentry/Pkgfile
@@ -1,27 +1,26 @@
# Description: Secure PinEntry Dialog
-# URL: http://www.gnupg.org
-# Maintainer: Simon Glossner, viper at hometux dot de
-# Packager: Alan Mizrahi, alan at mizrahi dot com dot ve
-# Depends on: ncurses, xorg-libx11
-# Nice to have: gtk, qt3
+# URL: http://www.gnupg.org
+# Maintainer: Thomas Penteker, tek at serverop dot de
+# Packager: Alan Mizrahi, alan at mizrahi dot com dot ve
+# Depends on:
+# Nice to have: pinentry-gtk2 pinentry-qt4
name=pinentry
-version=0.7.5
-release=3
-source=(ftp://ftp.gnupg.org/gcrypt/$name/$name-$version.tar.gz $name-$version.patch)
+version=0.8.0
+release=1
+source=(ftp://ftp.gnupg.org/gcrypt/$name/$name-$version.tar.gz pinentry)
build() {
cd $name-$version
- patch -p1 < $SRC/$name-$version.patch
-
./configure \
- --prefix=/usr \
- --with-qt-dir=/usr/share/qt3 \
- --enable-fallback-curses \
- --disable-pinentry-gtk
+ --prefix=/usr \
+ --disable-pinentry-{gtk,gtk2,qt,qt4} \
+ --enable-pinentry-curses
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share
+ rm $PKG/usr/bin/pinentry
+ install -m 755 ../pinentry $PKG/usr/bin/pinentry
}
diff --git a/pinentry/pinentry b/pinentry/pinentry
new file mode 100755
index 000000000..94f242392
--- /dev/null
+++ b/pinentry/pinentry
@@ -0,0 +1,17 @@
+#!/bin/sh
+# pinentry wrapper
+
+if [ -x /usr/bin/pinentry-qt4 ];then
+ exec /usr/bin/pinentry-qt4 "$@"
+fi
+
+if [ -x /usr/bin/pinentry-gtk-2 ];then
+ exec /usr/bin/pinentry-gtk-2 "$@"
+fi
+
+if [ -x /usr/bin/pinentry-curses ];then
+ exec /usr/bin/pinentry-curses "$@"
+else
+ echo "no pinentry binary available" > /dev/stderr
+ exit 1
+fi
diff --git a/pinentry/pinentry-0.7.5.patch b/pinentry/pinentry-0.7.5.patch
deleted file mode 100644
index a50bd74e6..000000000
--- a/pinentry/pinentry-0.7.5.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -Nru pinentry-0.7.5/gtk+-2/gtksecentry.c pinentry-0.7.5-new/gtk+-2/gtksecentry.c
---- pinentry-0.7.5/gtk+-2/gtksecentry.c 2007-11-19 12:20:50.000000000 +0100
-+++ pinentry-0.7.5-new/gtk+-2/gtksecentry.c 2008-04-02 17:49:43.000000000 +0200
-@@ -270,7 +270,7 @@
-
-
- gpointer
--g_malloc(gulong size)
-+g_malloc(gsize size)
- {
- gpointer p;
-
-@@ -288,7 +288,7 @@
- }
-
- gpointer
--g_malloc0(gulong size)
-+g_malloc0(gsize size)
- {
- gpointer p;
-
-@@ -308,7 +308,7 @@
- }
-
- gpointer
--g_realloc(gpointer mem, gulong size)
-+g_realloc(gpointer mem, gsize size)
- {
- gpointer p;
-

Generated by cgit