mirror of
https://github.com/unman/shaker.git
synced 2025-02-10 11:48:45 -05:00
Store - spec file.
This commit is contained in:
parent
74b34bad5d
commit
71209ecb8d
37
store.spec
Normal file
37
store.spec
Normal file
@ -0,0 +1,37 @@
|
||||
Name: 3isec-qubes-store
|
||||
Version: 1.01
|
||||
Release: 1%{?dist}
|
||||
Summary: A storage template using thunar
|
||||
|
||||
License: GPLv3+
|
||||
SOURCE0: store
|
||||
|
||||
%description
|
||||
This package creates a template with thunar installed, for use by offline storage qubes.
|
||||
The template is based on the debian-12-minimal template.
|
||||
|
||||
Removing this package only removes the salt files, not the template.
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}/srv/salt
|
||||
cp -rv %{SOURCE0}/ %{buildroot}/srv/salt
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
/srv/salt/store/*
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
qubesctl state.apply salt.clone
|
||||
qubesctl --skip-dom0 --targets=template-store state.apply store.install
|
||||
elif [ $1 -eq 2 ]; then
|
||||
qubesctl state.apply store.clone
|
||||
fi
|
||||
|
||||
%preun
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Feb 12 2024 unman <unman@thirdeyesecurity.org> - 1.01
|
||||
- First Build
|
Loading…
x
Reference in New Issue
Block a user