added a basic configuration file with permit for sysadmin group [release 6.8.2-2mamba;Sun Jan 28 2024]

This commit is contained in:
Silvan Calarco 2024-01-28 19:22:49 +01:00
parent 6d164a8ad7
commit 79500f2612

View File

@ -1,12 +1,12 @@
Name: opendoas Name: opendoas
Version: 6.8.2 Version: 6.8.2
Release: 1mamba Release: 2mamba
Summary: A minimal replacement for sudo forked and ported from OpenBSD Summary: A minimal replacement for sudo forked and ported from OpenBSD
Group: Applications/Security Group: Applications/Security
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: System/Tools URL: https://github.com/Duncaen/OpenDoas
Source: https://github.com/Duncaen/OpenDoas.git/v%{version}/OpenDoas-%{version}.tar.bz2 Source: https://github.com/Duncaen/OpenDoas.git/v%{version}/OpenDoas-%{version}.tar.bz2
License: ISC License License: ISC License
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
@ -36,11 +36,17 @@ BINMODE=755 \
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall %makeinstall
install -d -m0755 %{buildroot}%{_sysconfdir}
cat > %{buildroot}%{_sysconfdir}/doas.conf << _END
permit persist :sysadmin
_END
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%config(noreplace) %attr(0400,root,root) %{_sysconfdir}/doas.conf
%{_pam_confdir}/doas %{_pam_confdir}/doas
%attr(4755,root,root) %{_bindir}/doas %attr(4755,root,root) %{_bindir}/doas
%{_mandir}/man1/doas.1* %{_mandir}/man1/doas.1*
@ -48,5 +54,8 @@ BINMODE=755 \
%doc LICENSE %doc LICENSE
%changelog %changelog
* Sun Jan 28 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 6.8.2-2mamba
- added a basic configuration file with permit for sysadmin group
* Sat Jan 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 6.8.2-1mamba * Sat Jan 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 6.8.2-1mamba
- package created using the webbuild interface - package created using the webbuild interface