From 256dbdeccf61a5bc75ea7649f95d169aaf7abcda Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 19:27:43 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.0.20200827-1mamba;Tue Nov 17 2020] --- README.md | 2 ++ wireguard-tools.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 wireguard-tools.spec diff --git a/README.md b/README.md index 493c86d..4535bf1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # wireguard-tools +Userspace tools to configure WireGuard implementations. + diff --git a/wireguard-tools.spec b/wireguard-tools.spec new file mode 100644 index 0000000..9b56130 --- /dev/null +++ b/wireguard-tools.spec @@ -0,0 +1,55 @@ +Name: wireguard-tools +Version: 1.0.20200827 +Release: 1mamba +Summary: Userspace tools to configure WireGuard implementations +Group: Network/Security +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.wireguard.com +Source: https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-%{version}.tar.xz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Userspace tools to configure WireGuard implementations. + +%debug_package + +%prep +%setup -q + +%build +cd src +%make \ + PREFIX=%{_prefix} \ + LIBDIR=%{_libdir} \ + MANDIR=%{_mandir} \ + RUNSTATEDIR=/run + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +cd src +%makeinstall \ + PREFIX=%{_prefix} \ + LIBDIR=%{_libdir} \ + MANDIR=%{_mandir} \ + RUNSTATEDIR=/run + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/wg +%{_datadir}/bash-completion/completions/wg +%{_mandir}/man8/wg.8* +%doc COPYING + +%changelog +* Tue Nov 17 2020 Silvan Calarco 1.0.20200827-1mamba +- package created using the webbuild interface