summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMATSUU Takuto <matsuu@gentoo.org>2011-09-06 08:48:45 +0900
committerMATSUU Takuto <matsuu@gentoo.org>2011-09-06 09:25:15 +0900
commit343cec88aadc1ab92b76d55ac2dc7723c056d5fc (patch)
treee772df5150e020a7791ce12a2269f50ec7e92061 /sys-auth
parentx11-themes/light-themes: 0.1.8.23 (diff)
downloadbetagarden-343cec88aadc1ab92b76d55ac2dc7723c056d5fc.tar.gz
betagarden-343cec88aadc1ab92b76d55ac2dc7723c056d5fc.tar.bz2
betagarden-343cec88aadc1ab92b76d55ac2dc7723c056d5fc.zip
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)
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/pam_google_authenticator/ChangeLog11
-rw-r--r--sys-auth/pam_google_authenticator/Manifest24
-rw-r--r--sys-auth/pam_google_authenticator/files/pam_google_authenticator-9999-as-needed.patch27
-rw-r--r--sys-auth/pam_google_authenticator/metadata.xml9
-rw-r--r--sys-auth/pam_google_authenticator/pam_google_authenticator-9999.ebuild45
5 files changed, 116 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/Manifest b/sys-auth/pam_google_authenticator/Manifest
new file mode 100644
index 0000000..60deb14
--- /dev/null
+++ b/sys-auth/pam_google_authenticator/Manifest
@@ -0,0 +1,24 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX pam_google_authenticator-9999-as-needed.patch 1239 RMD160 826ba9e568e0db5f09b3ca5266990136394a2e13 SHA1 a010d746c79b68d996fcfc7a4f45f887d9438b97 SHA256 7271cb279a98a923629f1d2903ba2b4359c44fdba189be3992d93b176f3739c2
+EBUILD pam_google_authenticator-9999.ebuild 875 RMD160 7f2bd5029e014d7a388a992efd5cddd826616b9d SHA1 7c8e656c21756f6e6bbe53a37aa757421aead948 SHA256 ea5392ab58580a965238e08fe14a6d46d6171746a8b972b23d80321670d0e09e
+MISC ChangeLog 372 RMD160 98dc6b87ad2ab400bb9c50ab1f26d24ece477506 SHA1 de9016c0ab162916f11434de77f10159f6346710 SHA256 67f6b80e0ce70a484ecb8ef2f8005e44ff68135e1701c825d01be1f53e6874d3
+MISC metadata.xml 221 RMD160 ca5e46f2e947fcae430e49859acaa4b25ab9d4b4 SHA1 b7f58eb04a9aceeb67104c0b81719e6e97da97f4 SHA256 138123f5d6199cbcc391346419b7b81d3ae9153c17670b18c540ff75a2287371
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iQIcBAEBAgAGBQJOZV/cAAoJECaGw+YFKA1pzksP/iCq8a26OR2J3BBaotfN4vOh
+YPWb7RdNTPxPSUsAmO2CnU9bU9JDApFaFaCrLeSXgh6ZaweePCP7Q82BqXWZksjz
+kAEyOyTUUVkF8lwQn8wRF0AjLSfkfhVbO5viP/TUarv7iNh1k4Lj+QqAtBMXAwUK
+vw+jq1wlAX9lWfInXksIHrCV5GA2nAHSHOH1MyAMU6fMZHvIQAezBzdIdo1Tx1Uy
+2zHBZBQOYvGJ2gMF1Copd7xVXiTLFN/e8OOHVL3CbkTn2yfXcgDIIR032DEt8Utm
+zNVtCOqEYj0Y/XaDtz+MiUkcfnLYqmxYntEgnjIsegs+SUP6VmUkAoGdxtrk+NJB
+KcqYMlIo3SAtDTNIGWnCQiE9pfFwXdpnKia+K8tBM3hSW4LuJ6wrRuBTHsK6h8nr
+ijwNDmDBxU+aArDls4mEtjV5NoIBgEU5X7jSU3OemGZNlSADDUCBSmv0bimGou2t
+XPkbhcdOEl8MOi008r6zOIuYM0SGRkSRnRwiY+80JiISfrmFAStC3rkoJRjbHp5J
+j11mmnuJWfq6QCAHDc5szuufx/qOFrhOx6wqyCTXjFOrhl+0befNQMHswkv8Ow0t
+SSQkGUhaKbnvRUwhbuhPLjgksMdTg7SfQN93tFfFrlXKr64DqCtvqiUyYfhnu/J1
+M8q6tJslJjyLwAQ/XyB+
+=oWuh
+-----END PGP SIGNATURE-----
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
+}