summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-05-11 12:37:37 +0000
committerUlrich Müller <ulm@gentoo.org>2008-05-11 12:37:37 +0000
commitf083d242786890ccfbf4676117ca6527e82fe81f (patch)
treee8bce676acc912f69a37fdfa6537e2ea98772c62 /sys-auth
parentPackage move from app-admin/skey to sys-auth/skey. (diff)
downloadhistorical-f083d242786890ccfbf4676117ca6527e82fe81f.tar.gz
historical-f083d242786890ccfbf4676117ca6527e82fe81f.tar.bz2
historical-f083d242786890ccfbf4676117ca6527e82fe81f.zip
Package move from app-admin/otpcalc to sys-auth/otpcalc.
Package-Manager: portage-2.1.5_rc10 RepoMan-Options: --force
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/otpcalc/ChangeLog114
-rw-r--r--sys-auth/otpcalc/files/otpcalc-0.97-badindex.diff11
-rw-r--r--sys-auth/otpcalc/files/otpcalc-0.97-gtk2-gentoo.patch70
-rw-r--r--sys-auth/otpcalc/files/otpcalc-crypto-proto.diff12
-rw-r--r--sys-auth/otpcalc/files/otpcalc-man-table-format.diff33
-rw-r--r--sys-auth/otpcalc/metadata.xml12
-rw-r--r--sys-auth/otpcalc/otpcalc-0.97-r2.ebuild54
7 files changed, 306 insertions, 0 deletions
diff --git a/sys-auth/otpcalc/ChangeLog b/sys-auth/otpcalc/ChangeLog
new file mode 100644
index 000000000000..27212e5625ce
--- /dev/null
+++ b/sys-auth/otpcalc/ChangeLog
@@ -0,0 +1,114 @@
+# ChangeLog for sys-auth/otpcalc
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/otpcalc/ChangeLog,v 1.1 2008/05/11 12:37:37 ulm Exp $
+
+ 11 May 2008; Ulrich Mueller <ulm@gentoo.org>
+ +files/otpcalc-0.97-badindex.diff, +files/otpcalc-0.97-gtk2-gentoo.patch,
+ +files/otpcalc-crypto-proto.diff, +files/otpcalc-man-table-format.diff,
+ +metadata.xml, +otpcalc-0.97-r2.ebuild:
+ Package move from app-admin/otpcalc to sys-auth/otpcalc.
+
+ 21 Jan 2008; Samuli Suominen <drac@gentoo.org> -otpcalc-0.97-r1.ebuild:
+ Remove unused GTK+-1.2 version.
+
+ 20 Jan 2008; Raúl Porcel <armin76@gentoo.org> otpcalc-0.97-r2.ebuild:
+ alpha/sparc/x86 stable wrt #206694
+
+ 20 Jan 2008; nixnut <nixnut@gentoo.org> otpcalc-0.97-r2.ebuild:
+ Stable on ppc wrt bug 206694
+
+ 19 Jan 2008; Samuli Suominen <drac@gentoo.org> otpcalc-0.97-r2.ebuild:
+ amd64 stable
+
+ 09 Jan 2008; Ulrich Mueller <ulm@gentoo.org> otpcalc-0.97-r2.ebuild:
+ Depend on dev-util/pkgconfig, fixes bug #205012.
+
+ 30 Dec 2007; Ulrich Mueller <ulm@gentoo.org> otpcalc-0.97-r2.ebuild:
+ Add missing dependency on openssl. Install docs.
+
+*otpcalc-0.97-r2 (26 Dec 2007)
+
+ 26 Dec 2007; Ulrich Mueller <ulm@gentoo.org>
+ +files/otpcalc-0.97-gtk2-gentoo.patch, +otpcalc-0.97-r2.ebuild:
+ Convert to GTK+-2. Minor cleanups of the ebuild. Install desktop entry.
+
+ 25 Dec 2007; Ulrich Mueller <ulm@gentoo.org> metadata.xml,
+ otpcalc-0.97-r1.ebuild:
+ Add myself as maintainer. Keyword ~amd64.
+
+ 25 Dec 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
+ Removing taviso from metadata.xml as per #202471. Assigning to
+ maintainer-needed.
+
+ 08 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
+ Regenerate digest in Manifest2 format.
+
+ 29 Oct 2006; Tavis Ormandy <taviso@gentoo.org> -otpcalc-0.96.ebuild,
+ -otpcalc-0.97.ebuild:
+ remove stale ebuilds
+
+ 19 Apr 2006; Thomas Cort <tcort@gentoo.org> otpcalc-0.97-r1.ebuild:
+ Stable on alpha wrt Bug #123993.
+
+ 19 Apr 2006; Tavis Ormandy <taviso@gentoo.org>
+ +files/otpcalc-crypto-proto.diff, otpcalc-0.97-r1.ebuild:
+ correct cypto prototypes with patch from tcort #123993
+
+ 27 Feb 2006; Gustavo Zacarias <gustavoz@gentoo.org>
+ otpcalc-0.97-r1.ebuild:
+ Stable on sparc wrt #123993
+
+ 26 Feb 2006; Tobias Scherbaum <dertobi123@gentoo.org>
+ otpcalc-0.97-r1.ebuild:
+ ppc stable, bug #123993
+
+ 25 Feb 2006; Mark Loeser <halcy0n@gentoo.org> otpcalc-0.97-r1.ebuild:
+ Stable on x86; bug #123993
+
+*otpcalc-0.97-r1 (24 Feb 2006)
+
+ 24 Feb 2006; Tavis Ormandy <taviso@gentoo.org>
+ +files/otpcalc-0.97-badindex.diff, +otpcalc-0.97-r1.ebuild:
+ fix #123976, not enough elements allocated for array of func ptrs.
+
+ 24 Feb 2006; Tavis Ormandy <taviso@gentoo.org> otpcalc-0.97.ebuild:
+ #123950 kill virtual/x11 dep
+
+ 20 Jul 2005; Gustavo Zacarias <gustavoz@gentoo.org> otpcalc-0.97.ebuild:
+ Stable on sparc
+
+ 03 Jul 2005; Michael Hanselmann <hansmi@gentoo.org> otpcalc-0.97.ebuild:
+ Stable on ppc.
+
+ 22 Jun 2005; Gustavo Zacarias <gustavoz@gentoo.org> otpcalc-0.97.ebuild:
+ To ~sparc
+
+*otpcalc-0.97 (06 Jun 2005)
+
+ 06 Jun 2005; Tavis Ormandy <taviso@gentoo.org> otpcalc-0.97.ebuild:
+ stable on x86
+
+ 01 May 2005; Michael Hanselmann <hansmi@gentoo.org> otpcalc-0.96.ebuild:
+ Stable on ppc.
+
+ 29 Apr 2005; Tavis Ormandy <taviso@gentoo.org> :
+ fixing #90900, bump new version
+
+ 24 Apr 2005; Stephanie Lockwood-Childs <wormo@gentoo.org>
+ otpcalc-0.96.ebuild:
+ mark ~ppc
+
+ 25 Mar 2004; Martin Holzer <mholzer@gentoo.org> otpcalc-0.96.ebuild:
+ fixing depend. see 45343
+
+ 15 Sep 2003; Tavis Ormandy <taviso@gentoo.org> otpcalc-0.96.ebuild:
+ stable
+
+ 05 Sep 2003; Tavis Ormandy <taviso@gentoo.org> otpcalc-0.96.ebuild:
+ package has odd capitalisation, fixing a typo.
+
+*otpcalc-0.96 (05 Sep 2003)
+
+ 05 Sep 2003; Tavis Ormandy <taviso@gentoo.org> otpcalc-0.96.ebuild:
+ initial import
+
diff --git a/sys-auth/otpcalc/files/otpcalc-0.97-badindex.diff b/sys-auth/otpcalc/files/otpcalc-0.97-badindex.diff
new file mode 100644
index 000000000000..db1db17ba767
--- /dev/null
+++ b/sys-auth/otpcalc/files/otpcalc-0.97-badindex.diff
@@ -0,0 +1,11 @@
+--- otpCalc-0.97.orig/callbacks.c 2004-11-24 05:57:45.000000000 +0000
++++ otpCalc-0.97/callbacks.c 2006-02-24 22:36:56.602831704 +0000
+@@ -81,7 +81,7 @@
+ void calculate(void)
+ {
+
+- void (*hashes[4])();
++ void (*hashes[5])();
+
+ gchar *challenge, *passwd, *message, *response;
+ struct tokens *set;
diff --git a/sys-auth/otpcalc/files/otpcalc-0.97-gtk2-gentoo.patch b/sys-auth/otpcalc/files/otpcalc-0.97-gtk2-gentoo.patch
new file mode 100644
index 000000000000..19abd5d2f34d
--- /dev/null
+++ b/sys-auth/otpcalc/files/otpcalc-0.97-gtk2-gentoo.patch
@@ -0,0 +1,70 @@
+--- otpCalc-0.97-orig/Makefile.in 2004-11-24 07:44:12.000000000 +0100
++++ otpCalc-0.97/Makefile.in 2007-12-26 00:38:52.000000000 +0100
+@@ -3,8 +3,8 @@
+
+ CC = @CC@
+ DEFS = -DVERSION=\"$(VER)\" @DEFS@
+-CFLAGS = -s -O3 -Wall -pipe `gtk-config --cflags`
+-LIBS = `gtk-config --libs` @LIBS@
++CFLAGS = -s -O3 -Wall -pipe `pkg-config --cflags gtk+-2.0`
++LIBS = `pkg-config --libs gtk+-2.0` @LIBS@
+
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+--- otpCalc-0.97-orig/callbacks.c 2004-11-24 06:57:45.000000000 +0100
++++ otpCalc-0.97/callbacks.c 2007-12-26 00:38:52.000000000 +0100
+@@ -236,7 +236,7 @@
+ }
+
+
+-void focus(GtkWidget *widget, gpointer data)
++gboolean focus(GtkWidget *widget, GdkEvent *event, gpointer data)
+ {
+
+ static GdkAtom targets;
+@@ -244,12 +244,12 @@
+
+
+ if (!autopaste)
+- return;
++ return FALSE;
+
+ targets = gdk_atom_intern("STRING", FALSE);
+
+ gtk_selection_convert(widget, GDK_SELECTION_PRIMARY, targets,
+ GDK_CURRENT_TIME);
+
+-
++ return FALSE;
+ }
+--- otpCalc-0.97-orig/gui.c 2004-11-24 07:46:53.000000000 +0100
++++ otpCalc-0.97/gui.c 2007-12-26 00:38:52.000000000 +0100
+@@ -29,7 +29,7 @@
+ GtkWidget *te_response;
+
+ unsigned short hash;
+-unsigned short newline = 1;
++unsigned short newline = 0;
+ unsigned short autopaste = 1;
+
+ int main(int argc, char *argv[])
+@@ -147,7 +147,7 @@
+
+ /* Setup the menu bar... */
+ mb_top = gtk_menu_bar_new();
+- gtk_menu_bar_set_shadow_type(GTK_MENU_BAR(mb_top), GTK_SHADOW_NONE);
++ /*gtk_menu_bar_set_shadow_type(GTK_MENU_BAR(mb_top), GTK_SHADOW_NONE);*/
+ gtk_table_attach(GTK_TABLE(ta_top), mb_top, 0, 3, 0, 1,
+ (GtkAttachOptions)(GTK_FILL),
+ (GtkAttachOptions)(0), 0, 0);
+--- otpCalc-0.97-orig/utility.c 2004-11-24 06:59:09.000000000 +0100
++++ otpCalc-0.97/utility.c 2007-12-26 00:38:52.000000000 +0100
+@@ -422,7 +422,7 @@
+ words[extract(message, 33, 11)],
+ words[extract(message, 44, 11)],
+ words[extract(message, 55, 11)],
+- (newline == 1) ? "\n" : NULL);
++ (newline == 1) ? "\n" : "");
+
+ return response;
+
diff --git a/sys-auth/otpcalc/files/otpcalc-crypto-proto.diff b/sys-auth/otpcalc/files/otpcalc-crypto-proto.diff
new file mode 100644
index 000000000000..deb65465f5e6
--- /dev/null
+++ b/sys-auth/otpcalc/files/otpcalc-crypto-proto.diff
@@ -0,0 +1,12 @@
+diff -urN otpCalc-0.97.orig/crypto.h otpCalc-0.97/crypto.h
+--- otpCalc-0.97.orig/crypto.h 2001-05-12 02:04:54.000000000 -0400
++++ otpCalc-0.97/crypto.h 2006-03-21 17:24:54.000000000 -0500
+@@ -1,4 +1,4 @@
+-void md4lite(char *, size_t);
+-void md5lite(char *, size_t);
+-void rmd160lite(char *, size_t);
+-void sha1lite(char *, size_t);
++void md4lite(char *message, unsigned int len);
++void md5lite(char *message, unsigned int len);
++void rmd160lite(char *message, unsigned int len);
++void sha1lite(char *message, unsigned int len);
diff --git a/sys-auth/otpcalc/files/otpcalc-man-table-format.diff b/sys-auth/otpcalc/files/otpcalc-man-table-format.diff
new file mode 100644
index 000000000000..062cce7f4b5f
--- /dev/null
+++ b/sys-auth/otpcalc/files/otpcalc-man-table-format.diff
@@ -0,0 +1,33 @@
+--- otpCalc.man.orig 2005-04-29 23:17:06.000000000 +0100
++++ otpCalc.man 2005-04-29 23:19:03.000000000 +0100
+@@ -24,18 +24,20 @@
+ the Challenge input:
+ .IP
+ .TS
+-s/key MD4
+-.br
+-otp-md4 MD4
+-.br
+-otp-md5 MD5
+-.br
+-otp-rmd160 RIPEMD-160
+-.br
+-otp-sha1 SHA1
+-.br
++allbox tab(#);
++cb l
++cb l
++cb l
++cb l
++cb l.
++s/key#MD4
++otp-md4#MD4
++otp-md5#MD5
++otp-rmd160#RIPEMD-160
++otp-sha1#SHA1
+ .TE
+ .LP
++.LP
+ In the absence of a prefix, the default hash, specified in the Settings menu,
+ is used.
+ .SH "SEE ALSO"
diff --git a/sys-auth/otpcalc/metadata.xml b/sys-auth/otpcalc/metadata.xml
new file mode 100644
index 000000000000..f759cac16051
--- /dev/null
+++ b/sys-auth/otpcalc/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>ulm@gentoo.org</email>
+</maintainer>
+<longdescription lang="en">
+ otpCalc is an RFC2289 and RFC1760 compliant one time password calculator,
+ written to use the GTK+ library for screen I/O.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-auth/otpcalc/otpcalc-0.97-r2.ebuild b/sys-auth/otpcalc/otpcalc-0.97-r2.ebuild
new file mode 100644
index 000000000000..f4d785dbd6b5
--- /dev/null
+++ b/sys-auth/otpcalc/otpcalc-0.97-r2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/otpcalc/otpcalc-0.97-r2.ebuild,v 1.1 2008/05/11 12:37:37 ulm Exp $
+
+inherit eutils
+
+DESCRIPTION="A One Time Password and S/Key calculator for X"
+HOMEPAGE="http://killa.net/infosec/otpCalc/"
+SRC_URI="http://killa.net/infosec/otpCalc/otpCalc-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc sparc x86"
+IUSE=""
+
+RDEPEND="=x11-libs/gtk+-2*
+ dev-libs/openssl"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/otpCalc-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PN}-man-table-format.diff"
+ epatch "${FILESDIR}/${P}-badindex.diff"
+ epatch "${FILESDIR}/${PN}-crypto-proto.diff"
+ epatch "${FILESDIR}/${P}-gtk2-gentoo.patch"
+
+ # print correct version in manpage
+ sed -i -e "s/VERSION/${PV}/g" otpCalc.man
+
+ # override hardcoded CFLAGS
+ sed -i -e "s#-s -O3#${CFLAGS}#g" Makefile.in
+}
+
+src_install() {
+ dobin otpCalc || die
+ newman otpCalc.man otpCalc.1 || die
+ dodoc BUGS ChangeLog TODO || die
+
+ cat <<-EOF >"${T}"/${PN}.desktop
+ [Desktop Entry]
+ Type=Application
+ Version=1.0
+ Name=otpCalc
+ Comment=One Time Password and S/Key calculator
+ Exec=otpCalc
+ Categories=Utility;GTK;Security;
+ EOF
+ domenu "${T}"/${PN}.desktop || die
+}