summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-04-28 14:19:31 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-04-28 14:19:31 +0000
commit05c880b03c21672693f30e3cdfe13ef0532a0dfa (patch)
tree93f236e829ffd3bce7f916923cfb8f61610e9901 /sys-apps/pam-login
parentupdate to -r2 which fixes 1882 and makes ntp compile (diff)
downloadhistorical-05c880b03c21672693f30e3cdfe13ef0532a0dfa.tar.gz
historical-05c880b03c21672693f30e3cdfe13ef0532a0dfa.tar.bz2
historical-05c880b03c21672693f30e3cdfe13ef0532a0dfa.zip
initial version
Diffstat (limited to 'sys-apps/pam-login')
-rw-r--r--sys-apps/pam-login/ChangeLog10
-rw-r--r--sys-apps/pam-login/files/digest-pam-login-3.61
-rw-r--r--sys-apps/pam-login/files/login.defs128
-rw-r--r--sys-apps/pam-login/pam-login-3.6.ebuild76
4 files changed, 215 insertions, 0 deletions
diff --git a/sys-apps/pam-login/ChangeLog b/sys-apps/pam-login/ChangeLog
new file mode 100644
index 000000000000..a4cb81852349
--- /dev/null
+++ b/sys-apps/pam-login/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-apps/pam-login
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pam-login/ChangeLog,v 1.1 2002/04/28 14:19:31 azarah Exp $
+
+*pam-login-3.6 (28 Apr 2002)
+
+ 28 Apr 2002; Martin Schlemmer <azarah@gentoo.org> :
+
+ Initial version.
+
diff --git a/sys-apps/pam-login/files/digest-pam-login-3.6 b/sys-apps/pam-login/files/digest-pam-login-3.6
new file mode 100644
index 000000000000..c1e818eeeceb
--- /dev/null
+++ b/sys-apps/pam-login/files/digest-pam-login-3.6
@@ -0,0 +1 @@
+MD5 80e7f5d92f24b77007dc87104c118ff3 pam_login-3.6.tar.bz2 149061
diff --git a/sys-apps/pam-login/files/login.defs b/sys-apps/pam-login/files/login.defs
new file mode 100644
index 000000000000..9e42cfbf1079
--- /dev/null
+++ b/sys-apps/pam-login/files/login.defs
@@ -0,0 +1,128 @@
+#
+# /etc/login.defs - Configuration control definitions for the login package.
+#
+# All items are optional - if not specified then the described action or
+# option will be inhibited.
+#
+# Comment lines (lines beginning with "#") and blank lines are ignored.
+#
+
+#
+# Delay in seconds before being allowed another attempt after a login failure
+#
+FAIL_DELAY 3
+
+#
+# Enable logging and display of /var/log/faillog login failure info.
+#
+FAILLOG_ENAB yes
+
+#
+# Enable display of unknown usernames when login failures are recorded.
+#
+LOG_UNKFAIL_ENAB no
+
+#
+# Enable logging and display of /var/log/lastlog login time info.
+#
+LASTLOG_ENAB yes
+
+#
+# If defined, ":" delimited list of "message of the day" files to
+# be displayed upon login.
+#
+MOTD_FILE /etc/motd
+#MOTD_FILE /etc/motd:/usr/lib/news/news-motd
+
+#
+# If defined, file which maps tty line to TERM environment parameter.
+# Each line of the file is in a format something like "vt100 tty01".
+#
+TTYTYPE_FILE /etc/ttytype
+
+#
+# If defined, login failures will be logged here in a utmp format.
+# last, when invoked as lastb, will read /var/log/btmp, so...
+#
+FTMP_FILE /var/log/btmp
+
+#
+# If defined, file which inhibits all the usual chatter during the login
+# sequence. If a full pathname, then hushed mode will be enabled if the
+# user's name or shell are found in the file. If not a full pathname, then
+# hushed mode will be enabled if the file exists in the user's home directory.
+#
+HUSHLOGIN_FILE .hushlogin
+#HUSHLOGIN_FILE /etc/hushlogins
+
+#
+# The default PATH settings.
+#
+ENV_PATH /usr/local/bin:/usr/bin:/bin
+
+#
+# The default PATH settings for root:
+#
+ENV_ROOTPATH /sbin:/bin:/usr/sbin:/usr/bin
+
+#
+# Terminal permissions
+#
+# TTYGROUP Login tty will be assigned this group ownership.
+# TTYPERM Login tty will be set to this permission.
+#
+# If you have a "write" program which is "setgid" to a special group
+# which owns the terminals, define TTYGROUP to the group number and
+# TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign
+# TTYPERM to either 622 or 600.
+#
+TTYGROUP tty
+TTYPERM 0600
+
+#
+# Password aging controls:
+#
+# PASS_MAX_DAYS Maximum number of days a password may be used.
+# PASS_MIN_DAYS Minimum number of days allowed between password changes.
+# PASS_MIN_LEN Minimum acceptable password length.
+# PASS_WARN_AGE Number of days warning given before a password expires.
+#
+PASS_MAX_DAYS 99999
+PASS_MIN_DAYS 0
+PASS_MIN_LEN 5
+PASS_WARN_AGE 7
+
+#
+# Min/max values for automatic uid selection in useradd
+#
+UID_MIN 1000
+UID_MAX 60000
+
+#
+# Min/max values for automatic gid selection in groupadd
+#
+GID_MIN 100
+GID_MAX 60000
+
+#
+# Max number of login retries if password is bad
+#
+LOGIN_RETRIES 3
+
+#
+# Max time in seconds for login
+#
+LOGIN_TIMEOUT 60
+
+#
+# Require password before chfn/chsh can make any changes.
+#
+CHFN_AUTH yes
+
+#
+# Which fields may be changed by regular users using chfn - use
+# any combination of letters "frwh" (full name, room number, work
+# phone, home phone). If not defined, no changes are allowed.
+# For backward compatibility, "yes" = "rwh" and "no" = "frwh".
+#
+CHFN_RESTRICT rwh
diff --git a/sys-apps/pam-login/pam-login-3.6.ebuild b/sys-apps/pam-login/pam-login-3.6.ebuild
new file mode 100644
index 000000000000..601a5398e61c
--- /dev/null
+++ b/sys-apps/pam-login/pam-login-3.6.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Maintainer: Martin Schlemmer <azarah@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pam-login/pam-login-3.6.ebuild,v 1.1 2002/04/28 14:19:31 azarah Exp $
+
+MY_PN="${PN/pam-/pam_}"
+S="${WORKDIR}/${MY_PN}-${PV}"
+DESCRIPTION="Based on the sources from util-linux, with added pam and shadow features"
+SRC_URI="ftp://ftp.suse.com/pub/people/kukuk/pam/${MY_PN}/${MY_PN}-${PV}.tar.bz2"
+HOMEPAGE="http://www.thkukuk.de/pam/pam_login/"
+
+DEPEND="virtual/glibc
+ sys-libs/pam
+ >=sys-apps/shadow-4.0.2-r5"
+
+RDEPEND="virtual/glibc"
+
+
+src_compile() {
+
+ local myconf
+ use nls || myconf="--disable-nls"
+
+ ./configure --host=${CHOST} \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc \
+ ${myconf} || die
+
+ emake || die
+}
+
+src_install() {
+
+ make prefix=${D}/usr \
+ rootexecbindir=${D}/bin \
+ mandir=${D}/usr/share/man \
+ sysconfdir=${D}/etc \
+ install || die
+
+ insinto /etc
+ insopts -m0644
+ newins ${FILESDIR}/login.defs login.defs.new
+
+ dodoc AUTHORS COPYING ChangeLog NEWS README THANKS
+}
+
+pkg_preinst() {
+
+ rm -f ${ROOT}/etc/login.defs.new
+}
+
+pkg_postinst() {
+
+ echo
+ echo "************************************************************"
+ echo " Due to a compadibility issue, ${ROOT}etc/login.defs "
+ echo " is being updated automatically. Your old login.defs"
+ echo " will be backed up as: ${ROOT}etc/login.defs.bak"
+ echo "************************************************************"
+ echo
+ local CHECK1=`md5sum ${ROOT}/etc/login.defs | cut -d ' ' -f 1`
+ local CHECK2=`md5sum ${ROOT}/etc/login.defs.new | cut -d ' ' -f 1`
+
+ if [ "$CHECK1" != "$CHECK2" ];
+ then
+ cp -a ${ROOT}/etc/login.defs ${ROOT}/etc/login.defs.bak;
+ mv -f ${ROOT}/etc/login.defs.new ${ROOT}/etc/login.defs
+ elif [ ! -f ${ROOT}/etc/login.defs ]
+ then
+ mv -f ${ROOT}/etc/login.defs.new ${ROOT}/etc/login.defs
+ else
+ rm -f ${ROOT}/etc/login.defs.new
+ fi
+}
+