summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Moc <jakub@gentoo.org>2007-07-12 10:33:50 +0000
committerJakub Moc <jakub@gentoo.org>2007-07-12 10:33:50 +0000
commit420dc941658c0b9f616ca95e5c8b5705e9287ddc (patch)
tree6448d98dec90b657e2ee1918bfd0562503102dca /sys-auth
parentmedia-sound/songbird-bin: Place $S in quotes; no need for quotes when assigning. (diff)
downloadsunrise-420dc941658c0b9f616ca95e5c8b5705e9287ddc.tar.gz
sunrise-420dc941658c0b9f616ca95e5c8b5705e9287ddc.tar.bz2
sunrise-420dc941658c0b9f616ca95e5c8b5705e9287ddc.zip
sys-auth/pam_sotp: Initial ebuild, Bug 17926
svn path=/sunrise/; revision=4252
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/pam_sotp/ChangeLog8
-rw-r--r--sys-auth/pam_sotp/Manifest4
-rw-r--r--sys-auth/pam_sotp/metadata.xml5
-rw-r--r--sys-auth/pam_sotp/pam_sotp-0.3.3.ebuild42
4 files changed, 59 insertions, 0 deletions
diff --git a/sys-auth/pam_sotp/ChangeLog b/sys-auth/pam_sotp/ChangeLog
new file mode 100644
index 000000000..dc03b698d
--- /dev/null
+++ b/sys-auth/pam_sotp/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for sys-auth/pam_sotp
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 12 Jul 2007; Jakub Moc <jakub@gentoo.org> +metadata.xml,
+ +pam_sotp-0.3.3.ebuild:
+ Initial ebuild, Bug 17926
+
diff --git a/sys-auth/pam_sotp/Manifest b/sys-auth/pam_sotp/Manifest
new file mode 100644
index 000000000..c88ab1a90
--- /dev/null
+++ b/sys-auth/pam_sotp/Manifest
@@ -0,0 +1,4 @@
+DIST pam_sotp-0.3.3.tar.gz 108487 RMD160 c05667c037991aac948a4d14c4ae6ff76be7de93 SHA1 db3c5f0a6abafc9894d307e3480dce0ad09a01b2 SHA256 0a734c8164bd731041978eed37e0077837adedc68df604d9ab98a13bf891d5e6
+EBUILD pam_sotp-0.3.3.ebuild 988 RMD160 f4354ade775632b9331e2012824134bd04e1d2e1 SHA1 cd4d5c3b13712e724275c40c4d8c15ab550ec681 SHA256 cc7fe9e8a023d2dc4d7f8dbbf9e077dddfef7c54271c877e88555aacaedb587f
+MISC ChangeLog 232 RMD160 4936449474cb84ab643c786fb44356823f27df44 SHA1 f929bf10694da4b76f9c23feb713180201b421a6 SHA256 8cfbcca8d8ba564883453f326135324d93803ecc83215048d95deca5ac296996
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/sys-auth/pam_sotp/metadata.xml b/sys-auth/pam_sotp/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/sys-auth/pam_sotp/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/sys-auth/pam_sotp/pam_sotp-0.3.3.ebuild b/sys-auth/pam_sotp/pam_sotp-0.3.3.ebuild
new file mode 100644
index 000000000..cd45c01e2
--- /dev/null
+++ b/sys-auth/pam_sotp/pam_sotp-0.3.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils pam
+
+DESCRIPTION="pam module for simple one time password authentication"
+HOMEPAGE="http://www.cavecanen.org/cs/projects/pam_sotp/"
+SRC_URI="http://www.cavecanen.org/cs/projects/pam_sotp/dl/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug urandom"
+
+DEPEND=">=sys-libs/pam-0.78-r3"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup shadow
+}
+
+src_compile() {
+ myconf=""
+ use urandom && myconf="--with-randomdev=/dev/urandom"
+ econf --libdir="/$(get_libdir)" $(use_enable debug) ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ dopamd etc/pam.d/otppasswd
+ dopammod src/pam/${PN}.so
+ diropts -m0770 -o root -g shadow
+ keepdir /etc/sotp
+
+ dobin src/utils/otppasswd
+ fowners root:shadow /usr/bin/otppasswd
+ fperms 2755 /usr/bin/otppasswd
+
+ dodoc AUTHORS ChangeLog NEWS README
+ dohtml doc/manual/html/*
+}