Merge pull request #294 from ertugerata/master
gnupg, gpgme and gpgmepp in main
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import kde5
|
||||
from pisi.actionsapi import pisitools
|
||||
|
||||
def setup():
|
||||
kde5.configure()
|
||||
|
||||
def build():
|
||||
kde5.make()
|
||||
|
||||
def install():
|
||||
kde5.install()
|
||||
|
||||
pisitools.dodoc("README.*", "COPYING*")
|
||||
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gpgmepp</Name>
|
||||
<Homepage>https://projects.kde.org/gpgmepp</Homepage>
|
||||
<Packager>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2</License>
|
||||
<Summary>C++ bindings/wrapper for gpgme</Summary>
|
||||
<Description>C++ bindings/wrapper for gpgme</Description>
|
||||
<Archive sha1sum="20a3b016458ec1f09bdc064b2135407384ba7049" type="tarxz">http://download.kde.org/stable/applications/15.08.0/src/gpgmepp-15.08.0.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>boost-devel</Dependency>
|
||||
<Dependency>qt5-base-devel</Dependency>
|
||||
<Dependency>gpgme-devel</Dependency>
|
||||
<Dependency>extra-cmake-modules</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!--
|
||||
<Patch level="1"></Patch>
|
||||
-->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gpgmepp</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>qt5-base</Dependency>
|
||||
<Dependency>gpgme</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="data">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>gpgmepp-devel</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">gpgmepp</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2015-08-21</Date>
|
||||
<Version>15.08.0</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gpgmepp</Name>
|
||||
<Summary xml:lang="tr">gpgme için C++ bağlayıcısı</Summary>
|
||||
<Description xml:lang="tr">gpgme için C++ bağlayıcısı</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
shelltools.export("CFLAGS","%s -fPIC -DPIC" % get.CFLAGS())
|
||||
shelltools.export("LDFLAGS","%s -fPIC" % get.LDFLAGS())
|
||||
|
||||
autotools.configure()
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def check():
|
||||
autotools.make("check")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
@@ -0,0 +1,82 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libassuan</Name>
|
||||
<Homepage>http://www.gnupg.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv3</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>IPC library for GnuPG related projects</Summary>
|
||||
<Description>This is the IPC library used by GnuPG 2, GPGME and a few other packages.</Description>
|
||||
<Archive sha1sum="c21b86482f6a3624c2b46b91e20f8415f244233a" type="tarbz2">ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-2.2.1.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libgpg-error-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libassuan</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libgpg-error</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="info">/usr/share/info</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libassuan-devel</Name>
|
||||
<Summary>Development files for libassuan</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libassuan</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/share/aclocal</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="5">
|
||||
<Date>2015-08-21</Date>
|
||||
<Version>2.2.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2015-04-13</Date>
|
||||
<Version>2.2.0</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2014-10-31</Date>
|
||||
<Version>2.1.2</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-10-13</Date>
|
||||
<Version>2.1.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-09-29</Date>
|
||||
<Version>2.0.3</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libassuan</Name>
|
||||
<Summary xml:lang="tr">GnuPG, GPGME ve newpg tarafından kullanılan IPC kitaplığı</Summary>
|
||||
<Summary xml:lang="fr">Librairie IPC (communication inter-processus) auto-suffisante utilisée par gpg, gpgme et newpg.</Summary>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libassuan-devel</Name>
|
||||
<Summary xml:lang="tr">libassuan için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
autotools.configure("--disable-static \
|
||||
--prefix=/usr \
|
||||
--enable-maintainer-mode")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def check():
|
||||
autotools.make("check")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("-j1 DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")
|
||||
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>npth</Name>
|
||||
<Homepage>http://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2.1</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>New portable threads library</Summary>
|
||||
<Description>is a non-preemptive threads implementation using an API very similar to the one known from GNU Pth. It has been designed as a replacement of GNU Pth for non-ancient operating systems.</Description>
|
||||
<Archive sha1sum="3bfa2a2d7521d6481850e8a611efe5bf5ed75200" type="tarbz2">ftp://ftp.gnupg.org/gcrypt/npth/npth-1.2.tar.bz2</Archive>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>npth</Name>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>npth-devel</Name>
|
||||
<Summary>Development files for pth</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">npth</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin/npth-config</Path>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/share/aclocal</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2015-04-12</Date>
|
||||
<Version>1.2</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>npth</Name>
|
||||
<Summary xml:lang="tr">Yeni GNU Taşınabilir iş parçacıkları kitaplığı</Summary>
|
||||
<Description xml:lang="tr">Pth Unix platformları için derlenmiş taşınabilir kitaplığıdır. Bir çok iç sunucu uygulamalarının yerine getirilmesi işlerinin öncelikli olmayan planlamasını yapar.</Description>
|
||||
<Description xml:lang="fr">Un librairie de threads portable pour les plateformes Unix. Elle permet la synchronisation non-préemptive pour l'exécution de threads ("multithreading") au sein d'applications serveur.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>npth-devel</Name>
|
||||
<Summary xml:lang="tr">npth için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
#shelltools.export("CFLAGS","%s -fPIE" % get.CFLAGS())
|
||||
#shelltools.export("LDFLAGS", "%s -pie -Wl,-z,relro,-z,now" % get.LDFLAGS())
|
||||
|
||||
autotools.configure("--enable-symcryptrun \
|
||||
--disable-rpath \
|
||||
--enable-gpgtar \
|
||||
--enable-maintainer-mode")
|
||||
|
||||
def build():
|
||||
autotools.make("-j1")
|
||||
autotools.make("-C doc html")
|
||||
|
||||
def check():
|
||||
autotools.make("check")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall('DESTDIR=%s libexecdir="/usr/libexec"' % get.installDIR())
|
||||
|
||||
# Compat symlinks
|
||||
pisitools.dosym("gpg2", "/usr/bin/gpg")
|
||||
pisitools.dosym("gpgv2", "/usr/bin/gpgv")
|
||||
pisitools.dosym("gpg2.1", "/usr/share/man/man1/gpg.1")
|
||||
pisitools.dosym("gpgv2.1", "/usr/share/man/man1/gpgv.1")
|
||||
|
||||
# Lets make doc
|
||||
pisitools.dohtml("doc/*")
|
||||
pisitools.dohtml("doc/gnupg.html/*")
|
||||
pisitools.dodoc("ChangeLog", "NEWS", "README", "THANKS", "TODO")
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
|
||||
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
|
||||
os.system("/bin/chmod u+s,go-r /usr/bin/gpg2")
|
||||
os.system("/bin/chmod u+s,go-r /usr/bin/gpg-agent")
|
||||
@@ -0,0 +1,11 @@
|
||||
--- gnupg-1.9.3/g10/photoid.c.display 2004-01-24 15:03:56.745060064 +0800
|
||||
+++ gnupg-1.9.3/g10/photoid.c 2004-01-24 15:04:21.560287576 +0800
|
||||
@@ -240,7 +240,7 @@
|
||||
#elif defined(__riscos__)
|
||||
return "Filer_Run %I";
|
||||
#else
|
||||
- return "xloadimage -fork -quiet -title 'KeyID 0x%k' stdin";
|
||||
+ return "display -title 'KeyID 0x%k'";
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,67 @@
|
||||
We have to use fixed s2k-count number otherwise the gpg2 would
|
||||
want to consult gpg-agent which is not yet installed in the mock
|
||||
chroot.
|
||||
Index: gnupg-2.0.17/tests/openpgp/conventional-mdc.test
|
||||
===================================================================
|
||||
--- gnupg-2.0.17.orig/tests/openpgp/conventional-mdc.test
|
||||
+++ gnupg-2.0.17/tests/openpgp/conventional-mdc.test
|
||||
@@ -21,9 +21,9 @@ for ciph in `all_cipher_algos`; do
|
||||
dd if=data-80000 of=z bs=1 count=$i 2>/dev/null
|
||||
fi
|
||||
echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
|
||||
- --force-mdc --cipher $ciph -c -o x --yes z
|
||||
+ --force-mdc --cipher $ciph -c -o x --yes --s2k-count 65536 z
|
||||
echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
|
||||
- -o y --yes x
|
||||
+ -o y --yes --s2k-count 96 x
|
||||
cmp z y || error "$ciph/$i: mismatch"
|
||||
done
|
||||
done
|
||||
Index: gnupg-2.0.17/tests/openpgp/conventional.test
|
||||
===================================================================
|
||||
--- gnupg-2.0.17.orig/tests/openpgp/conventional.test
|
||||
+++ gnupg-2.0.17/tests/openpgp/conventional.test
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
#info Checking conventional encryption
|
||||
for i in plain-2 data-32000 ; do
|
||||
- echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -c -o x --yes $i
|
||||
- echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes x
|
||||
+ echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -c -o x --yes --s2k-count 65536 $i
|
||||
+ echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes --s2k-count 65536 x
|
||||
cmp $i y || error "$i: mismatch"
|
||||
done
|
||||
|
||||
@@ -21,8 +21,8 @@ for a in `all_cipher_algos`; do
|
||||
echo_n "$a "
|
||||
for i in plain-1 data-80000 ; do
|
||||
echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
|
||||
- --cipher-algo $a -c -o x --yes $i
|
||||
- echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes x
|
||||
+ --cipher-algo $a -c -o x --yes --s2k-count 65536 $i
|
||||
+ echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes --s2k-count 65536 x
|
||||
cmp $i y || error "$i: ($a) mismatch"
|
||||
done
|
||||
done
|
||||
Index: gnupg-2.0.17/tests/openpgp/genkey1024.test
|
||||
===================================================================
|
||||
--- gnupg-2.0.17.orig/tests/openpgp/genkey1024.test
|
||||
+++ gnupg-2.0.17/tests/openpgp/genkey1024.test
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
. $srcdir/defs.inc || exit 3
|
||||
|
||||
-$GPG --quiet --batch --debug-quick-random --gen-key <<EOF
|
||||
+$GPG --quiet --batch --debug-quick-random --s2k-count 65536 --gen-key <<EOF
|
||||
Key-Type: DSA
|
||||
Key-Length: 1024
|
||||
Subkey-Type: ELG
|
||||
@@ -24,7 +24,7 @@ Passphrase: abc
|
||||
EOF
|
||||
|
||||
if have_pubkey_algo "RSA"; then
|
||||
-$GPG --quiet --batch --debug-quick-random --gen-key <<EOF
|
||||
+$GPG --quiet --batch --debug-quick-random --s2k-count 65536 --gen-key <<EOF
|
||||
Key-Type: RSA
|
||||
Key-Length: 1024
|
||||
Key-Usage: sign,encrypt
|
||||
@@ -0,0 +1,28 @@
|
||||
diff -Naur old/agent/protect-tool.c new/agent/protect-tool.c
|
||||
--- old/agent/protect-tool.c 2012-12-08 13:53:17.067611957 +1100
|
||||
+++ new/agent/protect-tool.c 2012-12-08 13:53:28.247633012 +1100
|
||||
@@ -102,6 +102,7 @@
|
||||
static int opt_status_msg;
|
||||
static const char *opt_p12_charset;
|
||||
static const char *opt_agent_program;
|
||||
+static session_env_t opt_session_env;
|
||||
|
||||
static char *get_passphrase (int promptno);
|
||||
static void release_passphrase (char *pw);
|
||||
@@ -1040,6 +1041,7 @@
|
||||
|
||||
opt_homedir = default_homedir ();
|
||||
|
||||
+ opt_session_env = session_env_new ();
|
||||
|
||||
pargs.argc = &argc;
|
||||
pargs.argv = &argv;
|
||||
@@ -1091,7 +1093,7 @@
|
||||
opt.verbose,
|
||||
opt_homedir,
|
||||
opt_agent_program,
|
||||
- NULL, NULL, NULL);
|
||||
+ NULL, NULL, opt_session_env);
|
||||
|
||||
if (opt_prompt)
|
||||
opt_prompt = percent_plus_unescape (opt_prompt, 0);
|
||||
@@ -0,0 +1,155 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gnupg</Name>
|
||||
<Homepage>http://www.gnupg.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv3+</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>The GNU Privacy Guard, a PGP replacement</Summary>
|
||||
<Description>GnuPG allows to encrypt and sign your data and communication, features a versatile key managment system as well as access modules for all kinds of public key directories.</Description>
|
||||
<Archive sha1sum="1a345804f34a2acd05c1555e40ddfa297f38438b" type="tarbz2">ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-2.1.7.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>openldap-client</Dependency>
|
||||
<Dependency>pinentry</Dependency>
|
||||
<Dependency>npth-devel</Dependency>
|
||||
<Dependency>libassuan-devel</Dependency>
|
||||
<Dependency>libksba-devel</Dependency>
|
||||
<Dependency>zlib-devel</Dependency>
|
||||
<Dependency>bzip2</Dependency>
|
||||
<Dependency>texinfo</Dependency>
|
||||
<Dependency>gnutls-devel</Dependency>
|
||||
<Dependency>readline-devel</Dependency>
|
||||
<Dependency>libgcrypt-devel</Dependency>
|
||||
<Dependency>libgpg-error-devel</Dependency>
|
||||
<Dependency>libusb-compat-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!--<Patch level="1">protect-tool-env.patch</Patch>-->
|
||||
<!--<Patch level="1">gnupg-1.9.3-use-ImageMagick-for-photo.patch</Patch>
|
||||
<Patch level="1">gnupg-2.0.14-tests-s2kcount.patch</Patch>-->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gnupg</Name>
|
||||
<Replaces>
|
||||
<Package>dirmngr</Package>
|
||||
</Replaces>
|
||||
<Conflicts>
|
||||
<Package>dirmngr</Package>
|
||||
</Conflicts>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>openldap-client</Dependency>
|
||||
<Dependency>npth</Dependency>
|
||||
<Dependency>libassuan</Dependency>
|
||||
<Dependency>pinentry</Dependency>
|
||||
<Dependency>libksba</Dependency>
|
||||
<Dependency>zlib</Dependency>
|
||||
<Dependency>bzip2</Dependency>
|
||||
<Dependency>gnutls</Dependency>
|
||||
<Dependency>readline</Dependency>
|
||||
<Dependency>libgcrypt</Dependency>
|
||||
<Dependency>libgpg-error</Dependency>
|
||||
<!-- For scdaemon -->
|
||||
<Dependency>libusb-compat</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="library">/usr/libexec</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="doc">/usr/share/doc/html</Path>
|
||||
<Path fileType="data">/usr/share/gnupg</Path>
|
||||
<Path fileType="info">/usr/share/info</Path>
|
||||
<Path fileType="localedata">/usr/share/locale</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
<Provides>
|
||||
<COMAR script="package.py">System.Package</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>gnupg-docs</Name>
|
||||
<Summary>Documentation files for GnuPG</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">gnupg</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="doc">/usr/share/doc/gnupg/html</Path>
|
||||
<Path fileType="doc">/usr/share/gnupg/help.*</Path>
|
||||
<Path fileType="doc">/usr/share/doc/gnupg/faq.html</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="9">
|
||||
<Date>2015-08-21</Date>
|
||||
<Version>2.1.7</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="8">
|
||||
<Date>2015-04-26</Date>
|
||||
<Version>2.1.3</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2014-08-16</Date>
|
||||
<Version>2.0.26</Version>
|
||||
<Comment>Version Bump.</Comment>
|
||||
<Name>Vedat Demir</Name>
|
||||
<Email>vedat@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2014-06-30</Date>
|
||||
<Version>2.0.25</Version>
|
||||
<Comment>Version Bump.</Comment>
|
||||
<Name>Vedat Demir</Name>
|
||||
<Email>vedat@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2014-06-04</Date>
|
||||
<Version>2.0.23</Version>
|
||||
<Comment>Version Bump.</Comment>
|
||||
<Name>Vedat Demir</Name>
|
||||
<Email>vedat@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-04-05</Date>
|
||||
<Version>2.0.22</Version>
|
||||
<Comment>Rebuild for libgcrypt and some other system.base packs.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2014-02-02</Date>
|
||||
<Version>2.0.22</Version>
|
||||
<Comment>new pcsc-lite and pinentry</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-10-27</Date>
|
||||
<Version>2.0.22</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-09-29</Date>
|
||||
<Version>2.0.19</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gnupg</Name>
|
||||
<Summary xml:lang="tr">GNU Gizlilik Koruması</Summary>
|
||||
<Description xml:lang="tr">GnuPG verilerinizin ve iletişimlerinizin şifrelenmesi ve imzalanmmasını sağlar, her tür genel anahtar dizinleri için modullere erişiminde olduğu gibi çok yönlü anahtar yönetim sistemi avantajı vardır.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gnupg-docs</Name>
|
||||
<Summary xml:lang="tr">GnuPG paketine ait API dokümantasyonu</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
autotools.configure("--disable-fd-passing \
|
||||
--disable-static \
|
||||
--disable-gpgsm-test")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def check():
|
||||
autotools.make("check")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "THANKS", "TODO")
|
||||
@@ -0,0 +1,103 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gpgme</Name>
|
||||
<Homepage>http://www.gnupg.org/gpgme.html</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<License>LGPLv2</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>GnuPG Made Easy is a library for making GnuPG easier to use</Summary>
|
||||
<Description>GPGME is a library designed to make access to GnuPG easier for applications. It provides a high-Level Crypto application programming interface (API) for encryption, decryption, signing, signature verification and key management.</Description>
|
||||
<Archive sha1sum="88476d72cb099e179de4040760502886f7a54926" type="tarbz2">ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-1.5.5.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>gnupg</Dependency>
|
||||
<Dependency>libgpg-error-devel</Dependency>
|
||||
<Dependency>libassuan-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gpgme</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>gnupg</Dependency>
|
||||
<Dependency>libgpg-error</Dependency>
|
||||
<Dependency>libassuan</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="data">/usr/share/common-lisp</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="info">/usr/share/info</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>gpgme-devel</Name>
|
||||
<Summary>Development files for gpgme</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">gpgme</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/share/aclocal</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="7">
|
||||
<Date>2015-08-21</Date>
|
||||
<Version>1.5.5</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2015-04-14</Date>
|
||||
<Version>1.5.3</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2014-12-13</Date>
|
||||
<Version>1.5.2</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-10-31</Date>
|
||||
<Version>1.5.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2014-06-29</Date>
|
||||
<Version>1.5.0</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Vedat Demir</Name>
|
||||
<Email>vedat@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-01-25</Date>
|
||||
<Version>1.4.3</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-09-30</Date>
|
||||
<Version>1.3.2</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gpgme</Name>
|
||||
<Summary xml:lang="tr">GnuPG Made Easy, GnuPG kullanmayı kolaylaştıran bir kütüphanedir</Summary>
|
||||
<Description xml:lang="tr">GPGME daha kolay uygulanması amacıyla GnuPG ye erişimi sağlamak için tasarlanmış bir kütüphanedir. Şifreleme, şifre çözme, imzalama, imza kontrolü ve anahtar yönetimi için yüksek düzeyde gizli uygulama programlama arayüzü sağlar.</Description>
|
||||
<Description xml:lang="fr">GPGME est une librairie conçue pour donner aux applications un accès plus facile à GnuPG. Elle fournit une interface de programmation d'application (API) de haut niveau pour la cryptographie permettant de crypter, décrypter, signer, vérifier les signatures et la gestion de clefs.</Description>
|
||||
<Description xml:lang="es">GPGME es una librería diseñada para simplificar el acceso a GnuPG para aplicaciones. Facilita una interfaz de programación de aplicación (API) de alto nivel para encriptación, decriptación, firmas, verificación de firmas y administración de llaves.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gpgme-devel</Name>
|
||||
<Summary xml:lang="tr">gpgme için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
autotools.configure("--disable-static")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")
|
||||
|
||||
def check():
|
||||
autotools.make("check")
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libksba</Name>
|
||||
<Homepage>http://www.gnupg.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv3</License>
|
||||
<IsA>library</IsA>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Library handling X.509 certificates and CMS data</Summary>
|
||||
<Description>libksba is a library designed to build software based on the X.509 and CMS protocols.</Description>
|
||||
<Archive sha1sum="86fe0436f3c8c394d32e142ee410a9f9560173fb" type="tarbz2">ftp://ftp.gnupg.org/gcrypt/libksba/libksba-1.3.3.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libgpg-error-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libksba</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libgpg-error</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="info">/usr/share/info</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libksba-devel</Name>
|
||||
<Summary>Development files for libksba</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libksba</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/share/aclocal</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2015-04-12</Date>
|
||||
<Version>1.3.3</Version>
|
||||
<Comment>Version Bump</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-01-31</Date>
|
||||
<Version>1.3.0</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-09-29</Date>
|
||||
<Version>1.3.0</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libksba</Name>
|
||||
<Summary xml:lang="tr">Çeşitli uygulamaların X.509 sertifikaları ve CMS verilerine kolay erişebilmesini sağlayan bir kitaplık</Summary>
|
||||
<Description xml:lang="tr">libksba, X.509 ve CMS protokollerini kullanan yazılımlar üretmek için kullanılan bir kitaplıktır.</Description>
|
||||
<Summary xml:lang="fr">rends les certificats X.509 et le CMS facilement accessible aux applications.</Summary>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libksba-devel</Name>
|
||||
<Summary xml:lang="tr">libksba için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import autotools
|
||||
|
||||
def setup():
|
||||
#autotools.autoreconf("-vfi")
|
||||
autotools.configure("--prefix=/usr \
|
||||
--enable-pinentry-curses \
|
||||
--disable-pinentry-gtk \
|
||||
--disable-pinentry-qt \
|
||||
--enable-pinentry-gtk2 \
|
||||
--disable-pinentry-qt4 \
|
||||
--enable-fallback-curses")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.install()
|
||||
|
||||
# We're using pinentry-wrapper as additional file instead of upstream pinentry symlink.
|
||||
pisitools.remove("/usr/bin/pinentry")
|
||||
|
||||
pisitools.dosym("pinentry-gtk-2", "/usr/bin/pinentry-gtk")
|
||||
#pisitools.dosym("pinentry-qt4", "/usr/bin/pinentry-qt")
|
||||
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "THANKS")
|
||||
@@ -0,0 +1,4 @@
|
||||
import os
|
||||
|
||||
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
|
||||
os.system("/bin/chmod 4755 /usr/kde/3.5/bin/pinentry")
|
||||
@@ -0,0 +1,20 @@
|
||||
Index: pinentry-0.8.0/configure.ac
|
||||
===================================================================
|
||||
--- pinentry-0.8.0.orig/configure.ac
|
||||
+++ pinentry-0.8.0/configure.ac
|
||||
@@ -434,11 +434,11 @@ AM_CONDITIONAL(BUILD_PINENTRY_W32, test
|
||||
# Please change the order only after verifying that the preferred
|
||||
# pinentry really is better (more feature-complete and more secure).
|
||||
|
||||
-if test "$pinentry_gtk_2" = "yes"; then
|
||||
- PINENTRY_DEFAULT=pinentry-gtk-2
|
||||
+if test "$pinentry_qt4" = "yes"; then
|
||||
+ PINENTRY_DEFAULT=pinentry-qt4
|
||||
else
|
||||
- if test "$pinentry_gtk" = "yes"; then
|
||||
- PINENTRY_DEFAULT=pinentry-gtk
|
||||
+ if test "$pinentry_gtk2" = "yes"; then
|
||||
+ PINENTRY_DEFAULT=pinentry-gtk-2
|
||||
else
|
||||
if test "$pinentry_qt" = "yes"; then
|
||||
PINENTRY_DEFAULT=pinentry-qt
|
||||
@@ -0,0 +1,11 @@
|
||||
diff -ru pinentry-0.7.2/qt/secqlineedit.cpp pinentry-0.7.2.new/qt/secqlineedit.cpp
|
||||
--- pinentry-0.7.2/qt/secqlineedit.cpp 2004-01-18 19:10:04.000000000 +0100
|
||||
+++ pinentry-0.7.2.new/qt/secqlineedit.cpp 2006-06-26 18:49:35.000000000 +0200
|
||||
@@ -536,6 +536,7 @@
|
||||
{
|
||||
d->echoMode = mode;
|
||||
d->updateTextLayout();
|
||||
+ setInputMethodEnabled (mode == Normal);
|
||||
update();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- autopatch-dummy/secmem/secmem.c
|
||||
+++ autopatch-dummy/secmem/secmem.c 2004/07/13 14:34:02
|
||||
@@ -85,7 +85,7 @@
|
||||
# define MAP_ANONYMOUS MAP_ANON
|
||||
#endif
|
||||
|
||||
-#define DEFAULT_POOLSIZE 16384
|
||||
+#define DEFAULT_POOLSIZE 16384*4
|
||||
|
||||
typedef struct memblock_struct MEMBLOCK;
|
||||
struct memblock_struct {
|
||||
@@ -0,0 +1,41 @@
|
||||
--- m4/curses.m4
|
||||
+++ m4/curses.m4
|
||||
@@ -28,7 +28,7 @@
|
||||
AC_ARG_ENABLE(ncurses, [ --disable-ncurses don't prefer -lncurses over -lcurses],
|
||||
, enable_ncurses=yes)
|
||||
if test "$enable_ncurses" = yes; then
|
||||
- AC_CHECK_LIB(ncurses, initscr, LIBNCURSES="-lncurses")
|
||||
+ AC_CHECK_LIB(ncursesw, initscr, LIBNCURSES="-lncursesw")
|
||||
if test "$LIBNCURSES"; then
|
||||
# Use ncurses header files instead of the ordinary ones, if possible;
|
||||
# is there a better way of doing this, that avoids looking in specific
|
||||
--- pinentry/pinentry-curses.c
|
||||
+++ pinentry/pinentry-curses.c
|
||||
@@ -546,6 +545,14 @@
|
||||
SCREEN *screen = 0;
|
||||
int done = 0;
|
||||
char *pin_utf8;
|
||||
+ char *old_ctype = NULL;
|
||||
+
|
||||
+
|
||||
+ if (pinentry->lc_ctype)
|
||||
+ {
|
||||
+ old_ctype = strdup (setlocale (LC_CTYPE, NULL));
|
||||
+ setlocale (LC_CTYPE, pinentry->lc_ctype);
|
||||
+ }
|
||||
|
||||
/* Open the desired terminal if necessary. */
|
||||
if (tty_name)
|
||||
@@ -684,6 +690,12 @@
|
||||
if (screen)
|
||||
delscreen (screen);
|
||||
|
||||
+ if (old_ctype)
|
||||
+ {
|
||||
+ setlocale (LC_CTYPE, old_ctype);
|
||||
+ free(old_ctype);
|
||||
+ }
|
||||
+
|
||||
if (ttyfi)
|
||||
fclose (ttyfi);
|
||||
if (ttyfo)
|
||||
@@ -0,0 +1,48 @@
|
||||
Index: pinentry-0.7.6/qt/main.cpp
|
||||
===================================================================
|
||||
--- pinentry-0.7.6.orig/qt/main.cpp
|
||||
+++ pinentry-0.7.6/qt/main.cpp
|
||||
@@ -71,23 +71,23 @@ qt_cmd_handler (pinentry_t pe)
|
||||
PinEntryDialog pinentry (parent, NULL, true, !!pe->quality_bar);
|
||||
|
||||
pinentry.setPinentryInfo (pe);
|
||||
- pinentry.setPrompt (QString::fromUtf8 (pe->prompt));
|
||||
- pinentry.setDescription (QString::fromUtf8 (pe->description));
|
||||
+ pinentry.setPrompt (QString::fromLocal8Bit (pe->prompt));
|
||||
+ pinentry.setDescription (QString::fromLocal8Bit (pe->description));
|
||||
/* If we reuse the same dialog window. */
|
||||
#if 0
|
||||
pinentry.setText (SecQString::null);
|
||||
#endif
|
||||
|
||||
if (pe->ok)
|
||||
- pinentry.setOkText (QString::fromUtf8 (pe->ok));
|
||||
+ pinentry.setOkText (QString::fromLocal8Bit (pe->ok));
|
||||
if (pe->cancel)
|
||||
- pinentry.setCancelText (QString::fromUtf8 (pe->cancel));
|
||||
+ pinentry.setCancelText (QString::fromLocal8Bit (pe->cancel));
|
||||
if (pe->error)
|
||||
- pinentry.setError (QString::fromUtf8 (pe->error));
|
||||
+ pinentry.setError (QString::fromLocal8Bit (pe->error));
|
||||
if (pe->quality_bar)
|
||||
- pinentry.setQualityBar (QString::fromUtf8 (pe->quality_bar));
|
||||
+ pinentry.setQualityBar (QString::fromLocal8Bit (pe->quality_bar));
|
||||
if (pe->quality_bar_tt)
|
||||
- pinentry.setQualityBarTT (QString::fromUtf8 (pe->quality_bar_tt));
|
||||
+ pinentry.setQualityBarTT (QString::fromLocal8Bit (pe->quality_bar_tt));
|
||||
|
||||
bool ret = pinentry.exec ();
|
||||
if (!ret)
|
||||
@@ -113,9 +113,9 @@ qt_cmd_handler (pinentry_t pe)
|
||||
}
|
||||
else
|
||||
{
|
||||
- QString desc = QString::fromUtf8 (pe->description? pe->description :"");
|
||||
- QString ok = QString::fromUtf8 (pe->ok ? pe->ok : "OK");
|
||||
- QString can = QString::fromUtf8 (pe->cancel ? pe->cancel : "Cancel");
|
||||
+ QString desc = QString::fromLocal8Bit (pe->description? pe->description :"");
|
||||
+ QString ok = QString::fromLocal8Bit (pe->ok ? pe->ok : "OK");
|
||||
+ QString can = QString::fromLocal8Bit (pe->cancel ? pe->cancel : "Cancel");
|
||||
bool ret;
|
||||
|
||||
ret = QMessageBox::information (parent, "", desc, ok, can );
|
||||
@@ -0,0 +1,77 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2009 Fedora Project
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
# Anna Bernathova <anicka@novell.com> 2006
|
||||
# Pavel Nemec <pnemec@novell.com> 2006
|
||||
# Rex Dieter <rdieter@fedoraproject.org> 2009
|
||||
#
|
||||
# use proper binary (pinentry-qt, pinentry-gtk-2 or pinentry-curses)
|
||||
|
||||
if [ -z "$PINENTRY_BINARY" ]; then
|
||||
|
||||
kde_running=
|
||||
if [ -n "$KDE_FULL_SESSION" ]; then
|
||||
kde_running=1
|
||||
elif [ -n "$DISPLAY" ]; then
|
||||
xprop -root | grep "^KDE_FULL_SESSION" >/dev/null 2>/dev/null
|
||||
if test $? -eq 0; then
|
||||
kde_running=1
|
||||
fi
|
||||
else
|
||||
arg=
|
||||
display=
|
||||
for opt in "$@"; do
|
||||
if [ "$opt" = "--display" ]; then
|
||||
arg=1
|
||||
elif [ -n "$arg" ]; then
|
||||
display="$opt"
|
||||
else
|
||||
arg=
|
||||
fi
|
||||
done
|
||||
if [ -n "$display" ]; then
|
||||
DISPLAY="$display" xprop -root | grep "^KDE_FULL_SESSION" >/dev/null 2>/dev/null
|
||||
if test $? -eq 0; then
|
||||
kde_running=1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# if KDE is detected and pinentry-qt exists, use pinentry-qt
|
||||
if [ -n "$kde_running" -a -x /usr/bin/pinentry-qt ]
|
||||
then
|
||||
export PINENTRY_BINARY="/usr/bin/pinentry-qt"
|
||||
# otherwise test if pinentry-gtk-2 is installed
|
||||
elif [ -x /usr/bin/pinentry-gtk-2 ]
|
||||
then
|
||||
export PINENTRY_BINARY="/usr/bin/pinentry-gtk-2"
|
||||
# otherwise test if pinentry-qt3 is installed
|
||||
elif [ -x /usr/bin/pinentry-qt3 ]
|
||||
then
|
||||
export PINENTRY_BINARY="/usr/bin/pinentry-qt"
|
||||
# otherwise test if pinentry-qt exists although KDE is not detected
|
||||
elif [ -x /usr/bin/pinentry-qt ]
|
||||
then
|
||||
export PINENTRY_BINARY="/usr/bin/pinentry-qt3"
|
||||
# pinentry-curses is installed by default
|
||||
else
|
||||
#test if gui binary is required
|
||||
for opt in "$@"; do
|
||||
if [ "x$opt" = "x--display" ]; then
|
||||
# should not happen because of package dependencies
|
||||
echo "Please install pinentry-gui" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
export PINENTRY_BINARY="/usr/bin/pinentry-curses"
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
exec $PINENTRY_BINARY "$@"
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>pinentry</Name>
|
||||
<Homepage>http://www.gnupg.org/aegypten/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2+</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol</Summary>
|
||||
<Description>Pinentry is a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol as described by the aegypten project.</Description>
|
||||
<Archive sha1sum="11979a6826ef5de73b52fd8c5b84f8321a133e53" type="tarbz2">ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-0.9.5.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libsecret-devel</Dependency>
|
||||
<Dependency>libgpg-error-devel</Dependency>
|
||||
<Dependency>libassuan-devel</Dependency>
|
||||
<Dependency>gtk2-devel</Dependency>
|
||||
<Dependency>pango-devel</Dependency>
|
||||
<Dependency>libcap-devel</Dependency>
|
||||
<Dependency>ncurses-devel</Dependency>
|
||||
<Dependency>glib2-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!--<Patch level="1">moreSecureMemoryForPinentry-qt.diff</Patch>-->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>pinentry</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="info">/usr/share/info</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>glib2</Dependency>
|
||||
<Dependency>libassuan</Dependency>
|
||||
<Dependency>libsecret</Dependency>
|
||||
<Dependency>libgpg-error</Dependency>
|
||||
<Dependency>libcap</Dependency>
|
||||
<Dependency>ncurses</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0755" target="/usr/bin/pinentry">pinentry-wrapper</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<!--Package>
|
||||
<Name>pinentry-qt</Name>
|
||||
<Summary>pinentry for Qt4 toolkit</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>qt</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>pinentry</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin/pinentry-qt*</Path>
|
||||
</Files>
|
||||
</Package-->
|
||||
|
||||
<Package>
|
||||
<Name>pinentry-gtk</Name>
|
||||
<Summary>pinentry for GTK toolkit</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>pinentry</Dependency>
|
||||
<Dependency>ncurses</Dependency>
|
||||
<Dependency>libcap</Dependency>
|
||||
<Dependency>libassuan</Dependency>
|
||||
<Dependency>libsecret</Dependency>
|
||||
<Dependency>libgpg-error</Dependency>
|
||||
<Dependency>glib2</Dependency>
|
||||
<Dependency>gtk2</Dependency>
|
||||
<Dependency>pango</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin/pinentry-gtk*</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="5">
|
||||
<Date>2015-08-21</Date>
|
||||
<Version>0.9.5</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2015-04-13</Date>
|
||||
<Version>0.9.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2014-01-04</Date>
|
||||
<Version>0.8.3</Version>
|
||||
<Comment>Rebuid.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-01-04</Date>
|
||||
<Version>0.8.3</Version>
|
||||
<Comment>Version Bump.</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-04</Date>
|
||||
<Version>0.8.2</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>namso-0"@hotmail.it</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>pinentry</Name>
|
||||
<Summary xml:lang="tr">Assuan protokolünün kullanımı için basit PIN veya parola-kelimesi girişi arabirimleri</Summary>
|
||||
<Description xml:lang="tr">Pinetry Aegypten projesi tarafından tanımlanan Assuan protokolünden faydalanan basit PIN veya şifre girme diaologları derlemesidir.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>pinentry-gtk</Name>
|
||||
<Summary xml:lang="tr">GTK+ ile yazılmış pinentry arayüzü</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>pinentry-qt3</Name>
|
||||
<Summary xml:lang="tr">Qt3 ile yazılmış pinentry arayüzü</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>pinentry-qt</Name>
|
||||
<Summary xml:lang="tr">Qt4 ile yazılmış pinentry arayüzü</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user