shadow
This commit is contained in:
1 parent
3e93269d2d
commit
7d2454f8fc
3 files changed
+64
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
if [ ! -f /var/lib/ymp/sysconf/shadow/postinstall.done ] ; then
|
||||||
|
for app in su chage chsh expiry ; do
|
||||||
|
chmod u+s /usr/bin/$app
|
||||||
|
done
|
||||||
|
date > /var/lib/ymp/sysconf/shadow/postinstall.done
|
||||||
|
fi
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# useradd defaults file
|
||||||
|
GROUP=users
|
||||||
|
HOME=/data/user
|
||||||
|
INACTIVE=-1
|
||||||
|
EXPIRE=
|
||||||
|
SHELL=/bin/bash
|
||||||
|
SKEL=/etc/skel
|
||||||
|
CREATE_MAIL_SPOOL=no
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='shadow'
|
||||||
|
release='1'
|
||||||
|
version='4.13'
|
||||||
|
url='https://github.com/shadow-maint/shadow/releases'
|
||||||
|
description='Password and account management tool suite with support for shadow files and PAM'
|
||||||
|
email='aliriza.keskin@pardus.org.tr'
|
||||||
|
maintainer='aliriza'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://github.com/shadow-maint/shadow/releases/download/$version/shadow-$version.tar.xz"
|
||||||
|
"useradd.defaults"
|
||||||
|
"shadow.sysconf")
|
||||||
|
depends=(pam libxcrypt acl attr)
|
||||||
|
makedepends=( )
|
||||||
|
md5sums=('b1ab01b5462ddcf43588374d57bec123'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP')
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd $name-$version
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
autoreconf -fiv
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--libdir=/usr/lib64/shadow \
|
||||||
|
--bindir=/usr/bin \
|
||||||
|
--sbindir=/usr/sbin \
|
||||||
|
--disable-account-tools-setuid \
|
||||||
|
--with-fcaps \
|
||||||
|
--with-libpam \
|
||||||
|
--without-group-name-max-length \
|
||||||
|
--with-bcrypt \
|
||||||
|
--with-yescrypt \
|
||||||
|
--without-selinux
|
||||||
|
}
|
||||||
|
|
||||||
|
build(){
|
||||||
|
make -j`nproc`
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
make install -j`nproc`
|
||||||
|
install -vDm 600 ../useradd.defaults "${DESTDIR}/etc/default/useradd"
|
||||||
|
install -vDm 755 ../shadow.sysconf ${DESTDIR}/etc/sysconf.d/shadow
|
||||||
|
mkdir -p ${DESTDIR}/etc/ld.so.conf.d/
|
||||||
|
echo "/usr/lib64/shadow/" > ${DESTDIR}/etc/ld.so.conf.d/shadow.conf
|
||||||
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user