!1 package init
From: @wu-leilei Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
8f39905560
1168
vpnc-script
Normal file
1168
vpnc-script
Normal file
File diff suppressed because it is too large
Load Diff
32
vpnc-script.spec
Normal file
32
vpnc-script.spec
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
%global git_date 20201205
|
||||||
|
%global git_commit_hash cdbd5b
|
||||||
|
Name: vpnc-script
|
||||||
|
Version: %{git_date}
|
||||||
|
Release: 1
|
||||||
|
Summary: Routing setup script for vpnc and openconnect
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: iproute which
|
||||||
|
License: GPLv2+
|
||||||
|
URL: https://gitlab.com/openconnect/vpnc-scripts/
|
||||||
|
Source0: https://gitlab.com/openconnect/vpnc-scripts/-/blob/21a051aa8aeb51a86f6ec9cea98445224d08900b/vpnc-script
|
||||||
|
%description
|
||||||
|
This script sets up routing for VPN connectivity, when invoked by vpnc
|
||||||
|
or openconnect.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
cp -p %SOURCE0 .
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/vpnc
|
||||||
|
install -m 0755 vpnc-script \
|
||||||
|
%{buildroot}%{_sysconfdir}/vpnc/vpnc-script
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{_sysconfdir}/vpnc
|
||||||
|
%{_sysconfdir}/vpnc/vpnc-script
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Sep 6 2021 wulei <wulei80@huawei.com> - %{git_date}-1
|
||||||
|
- package init
|
||||||
Loading…
x
Reference in New Issue
Block a user