public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/betagarden:master commit in: sys-auth/pam_google_authenticator/, sys-auth/pam_google_authenticator/files/
@ 2011-09-06  0:25 Matsuu Takuto
  0 siblings, 0 replies; only message in thread
From: Matsuu Takuto @ 2011-09-06  0:25 UTC (permalink / raw
  To: gentoo-commits

commit:     343cec88aadc1ab92b76d55ac2dc7723c056d5fc
Author:     MATSUU Takuto <matsuu <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  5 23:48:45 2011 +0000
Commit:     Matsuu Takuto <matsuu <AT> gentoo <DOT> org>
CommitDate: Tue Sep  6 00:25:15 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=343cec88

sys-auth/pam_google_authenticator: moved from matsuu overlay.

(Portage version: 2.1.10.13/git/Linux x86_64, signed Manifest commit with key 05280D69)

---
 sys-auth/pam_google_authenticator/ChangeLog        |   11 +++++
 .../pam_google_authenticator-9999-as-needed.patch  |   27 ++++++++++++
 sys-auth/pam_google_authenticator/metadata.xml     |    9 ++++
 .../pam_google_authenticator-9999.ebuild           |   45 ++++++++++++++++++++
 4 files changed, 92 insertions(+), 0 deletions(-)

diff --git a/sys-auth/pam_google_authenticator/ChangeLog b/sys-auth/pam_google_authenticator/ChangeLog
new file mode 100644
index 0000000..56642d5
--- /dev/null
+++ b/sys-auth/pam_google_authenticator/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-auth/pam_google_authenticator
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*pam_google_authenticator-9999 (05 Sep 2011)
+
+  05 Sep 2011; MATSUU Takuto <matsuu@gentoo.org>
+  +pam_google_authenticator-9999.ebuild,
+  +files/pam_google_authenticator-9999-as-needed.patch, +metadata.xml:
+  Move from matsuu's overlay.
+

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
new file mode 100644
index 0000000..9e4b9a8
--- /dev/null
+++ b/sys-auth/pam_google_authenticator/files/pam_google_authenticator-9999-as-needed.patch
@@ -0,0 +1,27 @@
+diff -r d525a9bab875 libpam/Makefile
+--- a/libpam/Makefile	Tue Aug 30 18:26:40 2011 -0700
++++ b/libpam/Makefile	Tue Sep 06 01:47:52 2011 +0900
+@@ -56,8 +56,8 @@
+ 	               pam_google_authenticator_unittest
+ 
+ google-authenticator: google-authenticator.o base32.o hmac.o sha1.o
+-	$(CC) -g $(DEF_LDFLAGS) $(shell [ -f /usr/lib/libdl.so ] &&           \
+-	      echo " -ldl") -o $@ $+
++	$(CC) -g $(DEF_LDFLAGS) -o $@ $+ $(shell [ -f /usr/lib/libdl.so ] &&  \
++	      echo " -ldl")
+ 
+ demo: demo.o pam_google_authenticator_demo.o base32.o hmac.o sha1.o
+ 	$(CC) -g $(DEF_LDFLAGS) -rdynamic                                     \
+@@ -65,9 +65,9 @@
+ 
+ pam_google_authenticator_unittest: pam_google_authenticator_unittest.o        \
+                                    base32.o hmac.o sha1.o
+-	$(CC) -g $(DEF_LDFLAGS) -rdynamic -lc                                 \
+-              $(shell [ -f /usr/lib/libdl.so ] && echo " -ldl")               \
+-              -o $@ $+
++	$(CC) -g $(DEF_LDFLAGS) -rdynamic -o $@ $+ -lc                        \
++              $(shell [ -f /usr/lib/libdl.so ] && echo " -ldl")
++              
+ 
+ pam_google_authenticator.so: base32.o hmac.o sha1.o
+ pam_google_authenticator_testing.so: base32.o hmac.o sha1.o

diff --git a/sys-auth/pam_google_authenticator/metadata.xml b/sys-auth/pam_google_authenticator/metadata.xml
new file mode 100644
index 0000000..5b14597
--- /dev/null
+++ b/sys-auth/pam_google_authenticator/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+<email>matsuu@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
+

diff --git a/sys-auth/pam_google_authenticator/pam_google_authenticator-9999.ebuild b/sys-auth/pam_google_authenticator/pam_google_authenticator-9999.ebuild
new file mode 100644
index 0000000..8c500fe
--- /dev/null
+++ b/sys-auth/pam_google_authenticator/pam_google_authenticator-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+inherit eutils mercurial pam toolchain-funcs
+
+DESCRIPTION="Example PAM module demonstrating two-factor authentication"
+HOMEPAGE="http://code.google.com/p/google-authenticator/"
+SRC_URI=""
+EHG_REPO_URI="https://google-authenticator.googlecode.com/hg/libpam/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RESTRICT="test"
+
+DEPEND="sys-libs/pam"
+RDEPEND="${DEPEND}
+	media-gfx/qrencode"
+
+S="${WORKDIR}/libpam"
+
+src_unpack() {
+	mercurial_fetch "${EHG_REPO_URI}" "$(basename "${EHG_REPO_URI}")" "${WORKDIR}"
+}
+
+src_prepare() {
+	epatch "${FILESDIR}/${P}-as-needed.patch"
+}
+
+src_compile() {
+	emake CC="$(tc-getCC)"
+}
+
+src_install() {
+	dopammod pam_google_authenticator.so
+
+	dobin google-authenticator
+
+	dodoc README
+	dohtml totp.html
+}



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-06  0:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-06  0:25 [gentoo-commits] proj/betagarden:master commit in: sys-auth/pam_google_authenticator/, sys-auth/pam_google_authenticator/files/ Matsuu Takuto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox