summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Klimaszewski <steev@gentoo.org>2006-10-30 17:55:57 +0000
committerStephen Klimaszewski <steev@gentoo.org>2006-10-30 17:55:57 +0000
commitb1182c7c5f644d3f72320d568a8c843ac7e9732f (patch)
tree0a66ff7392cc5d0b3f3aa3040ec2f8f33e9f69cc /sys-auth/pam_console
parentStable on ppc wrt bug 153301 (diff)
downloadgentoo-2-b1182c7c5f644d3f72320d568a8c843ac7e9732f.tar.gz
gentoo-2-b1182c7c5f644d3f72320d568a8c843ac7e9732f.tar.bz2
gentoo-2-b1182c7c5f644d3f72320d568a8c843ac7e9732f.zip
Add various files necessary to make pam_console work out of the box.
(Portage version: 2.1.1-r1)
Diffstat (limited to 'sys-auth/pam_console')
-rw-r--r--sys-auth/pam_console/ChangeLog10
-rw-r--r--sys-auth/pam_console/files/gdm8
-rw-r--r--sys-auth/pam_console/files/gdm-autologin8
-rw-r--r--sys-auth/pam_console/files/login24
-rw-r--r--sys-auth/pam_console/files/pam_console.dev2
-rw-r--r--sys-auth/pam_console/pam_console-0.99.6.2.3.6.ebuild8
6 files changed, 58 insertions, 2 deletions
diff --git a/sys-auth/pam_console/ChangeLog b/sys-auth/pam_console/ChangeLog
index 3716be86715d..eb03352ead3b 100644
--- a/sys-auth/pam_console/ChangeLog
+++ b/sys-auth/pam_console/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-auth/pam_console
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_console/ChangeLog,v 1.6 2006/10/30 17:07:20 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_console/ChangeLog,v 1.7 2006/10/30 17:55:57 steev Exp $
+
+ 30 Oct 2006; Steev Klimaszewski <steev@gentoo.org> +files/gdm,
+ +files/gdm-autologin, +files/login, +files/pam_console.dev,
+ pam_console-0.99.6.2.3.6.ebuild:
+ We will now install gdm/gdm-autologin and login files for pam that enable
+ pam_console when pam_console is emerged. We also create the pam_console.dev
+ file as well, so that this should work ootb after emerging (and logging out and
+ back in)
30 Oct 2006; Christian Faulhammer <opfer@gentoo.org>
pam_console-0.99.6.2.3.6.ebuild:
diff --git a/sys-auth/pam_console/files/gdm b/sys-auth/pam_console/files/gdm
new file mode 100644
index 000000000000..90661abec431
--- /dev/null
+++ b/sys-auth/pam_console/files/gdm
@@ -0,0 +1,8 @@
+#%PAM-1.0
+auth optional pam_env.so
+auth include system-auth
+auth required pam_nologin.so
+account include system-auth
+password include system-auth
+session include system-auth
+session optional pam_console.so
diff --git a/sys-auth/pam_console/files/gdm-autologin b/sys-auth/pam_console/files/gdm-autologin
new file mode 100644
index 000000000000..be27cb4d6999
--- /dev/null
+++ b/sys-auth/pam_console/files/gdm-autologin
@@ -0,0 +1,8 @@
+#%PAM-1.0
+auth optional pam_env.so
+auth required pam_nologin.so
+auth required pam_permit.so
+account include system-auth
+password include system-auth
+session include system-auth
+session optional pam_console.so
diff --git a/sys-auth/pam_console/files/login b/sys-auth/pam_console/files/login
new file mode 100644
index 000000000000..1eec057e65e0
--- /dev/null
+++ b/sys-auth/pam_console/files/login
@@ -0,0 +1,24 @@
+#%PAM-1.0
+
+auth required pam_securetty.so
+auth include system-auth
+auth required pam_tally.so file=/var/log/faillog onerr=succeed no_magic_root
+auth required pam_shells.so
+auth required pam_nologin.so
+
+account required pam_access.so
+account include system-auth
+account required pam_tally.so deny=0 file=/var/log/faillog onerr=succeed no_magic_root
+
+password include system-auth
+
+session include system-auth
+session required pam_env.so
+session optional pam_lastlog.so
+session optional pam_motd.so motd=/etc/motd
+session optional pam_mail.so
+
+# If you want to enable pam_console, uncomment the following line
+# and read carefully README.pam_console in /usr/share/doc/pam*
+session optional pam_console.so
+
diff --git a/sys-auth/pam_console/files/pam_console.dev b/sys-auth/pam_console/files/pam_console.dev
new file mode 100644
index 000000000000..beb36ceecfb8
--- /dev/null
+++ b/sys-auth/pam_console/files/pam_console.dev
@@ -0,0 +1,2 @@
+#!/bin/bash
+exec /usr/sbin/pam_console_apply
diff --git a/sys-auth/pam_console/pam_console-0.99.6.2.3.6.ebuild b/sys-auth/pam_console/pam_console-0.99.6.2.3.6.ebuild
index aaf34671ea7c..30ff357980c0 100644
--- a/sys-auth/pam_console/pam_console-0.99.6.2.3.6.ebuild
+++ b/sys-auth/pam_console/pam_console-0.99.6.2.3.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_console/pam_console-0.99.6.2.3.6.ebuild,v 1.5 2006/10/30 17:07:20 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_console/pam_console-0.99.6.2.3.6.ebuild,v 1.6 2006/10/30 17:55:57 steev Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
@@ -44,4 +44,10 @@ src_compile() {
src_install() {
emake -j1 DESTDIR="${D}" install || die "emake install failed"
dodoc README
+ exeinto /etc/dev.d/default
+ doexec ${FILESDIR}/pam_console.dev
+ insinto /etc/pam.d
+ doins ${FILESDIR}/login
+ doins ${FILESDIR}/gdm
+ doins ${FILESDIR}/gdm-autologin
}