mirror of
https://github.com/unman/shaker.git
synced 2025-07-25 23:35:21 -04:00
Update spec files to generic installation pattern
This commit is contained in:
parent
16ec0c5fb1
commit
ad3e821c6f
3 changed files with 53 additions and 8 deletions
22
builder.spec
22
builder.spec
|
@ -1,5 +1,5 @@
|
||||||
Name: template-builder
|
Name: 3isec-qubes-builder
|
||||||
Version: 1.0
|
Version: 1.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Salt builder template
|
Summary: Salt builder template
|
||||||
|
|
||||||
|
@ -7,17 +7,25 @@ License: GPLv3+
|
||||||
SOURCE0: builder
|
SOURCE0: builder
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Salt state for Qubes builder template
|
Salt state for builder qube and template
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
mkdir -p %{buildroot}/srv/salt
|
mkdir -p %{buildroot}/srv/salt/build
|
||||||
cp -rv %{SOURCE0}/ %{buildroot}/srv/salt
|
cp -rv %{SOURCE0}/* %{buildroot}/srv/salt/build
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
/srv/salt/builder/*
|
/srv/salt/build/*
|
||||||
|
|
||||||
|
%pos
|
||||||
|
qubesctl state.apply build.create
|
||||||
|
qubesctl --skip-dom0 --targets=template-builder state.apply build.install
|
||||||
|
qubesctl --skip-dom0 --targets=builder state.apply build.config
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Fed 03 2021 unman <unman@thirdeyesecurity.org>
|
* Sat May 21 2021 unman <unman@thirdeyesecurity.org>
|
||||||
|
- Change name
|
||||||
|
* Wed Feb 03 2021 unman <unman@thirdeyesecurity.org>
|
||||||
- First Build
|
- First Build
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Name: 3isec-qubes-sys-printer
|
Name: 3isec-qubes-sys-printer
|
||||||
Version: 1.1
|
Version: 1.2
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Salt a printer qube in Qubes
|
Summary: Salt a printer qube in Qubes
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ cp -rv %{SOURCE0}/ %{buildroot}/srv/salt
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
qubesctl state.apply print.create
|
qubesctl state.apply print.create
|
||||||
|
qubesctl --skip-dom0 --targets=template-printer state.apply print.install
|
||||||
qubesctl --skip-dom0 --targets=sys-printer state.apply print.configure
|
qubesctl --skip-dom0 --targets=sys-printer state.apply print.configure
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -30,6 +31,8 @@ if [ $1 -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun May 22 2022 unman <unman@thirdeyesecurity.org> - 1.2
|
||||||
|
- Add template and package installation to post
|
||||||
* Sat May 21 2022 unman <unman@thirdeyesecurity.org> - 1.1
|
* Sat May 21 2022 unman <unman@thirdeyesecurity.org> - 1.1
|
||||||
- Standardise package names to 3isec-
|
- Standardise package names to 3isec-
|
||||||
* Sun May 15 2022 unman <unman@thirdeyesecurity.org> - 1.0
|
* Sun May 15 2022 unman <unman@thirdeyesecurity.org> - 1.0
|
||||||
|
|
34
qubes-ssh-agent.spec
Normal file
34
qubes-ssh-agent.spec
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
Name: 3isec-qubes-sys-ssh-agent
|
||||||
|
Version: 1.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Salt a qube to hold ssh-agents
|
||||||
|
|
||||||
|
License: GPLv3+
|
||||||
|
SOURCE0: qubes-ssh-agent
|
||||||
|
|
||||||
|
%description
|
||||||
|
Salt state to implement a 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
|
||||||
|
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
|
||||||
|
* Sun May 22 2022 unman <unman@thirdeyesecurity.org> - 1.0
|
||||||
|
- First Build
|
Loading…
Add table
Add a link
Reference in a new issue