1 Commits

Author SHA256 Message Date
7ebd33ad75 Sync changes to SLFO-1.2 branch 2025-08-20 12:56:32 +02:00
9 changed files with 113 additions and 67 deletions

View File

@@ -3,10 +3,11 @@ From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Tue, 3 May 2011 15:42:36 +0200
Subject: [Patch 1/2] run as user radvd by default
diff -rupN radvd-2.2.old/radvd.c radvd-2.2/radvd.c
--- radvd-2.2.old/radvd.c 2014-07-27 18:16:30.000000000 -0700
+++ radvd-2.2/radvd.c 2014-07-29 19:15:33.711533262 -0700
@@ -187,6 +187,9 @@ int main(int argc, char *argv[])
Index: radvd-2.20/radvd.c
===================================================================
--- radvd-2.20.orig/radvd.c 2024-12-28 06:27:47.000000000 +0100
+++ radvd-2.20/radvd.c 2025-06-10 15:04:46.675364662 +0200
@@ -269,6 +269,9 @@ int main(int argc, char *argv[])
/* TODO: Seems like this chroot'ing should happen *after* daemonizing for
* the sake of the PID file. */

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:564e04597f71a9057d02290da0dd21b592d277ceb0e7277550991d788213e240
size 168264

View File

@@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEveu2pS8Vb98xaNkRGTlfI8WIJsQFAmAIxCwACgkQGTlfI8WI
JsS7rBAAkok0i1kn+vSpM5BRDsIh5JPl1Dcb8zaqX8l/kwLlt4850THvtgdYbr+s
SaTo68LlR2ozHNYM+11ps8Vpm0RHFwS7oEPhst+m47NaS95/f8a20moPWRpiX9Rr
tpdTA8mFA9PyUuxJAb/N5sxtiScfQ819D6+dnQVvYahzhO44aEmbPdm4rxVZf3gT
uRw+4latoW2W0zIJa1lP0Pkb+XDu/ksyqDLKPC+GfObZr427la+zQG1tJvHqcExC
Nn755uAeolrqUk9xQazozTzzwyX8bGgRVWMgvnNsQ5LFgf4gdltARHGZ8KJ4iSz0
NlUQ4t8VkhaSUaKZhfgR9AvFgAiFopv1ij1zlWrNPXis4vaLes5TBDPA/7CN5I03
yBiDAvgxPpUR9BsnVCR3+P6FXf/GBqamnOHQKIb818eVToUtrophWUROUcFX8vXV
JxE41mqd/cN3dz0v+V6spcWXFNHeXW0ZSV5u1PaMZfLSZRzfhqGZrA+06L1jvnrL
+BcgKdAyWb/OtWMpUNS0JUusm2VhPS5VTyDEp/avlgtA7GqqEnLH80eQ1tU8bv6S
e5ZltBo4YXbIr88b7yvH0rSDrPR9KT+QdMWF5l/6r665r1Z1cxIrBgJl9fkcQ0Xj
NVd67O5QKFldcrCzEzEgxVXiDqI9aEt4EgDQmt76VayGQBHF9Uw=
=J4vV
-----END PGP SIGNATURE-----

BIN
radvd-2.20.tar.xz LFS Normal file

Binary file not shown.

18
radvd-2.20.tar.xz.asc Normal file
View File

@@ -0,0 +1,18 @@
-----BEGIN PGP SIGNATURE-----
iQKTBAABCgB9FiEEveu2pS8Vb98xaNkRGTlfI8WIJsQFAmdzjQNfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE
RUJCNkE1MkYxNTZGREYzMTY4RDkxMTE5Mzk1RjIzQzU4ODI2QzQACgkQGTlfI8WI
JsRU+g/9HclkTw4xRrlBeEHA7OcnhHVZdEbyCqaB+7gkpyrbNVUrtRHKxXL2ndhz
rvvE5gkc3ZxTFOB100lRP2sFy7NYAqsrYYWwCreNVPf2oZ4kZTJ2a9d4u/kJ8oHu
BZMjLSGilmcCWfSrI2ufIewVp3CgZfxLBHbxAAtU+tqcBRLI0VmMFQ1GZwBFfD0S
lJ7M6HC9e9+weBxbpusjFdhpLzn4mo/Z4ZGSdGS8DgYqfUg1ygc1fAcL9JiH4ZZI
HuQhhlVx55zY/G+/SZKNznIZP2bw1518s3fIi77joYOTjbVy0CIfr3XWUHCo+i59
bteI6mh7glG1+voesRVpsWk/Sm4MmO7rSm2kZmp4iFE8qUk1mUoWaL7l+Y8yee3q
YH4wATbS4YU5Ba/LJ2qyJmB1tkhjgFSCEqa0+KR3cb/j1AMGaZfSMrKu6EUBW4if
RQFBLH6owq0RIfDtoL1rOF3XrEWMgyEQQmcIrc88QDUpQxWaKGXcbZ1uNK2qmtt5
/P2suy3hxjOcYbARBoUKBcS0UGNhprkKnZVsGGTz80+xaFeo5zIKk8mGZXizFdGm
xWfVHf4J8lGoQ/40soYprwBV75tKkFhW/lrzEFiF/Qa/NJA6tkkBAab2D/uguBUU
fTv+N4YMqlX2OJf++Fb+6QJg2zYiMvjTBs2pyDRmOqiIAW0g+NQ=
=Eown
-----END PGP SIGNATURE-----

View File

@@ -1,13 +0,0 @@
--- radvd-2.19/configure.ac.orig 2021-01-29 17:35:44.957137874 +0800
+++ radvd-2.19/configure.ac 2021-01-29 17:40:10.884531444 +0800
@@ -47,7 +47,9 @@
esac
dnl Determine CC and preset CFLAGS
-AC_PROG_CC_C99
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
AC_PROG_RANLIB
AC_ARG_WITH([stack-protector], AS_HELP_STRING([--without-stack-protector], [Build without -fstack-protector]),[],[with_stack_protector=yes])

View File

@@ -1,7 +1,9 @@
--- radvd-2.19/redhat/systemd/radvd.service.orig 2021-01-29 17:55:55.894674187 +0800
+++ radvd-2.19/redhat/systemd/radvd.service 2021-01-29 17:56:28.194647566 +0800
@@ -4,9 +4,8 @@
Wants=network-online.target
Index: radvd-2.20/redhat/systemd/radvd.service
===================================================================
--- radvd-2.20.orig/redhat/systemd/radvd.service 2022-09-06 17:56:59.000000000 +0200
+++ radvd-2.20/redhat/systemd/radvd.service 2025-06-10 15:06:02.824699836 +0200
@@ -5,9 +5,8 @@ Wants=network-online.target
ConditionPathExists=/etc/radvd.conf
[Service]
-EnvironmentFile=/etc/sysconfig/radvd

View File

@@ -1,3 +1,62 @@
-------------------------------------------------------------------
Tue Jun 10 16:08:58 UTC 2025 - Jiri Bohac <jbohac@suse.com>
- Update to version 2.20
* build: annotated/signed tags need a tweak to verify correctly
* build: need awk for newer autoconf
* build: verify tag earlier
* build: drop sha1, insecure
* build: use BSD-style checksum tags
* build: make sign & verify tighter
* build: cleanup old tarballs first
* docs: document formal release process
* ci: Updated FreeBSD workflow to fix the boot loop issue.
* ci: Removed Ubuntu 18.04 build.
* docs: Expand on RELEASE-PROCESS.md
* ci: Updated the checkout action version.
* fix: Prevent null de-reference when using poll in main_loop
* ci: use improved buildroot images.
* fix(netlink): cleanup interfaces upon removal
* fix: Add the socket option IPV6_MULTICAST_LOOP to prevent the interface from autoconfiguring using RA messages sent by itself.
* ci: Added Ubuntu 24.04.
* ci: Also use ubuntu-latest for the FreeBSD build
* ci: Use latest v1 action in all cases
* feat: implement setup_allrouters_membership() et al for FreeBSD #145
* chore: remove unused 'total_seen_options' variable
* feat: Change the Prefix field of the Route Information Option to be variable-length.
* test: add more RDNSS testing for PR#193
* feat: Support more addresses in RDNSS section
* feat: improve warning about long RA options
* fix: do not die on long DNSSL option
* test: support older libcheck for ubuntu20.04
* chore: document more testcases
* chore: make RDNSS/DNSSL documentation and logic consistent
* doc: update AUTHORS in manpage
* doc: fix truncated sentence about VRRP
* feat: handle long options better
* fix: ensure send_ra_forall racount only increments for non-unicast
* ci: radvd-autogen updates for ubuntu20.04
* build: missing files from packages
* UnrestrictedUnicast option (respond to RS with configured clients)
* Ignore clients w/ ! prefix
* Build improvement, inc. containers for reproducible packaging
* Captive-Portal API (RFC8910)
* Default lifetime changes for RDNSS & DNSSL (RFC8106)
* Prefix lifetime based on kernel lifetimes
* Netlink fixes for simultaneous POLLERR & POLLIN
* pwname fixes for root (Fixes #165)
* Secure ND timestamp support for radvdump (RFC3971)
* RemoveAdvOnExit for zero lifetime adv on exit
* NAT64/pref64 support (RFC6052, RFC8781)
* Case-insensitive config options
* AutoIgnorePrefix
* Fix net.ipv6.conf.all.forwarding cease_adv bug
- Drop obsolete radvd-configure.patch
- Refresh radvd-systemd.patch
- Refresh radvd-systemd.patch
- Only generate default ULA config as a commented example
- Clean up spec file, fixed tmpfiles creation
-------------------------------------------------------------------
Tue Jan 10 07:49:22 UTC 2023 - Fabian Vogt <fvogt@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package radvd
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,10 +26,10 @@
%endif
Name: radvd
Version: 2.19
Version: 2.20
Release: 0
Summary: Router ADVertisement Daemon for IPv6
License: BSD-3-Clause
License: SUSE-BSD-4-clause-with-redistribution-clause
Group: Productivity/Networking/Routing
URL: http://v6web.litech.org/radvd
Source0: https://radvd.litech.org/dist/%{name}-%{version}.tar.xz
@@ -38,12 +38,11 @@ Source3: system-user-radvd.conf
Source42: https://radvd.litech.org/dist/%{name}-%{version}.tar.xz.asc
Source43: %{name}.keyring
Patch1: 0001-run-as-user-radvd-by-default.diff
Patch2: radvd-configure.patch
# PATCH-FIX-OPENSUSE radvd-tmpfile-grpname.patch dimstar@opensuse.org -- On openSUSE, we add the radvd user to the group daemon. Thus, we also need to create the folders with the respective group owner (otherwise, the systemd-tmpfiles service fails).
Patch3: radvd-systemd.patch
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: libbsd-devel
BuildRequires: libdaemon-devel
BuildRequires: pkgconfig
BuildRequires: systemd-rpm-macros
@@ -52,9 +51,7 @@ BuildRequires: xz
BuildRequires: pkgconfig(check)
Requires(pre): %fillup_prereq
%sysusers_requires
%if 0%{?suse_version} >= 1330
Requires(pre): group(daemon)
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -86,15 +83,13 @@ install -m 644 /dev/null %{buildroot}%{_sysconfdir}/radvd.conf
install -D -m 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/system-user-radvd.conf
install -D -m 0644 redhat/systemd/radvd.service %{buildroot}%{_unitdir}/%{name}.service
install -D -m 0644 redhat/systemd/radvd-tmpfs.conf %{buildroot}%{_tmpfilesdir}/%name.conf
install -D -m 0644 redhat/systemd/radvd-tmpfs.conf %{buildroot}%{_tmpfilesdir}/%{name}.conf
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcradvd
%pre -f radvd.pre
%service_add_pre %{name}.service
%post
# zap old (<= 11.4) default
test -f %{_sysconfdir}/sysconfig/radvd && sed -ie '/^RADVD_OPTIONS/s/-u daemon//' %{_sysconfdir}/sysconfig/radvd
%{fillup_only radvd}
#
random() {
@@ -105,26 +100,26 @@ if [ ! -e %{_sysconfdir}/radvd.conf ]; then
# random enough
prefix=`printf "fd%%02x:%%04x:%%04x:0001::/64\n" $(($(random) %% 256)) $(random) $(random)`
cat > %{_sysconfdir}/radvd.conf <<EOF
interface eth0
{
AdvSendAdvert on;
# life time zero means we don't actually advertise a
# router but only our ULA address. Remove if you want this
# host to be advertised as router.
AdvDefaultLifetime 0;
# ULA address according to RFC 4193.
# It was randomly created at installation of the package for
# use in your local network.
prefix $prefix
{
};
};
#interface eth0
#{
# AdvSendAdvert on;
#
# # life time zero means we don't actually advertise a
# # router but only our ULA address. Remove if you want this
# # host to be advertised as router.
# AdvDefaultLifetime 0;
#
# # ULA address according to RFC 4193.
# # It was randomly created at installation of the package for
# # use in your local network.
# prefix $prefix
# {
# };
#};
EOF
echo "created %{_sysconfdir}/radvd.conf with ULA prefix $prefix"
fi
%tmpfiles_create %{_tmpfilesdir}/%name.conf
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%service_add_post %{name}.service