33 lines
915 B
RPMSpec
33 lines
915 B
RPMSpec
%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
|