blob: 24a0078c33d20379cec2fa63a07dc60dbd20d2c4 (
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
56
57
58
59
60
61
62
|
# 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-19990827-r1.ebuild,v 1.2 2000/08/16 04:38:30 drobbins Exp $
P="shadow-19990827"
A=${P}.tar.gz
A0=shadow-19990827-redhat.patch
S=${WORKDIR}/${P}
DESCRIPTION="Utilities to deal with user accounts"
SRC_URI="ftp://piast.t19.ds.pwr.wroc.pl/pub/linux/shadow/shadow-19990827.tar.gz"
src_compile() {
./configure --disable-desrpc --with-libcrypt --with-catgets \
--with-libcrack \
--with-libpam --disable-shared --host=${CHOST}
make
}
src_unpack() {
unpack ${A}
einfo "Applying patch from RedHat 6.1..."
patch -p0 < ${O}/files/${A0}
}
src_install() {
cd ${S}
make install prefix=${D}/usr exec_prefix=${D}
cd ${D}/usr/sbin
ln -s useradd ${D}/usr/sbin/adduser
gzip -9 ${D}/usr/man/man?/*.[1-9]
cd ${D}/usr/man/man8
ln -s useradd.8.gz adduser.8.gz
ln -s pwconv.8.gz pwuconv.8.gz
ln -s pwconv.8.gz grpconv.8.gz
ln -s pwconv.8.gz grpunconv.8.gz
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
insinto /etc
doins limits shells
insopts -m0600
doins suauth login.access
cd ${S}
dodoc ABOUT-NLS
cd ${S}/doc
dodoc ANNOUNCE CHANGES HOWTO INSTALL LICENSE LSM README* WISHLIST *.txt
}
|