Refactor: add install hook
All checks were successful
Build package / build-package (push) Successful in 9s

This commit is contained in:
2025-07-28 10:34:50 +08:00
parent 5dc9545e81
commit 3105cae8e9
4 changed files with 10 additions and 11 deletions

View File

@@ -5,7 +5,6 @@ Operation = Upgrade
Target = etc/openldap/ldap.conf
Target = etc/pam.d/su
Target = etc/pam.d/su-l
Target = etc/pam.d/sudo
Target = etc/pam.d/system-auth
[Action]

View File

@@ -1,7 +1,7 @@
# Maintainer: Yi-Ting Shih <ytshih@konchin.com>
pkgname=hl-ldap-env
pkgver=0.0.3
pkgrel=3
pkgver=0.0.4
pkgrel=1
pkgdesc="LDAP and NFS environment for konchin.com homelab"
arch=(any)
url="https://gitea.konchin.com/package/hl-ldap-env"
@@ -18,7 +18,6 @@ source=(
'ldap.conf'
'pam-su'
'pam-su-l'
'pam-sudo'
'pam-system-auth'
'net-home.mount'
'60-sssd.conf'
@@ -33,7 +32,6 @@ package() {
'ldap.conf'
'pam-su'
'pam-su-l'
'pam-sudo'
'pam-system-auth'
)
for file in ${files_override[@]}; do
@@ -49,8 +47,7 @@ sha256sums=('fc5b311c7440bfef9065c2325100b2e142777c5d92d9783aa30ff7da70a77ef6'
'62c71fb39d4163e813b1fbbb7594d388d8de20476e69d0822ffd7c3d537b22a5'
'c54ddb4dda93149811ccd8c29446ed9e3d75bb01a0e5ca3532b4b6bd1a6099fe'
'4dc73ef7fd1640345f0b84191c18bf161f2a79b11c7309ac2f73952b22ddf737'
'f664afd3c165da6ce355329021a81ceac562a02a853465188ba9fab919315b71'
'6fba778754a1e73eb038481e1e436bbdaa81d7cf4ed26d6763c1f9d2a3122f3a'
'1c4a92b809339137fd478c628e4753b849f26059761b1e20377e24c2fb06a555'
'f239447e5107f6be09b709b5a33ad23b680bcaafe60162cea11a72e4fe20516d'
'39505df4c52e4e1b55f54740978aa104588442957b0c4477cef3c97f32adf60e')
'769a91a0afdf666837bac9744088d7550ca74ebe94619abd369f420222fa8616')

7
hl-ldap-env.install Normal file
View File

@@ -0,0 +1,7 @@
post_install() {
bash "$pkgdir/usr/lib/hl-ldap-env/install.sh"
}
post_upgrade() {
bash "$pkgdir/usr/lib/hl-ldap-env/install.sh"
}

View File

@@ -1,4 +0,0 @@
#%PAM-1.0
auth sufficient pam_sss.so
auth required pam_unix.so try_first_pass
auth required pam_nologin.so