mirror of
https://github.com/unman/shaker.git
synced 2024-10-01 01:25:41 -04:00
Mirage-firewall - add spec file
This commit is contained in:
parent
0e5ef351b1
commit
cd7ff0f4f6
49
mirage.spec
Normal file
49
mirage.spec
Normal file
@ -0,0 +1,49 @@
|
||||
Name: 3isec-qubes-mirage-firewall
|
||||
Version: 0.8.4
|
||||
Release: 1%{?dist}
|
||||
Summary: Create an Mirage firewall in Qubes
|
||||
|
||||
License: GPLv3+
|
||||
SOURCE0: mirage
|
||||
|
||||
%description
|
||||
This package creates a mirage firewall for use in Qubes.
|
||||
It's a Unikernel qube to replace sys-firewall, which uses minimal system resources.
|
||||
For full details:
|
||||
https://github.com/mirage/qubes-mirage-firewall
|
||||
|
||||
The package creates a qube called mirage-firewall.
|
||||
If you want to use this as a firewall, simply change net qube from sys-firewall to mirage-firewall.
|
||||
There's a batch file in /srv/salt/mirage to make this change in bulk.
|
||||
|
||||
Removing this package will remove the mirage-firewall.
|
||||
Qubes that use it will have their net qube unset.
|
||||
You will have to change netqube to get those qubes back online.
|
||||
There's a batch file in /srv/salt/mirage to help make this change in bulk.
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}/srv/salt
|
||||
cp -rv %{SOURCE0}/ %{buildroot}/srv/salt
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
/srv/salt/mirage/*
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
qubesctl state.apply mirage.install
|
||||
elif [ $1 -eq 2 ]; then
|
||||
qubesctl state.apply mirage.extract
|
||||
fi
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ]; then
|
||||
qvm-kill mirage-firewall
|
||||
qvm-remove --force mirage-firewall
|
||||
fi
|
||||
|
||||
%changelog
|
||||
* Mon Apr 17 2023 unman <unman@thirdeyesecurity.org> - 0.8.4
|
||||
- Packages qubes-mirage-firewall 0.8.4
|
Loading…
Reference in New Issue
Block a user