From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1ScLHR-0000J4-UA for garchives@archives.gentoo.org; Wed, 06 Jun 2012 18:48:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E6B8EE052E; Wed, 6 Jun 2012 18:48:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A1C61E052E for ; Wed, 6 Jun 2012 18:48:22 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DE24C1B4023 for ; Wed, 6 Jun 2012 18:48:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id A6F4AE5404 for ; Wed, 6 Jun 2012 18:48:20 +0000 (UTC) From: "Dane Smith" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Dane Smith" Message-ID: <1339008466.ed09a11925db43f27ff9010f6328510aab34fa0b.c1pher@gentoo> Subject: [gentoo-commits] dev/c1pher:master commit in: sys-auth/libpam-google-authenticator/, ... X-VCS-Repository: dev/c1pher X-VCS-Files: sys-auth/libpam-google-authenticator/Manifest sys-auth/libpam-google-authenticator/files/makefile.patch sys-auth/libpam-google-authenticator/libpam-google-authenticator-1.0.ebuild X-VCS-Directories: sys-auth/libpam-google-authenticator/ sys-auth/libpam-google-authenticator/files/ X-VCS-Committer: c1pher X-VCS-Committer-Name: Dane Smith X-VCS-Revision: ed09a11925db43f27ff9010f6328510aab34fa0b X-VCS-Branch: master Date: Wed, 6 Jun 2012 18:48:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 82356575-82ec-4f65-aefe-11d5b5b1a448 X-Archives-Hash: 44407e71f5760b8e7dc10969ac70abe1 commit: ed09a11925db43f27ff9010f6328510aab34fa0b Author: Dane Smith gentoo org> AuthorDate: Wed Jun 6 18:47:46 2012 +0000 Commit: Dane Smith gentoo org> CommitDate: Wed Jun 6 18:47:46 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/c1pher.git;a=3D= commit;h=3Ded09a119 google-authenticator PAM module. --- sys-auth/libpam-google-authenticator/Manifest | 3 + .../files/makefile.patch | 41 ++++++++++++++= ++++++ .../libpam-google-authenticator-1.0.ebuild | 34 ++++++++++++++= ++ 3 files changed, 78 insertions(+), 0 deletions(-) diff --git a/sys-auth/libpam-google-authenticator/Manifest b/sys-auth/lib= pam-google-authenticator/Manifest new file mode 100644 index 0000000..d892652 --- /dev/null +++ b/sys-auth/libpam-google-authenticator/Manifest @@ -0,0 +1,3 @@ +AUX makefile.patch 2387 RMD160 0b70faa355d224525a428f465e7b9642f531823b = SHA1 736e82dabf41b0deb58bc7725cc990abe1246864 SHA256 71c866cad836492f35bb= c2fde24e6fc2430181de31421af8a97305eec3b82842 +DIST libpam-google-authenticator-1.0-source.tar.bz2 32708 RMD160 ce26a2f= 805f36a82a7ab3d930116a73fb444e037 SHA1 017b7d89989f1624e360abe02d6b27a629= 8d285d SHA256 80426045d13ce7a2bf56c692ccfb1751cef3c7484752ad40738facf7292= 64d4b +EBUILD libpam-google-authenticator-1.0.ebuild 682 RMD160 e73b10b6b01e925= 69cafc0904f3b94cee53a2afa SHA1 9e47403d126dc7c48ee6d367c3b4483b34292f6a S= HA256 238d96809743c8f3a1e58f5838e95f617af12ff604c6b0b89a2d79bd927bcca0 diff --git a/sys-auth/libpam-google-authenticator/files/makefile.patch b/= sys-auth/libpam-google-authenticator/files/makefile.patch new file mode 100644 index 0000000..2792456 --- /dev/null +++ b/sys-auth/libpam-google-authenticator/files/makefile.patch @@ -0,0 +1,41 @@ +--- Makefile 2012-06-06 14:39:56.000000000 -0400 ++++ Makefile.new 2012-06-06 14:40:05.000000000 -0400 +@@ -28,6 +28,7 @@ + DEF_LDFLAGS :=3D $(shell [ `uname` =3D SunOS ] && echo ' -mimpure-text'= ) $(LDFLAGS) + LDL_LDFLAGS :=3D $(shell $(CC) -shared -ldl -xc -o /dev/null /dev/null = \ + >/dev/null 2>&1 && echo ' -ldl') ++DESTDIR :=3D=20 +=20 + all: google-authenticator pam_google_authenticator.so demo = \ + pam_google_authenticator_unittest +@@ -43,26 +44,11 @@ + *.c *.h *.html Makefile FILEFORMAT README utc-time +=20 + install: all +- @dst=3D"`find /lib*/security /lib*/*/security -maxdepth 1 = \ +- -name pam_unix.so -printf '%H' -quit 2>/dev/null`"; = \ +- [ -d "$${dst}" ] || dst=3D/lib/security; = \ +- [ -d "$${dst}" ] || dst=3D/usr/lib; = \ +- sudo=3D; if [ $$(id -u) -ne 0 ]; then = \ +- echo "You need to be root to install this module."; = \ +- if [ -x /usr/bin/sudo ]; then = \ +- echo "Invoking sudo:"; = \ +- sudo=3Dsudo; = \ +- else = \ +- exit 1; = \ +- fi; = \ +- fi; = \ +- echo cp pam_google_authenticator.so $${dst}; = \ +- tar fc - pam_google_authenticator.so | $${sudo} tar ofxC - $${dst}; = \ ++ echo install -m 755 pam_google_authenticator.so ${DESTDIR}; = \ ++ install -m 755 pam_google_authenticator.so ${DESTDIR}; = \ + = \ +- echo cp google-authenticator /usr/local/bin; = \ +- tar fc - google-authenticator | $${sudo} tar ofxC - /usr/local/bin; = \ +- $${sudo} chmod 755 $${dst}/pam_google_authenticator.so = \ +- /usr/local/bin/google-authenticator ++ echo install -m 755 google-authenticator ${DESTDIR}; \ ++ install -m 755 google-authenticator ${DESTDIR}; \ +=20 + clean: + $(RM) *.o *.so core google-authenticator demo = \ diff --git a/sys-auth/libpam-google-authenticator/libpam-google-authentic= ator-1.0.ebuild b/sys-auth/libpam-google-authenticator/libpam-google-auth= enticator-1.0.ebuild new file mode 100644 index 0000000..2c67ddf --- /dev/null +++ b/sys-auth/libpam-google-authenticator/libpam-google-authenticator-1.= 0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D4 +inherit pam + +DESCRIPTION=3D"Google Authentiator PAM plugin" +HOMEPAGE=3D"http://code.google.com/p/google-authenticator/" +SRC_URI=3D"http://google-authenticator.googlecode.com/files/${P}-source.= tar.bz2" + +LICENSE=3D"Apache-2.0" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"" + +DEPEND=3D"sys-libs/pam" +RDEPEND=3D"${DEPEND}" + +src_prepare(){ + epatch "${FILESDIR}/makefile.patch" +} + +src_install(){ + insinto $(getpam_mod_dir) + doins pam_google_authenticator.so + dobin google-authenticator + + dodoc README +} + +pkg_postinst(){ + elog "For setup information check the installed README" +}