shaker/qubes-ssh-agent.spec

38 lines
951 B
RPMSpec
Raw Normal View History

Name: 3isec-qubes-sys-ssh-agent
2022-06-06 08:18:41 -04:00
Version: 1.1
Release: 1%{?dist}
2022-06-06 08:18:41 -04:00
Summary: Salt a service qube to hold ssh-agents
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
%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
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
* Sun May 22 2022 unman <unman@thirdeyesecurity.org> - 1.0
- First Build