Compare commits

..

10 Commits

Author SHA1 Message Date
1336484181
use vendor library 2023-08-21 18:42:43 -04:00
Fabio Alessandro Locati
2690f0f2ef
Backport 3ae242fa5f - Add time-sync.target as wants 2022-12-26 11:10:17 +01:00
Fabio Alessandro Locati
4652f6cee5
Ensure DNS is running before starting nebula 2022-12-10 14:59:43 +01:00
Fabio Alessandro Locati
9470b39a58
update to 1.6.1 2022-10-10 14:58:02 +02:00
Maxwell G
7c7a290660
Rebuild to fix FTBFS 2022-08-10 12:11:35 -05:00
Fedora Release Engineering
1465ebba42 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 00:20:28 +00:00
Maxwell G
324ca7baa6
Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang 2022-07-19 13:58:47 -05:00
Fabio Alessandro Locati
8d48b4c929
update to 1.6.0 2022-07-17 15:11:18 +02:00
Maxwell G
fb94b9effc
Rebuild to mitigate CVE-2022-21698 (rhbz#2067400). 2022-06-22 22:45:51 -05:00
Robert-André Mauchin
c8253d9cdd Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 2022-06-18 12:15:13 +02:00
3 changed files with 32 additions and 5 deletions

3
.gitignore vendored
View File

@ -1 +1,4 @@
/nebula-1.5.2.tar.gz
/nebula-1.6.0.tar.gz
/nebula-1.6.1.tar.gz
/nebula-vendor-1.6.1.tar.gz

View File

@ -3,7 +3,7 @@
# https://github.com/slackhq/nebula
%global goipath github.com/slackhq/nebula
Version: 1.5.2
Version: 1.6.1
%gometa
%global goname nebula
@ -22,8 +22,11 @@ Summary: A scalable overlay networking tool with a focus on performance,
License: MIT
URL: %{gourl}
Source0: %{gosource}
Source1: %{name}-vendor-%{version}.tar.gz
BuildRequires: systemd-rpm-macros
BuildRequires: go-rpm-macros
BuildRequires: compiler(go-compiler)
# Let's be sure that people do not upgrade from the "old" nebula. We can sensibly drop it by F39
Conflicts: nebula < 1.0
@ -34,24 +37,44 @@ Conflicts: nebula < 1.0
%gopkg
%prep
%if 0%{?fedora}
%goprep
# https://github.com/slackhq/nebula/pull/791
sed -i 's/\(Wants=.*\)$/\1 nss-lookup.target time-sync.target/' dist/fedora/nebula.service
%generate_buildrequires
%go_generate_buildrequires
%else
%autosetup -a 1
mkdir -p %{_builddir}/src/github.com/slackhq/
cp -r %{_builddir}/%{name}-%{version} %{_builddir}/src/github.com/slackhq/%{name}
mkdir -p %{_builddir}/%{name}-%{version}/_build/src/github.com/slackhq/nebula
mv %{_builddir}/src %{_builddir}/%{name}-%{version}/_build/src
%endif
%build
export LDFLAGS="-X main.Build=%{version}-Fedora $(LDFLAGS)"
%if 0%{?fedora}
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%else
export GOPATH="%{_builddir}/%{name}-%{version}/_build"
pushd $GOPATH/src/github.com/slackhq/nebula
go generate
popd
for cmd in cmd/* ; do
%gobuild -o bin/$(basename $cmd) %{goipath}/$cmd
done
%endif
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -m 0755 -vp bin/* %{buildroot}%{_bindir}/
install -m 0755 -vd %{buildroot}%{_sysconfdir}/%{name}
install -m 0640 -vp examples/config.yml %{buildroot}%{_sysconfdir}/%{name}
install -m 0644 -vDp dist/arch/nebula.service %{buildroot}%{_unitdir}/%{name}.service
install -m 0644 -vDp dist/fedora/nebula.service %{buildroot}%{_unitdir}/%{name}.service
%if %{with check}
%check

View File

@ -1 +1,2 @@
SHA512 (nebula-1.5.2.tar.gz) = 2c1064ddf0ff0579c9255abaf9636efc2afaac03d3c1d6e2984e8f7a79158a3a64d1f815c650045042683d87a37b6112545f9f74a1a173d91226aafaa41a2651
SHA512 (nebula-1.6.1.tar.gz) = 751777c9955bae2f2a2f6f81e1956c131766d7dead3d51fd125e2804d20073a80ed4739ff336f1c2da04e060eaa20d1aa7c2bd9268661eae0fcd26e13cb43cfb
SHA512 (nebula-vendor-1.6.1.tar.gz) = 63fb94b5478fc5cf5d155bec04e5bf6e8d9187719166a8a4f7c7ff2cae772fdf531a2168781339e5b19decce202ec9fcf623ab7543a7e4831bce57ff21c7c9a2