summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2010-10-18 20:38:18 +0000
committerUlrich Müller <ulm@gentoo.org>2010-10-18 20:38:18 +0000
commit14dc41a6578aeed076b9bda9183e8b4f4964b5a2 (patch)
tree44e9f0e4955346b92d43cd501550500aeb09b6cd /sys-auth/otpcalc
parentStable for HPPA (bug #323529). (diff)
downloadgentoo-2-14dc41a6578aeed076b9bda9183e8b4f4964b5a2.tar.gz
gentoo-2-14dc41a6578aeed076b9bda9183e8b4f4964b5a2.tar.bz2
gentoo-2-14dc41a6578aeed076b9bda9183e8b4f4964b5a2.zip
Add "System" category to desktop entry to make desktop-file-validate happy.
Symlink otpCalc to otpcalc. (Portage version: 2.1.9.19/cvs/Linux x86_64)
Diffstat (limited to 'sys-auth/otpcalc')
-rw-r--r--sys-auth/otpcalc/ChangeLog9
-rw-r--r--sys-auth/otpcalc/files/otpcalc.desktop7
-rw-r--r--sys-auth/otpcalc/otpcalc-0.97-r5.ebuild55
3 files changed, 70 insertions, 1 deletions
diff --git a/sys-auth/otpcalc/ChangeLog b/sys-auth/otpcalc/ChangeLog
index 4b8decebf95e..3d504c3228f4 100644
--- a/sys-auth/otpcalc/ChangeLog
+++ b/sys-auth/otpcalc/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-auth/otpcalc
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/otpcalc/ChangeLog,v 1.9 2010/07/12 20:39:36 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/otpcalc/ChangeLog,v 1.10 2010/10/18 20:38:18 ulm Exp $
+
+*otpcalc-0.97-r5 (18 Oct 2010)
+
+ 18 Oct 2010; Ulrich Mueller <ulm@gentoo.org> +otpcalc-0.97-r5.ebuild,
+ +files/otpcalc.desktop:
+ Add "System" category to desktop entry to make desktop-file-validate happy.
+ Symlink otpCalc to otpcalc.
12 Jul 2010; Samuli Suominen <ssuominen@gentoo.org>
otpcalc-0.97-r4.ebuild:
diff --git a/sys-auth/otpcalc/files/otpcalc.desktop b/sys-auth/otpcalc/files/otpcalc.desktop
new file mode 100644
index 000000000000..fbe3d98d3e3d
--- /dev/null
+++ b/sys-auth/otpcalc/files/otpcalc.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=otpCalc
+Comment=One Time Password and S/Key calculator
+Exec=otpCalc
+Categories=Utility;GTK;System;Security;
diff --git a/sys-auth/otpcalc/otpcalc-0.97-r5.ebuild b/sys-auth/otpcalc/otpcalc-0.97-r5.ebuild
new file mode 100644
index 000000000000..d998210ab48e
--- /dev/null
+++ b/sys-auth/otpcalc/otpcalc-0.97-r5.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/otpcalc/otpcalc-0.97-r5.ebuild,v 1.1 2010/10/18 20:38:18 ulm Exp $
+
+EAPI=3
+
+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_prepare() {
+ epatch "${FILESDIR}/${PN}-man-table-format.diff"
+ epatch "${FILESDIR}/${P}-badindex.diff"
+ epatch "${FILESDIR}/${PN}-crypto-proto.diff"
+
+ # make it work with GTK+ 2
+ epatch "${FILESDIR}/${P}-gtk2-gentoo.patch"
+
+ # change default s/key hash to MD5 (same as sys-auth/skey)
+ epatch "${FILESDIR}/${P}-skey-md5.patch"
+
+ # fix SHA1 byte-order issue for conformance with RFC 2289
+ epatch "${FILESDIR}/${P}-sha1-byteorder.patch"
+
+ # print correct version in manpage
+ sed -i -e "s/VERSION/${PV}/g" otpCalc.man || die
+
+ # override hardcoded FLAGS
+ sed -i \
+ -e 's:$(CC) $(CFLAGS) $^:$(CC) $(LDFLAGS) $(CFLAGS) $^:' \
+ -e "s#-s -O3#${CFLAGS}#g" \
+ Makefile.in || die
+}
+
+src_install() {
+ dobin otpCalc || die
+ dosym otpCalc /usr/bin/otpcalc || die
+ newman otpCalc.man otpCalc.1 || die
+ domenu "${FILESDIR}/${PN}.desktop" || die
+ dodoc BUGS ChangeLog TODO || die
+}