Juergen Daubert
2ca7ecb658
With 4.1.0-1 the default behaviour of shadow is restored and a patch from Gentoo [1] removed. It may be debatable whether useradd should create a new group with the same name as the username if the primary group is not specified with -g, or not. For now we will follow the CRUX principle to use vanila packages whenever possible. However, there are plans to change something in that direction [2]. [1] http://bugs.gentoo.org/show_bug.cgi?id=128715 [2] http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/2007-December/006252.html
48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
# Description: Shadow password file utilities
|
|
# URL: http://pkg-shadow.alioth.debian.org/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
name=shadow
|
|
version=4.1.0
|
|
release=1
|
|
source=(ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$name-$version.tar.bz2
|
|
pwck login.defs
|
|
shadow-4.1.0.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
patch -p1 -i $SRC/shadow-4.1.0.patch
|
|
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--sysconfdir=/etc \
|
|
--disable-shared \
|
|
--disable-shadowgrp \
|
|
--disable-nls \
|
|
--without-selinux \
|
|
--without-libpam
|
|
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
install -d $PKG/etc/cron/daily $PKG/var/log
|
|
install -m 644 $SRC/login.defs $PKG/etc
|
|
install -m 755 $SRC/pwck $PKG/etc/cron/daily
|
|
mv $PKG/bin/{su,groups} $PKG/usr/bin
|
|
touch $PKG/var/log/{lastlog,faillog}
|
|
|
|
rm -r $PKG/usr/bin/gpasswd \
|
|
$PKG/usr/man/man1/gpasswd.1 \
|
|
$PKG/usr/sbin/{chpasswd,grpconv,grpunconv,logoutd} \
|
|
$PKG/usr/sbin/{newusers,pwconv,pwunconv} \
|
|
$PKG/usr/man/man8/{chpasswd.8,grpconv.8,grpunconv.8,logoutd.8} \
|
|
$PKG/usr/man/man8/{newusers.8,pwconv.8,pwunconv.8} \
|
|
$PKG/usr/man/man5/gshadow.5 \
|
|
$PKG/usr/man/man3 \
|
|
$PKG/lib \
|
|
$PKG/etc/{login.access,limits,default}
|
|
|
|
}
|