]>
Commit | Line | Data |
---|---|---|
dc588ad3 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
dc588ad3 BS |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = radvd |
c20ebe7c | 7 | version = 1.8.3 |
3af7530f | 8 | release = 3 |
802ea3af MT |
9 | |
10 | groups = System/Daemons | |
11 | url = http://www.litech.org/radvd/ | |
12 | license = BSD with advertising | |
13 | summary = A Router Advertisement daemon. | |
14 | ||
15 | description | |
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 | |
dc588ad3 | 21 | on these advertisements. |
802ea3af MT |
22 | end |
23 | ||
24 | source_dl = http://www.litech.org/radvd/dist/ | |
25 | ||
26 | build | |
27 | requires | |
28 | flex | |
29 | flex-devel | |
30 | bison | |
31 | end | |
32 | ||
33 | configure_options += \ | |
34 | --mandir=/usr/share/man \ | |
35 | --with-pidfile=/run/radvd/radvd.pid | |
36 | ||
37 | prepare_cmds | |
38 | sed -e "s/-lfl/-lfl_pic/g" -i Makefile.* | |
39 | end | |
40 | end | |
41 | ||
42 | packages | |
43 | package %{name} | |
fddeee6c SS |
44 | requires = /lib/network/network-radvd-config |
45 | ||
46 | prerequires += shadow-utils | |
47 | ||
48 | script prein | |
49 | getent group radvd >/dev/null || groupadd -r radvd | |
50 | ||
51 | # The radvd user also needs to be in the wheel group to get access to | |
52 | # /proc. | |
53 | getent passwd radvd >/dev/null || \ | |
54 | useradd -r -g radvd -G wheel -d / -s /sbin/nologin \ | |
55 | -c "User for the Router Advertisement daemon." radvd | |
56 | exit 0 | |
57 | end | |
58 | ||
59 | # Just search for new unit files that were just installed. | |
60 | script postin | |
61 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
62 | end | |
63 | ||
64 | # Disable the service that is to be removed and stop it if it is still running. | |
65 | script preun | |
66 | /bin/systemctl --no-reload disable radvd.service >/dev/null 2>&1 || : | |
67 | /bin/systemctl stop radvd.service >/dev/null 2>&1 || : | |
68 | end | |
69 | ||
70 | # Just tell systemd that unitfiles have been removed. | |
71 | script postun | |
72 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
73 | end | |
74 | ||
75 | # Try to restart the service if it is running. | |
76 | script postup | |
77 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
78 | /bin/systemctl try-restart radvd.service >/dev/null 2>&1 || : | |
79 | end | |
802ea3af MT |
80 | end |
81 | end |