mirror of
https://github.com/unman/shaker.git
synced 2024-12-25 23:39:30 -05:00
spec file for openvpn package
This commit is contained in:
parent
c7a5816e38
commit
9a0f217b34
2
openvpn
2
openvpn
@ -1 +1 @@
|
||||
Subproject commit 40612a7f68fc799431efe525dfe46d4284ed4164
|
||||
Subproject commit 52a590bde02896311887b0a47237f7b74794760c
|
38
openvpn.spec
Normal file
38
openvpn.spec
Normal file
@ -0,0 +1,38 @@
|
||||
Name: 3isec-qubes-sys-vpn
|
||||
Version: 1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Salt a VPN proxy in Qubes
|
||||
|
||||
License: GPLv3+
|
||||
SOURCE0: openvpn
|
||||
|
||||
%description
|
||||
Salt state to implement a VPN proxy in Qubes
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}/srv/salt
|
||||
cp -rv %{SOURCE0}/ %{buildroot}/srv/salt
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
/srv/salt/openvpn/*
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
qubesctl state.apply openvpn.clone
|
||||
qubesctl --skip-dom0 --targets=template-openvpn state.apply openvpn.install
|
||||
qubesctl state.apply openvpn.create
|
||||
qubesctl --skip-dom0 --targets=sys-vpn state.apply openvpn.configure
|
||||
fi
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ]; then
|
||||
for i in `qvm-ls -O NAME,NETVM | awk '/ sys-vpn/{ print $1 }'`;do qvm-prefs $i netvm none; done
|
||||
qvm-kill sys-vpn
|
||||
qvm-remove --force sys-vpn template-openvpn
|
||||
fi
|
||||
|
||||
%changelog
|
||||
* Wed May 18 2022 unman <unman@thirdeyesecurity.org> - 1.0
|
||||
- First Build
|
Loading…
Reference in New Issue
Block a user