diff options
Diffstat (limited to 'core/shadow')
| -rw-r--r-- | core/shadow/.footprint | 48 | ||||
| -rw-r--r-- | core/shadow/.signature | 6 | ||||
| -rw-r--r-- | core/shadow/MAKEPKG | 77 |
3 files changed, 131 insertions, 0 deletions
diff --git a/core/shadow/.footprint b/core/shadow/.footprint new file mode 100644 index 0000000..2b695fa --- /dev/null +++ b/core/shadow/.footprint @@ -0,0 +1,48 @@ +drwxr-xr-x root/root bin/ +-rwsr-xr-x root/root bin/chage +-rwsr-xr-x root/root bin/chfn +-rwsr-xr-x root/root bin/chsh +-rwxr-xr-x root/root bin/faillog +-rwxr-xr-x root/root bin/getsubids +-rwsr-xr-x root/root bin/gpasswd +-rwxr-xr-x root/root bin/login +-rwsr-xr-x root/root bin/newgidmap +-rwsr-xr-x root/root bin/newgrp +-rwsr-xr-x root/root bin/newuidmap +-rwsr-xr-x root/root bin/passwd +-rwsr-xr-x root/root bin/su +lrwxrwxrwx root/root bin/sg -> newgrp +drwxr-xr-x root/root etc/ +-rw-r--r-- root/root etc/limits +-rw-r--r-- root/root etc/login.access +-rw-r--r-- root/root etc/login.defs +drwxr-xr-x root/root etc/default/ +-rw-r--r-- root/root etc/default/useradd +drwxr-xr-x root/root include/ +drwxr-xr-x root/root include/shadow/ +-rw-r--r-- root/root include/shadow/subid.h +drwxr-xr-x root/root lib/ +-rwxr-xr-x root/root lib/libsubid.so.6.0.0 +lrwxrwxrwx root/root lib/libsubid.so -> libsubid.so.6.0.0 +lrwxrwxrwx root/root lib/libsubid.so.6 -> libsubid.so.6.0.0 +drwxr-xr-x root/root sbin/ +-rwxr-xr-x root/root sbin/chgpasswd +-rwxr-xr-x root/root sbin/chpasswd +-rwxr-xr-x root/root sbin/groupadd +-rwxr-xr-x root/root sbin/groupdel +-rwxr-xr-x root/root sbin/groupmod +-rwxr-xr-x root/root sbin/grpck +-rwxr-xr-x root/root sbin/grpconv +-rwxr-xr-x root/root sbin/grpunconv +-rwxr-xr-x root/root sbin/newusers +-rwxr-xr-x root/root sbin/nologin +-rwxr-xr-x root/root sbin/pwck +-rwxr-xr-x root/root sbin/pwconv +-rwxr-xr-x root/root sbin/pwunconv +-rwxr-xr-x root/root sbin/useradd +-rwxr-xr-x root/root sbin/userdel +-rwxr-xr-x root/root sbin/usermod +-rwxr-xr-x root/root sbin/vipw +lrwxrwxrwx root/root sbin/vigr -> vipw +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/mail/ diff --git a/core/shadow/.signature b/core/shadow/.signature new file mode 100644 index 0000000..34b0d4d --- /dev/null +++ b/core/shadow/.signature @@ -0,0 +1,6 @@ +RWTZ9IduCSQ/mB8Y3q3iYi0BkpBRoLJwrbFiTVVP0nUJYxaJv9l0Ko+m2CL4Mt1/O4TXDT60vMaFadAy52UFw5fBvnQRO2nWwwA= + +SHA256 (MAKEPKG) = d8ca7161a4d0d3392f8d7fab3e298c8167209752cd28a3ad97c49644a323126b +SHA256 (.footprint) = 4810bf67018aa35f54df5ba0024bc6c1b55f27e7acb061f2f65fc221d8cdd88a +SHA256 (shadow-4.20.3.tar.xz) = 623be9429f64fa2165bfc5957c6a642ec309c5cf23c0d53855c99f7591922297 +SHA256 (shadow#4.20.3-1.pkg.tar.gz) = 6432161e2250759fe73c5db3d348a9a5e9d4324547f352b0e746351346d69e1f diff --git a/core/shadow/MAKEPKG b/core/shadow/MAKEPKG new file mode 100644 index 0000000..61961cb --- /dev/null +++ b/core/shadow/MAKEPKG @@ -0,0 +1,77 @@ +#!/bin/mkpkg +# description: Shadow password file utilities +# url: https://github.com/shadow-maint/shadow + +name=shadow +version=4.20.3 +release=1 +depends=(acl attr) +makedeps=() +source=(https://github.com/shadow-maint/$name/releases/download/$version/$name-$version.tar.xz) + +sha256sums=( + "623be9429f64fa2165bfc5957c6a642ec309c5cf23c0d53855c99f7591922297" +) + +build() { + cd $name-$version + + # Fix ENCRYPT_METHOD and mail spool path + sed -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \ + -e 's@/var/spool/mail@/var/mail@' \ + -e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \ + -i etc/login.defs + + # Disable building groups(1) — we use the coreutils version + sed -i 's/groups$(EXEEXT) //' src/Makefile.in + find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; + find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; + find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \; + + ./configure \ + --prefix=/ \ + --bindir=/bin \ + --sbindir=/sbin \ + --libdir=/lib \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --disable-static \ + --disable-nls \ + --without-libpam \ + --without-libbsd \ + --without-selinux \ + --without-audit \ + --disable-logind \ + --without-yescrypt \ + --with-group-name-max-length=32 + + make + make DESTDIR=$PKG install + + # Install login.defs + install -d $PKG/etc + install -m 644 etc/login.defs $PKG/etc/login.defs + + # Create required directories + install -d $PKG/var/mail + install -d $PKG/etc/default + + # Default useradd config + cat > $PKG/etc/default/useradd << "EOF" +GROUP=100 +HOME=/home +INACTIVE=-1 +EXPIRE= +SHELL=/bin/sh +SKEL=/etc/skel +CREATE_MAIL_SPOOL=no +EOF + +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh |
