Blame SPECS/radvd.spec

a25305
Summary:    A Router Advertisement daemon
a25305
Name:       radvd
a25305
Version:    1.9.2
521dd6
Release:    7%{?dist}
a25305
# The code includes the advertising clause, so it's GPL-incompatible
a25305
License:    BSD with advertising
a25305
Group:      System Environment/Daemons
a25305
URL:        http://www.litech.org/radvd/
a25305
Source0:    %{url}dist/%{name}-%{version}.tar.gz
a25305
Source1:    radvd-tmpfs.conf
a25305
Source2:    radvd.service
521dd6
Patch0:     radvd-1.9.2-cli-man-help.patch
a25305
BuildRequires:      byacc
a25305
BuildRequires:      flex
a25305
BuildRequires:      flex-static
a25305
BuildRequires:      libdaemon-devel
a25305
BuildRequires:      pkgconfig
a25305
BuildRequires:      systemd-units
a25305
Requires(postun):   systemd-units
a25305
Requires(preun):    systemd-units
a25305
Requires(post):     systemd-units
a25305
Requires(pre):      shadow-utils
a25305
a25305
%description
a25305
radvd is the router advertisement daemon for IPv6.  It listens to router
a25305
solicitations and sends router advertisements as described in "Neighbor
a25305
Discovery for IP Version 6 (IPv6)" (RFC 2461).  With these advertisements
a25305
hosts can automatically configure their addresses and some other
a25305
parameters.  They also can choose a default router based on these
a25305
advertisements.
a25305
a25305
Install radvd if you are setting up IPv6 network and/or Mobile IPv6
a25305
services.
a25305
a25305
%prep
a25305
%setup -q
521dd6
%patch0 -p1 -F2 -b .cli-man-help
521dd6
a25305
for F in CHANGES; do
a25305
    iconv -f iso-8859-1 -t utf-8 < "$F" > "${F}.new"
a25305
    touch -r "$F" "${F}.new"
a25305
    mv "${F}.new" "$F"
a25305
done
a25305
a25305
%build
521dd6
export CFLAGS="$RPM_OPT_FLAGS -fPIE -fno-strict-aliasing" 
a25305
export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen'
a25305
%configure --with-pidfile=%{_localstatedir}/run/radvd/radvd.pid
a25305
make %{?_smp_mflags} 
a25305
a25305
%install
a25305
make DESTDIR=$RPM_BUILD_ROOT install
a25305
a25305
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
a25305
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/radvd
a25305
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
a25305
a25305
install -m 644 redhat/radvd.conf.empty $RPM_BUILD_ROOT%{_sysconfdir}/radvd.conf
a25305
install -m 644 redhat/radvd.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/radvd
a25305
a25305
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
a25305
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/radvd.conf
a25305
install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_unitdir}
a25305
a25305
%postun
a25305
%systemd_postun_with_restart radvd.service
a25305
a25305
%post
a25305
%systemd_post radvd.service
a25305
a25305
%preun
a25305
%systemd_preun radvd.service
a25305
a25305
# Static UID and GID defined by /usr/share/doc/setup-*/uidgid
a25305
%pre
a25305
getent group radvd >/dev/null || groupadd -r -g 75 radvd
a25305
getent passwd radvd >/dev/null || \
a25305
  useradd -r -u 75 -g radvd -d / -s /sbin/nologin -c "radvd user" radvd
a25305
exit 0
a25305
a25305
%files
a25305
%doc CHANGES COPYRIGHT INTRO.html README TODO
a25305
%{_unitdir}/radvd.service
a25305
%config(noreplace) %{_sysconfdir}/radvd.conf
a25305
%config(noreplace) %{_sysconfdir}/sysconfig/radvd
a25305
%config(noreplace) %{_sysconfdir}/tmpfiles.d/radvd.conf
a25305
%dir %attr(-,radvd,radvd) %{_localstatedir}/run/radvd/
a25305
%doc radvd.conf.example
a25305
%{_mandir}/*/*
a25305
%{_sbindir}/radvd
a25305
%{_sbindir}/radvdump
a25305
a25305
%changelog
521dd6
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.9.2-7
521dd6
- Mass rebuild 2014-01-24
521dd6
521dd6
* Thu Jan 02 2014 Pavel Šimerda <psimerda@redhat.com> - 1.9.2-6
521dd6
- Resolves: #1045179 - use -fno-strict-aliasing for radvd
521dd6
521dd6
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.9.2-5
521dd6
- Mass rebuild 2013-12-27
521dd6
521dd6
* Tue Dec 10 2013 Pavel Šimerda <psimerda@redhat.com> - 1.9.2-4
521dd6
- Resolves: #948863 - man page scan results for radvd
521dd6
a25305
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.2-3
a25305
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a25305
a25305
* Wed Dec 05 2012 Petr Pisar <ppisar@redhat.com> - 1.9.2-2
a25305
- Create radvd user and and group with ID 75
a25305
a25305
* Wed Nov 21 2012 Petr Pisar <ppisar@redhat.com> - 1.9.2-1
a25305
- 1.9.2 bump
a25305
a25305
* Wed Aug 22 2012 Petr Pisar <ppisar@redhat.com> - 1.9.1-4
a25305
- Modernize systemd scriptlets (bug #850292)
a25305
a25305
* Tue Aug 07 2012 Petr Pisar <ppisar@redhat.com> - 1.9.1-3
a25305
- Remove useless chkconfig invocation (bug #845562)
a25305
- Do not reload unit file while unistalling
a25305
a25305
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-2
a25305
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a25305
a25305
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 1.9.1-1
a25305
- 1.9.1 bump
a25305
a25305
* Fri Jun 15 2012 Petr Pisar <ppisar@redhat.com> - 1.9-2
a25305
- Drop already defined _GNU_SOURCE symbol
a25305
a25305
* Fri Jun 15 2012 Petr Pisar <ppisar@redhat.com> - 1.9-1
a25305
- 1.9 bump
a25305
a25305
* Wed May 23 2012 Petr Pisar <ppisar@redhat.com> - 1.8.5-4
a25305
- Start service independently on network state (bug #824205)
a25305
- Do not force systemd logging to syslog (bug #824205)
a25305
a25305
* Thu Apr 12 2012 Petr Pisar <ppisar@redhat.com> - 1.8.5-3
a25305
- Store PID before daemonizing (bug #811997)
a25305
a25305
* Tue Apr 03 2012 Petr Pisar <ppisar@redhat.com> - 1.8.5-2
a25305
- Clean up spec file
a25305
- Remove System V init support
a25305
- Fix radvd account creation
a25305
a25305
* Wed Feb 01 2012 Jiri Skala <jskala@redhat.com> - 1.8.5-1
a25305
- update to latest upstream version 1.8.5
a25305
a25305
* Mon Jan 23 2012 Jiri Skala <jskala@redhat.com> - 1.8.4-1
a25305
- update to latest upstream version 1.8.4
a25305
a25305
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-2
a25305
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a25305
a25305
* Mon Oct 17 2011 Jiri Skala <jskala@redhat.com> - 1.8.3-1
a25305
- update to latest upstream version 1.8.3
a25305
a25305
* Mon Oct 10 2011 Jiri Skala <jskala@redhat.com> - 1.8.2-2
a25305
- fixes CVE-2011-3602
a25305
a25305
* Fri Oct 07 2011 Jiri Skala <jskala@redhat.com> - 1.8.2-1
a25305
- update to latest upstream version 1.8.2
a25305
- this update fixes CVE-2011-360{1..5}
a25305
a25305
* Wed Aug 24 2011 Jiri Skala <jskala@redhat.com> - 1.8.1-1
a25305
- update to latest upstream version 1.8.1
a25305
a25305
* Fri Aug 12 2011 Jiri Skala <jskala@redhat.com> - 1.8-2
a25305
- fixes #729367 - supress unadvisable messages - applied upstream changes
a25305
a25305
* Tue May 17 2011 Jiri Skala <jskala@redhat.com> - 1.8-1
a25305
- update to latest upstream version 1.8
a25305
a25305
* Mon Feb 28 2011 Jiri Skala <jskala@redhat.com> - 1.7-3
a25305
- fixes #679830 - radvd dies when reloading, initscript reports "OK"
a25305
a25305
* Wed Feb 23 2011 Jiri Skala <jskala@redhat.com> - 1.7-2
a25305
- fixes #679821 - provides native systemd service file
a25305
a25305
* Wed Feb 09 2011 Jiri Skala <jskala@redhat.com> - 1.7-1
a25305
- update to latest upstream version 1.7
a25305
a25305
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-5
a25305
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a25305
a25305
* Wed Dec 01 2010 Jiri Skala <jskala@redhat.com> - 1.6-4
a25305
- #656682 - using tmpfiles.d
a25305
a25305
* Wed Dec 01 2010 Jiri Skala <jskala@redhat.com> - 1.6-3
a25305
- fixes #656682 - using %%ghost on files in /var/run
a25305
- added necessary buildrequres flex-static 
a25305
a25305
* Fri May 21 2010 Jiri Skala <jskala@redhat.com> - 1.6-2
a25305
- ensure fax group id == fax user id
a25305
a25305
* Mon Mar 29 2010 Jiri Skala <jskala@redhat.com> - 1.6-1
a25305
- update to latest upstream version
a25305
a25305
* Mon Jan 25 2010 Jiri Skala <jskala@redhat.com> - 1.5-3
a25305
- spec file uses Source1 for radvd.init no more init from tarball
a25305
- radvd.init modified to make rmplint more silent
a25305
- removed userdel usage from postun
a25305
a25305
* Wed Jan 13 2010 Jan Gorig <jgorig@redhat.com> - 1.5-2
a25305
- mistake in last build
a25305
a25305
* Wed Jan 13 2010 Jan Gorig <jgorig@redhat.com> - 1.5-1
a25305
- updated do latest upstream version
a25305
- fixed #554125 - added error message
a25305
a25305
* Sun Oct 18 2009 Jiri Skala <jskala@redhat.com> - 1.3-4
a25305
- fixed #528178 - added force-reload
a25305
a25305
* Sun Oct 18 2009 Jiri Skala <jskala@redhat.com> - 1.3-3
a25305
- fixed #528178 - retval in init script to be posix compliant
a25305
a25305
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
a25305
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a25305
a25305
* Fri Jul 10 2009 Jiri Skala <jskala@redhat.com> - 1.3-1
a25305
- updated to latest upstream version
a25305
a25305
* Wed Jun 03 2009 Jiri Skala <jskala@redhat.com> - 1.2-3
a25305
- changed echos to be able to accept localization
a25305
a25305
* Tue Apr 28 2009 Jiri Skala <jskala@redhat.com> - 1.2-2
a25305
- fixed ambiguous condition in init script (exit 4)
a25305
a25305
* Mon Apr 27 2009 Jiri Skala <jskala@redhat.com> - 1.2-1
a25305
- updated to latest upstream version
a25305
a25305
* Fri Feb 27 2009 Jiri Skala <jskala@redhat.com> - 1.1-8
a25305
- regenerated posix patch
a25305
a25305
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-7
a25305
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a25305
a25305
* Mon Feb 02 2009 Jiri Skala <jskala@redhat.com> - 1.1-6
a25305
- init script modified to be POSIX compliant
a25305
a25305
* Wed Sep  3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1-5
a25305
- fix license tag
a25305
a25305
* Mon Jun 23 2008 Jiri Skala <jskala@redhat.com> - 1.1-4
a25305
- radvd.init LSB compliant
a25305
a25305
* Fri Apr 11 2008 Martin Nagy <mnagy@redhat.com> - 1.1-3
a25305
- remove stale pid file on start
a25305
a25305
* Mon Feb 25 2008 Martin Nagy <mnagy@redhat.com> - 1.1-2
a25305
- fix up string comparison in init script (#427047)
a25305
a25305
* Mon Feb 25 2008 Martin Nagy <mnagy@redhat.com> - 1.1-1
a25305
- update to new upstream version
a25305
- remove patch fixed in upstream: initscript
a25305
a25305
* Mon Feb 11 2008 Martin Nagy <mnagy@redhat.com> - 1.0-6
a25305
- rebuild for gcc-4.3
a25305
a25305
* Tue Nov 13 2007 Martin Bacovsky <mbacovsk@redhat.com> - 1.0-5
a25305
- resolves #376081: The radvd init script exits without doing anything if /usr/sbin/radvd exists
a25305
a25305
* Thu Aug 23 2007 Martin Bacovsky <mbacovsk@redhat.com> - 1.0-4.1
a25305
- Rebuild
a25305
a25305
* Fri Aug  3 2007 Martin Bacovsky <mbacovsk@redhat.com> - 1.0-4
a25305
- resolves: #247041: Initscript Review
a25305
a25305
* Wed Feb 14 2007 Martin Bacovsky <mbacovsk@redhat.com> - 1.0-3
a25305
- specfile cleanup for review
a25305
a25305
* Thu Feb  1 2007 Martin Bacovsky <mbacovsk@redhat.com> - 1.0-2
a25305
- linking with -pie flag turned on again
a25305
a25305
* Wed Jan 31 2007 Martin Bacovsky <mbacovsk@redhat.com> - 1.0-1
a25305
- rebase to upstream 1.0
a25305
- Resolves: #225542: radvd 1.0 released
a25305
a25305
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 0.9.1-4
a25305
- rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc*
a25305
  (#203001)
a25305
a25305
* Mon Jul 17 2006 Jason Vas Dias <jvdias@redhat.com> - 0.9.1-3
a25305
- rebuild for new FC-6 build environment
a25305
a25305
* Mon Jun 05 2006 Jason Vas Dias <jvdias@redhat.com> - 0.9.1-2
a25305
- fix BuildRequires for Mock
a25305
a25305
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.9.1-1.1.1
a25305
- bump again for double-long bug on ppc(64)
a25305
a25305
* Tue Feb 07 2006 Jason Vas Dias <jvdias@redhat.com> - 0.9.1-1.1
a25305
- rebuild for new gcc, glibc, glibc-kernheaders
a25305
a25305
* Mon Jan 16 2006 Jason Vas Dias<jvdias@redhat.com> - 0.9.1-1
a25305
- Upgrade to upstream version 0.9.1
a25305
a25305
* Sun Dec 18 2005 Jason Vas Dias<jvdias@redhat.com>
a25305
- Upgrade to upstream version 0.9
a25305
a25305
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
a25305
- rebuilt
a25305
a25305
* Tue Jul 19 2005 Jason Vas Dias <jvdias@redhat.com> 0.8.2.FC5
a25305
- fix bug 163593: must use '%%configure' to get correct conf file location
a25305
a25305
* Mon Jul 18 2005 Jason Vas Dias <jvdias@redhat.com> 0.8-1.FC5
a25305
- Upgrade to upstream version 0.8
a25305
a25305
* Fri Jul  8 2005 Pekka Savola <pekkas@netcore.fi> 0.8-1
a25305
- 0.8.
a25305
- Ship the example config file as %%doc (Red Hat's #159005)
a25305
a25305
* Fri Feb 25 2005 Jason Vas Dias <jvdias@redhat.com> 0.7.3-1_FC4
a25305
- make version compare > that of FC3
a25305
a25305
* Mon Feb 21 2005 Jason Vas Dias <jvdias@redhat.com> 0.7.3-1
a25305
- Upgrade to radvd-0.7.3
a25305
- add execshield -fPIE / -pie compile / link options
a25305
a25305
* Mon Feb 21 2005 Pekka Savola <pekkas@netcore.fi> 0.7.3-1
a25305
- 0.7.3.
a25305
a25305
* Mon Oct 28 2002 Pekka Savola <pekkas@netcore.fi>
a25305
- 0.7.2.
a25305
a25305
* Tue May  7 2002 Pekka Savola <pekkas@netcore.fi>
a25305
- remove '-g %%{RADVD_GID}' when creating the user, which may be problematic
a25305
  if the user didn't exist before.
a25305
a25305
* Fri Apr 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 0.7.1-1
a25305
- 0.7.1 (bugfix release, #61023), fixes:
a25305
  - Check that forwarding is enabled when starting radvd
a25305
    (helps avoid odd problems) 
a25305
  - Check configuration file permissions (note: in setuid operation, must not
a25305
    be writable by the user.group) 
a25305
  - Cleanups and enhancements for radvdump
a25305
  - Ensure NULL-termination with strncpy even with overlong strings
a25305
    (non-criticals, but better safe than sorry) 
a25305
  - Update config.{guess,sub} to cope with some newer architectures 
a25305
  - Minor fixes and cleanups 
a25305
a25305
* Mon Jan 14 2002 Pekka Savola <pekkas@netcore.fi>
a25305
- 0.7.1.
a25305
a25305
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
a25305
- automated rebuild
a25305
a25305
* Tue Jan  8 2002 Pekka Savola <pekkas@netcore.fi>
a25305
- Change 'reload' to signal HUP to radvd instead or restarting.
a25305
a25305
* Fri Dec 28 2001 Pekka Savola <pekkas@netcore.fi>
a25305
- License unfortunately is BSD *with* advertising clause, so to be pedantic,
a25305
  change License: to 'BSD-style'.
a25305
a25305
* Thu Nov 22 2001 Bernhard Rosenkraenzer <bero@redhat.com>
a25305
- 0.7.0
a25305
a25305
* Wed Nov 14 2001 Pekka Savola <pekkas@netcore.fi>
a25305
- spec file cleanups
a25305
- update to 0.7.0.
a25305
a25305
* Mon Jul  9 2001 Bernhard Rosenkraenzer <bero@redhat.com>
a25305
- initial Red Hat Linux build
a25305
a25305
* Sun Jun 24 2001 Pekka Savola <pekkas@netcore.fi>
a25305
- add a patch from USAGI for overflow, Copyright -> License.
a25305
a25305
* Wed Jun 20 2001 Pekka Savola <pekkas@netcore.fi>
a25305
- use /sbin/service.
a25305
- update to 0.6.2pl4.
a25305
a25305
* Sat Apr 28 2001 Pekka Savola <pekkas@netcore.fi>
a25305
- update to 0.6.2pl3.
a25305
a25305
* Wed Apr 11 2001 Pekka Savola <pekkas@netcore.fi>
a25305
- update to 0.6.2pl2.
a25305
a25305
* Wed Apr  4 2001 Pekka Savola <pekkas@netcore.fi>
a25305
- update to 0.62pl1.  Bye bye patches!
a25305
- Require: initscripts (should really be with a version providing IPv6)
a25305
- clean up the init script, make condrestart work properly
a25305
- Use a static /etc/rc.d/init.d; init.d/radvd required it anyway.
a25305
a25305
* Sun Apr  1 2001 Pekka Savola <pekkas@netcore.fi>
a25305
- add patch to chroot (doesn't work well yet, as /proc is used directly)
a25305
- clean up droproot patch, drop the rights earlier; require user-writable
a25305
pidfile directory
a25305
- set up the pidfile directory at compile time.
a25305
a25305
* Sat Mar 31 2001 Pekka Savola <pekkas@netcore.fi>
a25305
- add select/kill signals patch from Nathan Lutchansky <lutchann@litech.org>.
a25305
- add address syntax checked fix from Marko Myllynen <myllynen@lut.fi>.
a25305
- add patch to check the pid file before fork.
a25305
- add support for OPTIONS sourced from /etc/sysconfig/radvd, provide a nice
a25305
default one.
a25305
- add/delete radvd user, change the pidfile to /var/run/radvd/radvd.pid.
a25305
- fix initscript NETWORKING_IPV6 check.
a25305
a25305
* Sun Mar 18 2001 Pekka Savola <pekkas@netcore.fi>
a25305
- add droproot patch, change to nobody by default (should use radvd:radvd or
a25305
the like, really).
a25305
a25305
* Mon Mar  5 2001 Tim Powers <timp@redhat.com>
a25305
- applied patch supplied by Pekka Savola in #30508
a25305
- made changes to initscript as per Pekka's suggestions
a25305
a25305
* Thu Feb 15 2001 Tim Powers <timp@redhat.com>
a25305
- needed -D_GNU_SOURCE to build properly
a25305
a25305
* Tue Feb  6 2001 Tim Powers <timp@redhat.com>
a25305
- use %%configure and %%makeinstall, just glob the manpages, cleans
a25305
  things up
a25305
- fixed initscript so that it can be internationalized in the future
a25305
a25305
* Fri Feb 2 2001 Pekka Savola <pekkas@netcore.fi>
a25305
- Create a single package(source) for glibc21 and glibc22 (automatic
a25305
Requires can handle this just fine).
a25305
- use %%{_mandir} and friends
a25305
- add more flesh to %%doc
a25305
- streamline %%config file %%attrs
a25305
- streamline init.d file a bit:
a25305
   * add a default chkconfig: (default to disable for security etc. reasons; 
a25305
     also, the default config isn't generic enough..)
a25305
   * add reload/condrestart
a25305
   * minor tweaks
a25305
   * missing: localization support (initscripts-5.60)
a25305
- use %%initdir macro
a25305
a25305
* Thu Feb 1 2001 Lars Fenneberg <lf@elemental.net>
a25305
- updated to new release 0.6.2
a25305
a25305
* Thu Feb 1 2001 Marko Myllynen <myllynen@lut.fi>
a25305
- initial version, radvd version 0.6.1