55d486e512
Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> - rebuilt
212 lines
6.4 KiB
RPMSpec
212 lines
6.4 KiB
RPMSpec
%define initdir /etc/rc.d/init.d
|
|
#%(if test -d /etc/init.d/. ; then echo /etc/init.d ; else echo /etc/rc.d/init.d ; fi)
|
|
|
|
Summary: A Router Advertisement daemon
|
|
Name: radvd
|
|
Version: 0.7.2
|
|
Release: 8
|
|
License: BSD
|
|
Group: System Environment/Daemons
|
|
Source0: http://v6web.litech.org/radvd/radvd-%{version}.tar.gz
|
|
Source1: radvd.init
|
|
Source2: radvd.sysconfig
|
|
Patch: radvd-0.7.2-shutup-103543.patch
|
|
Patch1: radvd-0.7.2-srcmac-103469.patch
|
|
PreReq: chkconfig, /usr/sbin/useradd, /sbin/service, initscripts
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
|
|
%description
|
|
radvd is the router advertisement daemon for IPv6. It listens to router
|
|
solicitations and sends router advertisements as described in "Neighbor
|
|
Discovery for IP Version 6 (IPv6)" (RFC 2461). With these advertisements
|
|
hosts can automatically configure their addresses and some other
|
|
parameters. They also can choose a default router based on these
|
|
advertisements.
|
|
|
|
Install radvd if you are setting up IPv6 network and/or Mobile IPv6
|
|
services.
|
|
|
|
%prep
|
|
%setup
|
|
%patch -p1
|
|
%patch1 -p0
|
|
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" %configure --with-pidfile=/var/run/radvd/radvd.pid
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
%makeinstall
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
|
install -m 644 $RPM_BUILD_DIR/radvd-%{version}/radvd.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/radvd.conf
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{initdir}
|
|
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{initdir}/radvd
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/run/radvd
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
|
|
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/radvd
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%postun
|
|
if [ "$1" -ge "1" ]; then
|
|
/sbin/service radvd condrestart >/dev/null 2>&1
|
|
fi
|
|
if [ $1 = 0 ]; then
|
|
/usr/sbin/userdel radvd > /dev/null 2>&1 || :
|
|
fi
|
|
|
|
%post
|
|
/sbin/chkconfig --add radvd
|
|
|
|
%preun
|
|
if [ $1 = 0 ]; then
|
|
/sbin/service radvd stop >/dev/null 2>&1
|
|
/sbin/chkconfig --del radvd
|
|
fi
|
|
|
|
%pre
|
|
/usr/sbin/useradd -c "radvd user" -r -s /sbin/nologin -u 75 -d / radvd 2>/dev/null || :
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYRIGHT README CHANGES INTRO.html TODO
|
|
%config(noreplace) %{_sysconfdir}/radvd.conf
|
|
%config(noreplace) /etc/sysconfig/radvd
|
|
%config %{initdir}/radvd
|
|
%dir %attr(-,radvd,radvd) /var/run/radvd/
|
|
%{_mandir}/*/*
|
|
%{_sbindir}/radvd
|
|
%{_sbindir}/radvdump
|
|
|
|
%changelog
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
- rebuilt
|
|
|
|
* Tue Feb 24 2004 Elliot Lee <sopwith@redhat.com> 0.7.2-7
|
|
- Include COPYRIGHT to fix #115998
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
- rebuilt
|
|
|
|
* Fri Sep 19 2003 Elliot Lee <sopwith@redhat.com> 0.7.2-5
|
|
- Patch from #103469
|
|
|
|
* Fri Sep 05 2003 Elliot Lee <sopwith@redhat.com> 0.7.2-4
|
|
- Patch from #103543
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
- rebuilt
|
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
- rebuilt
|
|
|
|
* Mon Jan 13 2003 Elliot Lee <sopwith@redhat.com> 0.7.2-1
|
|
- Fix #68372 for real
|
|
- Update to 0.7.2
|
|
|
|
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 0.7.1-4
|
|
- rebuild on all arches
|
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
- automated rebuild
|
|
|
|
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
|
- automated rebuild
|
|
|
|
* Fri Apr 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 0.7.1-1
|
|
- 0.7.1 (bugfix release, #61023), fixes:
|
|
- Check that forwarding is enabled when starting radvd
|
|
(helps avoid odd problems)
|
|
- Check configuration file permissions (note: in setuid operation, must not
|
|
be writable by the user.group)
|
|
- Cleanups and enhancements for radvdump
|
|
- Ensure NULL-termination with strncpy even with overlong strings
|
|
(non-criticals, but better safe than sorry)
|
|
- Update config.{guess,sub} to cope with some newer architectures
|
|
- Minor fixes and cleanups
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
- automated rebuild
|
|
|
|
* Thu Nov 22 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
- 0.7.0
|
|
|
|
* Mon Jul 9 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
- initial Red Hat Linux build
|
|
|
|
* Sun Jun 24 2001 Pekka Savola <pekkas@netcore.fi>
|
|
- add a patch from USAGI for overflow, Copyright -> License.
|
|
|
|
* Wed Jun 20 2001 Pekka Savola <pekkas@netcore.fi>
|
|
- use /sbin/service.
|
|
- update to 0.6.2pl4.
|
|
|
|
* Sat Apr 28 2001 Pekka Savola <pekkas@netcore.fi>
|
|
- update to 0.6.2pl3.
|
|
|
|
* Wed Apr 11 2001 Pekka Savola <pekkas@netcore.fi>
|
|
- update to 0.6.2pl2.
|
|
|
|
* Wed Apr 4 2001 Pekka Savola <pekkas@netcore.fi>
|
|
- update to 0.62pl1. Bye bye patches!
|
|
- Require: initscripts (should really be with a version providing IPv6)
|
|
- clean up the init script, make condrestart work properly
|
|
- Use a static /etc/rc.d/init.d; init.d/radvd required it anyway.
|
|
|
|
* Sun Apr 1 2001 Pekka Savola <pekkas@netcore.fi>
|
|
- add patch to chroot (doesn't work well yet, as /proc is used directly)
|
|
- clean up droproot patch, drop the rights earlier; require user-writable
|
|
pidfile directory
|
|
- set up the pidfile directory at compile time.
|
|
|
|
* Sat Mar 31 2001 Pekka Savola <pekkas@netcore.fi>
|
|
- add select/kill signals patch from Nathan Lutchansky <lutchann@litech.org>.
|
|
- add address syntax checked fix from Marko Myllynen <myllynen@lut.fi>.
|
|
- add patch to check the pid file before fork.
|
|
- add support for OPTIONS sourced from /etc/sysconfig/radvd, provide a nice
|
|
default one.
|
|
- add/delete radvd user, change the pidfile to /var/run/radvd/radvd.pid.
|
|
- fix initscript NETWORKING_IPV6 check.
|
|
|
|
* Sun Mar 18 2001 Pekka Savola <pekkas@netcore.fi>
|
|
- add droproot patch, change to nobody by default (should use radvd:radvd or
|
|
the like, really).
|
|
|
|
* Mon Mar 5 2001 Tim Powers <timp@redhat.com>
|
|
- applied patch supplied by Pekka Savola in #30508
|
|
- made changes to initscript as per Pekka's suggestions
|
|
|
|
* Thu Feb 15 2001 Tim Powers <timp@redhat.com>
|
|
- needed -D_GNU_SOURCE to build properly
|
|
|
|
* Tue Feb 6 2001 Tim Powers <timp@redhat.com>
|
|
- use %%configure and %%makeinstall, just glob the manpages, cleans
|
|
things up
|
|
- fixed initscript so that it can be internationalized in the future
|
|
|
|
* Fri Feb 2 2001 Pekka Savola <pekkas@netcore.fi>
|
|
- Create a single package(source) for glibc21 and glibc22 (automatic
|
|
Requires can handle this just fine).
|
|
- use %%{_mandir} and friends
|
|
- add more flesh to %doc
|
|
- streamline %config file %attrs
|
|
- streamline init.d file a bit:
|
|
* add a default chkconfig: (default to disable for security etc. reasons;
|
|
also, the default config isn't generic enough..)
|
|
* add reload/condrestart
|
|
* minor tweaks
|
|
* missing: localization support (initscripts-5.60)
|
|
- use %%initdir macro
|
|
|
|
* Thu Feb 1 2001 Lars Fenneberg <lf@elemental.net>
|
|
- updated to new release 0.6.2
|
|
|
|
* Thu Feb 1 2001 Marko Myllynen <myllynen@lut.fi>
|
|
- initial version, radvd version 0.6.1
|