From eababaed9dca57fb8c35420f98fc9614f4728aef Mon Sep 17 00:00:00 2001 From: MATSUU Takuto Date: Tue, 23 Nov 2010 22:52:21 +0900 Subject: sys-auth/pam_google_authenticator: Initial import. (Portage version: 2.1.9.24/git/Linux x86_64, signed Manifest commit with key 05280D69) --- sys-auth/pam_google_authenticator/Manifest | 23 +++++++++++ .../pam_google_authenticator-9999-as-needed.patch | 16 ++++++++ sys-auth/pam_google_authenticator/metadata.xml | 9 +++++ .../pam_google_authenticator-9999.ebuild | 44 ++++++++++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 sys-auth/pam_google_authenticator/Manifest create mode 100644 sys-auth/pam_google_authenticator/files/pam_google_authenticator-9999-as-needed.patch create mode 100644 sys-auth/pam_google_authenticator/metadata.xml create mode 100644 sys-auth/pam_google_authenticator/pam_google_authenticator-9999.ebuild diff --git a/sys-auth/pam_google_authenticator/Manifest b/sys-auth/pam_google_authenticator/Manifest new file mode 100644 index 0000000..afcda93 --- /dev/null +++ b/sys-auth/pam_google_authenticator/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX pam_google_authenticator-9999-as-needed.patch 687 RMD160 50ab6fa5a99f5eaa6ecf7a644d65006e76eded55 SHA1 e71b2ea78db3b6d5d0e03595f3af90cbc9c020f1 SHA256 7c0967ad9102b916e4f260dc72fd9a9caa8b4464cd5fc8f1d082453ca5b163d4 +EBUILD pam_google_authenticator-9999.ebuild 885 RMD160 27283fac06ff1901da2835c2e60095143e13a357 SHA1 3fe9a6dcab8e1bd54e4ae3226b0aba2e291b1ca9 SHA256 0f4a93c0cef3cd9c271e0f28e8afd15dadcd5bc99bccdb64072daddbea23cd8b +MISC metadata.xml 221 RMD160 ca5e46f2e947fcae430e49859acaa4b25ab9d4b4 SHA1 b7f58eb04a9aceeb67104c0b81719e6e97da97f4 SHA256 138123f5d6199cbcc391346419b7b81d3ae9153c17670b18c540ff75a2287371 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iQIcBAEBAgAGBQJM68cVAAoJECaGw+YFKA1p8HgQAKqM3wezgATiWkgZ3ZhKrSNz +mzyQRCTv7sVet38lMZ/AXtGgsc1hF+IxQUuTR888WK2GJN07jIju2RsTbZLYsouq +sa/uODBij7jSEK0GF50gA2/r5KDLFaootIG4Ms2s5oXueo7SHD1krjek1AD5eUTh +kefSCsawh3hXjmZADzXLd7a6/vCkXL6vJxVEOm7EZMIfRGGKeIaxPiV4PiCJdn2r +cCBQQKN5nDdISkM6veuSCaP+p5rhDavhhB7gCDqIAHeCEl0FLAqMov7s+41vZvgT +D6RkdZMVRbqUT/c+AcJKbJxo6uwwonyOZwBY/WSTU/6eQO0TyPQbk4TxRAOThFco +abwxoufw5kSwnnbMkwPgZINJj0PKqIV6GMOds7Xb6IySwpOpg4TlMqI13GL9Pmsa +8nS7QIThP+5SaiEgwl9LHuUrKMP/90pmoSC/V0rGPyfQP3UisRzhdEBLBbPW7dAc +91iObvAsjSpUW+RDvQF3yxJbabrErap1J56iLlrqIK4slgDyk/dME++2qCTS1b0W +oz4BsJIu9wyTJlTYsXr0JgkRank8wO2GXUVPyfEj6bPBL9lfPRq2gbj8+oGuTlUm +ShoRtZ6XijfoQ2MqLQJd+9rYpDs+Ysys6hHafng6okalFs6QGyKd8iwS/as/E5Zl +JTQlbuP9YC+PmbpbOGkW +=h7cA +-----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..02422cc --- /dev/null +++ b/sys-auth/pam_google_authenticator/files/pam_google_authenticator-9999-as-needed.patch @@ -0,0 +1,16 @@ +diff -r 74cba81d489b libpam/Makefile +--- a/libpam/Makefile Sun Sep 19 10:37:52 2010 -0700 ++++ b/libpam/Makefile Tue Nov 23 10:50:15 2010 +0900 +@@ -35,10 +35,10 @@ + $(RM) *.o *.so google-authenticator pam_google_authenticator_unittest + + google-authenticator: google-authenticator.o base32.o hmac.o sha1.o +- $(CC) -g $(LDFLAGS) -ldl -o $@ $+ ++ $(CC) -g $(LDFLAGS) -rdynamic -o $@ $+ -ldl + + pam_google_authenticator_unittest: pam_google_authenticator_unittest.o base32.o +- $(CC) -g $(LDFLAGS) -rdynamic -ldl -lc -o $@ $+ ++ $(CC) -g $(LDFLAGS) -rdynamic -o $@ $+ -ldl -lc + + 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 @@ + + + +no-herd + +matsuu@gentoo.org + + + 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..7cd2cad --- /dev/null +++ b/sys-auth/pam_google_authenticator/pam_google_authenticator-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="3" +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)" || die +} + +src_install() { + dopammod pam_google_authenticator.so || die + + dobin google-authenticator || die + + dodoc README || die +} -- cgit v1.2.3-65-gdbad