From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 004D21384B4 for ; Sun, 13 Dec 2015 08:21:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F2181E08CA; Sun, 13 Dec 2015 08:21:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 720C5E08CA for ; Sun, 13 Dec 2015 08:21:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D1D8934069A for ; Sun, 13 Dec 2015 08:21:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6F9419A1 for ; Sun, 13 Dec 2015 08:21:17 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1449994861.1a2e3a58775b0d5c74b00567f1da79555f776771.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/otpcalc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/otpcalc/Manifest sys-auth/otpcalc/otpcalc-0.97-r7.ebuild X-VCS-Directories: sys-auth/otpcalc/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 1a2e3a58775b0d5c74b00567f1da79555f776771 X-VCS-Branch: master Date: Sun, 13 Dec 2015 08:21:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7995ff0e-514c-4e6e-b05a-ec7efbe396ed X-Archives-Hash: a54a9778fdc853f21ddb6b9fa2b34e82 commit: 1a2e3a58775b0d5c74b00567f1da79555f776771 Author: Ulrich Müller gentoo org> AuthorDate: Sun Dec 13 08:21:01 2015 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sun Dec 13 08:21:01 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a2e3a58 sys-auth/otpcalc: Fix out-of-bounds read and other changes. Port a patch to the extract() function from the skey patchset, fixing an out-of-bounds read. Move patches from FILESDIR into a distfile. Add slot 0 to dev-libs/openssl dependency. Update ebuild to EAPI 6. Package-Manager: portage-2.2.26 sys-auth/otpcalc/Manifest | 1 + sys-auth/otpcalc/otpcalc-0.97-r7.ebuild | 49 +++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/sys-auth/otpcalc/Manifest b/sys-auth/otpcalc/Manifest index 36425b6..1121735 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 0000000..f673026 --- /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 +}