43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
# Description: Shadow password file utilities
|
|
# URL: http://pkg-shadow.alioth.debian.org/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: acl
|
|
|
|
name=shadow
|
|
version=4.2.1
|
|
release=2
|
|
source=(http://pkg-shadow.alioth.debian.org/releases/$name-$version.tar.xz
|
|
pwck login.defs)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--disable-shared \
|
|
--disable-shadowgrp \
|
|
--disable-nls \
|
|
--without-selinux \
|
|
--without-libpam \
|
|
--without-audit
|
|
|
|
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/share/man/man1/gpasswd.1 \
|
|
$PKG/usr/sbin/{chpasswd,grpconv,grpunconv,logoutd} \
|
|
$PKG/usr/sbin/{newusers,pwconv,pwunconv} \
|
|
$PKG/usr/share/man/man8/{chpasswd.8,grpconv.8,grpunconv.8,logoutd.8} \
|
|
$PKG/usr/share/man/man8/{newusers.8,pwconv.8,pwunconv.8} \
|
|
$PKG/usr/share/man/man5/gshadow.5 \
|
|
$PKG/usr/share/man/man3 \
|
|
$PKG/etc/{login.access,limits,default}
|
|
}
|