diff options
Diffstat (limited to 'sys-auth/google-authenticator-libpam-hardened')
3 files changed, 58 insertions, 0 deletions
diff --git a/sys-auth/google-authenticator-libpam-hardened/Manifest b/sys-auth/google-authenticator-libpam-hardened/Manifest new file mode 100644 index 000000000000..0350dae345cd --- /dev/null +++ b/sys-auth/google-authenticator-libpam-hardened/Manifest @@ -0,0 +1,2 @@ +EBUILD google-authenticator-libpam-hardened-9999.ebuild 838 BLAKE2B 9c1937c8b616c6dbefe89e7c14c5ffc587e5a825369fa9a3d90d0ea2a3f03c7554a167ac3ab75d7f93f418fa1c59e84fcb3afacf729657fa88c4c75c803fef82 SHA512 7f503c6cf54738dfb29a5c02a2fee8d9dcd18ea1b04a67670d6c7e6ea711350c28fc80f5046b0667d16e023a37de8d516b51562b40285a5a79483144662fae5a +MISC metadata.xml 479 BLAKE2B 39b28a2bf2db3539427278e8711a97c3b034621fbaf1517a9413ad414f535ddd19dd769970952103ea9562913b3103bdcd4fe7465fcf807d0fdaf7a9bf46953d SHA512 5e28d65550f0f28e4f603238dcfbe8ae28cddc89bb186528a983bafb7dddb9326a54eff72df685a58f99bec6b81719697d6a6f69d8f13e7ffadca514ef619536 diff --git a/sys-auth/google-authenticator-libpam-hardened/google-authenticator-libpam-hardened-9999.ebuild b/sys-auth/google-authenticator-libpam-hardened/google-authenticator-libpam-hardened-9999.ebuild new file mode 100644 index 000000000000..9ce8f782e776 --- /dev/null +++ b/sys-auth/google-authenticator-libpam-hardened/google-authenticator-libpam-hardened-9999.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +EGIT_REPO_URI="https://github.com/mgorny/google-authenticator-libpam-hardened.git" +inherit autotools git-r3 + +DESCRIPTION="PAM Module for two step verification via mobile platform" +HOMEPAGE="https://github.com/mgorny/google-authenticator-libpam-hardened" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="+qrcode" + +DEPEND="sys-auth/oath-toolkit:= + virtual/pam + qrcode? ( media-gfx/qrencode:= )" +RDEPEND="${DEPEND} + !sys-auth/google-authenticator" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myconf=( + # TODO: use getpam_mod_dir after fixing build system + --libdir="/$(get_libdir)" + + $(use_enable qrcode qrencode) + ) + + econf "${myconf[@]}" +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die +} diff --git a/sys-auth/google-authenticator-libpam-hardened/metadata.xml b/sys-auth/google-authenticator-libpam-hardened/metadata.xml new file mode 100644 index 000000000000..40610c9eb281 --- /dev/null +++ b/sys-auth/google-authenticator-libpam-hardened/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> + <use> + <flag name='qrcode'>Display QRcode after setup to accomodate + automatic setup of OTP client apps.</flag> + </use> + <upstream> + <remote-id type="github">mgorny/google-authenticator-libpam-hardened</remote-id> + </upstream> +</pkgmetadata> |