core/shadow/Pkgfile

53 lines
1.7 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Shadow password file utilities
2019-02-03 07:40:08 +01:00
# URL: https://github.com/shadow-maint/shadow/
# Maintainer: CRUX System Team, core-ports at crux dot nu
2019-02-03 07:40:08 +01:00
# Depends on: acl linux-pam
2006-02-23 16:26:10 +01:00
name=shadow
2020-01-24 23:56:32 +01:00
version=4.8.1
2019-06-21 17:37:31 +02:00
release=1
2019-02-03 07:40:08 +01:00
source=(https://github.com/shadow-maint/$name/releases/download/$version/$name-$version.tar.xz \
pwck login.defs chfn chsh login groupadd groupdel \
groupmems groupmod passwd su useradd userdel usermod)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
2014-05-05 19:14:58 +02:00
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
2019-12-04 18:39:08 +01:00
--bindir=/usr/bin \
--sbindir=/usr/sbin \
2006-06-07 16:21:16 +02:00
--sysconfdir=/etc \
2006-05-24 12:11:39 +02:00
--disable-shared \
--disable-shadowgrp \
--disable-nls \
--without-selinux \
--without-audit
2006-08-02 12:28:24 +02:00
2006-02-23 16:26:10 +01:00
make
make DESTDIR=$PKG install
2019-12-04 18:39:08 +01:00
install -d $PKG/{bin,sbin}
mv $PKG/usr/bin/login $PKG/bin
mv $PKG/usr/sbin/nologin $PKG/sbin
chmod -s $PKG/usr/sbin/*
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
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 \
2019-02-03 07:40:08 +01:00
$PKG/etc/{default,pam.d/*}
install -o root -g root -m 0644 \
$SRC/{ch{fn,sh},login,group{add,del,mems,mod},passwd,su,user{add,del,mod}} \
$PKG/etc/pam.d/
2006-02-23 16:26:10 +01:00
}