blob: 9e169a0528579c97dd967f680348aa3fc0a6a4b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/shadow-20000902.ebuild,v 1.2 2000/11/30 23:14:34 achim Exp $
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Utilities to deal with user accounts"
SRC_URI="http://www1.itnet.pl/amelektr/linux/shadow/${A}
ftp://piast.t19.ds.pwr.wroc.pl/pub/linux/shadow/${A}"
DEPEND=">=sys-libs/pam-0.72"
src_compile() {
try ./configure --disable-desrpc --with-libcrypt \
--with-libcrack --with-libpam --disable-shared --host=${CHOST}
try make ${MAKEOPTS} LDFLAGS=\"\"
}
src_install() {
cd ${S}
try make install prefix=${D}/usr exec_prefix=${D}
mv ${D}/lib ${D}/usr
dosed "s:/lib:/usr/lib:" /usr/lib/libshadow.la
cd ${D}/usr/sbin
ln -s useradd ${D}/usr/sbin/adduser
dodir /etc
cp ${O}/files/login.defs ${D}/etc
dodir /etc/defaults
cp ${O}/files/useradd ${D}/etc/defaults
chmod 0600 ${D}/etc/defaults/useradd
dodir /etc/skel
cd ${S}/etc
cp shells shells.orig
echo "# /etc/shells: valid login shells" > shells
echo "/bin/sh" >> shells
echo "/bin/bash" >> shells
echo "/bin/tcsh" >> shells
echo "/bin/esh" >> shells
echo "/bin/ksh" >> shells
echo "/bin/zsh" >> shells
echo "/bin/sash" >> shells
insinto /etc
doins limits shells
insopts -m0600
doins suauth login.access
cd ${S}/doc
dodoc ANNOUNCE CHANGES INSTALL LICENSE README WISHLIST
docinto txt
dodoc HOWTO LSM README.* *.txt
}
|