Gentoo Archives: gentoo-commits

From: Matsuu Takuto <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/betagarden:master commit in: sys-auth/pam_google_authenticator/, sys-auth/pam_google_authenticator/files/
Date: Tue, 06 Sep 2011 00:25:31
Message-Id: 343cec88aadc1ab92b76d55ac2dc7723c056d5fc.matsuu@gentoo
1 commit: 343cec88aadc1ab92b76d55ac2dc7723c056d5fc
2 Author: MATSUU Takuto <matsuu <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 5 23:48:45 2011 +0000
4 Commit: Matsuu Takuto <matsuu <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 6 00:25:15 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=343cec88
7
8 sys-auth/pam_google_authenticator: moved from matsuu overlay.
9
10 (Portage version: 2.1.10.13/git/Linux x86_64, signed Manifest commit with key 05280D69)
11
12 ---
13 sys-auth/pam_google_authenticator/ChangeLog | 11 +++++
14 .../pam_google_authenticator-9999-as-needed.patch | 27 ++++++++++++
15 sys-auth/pam_google_authenticator/metadata.xml | 9 ++++
16 .../pam_google_authenticator-9999.ebuild | 45 ++++++++++++++++++++
17 4 files changed, 92 insertions(+), 0 deletions(-)
18
19 diff --git a/sys-auth/pam_google_authenticator/ChangeLog b/sys-auth/pam_google_authenticator/ChangeLog
20 new file mode 100644
21 index 0000000..56642d5
22 --- /dev/null
23 +++ b/sys-auth/pam_google_authenticator/ChangeLog
24 @@ -0,0 +1,11 @@
25 +# ChangeLog for sys-auth/pam_google_authenticator
26 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
27 +# $Header: $
28 +
29 +*pam_google_authenticator-9999 (05 Sep 2011)
30 +
31 + 05 Sep 2011; MATSUU Takuto <matsuu@g.o>
32 + +pam_google_authenticator-9999.ebuild,
33 + +files/pam_google_authenticator-9999-as-needed.patch, +metadata.xml:
34 + Move from matsuu's overlay.
35 +
36
37 diff --git a/sys-auth/pam_google_authenticator/files/pam_google_authenticator-9999-as-needed.patch b/sys-auth/pam_google_authenticator/files/pam_google_authenticator-9999-as-needed.patch
38 new file mode 100644
39 index 0000000..9e4b9a8
40 --- /dev/null
41 +++ b/sys-auth/pam_google_authenticator/files/pam_google_authenticator-9999-as-needed.patch
42 @@ -0,0 +1,27 @@
43 +diff -r d525a9bab875 libpam/Makefile
44 +--- a/libpam/Makefile Tue Aug 30 18:26:40 2011 -0700
45 ++++ b/libpam/Makefile Tue Sep 06 01:47:52 2011 +0900
46 +@@ -56,8 +56,8 @@
47 + pam_google_authenticator_unittest
48 +
49 + google-authenticator: google-authenticator.o base32.o hmac.o sha1.o
50 +- $(CC) -g $(DEF_LDFLAGS) $(shell [ -f /usr/lib/libdl.so ] && \
51 +- echo " -ldl") -o $@ $+
52 ++ $(CC) -g $(DEF_LDFLAGS) -o $@ $+ $(shell [ -f /usr/lib/libdl.so ] && \
53 ++ echo " -ldl")
54 +
55 + demo: demo.o pam_google_authenticator_demo.o base32.o hmac.o sha1.o
56 + $(CC) -g $(DEF_LDFLAGS) -rdynamic \
57 +@@ -65,9 +65,9 @@
58 +
59 + pam_google_authenticator_unittest: pam_google_authenticator_unittest.o \
60 + base32.o hmac.o sha1.o
61 +- $(CC) -g $(DEF_LDFLAGS) -rdynamic -lc \
62 +- $(shell [ -f /usr/lib/libdl.so ] && echo " -ldl") \
63 +- -o $@ $+
64 ++ $(CC) -g $(DEF_LDFLAGS) -rdynamic -o $@ $+ -lc \
65 ++ $(shell [ -f /usr/lib/libdl.so ] && echo " -ldl")
66 ++
67 +
68 + pam_google_authenticator.so: base32.o hmac.o sha1.o
69 + pam_google_authenticator_testing.so: base32.o hmac.o sha1.o
70
71 diff --git a/sys-auth/pam_google_authenticator/metadata.xml b/sys-auth/pam_google_authenticator/metadata.xml
72 new file mode 100644
73 index 0000000..5b14597
74 --- /dev/null
75 +++ b/sys-auth/pam_google_authenticator/metadata.xml
76 @@ -0,0 +1,9 @@
77 +<?xml version="1.0" encoding="UTF-8"?>
78 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
79 +<pkgmetadata>
80 +<herd>no-herd</herd>
81 +<maintainer>
82 +<email>matsuu@g.o</email>
83 +</maintainer>
84 +</pkgmetadata>
85 +
86
87 diff --git a/sys-auth/pam_google_authenticator/pam_google_authenticator-9999.ebuild b/sys-auth/pam_google_authenticator/pam_google_authenticator-9999.ebuild
88 new file mode 100644
89 index 0000000..8c500fe
90 --- /dev/null
91 +++ b/sys-auth/pam_google_authenticator/pam_google_authenticator-9999.ebuild
92 @@ -0,0 +1,45 @@
93 +# Copyright 1999-2011 Gentoo Foundation
94 +# Distributed under the terms of the GNU General Public License v2
95 +# $Header: $
96 +
97 +EAPI="4"
98 +inherit eutils mercurial pam toolchain-funcs
99 +
100 +DESCRIPTION="Example PAM module demonstrating two-factor authentication"
101 +HOMEPAGE="http://code.google.com/p/google-authenticator/"
102 +SRC_URI=""
103 +EHG_REPO_URI="https://google-authenticator.googlecode.com/hg/libpam/"
104 +
105 +LICENSE="Apache-2.0"
106 +SLOT="0"
107 +KEYWORDS="~amd64 ~x86"
108 +IUSE=""
109 +
110 +RESTRICT="test"
111 +
112 +DEPEND="sys-libs/pam"
113 +RDEPEND="${DEPEND}
114 + media-gfx/qrencode"
115 +
116 +S="${WORKDIR}/libpam"
117 +
118 +src_unpack() {
119 + mercurial_fetch "${EHG_REPO_URI}" "$(basename "${EHG_REPO_URI}")" "${WORKDIR}"
120 +}
121 +
122 +src_prepare() {
123 + epatch "${FILESDIR}/${P}-as-needed.patch"
124 +}
125 +
126 +src_compile() {
127 + emake CC="$(tc-getCC)"
128 +}
129 +
130 +src_install() {
131 + dopammod pam_google_authenticator.so
132 +
133 + dobin google-authenticator
134 +
135 + dodoc README
136 + dohtml totp.html
137 +}