1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Daemons
11 url = http://www.litech.org/radvd/
12 license = BSD with advertising
13 summary = A Router Advertisement daemon.
16 radvd is the router advertisement daemon for IPv6. It listens to
17 router solicitations and sends router advertisements as described
18 in Neighbor Discovery for IP Version 6. With these
19 advertisements hosts can automatically configure their addresses and
20 some other parameters. They also can choose a default router based
21 on these advertisements.
24 source_dl = http://www.litech.org/radvd/dist/
34 configure_options += \
35 --with-pidfile=/run/radvd/radvd.pid
40 sed -e "s/-lfl/-lfl_pic/g" -i Makefile.*
44 mkdir -pv -m 750 %{BUILDROOT}/run/radvd
45 chown -v radvd.radvd %{BUILDROOT}/run/radvd
50 getent group radvd >/dev/null || groupadd -r radvd
52 # The radvd user also needs to be in the wheel group to get access to
54 getent passwd radvd >/dev/null || \
55 useradd -r -g radvd -G wheel -d / -s /sbin/nologin \
56 -c "User for the Router Advertisement daemon." radvd
69 # Just search for new unit files that were just installed.
71 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
74 # Disable the service that is to be removed and stop it if it is still running.
76 /bin/systemctl --no-reload disable radvd.service >/dev/null 2>&1 || :
77 /bin/systemctl stop radvd.service >/dev/null 2>&1 || :
80 # Just tell systemd that unitfiles have been removed.
82 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
85 # Try to restart the service if it is running.
87 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
88 /bin/systemctl try-restart radvd.service >/dev/null 2>&1 || :
92 package %{name}-debuginfo