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 665FF59CA3 for ; Mon, 14 Mar 2016 02:50:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF51621C025; Mon, 14 Mar 2016 02:50:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5E07C21C025 for ; Mon, 14 Mar 2016 02:50:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 58CBC3409B7 for ; Mon, 14 Mar 2016 02:50:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B0E0C822 for ; Mon, 14 Mar 2016 02:50:18 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1457923784.d77602c4eccd120b2d9427d1d1adaad056dd6dd7.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/google-authenticator/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/google-authenticator/Manifest sys-auth/google-authenticator/google-authenticator-1.01_pre20160307231538.ebuild sys-auth/google-authenticator/google-authenticator-9999.ebuild sys-auth/google-authenticator/metadata.xml X-VCS-Directories: sys-auth/google-authenticator/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: d77602c4eccd120b2d9427d1d1adaad056dd6dd7 X-VCS-Branch: master Date: Mon, 14 Mar 2016 02:50:18 +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: 3eb629c9-bb65-4ca9-9a6e-d9707ac81c1b X-Archives-Hash: d57ef8614f550fbb1578cf74b761e6a1 commit: d77602c4eccd120b2d9427d1d1adaad056dd6dd7 Author: Mike Frysinger gentoo org> AuthorDate: Mon Mar 14 02:44:50 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Mar 14 02:49:44 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d77602c4 sys-auth/google-authenticator: initial package #419177 sys-auth/google-authenticator/Manifest | 1 + ...gle-authenticator-1.01_pre20160307231538.ebuild | 72 ++++++++++++++++++++++ .../google-authenticator-9999.ebuild | 72 ++++++++++++++++++++++ sys-auth/google-authenticator/metadata.xml | 10 +++ 4 files changed, 155 insertions(+) diff --git a/sys-auth/google-authenticator/Manifest b/sys-auth/google-authenticator/Manifest new file mode 100644 index 0000000..ddc10ac --- /dev/null +++ b/sys-auth/google-authenticator/Manifest @@ -0,0 +1 @@ +DIST google-authenticator-1.01_pre20160307231538.tar.xz 255316 SHA256 41bdc47278903bc33e87c8b4da6f9fe5b526a2f780790d4f83bb67634f3f53b0 SHA512 cee3898b7afec54079968ff0690f076b78512b0b2c982ef5bedb2d6c5850b103c80191caa4b172069a83eb4d15ea4fce5b3f5eefdb36aa0426d985ba29736108 WHIRLPOOL 90e6439c632ccf4c791d988304b2e1cb7753f03ec03678b7f83946bdefc2bf1ca6d81538c484bc73561060fc7a7d80518845e13c49f6b5d943233e0123b2a1c8 diff --git a/sys-auth/google-authenticator/google-authenticator-1.01_pre20160307231538.ebuild b/sys-auth/google-authenticator/google-authenticator-1.01_pre20160307231538.ebuild new file mode 100644 index 0000000..d1c640a --- /dev/null +++ b/sys-auth/google-authenticator/google-authenticator-1.01_pre20160307231538.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit multilib + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://github.com/google/${PN}.git" + inherit git-r3 autotools + S="${WORKDIR}/${P}/libpam" +else + MY_P=${P%_pre*} + SRC_URI="mirror://gentoo/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + S="${WORKDIR}/${MY_P}" +fi + +DESCRIPTION="PAM Module for two step verification via mobile platform" +HOMEPAGE="https://github.com/google/google-authenticator" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND="virtual/pam" +RDEPEND="${DEPEND}" + +src_prepare() { + if [[ ${PV} == "9999" ]] ; then + # Avoid building demos/tests all the time. + sed -i '/^noinst_PROGRAMS/s:^noinst:check:' configure.ac || die + eautoreconf + fi +} + +src_configure() { + # We might want to use getpam_mod_dir from pam eclass, + # but the build already appends "/security" for us. + econf \ + --docdir="\$(datarootdir)/doc/${PF}" \ + --htmldir='$(docdir)/html' \ + --libdir="/$(get_libdir)" +} + +src_compile() { + default + + if [[ ${PV} == "9999" ]] ; then + local stamp=$(date --date="$(git log -n1 --pretty=format:%ci master)" -u "+%Y%m%d%H%M%S") + emake dist + + local otar=$(echo ${PN}-*.tar.gz) + local ntar="${otar%.tar.gz}_pre${stamp}.tar.xz" + zcat "${otar}" | xz > "${ntar}" + fi +} + +src_install() { + default + # Punt the pam module libtool archive. + find "${ED}" -name '*.la' -delete +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "For further information see" + elog "https://wiki.gentoo.org/wiki/Google_Authenticator" + elog "" + elog "If you want support for QR-Codes, install media-gfx/qrencode." + fi +} diff --git a/sys-auth/google-authenticator/google-authenticator-9999.ebuild b/sys-auth/google-authenticator/google-authenticator-9999.ebuild new file mode 100644 index 0000000..d1c640a --- /dev/null +++ b/sys-auth/google-authenticator/google-authenticator-9999.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit multilib + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://github.com/google/${PN}.git" + inherit git-r3 autotools + S="${WORKDIR}/${P}/libpam" +else + MY_P=${P%_pre*} + SRC_URI="mirror://gentoo/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + S="${WORKDIR}/${MY_P}" +fi + +DESCRIPTION="PAM Module for two step verification via mobile platform" +HOMEPAGE="https://github.com/google/google-authenticator" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND="virtual/pam" +RDEPEND="${DEPEND}" + +src_prepare() { + if [[ ${PV} == "9999" ]] ; then + # Avoid building demos/tests all the time. + sed -i '/^noinst_PROGRAMS/s:^noinst:check:' configure.ac || die + eautoreconf + fi +} + +src_configure() { + # We might want to use getpam_mod_dir from pam eclass, + # but the build already appends "/security" for us. + econf \ + --docdir="\$(datarootdir)/doc/${PF}" \ + --htmldir='$(docdir)/html' \ + --libdir="/$(get_libdir)" +} + +src_compile() { + default + + if [[ ${PV} == "9999" ]] ; then + local stamp=$(date --date="$(git log -n1 --pretty=format:%ci master)" -u "+%Y%m%d%H%M%S") + emake dist + + local otar=$(echo ${PN}-*.tar.gz) + local ntar="${otar%.tar.gz}_pre${stamp}.tar.xz" + zcat "${otar}" | xz > "${ntar}" + fi +} + +src_install() { + default + # Punt the pam module libtool archive. + find "${ED}" -name '*.la' -delete +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "For further information see" + elog "https://wiki.gentoo.org/wiki/Google_Authenticator" + elog "" + elog "If you want support for QR-Codes, install media-gfx/qrencode." + fi +} diff --git a/sys-auth/google-authenticator/metadata.xml b/sys-auth/google-authenticator/metadata.xml new file mode 100644 index 0000000..a7e93ea --- /dev/null +++ b/sys-auth/google-authenticator/metadata.xml @@ -0,0 +1,10 @@ + + + + + vapier@gentoo.org + + + google/google-authenticator + +