summaryrefslogtreecommitdiff
path: root/xibuilds/shadow.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-10-06 09:03:02 +0100
committerdavidovski <david@davidovski.xyz>2021-10-06 09:03:02 +0100
commitd4cb1386d79c95e7586e7bccad5b0f6c7861cfe8 (patch)
treefaf7ff136ab50bdcf34f2d0c02002192c1c8bc39 /xibuilds/shadow.xibuild
parentcdea2f67ae42d4220e19a555259b69a960925283 (diff)
added tarcapabilities
Diffstat (limited to 'xibuilds/shadow.xibuild')
-rw-r--r--xibuilds/shadow.xibuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/xibuilds/shadow.xibuild b/xibuilds/shadow.xibuild
new file mode 100644
index 0000000..ed786d4
--- /dev/null
+++ b/xibuilds/shadow.xibuild
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+DEPS=(pam acl audit libcap libxcrypt)
+
+SOURCE=https://github.com/shadow-maint/shadow
+DESC="Password and account management tool suite with support for shadow files and PAM"
+
+build () {
+ 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
+}