summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-auth/otpcalc')
-rw-r--r--sys-auth/otpcalc/Manifest1
-rw-r--r--sys-auth/otpcalc/otpcalc-0.97-r7.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/sys-auth/otpcalc/Manifest b/sys-auth/otpcalc/Manifest
index 36425b6a8fc6..11217354bf06 100644
--- a/sys-auth/otpcalc/Manifest
+++ b/sys-auth/otpcalc/Manifest
@@ -1 +1,2 @@
DIST otpCalc-0.97.tar.gz 123704 SHA256 e2c19fa6178ed42f0576650db6f94942cac366feadf82c2a679b35197c65f745 SHA512 5d22bd01fe90b32801d6f1c5ac3105036c14ac8197dda3c8454974ec72830a5f8cd693bd0520a51defdb0a7c7703483770410ba560436168826f8b6133a2524f WHIRLPOOL f73c745e336e9196003869c76cbf30a69dd94fde2549a2cd3391de531b36e36504e4d5c779159f254c425f69381be3bae05f0cdd13a1a920d593f82db0052459
+DIST otpcalc-0.97-patches-1.tar.xz 4384 SHA256 596dc03c86ed1552f3527c0649a54a98727b237c79f094d69756b2dd25165706 SHA512 950b2df68acf377750710b0b9578b431b4aa745414a494b87062fffa559485cc4117bb08e68f22a79781047cfd2682082e30b1db81cddc5a3448bc285c5553bf WHIRLPOOL d6e6d541c5e1c30ea7aa160b86c05bfba1265f314141040cc345824184beb67ac6d4d9530e3b4175f09113712dc6a34bbb15a41caecb427a980c71e20e04da11
diff --git a/sys-auth/otpcalc/otpcalc-0.97-r7.ebuild b/sys-auth/otpcalc/otpcalc-0.97-r7.ebuild
new file mode 100644
index 000000000000..f673026ad5a2
--- /dev/null
+++ b/sys-auth/otpcalc/otpcalc-0.97-r7.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+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
+ https://dev.gentoo.org/~ulm/distfiles/${P}-patches-1.tar.xz"
+
+LICENSE="GPL-2+" # bundled crypto functions are not used
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="x11-libs/gtk+:2
+ dev-libs/openssl:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/otpCalc-${PV}"
+
+src_prepare() {
+ eapply ../patch
+ eapply_user
+
+ # override hardcoded FLAGS
+ sed -i \
+ -e 's:$(CC) $(CFLAGS) $^:$(CC) $(LDFLAGS) $(CFLAGS) $^:' \
+ -e "s#-s -O3#${CFLAGS}#g" \
+ Makefile.in || die
+
+ tc-export CC
+}
+
+src_compile() {
+ emake otpCalc otpCalc.1
+}
+
+src_install() {
+ dobin otpCalc
+ dosym otpCalc /usr/bin/otpcalc
+ doman otpCalc.1
+ newman - otpcalc.1 <<< ".so man1/otpCalc.1"
+ domenu "${FILESDIR}/${PN}.desktop"
+ dodoc BUGS ChangeLog TODO
+}