2022-05-21 10:36:56 -04:00
|
|
|
Name: 3isec-qubes-cacher
|
|
|
|
Version: 1.4
|
2021-02-10 01:52:05 -05:00
|
|
|
Release: 1%{?dist}
|
2022-05-15 10:57:37 -04:00
|
|
|
Summary: Salt a caching proxy in Qubes
|
2021-02-10 01:52:05 -05:00
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
SOURCE0: cacher
|
|
|
|
|
|
|
|
%description
|
|
|
|
Salt state to implement a caching proxy
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}/srv/salt
|
|
|
|
cp -rv %{SOURCE0}/ %{buildroot}/srv/salt
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/srv/salt/cacher/*
|
|
|
|
|
2022-05-15 10:57:37 -04:00
|
|
|
%post
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
echo "------------------------"
|
|
|
|
echo "cacher is being installed"
|
|
|
|
echo "------------------------"
|
|
|
|
qubesctl state.apply cacher.create
|
|
|
|
qubesctl --skip-dom0 --targets=template-cacher state.apply cacher.install
|
|
|
|
qubesctl --skip-dom0 --targets=cacher state.apply cacher.configure
|
|
|
|
qubesctl state.apply cacher.use
|
|
|
|
qubesctl --skip-dom0 --templates state.apply cacher.change_templates
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
qubesctl --skip-dom0 --templates state.apply cacher.restore_templates
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
sed -i /qubes.Gpg.*target=gpg/d /etc/qubes/policy.d/30-user.policy
|
|
|
|
fi
|
|
|
|
|
2021-02-10 01:52:05 -05:00
|
|
|
%changelog
|
2022-05-21 10:36:56 -04:00
|
|
|
* Sat May 21 2022 unman <unman@thirdeyesecurity.org> - 1.4
|
|
|
|
- Standardise package names to 3isec-
|
2022-05-15 10:57:37 -04:00
|
|
|
* Sun May 15 2022 unman <unman@thirdeyesecurity.org> - 1.3
|
|
|
|
- General tidy up
|
|
|
|
- Automate configuration for standard templates on install
|
|
|
|
- Remove configuration on package removal.
|
|
|
|
|
|
|
|
* Fri May 13 2022 unman <unman@thirdeyesecurity.org>
|
|
|
|
- Update to handling fedora 35 in pool
|
|
|
|
- add archlx_mirrors for pooling
|
|
|
|
- automatically salt all templates to use this proxy
|
|
|
|
|
|
|
|
* Fri May 06 2022 unman <unman@thirdeyesecurity.org>
|
|
|
|
- Update to debian-11-minimal base
|
|
|
|
|
|
|
|
* Wed Feb 03 2021 unman <unman@thirdeyesecurity.org>
|
2021-02-10 01:52:05 -05:00
|
|
|
- First Build
|