2022-05-25 11:16:59 -04:00
|
|
|
Name: 3isec-qubes-sys-ssh-agent
|
2022-06-06 08:18:41 -04:00
|
|
|
Version: 1.1
|
2022-05-25 11:16:59 -04:00
|
|
|
Release: 1%{?dist}
|
2022-06-06 08:18:41 -04:00
|
|
|
Summary: Salt a service qube to hold ssh-agents
|
2022-05-25 11:16:59 -04:00
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
SOURCE0: qubes-ssh-agent
|
|
|
|
|
|
|
|
%description
|
2022-06-06 08:18:41 -04:00
|
|
|
Salt state to implement a service qube to hold ssh-agents
|
2022-05-25 11:16:59 -04:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}/srv/salt
|
|
|
|
cp -rv %{SOURCE0}/ %{buildroot}/srv/salt
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/srv/salt/qubes-ssh-agent/*
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
qubesctl state.apply qubes-ssh-agent.create
|
2022-06-06 08:18:41 -04:00
|
|
|
qubesctl --skip-dom0 --targets=template-ssh-agent state.apply qubes-ssh-agent.configure_template
|
2022-05-25 11:16:59 -04:00
|
|
|
qubesctl --skip-dom0 --targets=sys-ssh-agent state.apply qubes-ssh-agent.configure
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
sed -i /qubes.SshAgent/d /etc/qubes/policy.d/30-user.policy
|
|
|
|
fi
|
|
|
|
|
|
|
|
%changelog
|
2022-06-06 08:18:41 -04:00
|
|
|
* Mon Jun 06 2022 unman <unman@thirdeyesecurity.org> - 1.1
|
|
|
|
- Update post scripts
|
2022-05-25 11:16:59 -04:00
|
|
|
* Sun May 22 2022 unman <unman@thirdeyesecurity.org> - 1.0
|
|
|
|
- First Build
|