diff options
author | 2002-03-03 08:35:07 +0000 | |
---|---|---|
committer | 2002-03-03 08:35:07 +0000 | |
commit | c2d62cb3db7d0f494cfc53a5a2ca7ec60a659329 (patch) | |
tree | 8541fc8323acc923a1d5942621748a2f7fd01ef7 | |
parent | new mosix-user ebuild. Getting ready to add openmosix support. (diff) | |
download | gentoo-2-c2d62cb3db7d0f494cfc53a5a2ca7ec60a659329.tar.gz gentoo-2-c2d62cb3db7d0f494cfc53a5a2ca7ec60a659329.tar.bz2 gentoo-2-c2d62cb3db7d0f494cfc53a5a2ca7ec60a659329.zip |
new shadow
-rw-r--r-- | sys-apps/shadow/files/pam.d/login | 8 | ||||
-rw-r--r-- | sys-apps/shadow/files/pam.d/other | 5 | ||||
-rw-r--r-- | sys-apps/shadow/files/pam.d/passwd | 4 | ||||
-rw-r--r-- | sys-apps/shadow/files/pam.d/shadow | 5 | ||||
-rw-r--r-- | sys-apps/shadow/files/pam.d/su | 8 | ||||
-rw-r--r-- | sys-apps/shadow/files/pam.d/system-auth | 13 | ||||
-rw-r--r-- | sys-apps/shadow/shadow-4.0.2.ebuild | 77 |
7 files changed, 120 insertions, 0 deletions
diff --git a/sys-apps/shadow/files/pam.d/login b/sys-apps/shadow/files/pam.d/login new file mode 100644 index 000000000000..6adeff7bbf57 --- /dev/null +++ b/sys-apps/shadow/files/pam.d/login @@ -0,0 +1,8 @@ +#%PAM-1.0 +auth required /lib/security/pam_securetty.so +auth required /lib/security/pam_stack.so service=system-auth +auth required /lib/security/pam_nologin.so +account required /lib/security/pam_stack.so service=system-auth +password required /lib/security/pam_stack.so service=system-auth +session required /lib/security/pam_stack.so service=system-auth +#session optional /lib/security/pam_console.so diff --git a/sys-apps/shadow/files/pam.d/other b/sys-apps/shadow/files/pam.d/other new file mode 100644 index 000000000000..0b1f6a887248 --- /dev/null +++ b/sys-apps/shadow/files/pam.d/other @@ -0,0 +1,5 @@ +#%PAM-1.0 +auth required /lib/security/pam_deny.so +account required /lib/security/pam_deny.so +password required /lib/security/pam_deny.so +session required /lib/security/pam_deny.so diff --git a/sys-apps/shadow/files/pam.d/passwd b/sys-apps/shadow/files/pam.d/passwd new file mode 100644 index 000000000000..d1a1c3b88340 --- /dev/null +++ b/sys-apps/shadow/files/pam.d/passwd @@ -0,0 +1,4 @@ +#%PAM-1.0 +auth required /lib/security/pam_stack.so service=system-auth +account required /lib/security/pam_stack.so service=system-auth +password required /lib/security/pam_stack.so service=system-auth diff --git a/sys-apps/shadow/files/pam.d/shadow b/sys-apps/shadow/files/pam.d/shadow new file mode 100644 index 000000000000..c7f064396b7e --- /dev/null +++ b/sys-apps/shadow/files/pam.d/shadow @@ -0,0 +1,5 @@ +#%PAM-1.0 +auth sufficient /lib/security/pam_rootok.so +auth required /lib/security/pam_permit.so +account required /lib/security/pam_permit.so +password required /lib/security/pam_permit.so diff --git a/sys-apps/shadow/files/pam.d/su b/sys-apps/shadow/files/pam.d/su new file mode 100644 index 000000000000..71d16e907a15 --- /dev/null +++ b/sys-apps/shadow/files/pam.d/su @@ -0,0 +1,8 @@ +#%PAM-1.0 +auth sufficient /lib/security/pam_rootok.so +auth required /lib/security/pam_wheel.so use_uid +auth required /lib/security/pam_stack.so service=system-auth +account required /lib/security/pam_stack.so service=system-auth +password required /lib/security/pam_stack.so service=system-auth +session required /lib/security/pam_stack.so service=system-auth +session optional /lib/security/pam_xauth.so diff --git a/sys-apps/shadow/files/pam.d/system-auth b/sys-apps/shadow/files/pam.d/system-auth new file mode 100644 index 000000000000..888138809e18 --- /dev/null +++ b/sys-apps/shadow/files/pam.d/system-auth @@ -0,0 +1,13 @@ +#%PAM-1.0 +auth required /lib/security/pam_env.so +auth sufficient /lib/security/pam_pwdb.so likeauth nullok +auth required /lib/security/pam_deny.so + +account required /lib/security/pam_pwdb.so + +#password required /lib/security/pam_cracklib.so retry=3 +password sufficient /lib/security/pam_pwdb.so nullok md5 shadow #use_authtok +password required /lib/security/pam_deny.so + +session required /lib/security/pam_limits.so +session required /lib/security/pam_pwdb.so diff --git a/sys-apps/shadow/shadow-4.0.2.ebuild b/sys-apps/shadow/shadow-4.0.2.ebuild new file mode 100644 index 000000000000..973cf7302991 --- /dev/null +++ b/sys-apps/shadow/shadow-4.0.2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/shadow-4.0.2.ebuild,v 1.1 2002/03/03 08:35:07 azarah Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Utilities to deal with user accounts" +SRC_URI="ftp://ftp.pld.org.pl/software/shadow/${P}.tar.gz" + +DEPEND=">=sys-libs/pam-0.75-r4 + sys-devel/gettext" + +RDEPEND=">=sys-libs/pam-0.75-r4" + +src_compile() { + ./configure \ + --disable-desrpc \ + --with-libcrypt \ + --with-libcrack \ + --with-libpam \ + --enable-shared=no \ + --enable-static=yes \ + --host=${CHOST} || die "bad configure" + + # Parallel make fails sometimes + make LDFLAGS="" || die "compile problem" +} + +src_install() { + dodir /etc/default /etc/skel + + make prefix=${D}/usr \ + exec_prefix=${D} \ + mandir=${D}/usr/share/man \ + install || die "install problem" + + mv ${D}/lib ${D}/usr + dosed -e "s:/lib:/usr/lib:" -e "s: libshadow.so':':" /usr/lib/libshadow.la + dosym /usr/bin/newgrp /usr/bin/sg + dosym /usr/sbin/useradd /usr/sbin/adduser + dosym /usr/sbin/vipw /usr/sbin/vigr + # remove dead links + rm -f ${D}/bin/{sg,vipw} + + insinto /etc + # Using a securetty with devfs device names added + # (compat names kept for non-devfs compatibility) + insopts -m0600 ; doins ${FILESDIR}/securetty + insopts -m0600 ; doins ${S}/etc/login.access + insopts -m0644 ; doins ${S}/etc/limits + insopts -m0644 ; doins ${FILESDIR}/login.defs + insinto /etc/pam.d ; insopts -m0644 + cd ${FILESDIR}/pam.d + doins * + newins shadow chage + newins shadow chsh + newins shadow chfn + newins shadow useradd + newins shadow groupadd + cd ${S} + + # the manpage install is beyond my comprehension, and also broken. + # just do it over. + rm -rf ${D}/usr/share/man/* + for q in man/*.[0-9] + do + local dir="${D}/usr/share/man/man${q##*.}" + mkdir -p $dir + cp $q $dir + done + + cd ${S}/doc + dodoc ANNOUNCE INSTALL LICENSE README WISHLIST + docinto txt + dodoc HOWTO LSM README.* *.txt +} + |