Initial ebuild in bug #65418
authorDaniel Black <dragonheart@gentoo.org>
Sun, 2 Jan 2005 09:52:12 +0000 (09:52 +0000)
committerDaniel Black <dragonheart@gentoo.org>
Sun, 2 Jan 2005 09:52:12 +0000 (09:52 +0000)
app-crypt/scsign/ChangeLog [new file with mode: 0644]
app-crypt/scsign/Manifest [new file with mode: 0644]
app-crypt/scsign/files/digest-scsign-0.0.4 [new file with mode: 0644]
app-crypt/scsign/files/scsign-0.0.4-printid.patch [new file with mode: 0644]
app-crypt/scsign/metadata.xml [new file with mode: 0644]
app-crypt/scsign/scsign-0.0.4.ebuild [new file with mode: 0644]

diff --git a/app-crypt/scsign/ChangeLog b/app-crypt/scsign/ChangeLog
new file mode 100644 (file)
index 0000000..d151174
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for app-crypt/scsign
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/scsign/ChangeLog,v 1.1 2005/01/02 09:52:12 dragonheart Exp $
+
+*scsign-0.0.4 (02 Jan 2005)
+
+  02 Jan 2005; Daniel Black <dragonheart@gentoo.org> +metadata.xml,
+  +scsign-0.0.4.ebuild, +files/scsign-0.0.4-printid.patch:
+  Initial ebuild in bug #65418 by Emilio Pavia <emix@solira.org>
+
diff --git a/app-crypt/scsign/Manifest b/app-crypt/scsign/Manifest
new file mode 100644 (file)
index 0000000..41c180b
--- /dev/null
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 a577cbb2fd710dd1e3eee0a4e14efb38 scsign-0.0.4.ebuild 799
+MD5 9979c4e501313f0e6346ec660ba7e698 metadata.xml 373
+MD5 114e30620984928c73a5b5527ef46bee ChangeLog 432
+MD5 217fea83a8ef8ad72f02e1c2acfbbab4 files/digest-scsign-0.0.4 63
+MD5 b414df7baf1e76821f5f09d4777e6420 files/scsign-0.0.4-printid.patch 555
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.0 (GNU/Linux)
+
+iD8DBQFB18RSmdTrptrqvGERArAQAKCSoYLAY3oWwxQISQvpUxQthzItygCfQhV9
+m0Qb78I58OEobYQ76yMjfdE=
+=rs2b
+-----END PGP SIGNATURE-----
diff --git a/app-crypt/scsign/files/digest-scsign-0.0.4 b/app-crypt/scsign/files/digest-scsign-0.0.4
new file mode 100644 (file)
index 0000000..c54e316
--- /dev/null
@@ -0,0 +1 @@
+MD5 77d2028780e8755f321e87f73c1d4855 scsign-0.0.4.tar.gz 36556
diff --git a/app-crypt/scsign/files/scsign-0.0.4-printid.patch b/app-crypt/scsign/files/scsign-0.0.4-printid.patch
new file mode 100644 (file)
index 0000000..ee11b4c
--- /dev/null
@@ -0,0 +1,16 @@
+--- scsign.c.orig      2005-01-02 18:55:24.492531880 +0930
++++ scsign.c   2005-01-02 18:59:27.489590712 +0930
+@@ -642,9 +642,11 @@
+       int ii;
+         struct sc_pkcs15_cert_info *cert = (struct sc_pkcs15_cert_info *) objs[i]->data;
+       
+-        printf("ID: %s - ", sc_pkcs15_print_id(&cert->id));
++        printf("ID: ");
+ 
+-        printf("%s - Path: ", objs[i]->label);
++      sc_pkcs15_print_id(&cert->id);
++
++        printf(" - %s - Path: ", objs[i]->label);
+ 
+         for (ii = 0; ii < cert->path.len; ii++)
+                 printf("%02X", cert->path.value[ii]);
diff --git a/app-crypt/scsign/metadata.xml b/app-crypt/scsign/metadata.xml
new file mode 100644 (file)
index 0000000..636c789
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>crypto</herd>
+<maintainer>
+  <email>dragonheart@gentoo.org</email>
+    <name>Daniel Black</name>
+</maintainer>
+<longdescription>Scsign is a small command-line utility to digitally sign a file
+using smartcards.</longdescription>
+</pkgmetadata>
diff --git a/app-crypt/scsign/scsign-0.0.4.ebuild b/app-crypt/scsign/scsign-0.0.4.ebuild
new file mode 100644 (file)
index 0000000..a6d9571
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/scsign/scsign-0.0.4.ebuild,v 1.1 2005/01/02 09:52:12 dragonheart Exp $
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Scsign - a command-line utility to digitally sign a file"
+HOMEPAGE="http://opensignature.sourceforge.net/"
+SRC_URI="mirror://sourceforge/opensignature/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+S=${WORKDIR}
+
+DEPEND=">=dev-libs/opensc-0.8.1
+       dev-libs/openssl
+       sys-apps/pcsc-lite"
+
+src_unpack() {
+       unpack ${A}
+       epatch ${FILESDIR}/${P}-printid.patch || die "patch failed"
+}
+
+src_compile() {
+       $(tc-getCC) ${CFLAGS}  -lcrypto -lpcsclite -lpthread -lopensc scsign.c -o scsign || die
+}
+
+src_install() {
+       dobin scsign
+}