1 |
commit: f3855f930fa9a63eb5f28c7cb3b40211506d0a6a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 9 07:00:31 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 9 07:03:50 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3855f93 |
7 |
|
8 |
sys-auth/google-authenticator-libpam-hardened: Initial live ebuild |
9 |
|
10 |
Initial live ebuild for my fork of my hardened google-authenticator PAM |
11 |
module. Includes support for SHA-2 HMAC and 8-digit OTP codes, removes |
12 |
bundled code and the possibility of incidentally sending your secrets |
13 |
over to Google. |
14 |
|
15 |
...oogle-authenticator-libpam-hardened-9999.ebuild | 41 ++++++++++++++++++++++ |
16 |
.../metadata.xml | 15 ++++++++ |
17 |
2 files changed, 56 insertions(+) |
18 |
|
19 |
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 |
20 |
new file mode 100644 |
21 |
index 00000000000..9ce8f782e77 |
22 |
--- /dev/null |
23 |
+++ b/sys-auth/google-authenticator-libpam-hardened/google-authenticator-libpam-hardened-9999.ebuild |
24 |
@@ -0,0 +1,41 @@ |
25 |
+# Copyright 1999-2018 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+EGIT_REPO_URI="https://github.com/mgorny/google-authenticator-libpam-hardened.git" |
31 |
+inherit autotools git-r3 |
32 |
+ |
33 |
+DESCRIPTION="PAM Module for two step verification via mobile platform" |
34 |
+HOMEPAGE="https://github.com/mgorny/google-authenticator-libpam-hardened" |
35 |
+ |
36 |
+LICENSE="Apache-2.0" |
37 |
+SLOT="0" |
38 |
+IUSE="+qrcode" |
39 |
+ |
40 |
+DEPEND="sys-auth/oath-toolkit:= |
41 |
+ virtual/pam |
42 |
+ qrcode? ( media-gfx/qrencode:= )" |
43 |
+RDEPEND="${DEPEND} |
44 |
+ !sys-auth/google-authenticator" |
45 |
+ |
46 |
+src_prepare() { |
47 |
+ default |
48 |
+ eautoreconf |
49 |
+} |
50 |
+ |
51 |
+src_configure() { |
52 |
+ local myconf=( |
53 |
+ # TODO: use getpam_mod_dir after fixing build system |
54 |
+ --libdir="/$(get_libdir)" |
55 |
+ |
56 |
+ $(use_enable qrcode qrencode) |
57 |
+ ) |
58 |
+ |
59 |
+ econf "${myconf[@]}" |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ default |
64 |
+ find "${D}" -name '*.la' -delete || die |
65 |
+} |
66 |
|
67 |
diff --git a/sys-auth/google-authenticator-libpam-hardened/metadata.xml b/sys-auth/google-authenticator-libpam-hardened/metadata.xml |
68 |
new file mode 100644 |
69 |
index 00000000000..40610c9eb28 |
70 |
--- /dev/null |
71 |
+++ b/sys-auth/google-authenticator-libpam-hardened/metadata.xml |
72 |
@@ -0,0 +1,15 @@ |
73 |
+<?xml version="1.0" encoding="UTF-8"?> |
74 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
75 |
+<pkgmetadata> |
76 |
+ <maintainer type="person"> |
77 |
+ <email>mgorny@g.o</email> |
78 |
+ <name>Michał Górny</name> |
79 |
+ </maintainer> |
80 |
+ <use> |
81 |
+ <flag name='qrcode'>Display QRcode after setup to accomodate |
82 |
+ automatic setup of OTP client apps.</flag> |
83 |
+ </use> |
84 |
+ <upstream> |
85 |
+ <remote-id type="github">mgorny/google-authenticator-libpam-hardened</remote-id> |
86 |
+ </upstream> |
87 |
+</pkgmetadata> |