public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Dane Smith" <c1pher@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/c1pher:master commit in: sys-auth/libpam-google-authenticator/, ...
Date: Wed,  6 Jun 2012 18:48:20 +0000 (UTC)	[thread overview]
Message-ID: <1339008466.ed09a11925db43f27ff9010f6328510aab34fa0b.c1pher@gentoo> (raw)

commit:     ed09a11925db43f27ff9010f6328510aab34fa0b
Author:     Dane Smith <c1pher <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  6 18:47:46 2012 +0000
Commit:     Dane Smith <c1pher <AT> gentoo <DOT> org>
CommitDate: Wed Jun  6 18:47:46 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/c1pher.git;a=commit;h=ed09a119

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/libpam-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 71c866cad836492f35bbc2fde24e6fc2430181de31421af8a97305eec3b82842
+DIST libpam-google-authenticator-1.0-source.tar.bz2 32708 RMD160 ce26a2f805f36a82a7ab3d930116a73fb444e037 SHA1 017b7d89989f1624e360abe02d6b27a6298d285d SHA256 80426045d13ce7a2bf56c692ccfb1751cef3c7484752ad40738facf729264d4b
+EBUILD libpam-google-authenticator-1.0.ebuild 682 RMD160 e73b10b6b01e92569cafc0904f3b94cee53a2afa SHA1 9e47403d126dc7c48ee6d367c3b4483b34292f6a SHA256 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 := $(shell [ `uname` = SunOS ] && echo ' -mimpure-text') $(LDFLAGS)
+ LDL_LDFLAGS := $(shell $(CC) -shared -ldl -xc -o /dev/null /dev/null          \
+                        >/dev/null 2>&1 && echo ' -ldl')
++DESTDIR := 
+ 
+ all: google-authenticator pam_google_authenticator.so demo                    \
+      pam_google_authenticator_unittest
+@@ -43,26 +44,11 @@
+ 	    *.c *.h *.html Makefile FILEFORMAT README utc-time
+ 
+ install: all
+-	@dst="`find /lib*/security /lib*/*/security -maxdepth 1               \
+-	            -name pam_unix.so -printf '%H' -quit 2>/dev/null`";       \
+-	[ -d "$${dst}" ] || dst=/lib/security;                                \
+-	[ -d "$${dst}" ] || dst=/usr/lib;                                     \
+-	sudo=; 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=sudo;                                                        \
+-	  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};			      \
+ 
+ clean:
+ 	$(RM) *.o *.so core google-authenticator demo                         \

diff --git a/sys-auth/libpam-google-authenticator/libpam-google-authenticator-1.0.ebuild b/sys-auth/libpam-google-authenticator/libpam-google-authenticator-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=4
+inherit pam
+
+DESCRIPTION="Google Authentiator PAM plugin"
+HOMEPAGE="http://code.google.com/p/google-authenticator/"
+SRC_URI="http://google-authenticator.googlecode.com/files/${P}-source.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="sys-libs/pam"
+RDEPEND="${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"
+}



             reply	other threads:[~2012-06-06 18:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-06 18:48 Dane Smith [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-06-07 14:44 [gentoo-commits] dev/c1pher:master commit in: sys-auth/libpam-google-authenticator/, Dane Smith
2013-05-13 16:21 Dane Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1339008466.ed09a11925db43f27ff9010f6328510aab34fa0b.c1pher@gentoo \
    --to=c1pher@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox