CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
shadow: initial import
[ports/core-arm64.git] / shadow / Pkgfile
1 # Description: Shadow password file utilities
2 # URL: https://github.com/shadow-maint/shadow/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: acl linux-pam
5
6 name=shadow
7 version=4.6
8 release=2
9 source=(https://github.com/shadow-maint/$name/releases/download/$version/$name-$version.tar.xz \
10 pwck login.defs chfn chsh login groupadd groupdel \
11 groupmems groupmod passwd su useradd userdel usermod)
12
13 build() {
14 cd $name-$version
15
16 ./configure --prefix=/usr \
17 --sysconfdir=/etc \
18 --disable-shared \
19 --disable-shadowgrp \
20 --disable-nls \
21 --without-selinux \
22 --without-audit
23
24 make
25 make DESTDIR=$PKG install
26
27 install -d $PKG/etc/cron/daily $PKG/var/log
28 install -m 644 $SRC/login.defs $PKG/etc
29 install -m 755 $SRC/pwck $PKG/etc/cron/daily
30 mv $PKG/bin/{su,groups} $PKG/usr/bin
31 touch $PKG/var/log/{lastlog,faillog}
32
33 rm -r $PKG/usr/bin/gpasswd \
34 $PKG/usr/share/man/man1/gpasswd.1 \
35 $PKG/usr/sbin/{chpasswd,grpconv,grpunconv,logoutd} \
36 $PKG/usr/sbin/{newusers,pwconv,pwunconv} \
37 $PKG/usr/share/man/man8/{chpasswd.8,grpconv.8,grpunconv.8,logoutd.8} \
38 $PKG/usr/share/man/man8/{newusers.8,pwconv.8,pwunconv.8} \
39 $PKG/usr/share/man/man5/gshadow.5 \
40 $PKG/usr/share/man/man3 \
41 $PKG/etc/default
42
43 install -o root -g root -m 0644 \
44 $SRC/{ch{fn,sh},login,group{add,del,mems,mod},passwd,su,user{add,del,mod}} \
45 $PKG/usr/sbin/
46 }