create saslauth user and group [release 2.1.26-4mamba;Thu Apr 16 2015]

This commit is contained in:
Silvan Calarco 2024-01-05 21:37:54 +01:00
parent cab59e071e
commit e02741332b

View File

@ -1,6 +1,8 @@
%define saslauth_groupid 65439
%define saslauth_userid 65439
Name: cyrus-sasl
Version: 2.1.26
Release: 3mamba
Release: 4mamba
Summary: SASL Authentication Daemon for simple authentication and security
Group: System/Libraries
Vendor: openmamba
@ -111,6 +113,14 @@ install -d %{buildroot}%{_sysconfdir}/sasl2
%clean
[ %{buildroot} != / ] && rm -rf "%{buildroot}"
%pre
if [ $1 -ge 1 ]; then
/usr/sbin/groupadd saslauth -g %{saslauth_groupid} 2>/dev/null
/usr/sbin/useradd -u %{saslauth_userid} -c 'Sasl Authentication Daemon' -d /dev/null -g apache \
-s /bin/false saslauth 2>/dev/null
fi
:
%post
if [ $1 -ge 1 ]; then
%tmpfiles_create %{name}
@ -124,6 +134,10 @@ fi
%postun
%systemd_postun_with_restart %{name}
if [ $1 -eq 0 ]; then
/usr/sbin/userdel saslauth 2>/dev/null
/usr/sbin/groupdel saslauth 2>/dev/null
fi
:
%posttrans
@ -171,6 +185,9 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
%doc ChangeLog NEWS README
%changelog
* Thu Apr 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.26-4mamba
- create saslauth user and group
* Sat Apr 04 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.26-3mamba
- added patch to fix missing include in sasl.h (fixes ftbfs of kdepimlibs)