diff options
author | davidovski <david@davidovski.xyz> | 2021-10-06 17:19:20 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2021-10-06 17:19:20 +0100 |
commit | 0a31fc2a959ea1230d07cfd837f5a9a945a7f80a (patch) | |
tree | 4c9aef911135753e8cdffd849c3d071167886168 /repo/core/shadow.xibuild |
Initial commit, added core packages
Diffstat (limited to 'repo/core/shadow.xibuild')
-rw-r--r-- | repo/core/shadow.xibuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/repo/core/shadow.xibuild b/repo/core/shadow.xibuild new file mode 100644 index 0000000..55d847f --- /dev/null +++ b/repo/core/shadow.xibuild @@ -0,0 +1,35 @@ +#!/bin/bash + +DEPS=(pam acl audit libcap libxcrypt) + +SOURCE=https://github.com/shadow-maint/shadow/releases/download/v4.9/shadow-4.9.tar.xz +DESC="Password and account management tool suite with support for shadow files and PAM" + +build () { + echo "building" + 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 / /' {} \; + + #sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \ + #-e 's:/var/spool/mail:/var/mail:' \ + #-e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \ + + sed -e "224s/rounds/min_rounds/" -i libmisc/salt.c + + mkdir -p $PKG_DEST/usr/bin + touch $PKG_DEST/usr/bin/passwd + ./configure --sysconfdir=/etc --with-group-name-max-length=32 + + make + + make exec_prefix=/usr DESTDIR=$PKG_DEST install + + make DESTDIR=$PKG_DEST -C man install-man + +} + +package () { + mkdir -p $PKG_DEST/etc/default +} |