mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-23 09:22:14 +08:00
trial to add new files called in util-linux
This commit is contained in:
parent
b20faabd89
commit
89d982ec3c
@ -6,7 +6,7 @@
|
||||
|
||||
pkgname=util-linux
|
||||
pkgver=2.22.1
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Miscellaneous system utilities for Linux"
|
||||
url="http://www.kernel.org/pub/linux/utils/util-linux/"
|
||||
arch=('x86_64')
|
||||
@ -21,7 +21,12 @@ source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v2.22/${pkgname}-${pkgve
|
||||
uuidd.tmpfiles
|
||||
pam-login
|
||||
pam-common
|
||||
pam-su)
|
||||
pam-su
|
||||
system-auth
|
||||
system-local-login
|
||||
system-login
|
||||
system-remote-login
|
||||
system-services)
|
||||
backup=(etc/pam.d/chfn
|
||||
etc/pam.d/chsh
|
||||
etc/pam.d/login
|
||||
@ -32,7 +37,12 @@ md5sums=('730cf9932531ed09b53a04ca30fcb4c9'
|
||||
'a39554bfd65cccfd8254bb46922f4a67'
|
||||
'4368b3f98abd8a32662e094c54e7f9b1'
|
||||
'a31374fef2cba0ca34dfc7078e2969e4'
|
||||
'fa85e5cce5d723275b14365ba71a8aad')
|
||||
'fa85e5cce5d723275b14365ba71a8aad'
|
||||
'5f169a4ffe7ed69f58e106cdd2d760df'
|
||||
'477237985820117a0e6e1b13a86eb599'
|
||||
'17c691f2da319df8fe851bc47cc1d662'
|
||||
'477237985820117a0e6e1b13a86eb599'
|
||||
'30fe7d41e054ee43fab7855bf88a07e5')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
@ -71,6 +81,11 @@ package() {
|
||||
install -m644 "$srcdir/pam-login" "$pkgdir/etc/pam.d/login"
|
||||
install -m644 "$srcdir/pam-su" "${pkgdir}/etc/pam.d/su"
|
||||
install -m644 "$srcdir/pam-su" "${pkgdir}/etc/pam.d/su-l"
|
||||
install -m644 "$srcdir/system-auth" "${pkgdir}/etc/pam.d/system-auth"
|
||||
install -m644 "$srcdir/system-local-login" "${pkgdir}/etc/pam.d/system-local-login"
|
||||
install -m644 "$srcdir/system-login" "${pkgdir}/etc/pam.d/system-login"
|
||||
install -m644 "$srcdir/system-remote-login" "${pkgdir}/etc/pam.d/system-remote-login"
|
||||
install -m644 "$srcdir/system-services" "${pkgdir}/etc/pam.d/system-services"
|
||||
|
||||
install -Dm644 "$srcdir/uuidd.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/uuidd.conf"
|
||||
}
|
||||
|
17
util-linux/system-auth
Normal file
17
util-linux/system-auth
Normal file
@ -0,0 +1,17 @@
|
||||
#%PAM-1.0
|
||||
|
||||
auth required pam_env.so
|
||||
auth required pam_unix.so try_first_pass nullok
|
||||
auth optional pam_permit.so
|
||||
|
||||
account required pam_unix.so
|
||||
account optional pam_permit.so
|
||||
account required pam_time.so
|
||||
|
||||
password required pam_unix.so try_first_pass nullok sha512 shadow
|
||||
password optional pam_permit.so
|
||||
|
||||
session required pam_limits.so
|
||||
session required pam_env.so
|
||||
session required pam_unix.so
|
||||
session optional pam_permit.so
|
6
util-linux/system-local-login
Normal file
6
util-linux/system-local-login
Normal file
@ -0,0 +1,6 @@
|
||||
#%PAM-1.0
|
||||
|
||||
auth include system-login
|
||||
account include system-login
|
||||
password include system-login
|
||||
session include system-login
|
20
util-linux/system-login
Normal file
20
util-linux/system-login
Normal file
@ -0,0 +1,20 @@
|
||||
#%PAM-1.0
|
||||
|
||||
auth required pam_tally.so onerr=succeed file=/var/log/faillog
|
||||
auth required pam_shells.so
|
||||
auth requisite pam_nologin.so
|
||||
auth include system-auth
|
||||
|
||||
account required pam_access.so
|
||||
account required pam_nologin.so
|
||||
account include system-auth
|
||||
|
||||
password include system-auth
|
||||
|
||||
session optional pam_loginuid.so
|
||||
session required pam_env.so
|
||||
session include system-auth
|
||||
session optional pam_motd.so motd=/etc/motd
|
||||
session optional pam_mail.so dir=/var/spool/mail standard
|
||||
-session optional pam_ck_connector.so nox11
|
||||
-session optional pam_systemd.so
|
6
util-linux/system-remote-login
Normal file
6
util-linux/system-remote-login
Normal file
@ -0,0 +1,6 @@
|
||||
#%PAM-1.0
|
||||
|
||||
auth include system-login
|
||||
account include system-login
|
||||
password include system-login
|
||||
session include system-login
|
11
util-linux/system-services
Normal file
11
util-linux/system-services
Normal file
@ -0,0 +1,11 @@
|
||||
#%PAM-1.0
|
||||
|
||||
auth sufficient pam_permit.so
|
||||
|
||||
account include system-auth
|
||||
|
||||
session optional pam_loginuid.so
|
||||
session required pam_limits.so
|
||||
session required pam_env.so
|
||||
session required pam_unix.so
|
||||
session optional pam_permit.so
|
Loading…
Reference in New Issue
Block a user