2022-05-21 10:36:56 -04:00
|
|
|
Name: 3isec-qubes-split-gpg
|
2022-05-15 11:23:05 -04:00
|
|
|
Version: 2.0
|
2021-02-05 21:38:03 -05:00
|
|
|
Release: 1%{?dist}
|
2022-05-15 11:23:05 -04:00
|
|
|
Summary: Salt split-gpg template in Qubes
|
2021-02-05 21:38:03 -05:00
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
SOURCE0: gpg
|
|
|
|
|
|
|
|
%description
|
2022-05-15 11:23:05 -04:00
|
|
|
Salt state to implement split-gpg in Qubes
|
2021-02-05 21:38:03 -05:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}/srv/salt
|
|
|
|
cp -rv %{SOURCE0}/ %{buildroot}/srv/salt
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/srv/salt/gpg/*
|
|
|
|
|
2022-05-15 11:23:05 -04:00
|
|
|
%post
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
qubesctl state.apply gpg.create
|
|
|
|
qubesctl --skip-dom0 --targets=template-gpg state.apply gpg.install
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
2022-05-20 08:07:25 -04:00
|
|
|
sed -i /qubes.Gpg.*target=sys-gpg/d /etc/qubes/policy.d/30-user.policy
|
2022-05-15 11:23:05 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2021-02-05 21:38:03 -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 11:23:05 -04:00
|
|
|
* Sat May 14 2022 unman <unman@thirdeyesecurity.org> - 2.0
|
2022-05-20 08:07:25 -04:00
|
|
|
- Change preun script
|
|
|
|
* Sat May 14 2022 unman <unman@thirdeyesecurity.org> - 2.0
|
2022-05-15 11:23:05 -04:00
|
|
|
- Update to Qubes 4.1
|
|
|
|
- Change policies on package install and removal
|
2021-02-05 21:38:03 -05:00
|
|
|
* Wed Fed 03 2021 unman <unman@thirdeyesecurity.org>
|
|
|
|
- First Build
|