mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 09:20:25 +00:00
2003-08-12 Paul Jakma <paul@dishone.st>
* redhat/: zebra.{logrotate,pam,spec.in} -> quagga.{logrotate,pam,spec.in}.
This commit is contained in:
parent
7190f4ea21
commit
6bd8fd3bb0
@ -1 +1,2 @@
|
|||||||
zebra.spec
|
zebra.spec
|
||||||
|
quagga.spec
|
||||||
|
@ -11,29 +11,29 @@
|
|||||||
%define with_ospfclient 1
|
%define with_ospfclient 1
|
||||||
%define with_ospfapi 1
|
%define with_ospfapi 1
|
||||||
%define with_multipath 64
|
%define with_multipath 64
|
||||||
%define zebra_user zebra
|
%define quagga_user quagga
|
||||||
%define vty_group zebravty
|
%define vty_group zebravty
|
||||||
|
|
||||||
# path defines
|
# path defines
|
||||||
%define _sysconfdir /etc/zebra
|
%define _sysconfdir /etc/quagga
|
||||||
%define zeb_src %{_builddir}/%{name}-%{version}
|
%define zeb_src %{_builddir}/%{name}-%{version}
|
||||||
%define zeb_rh_src %{zeb_src}/redhat
|
%define zeb_rh_src %{zeb_src}/redhat
|
||||||
%define zeb_docs %{zeb_src}/doc
|
%define zeb_docs %{zeb_src}/doc
|
||||||
|
|
||||||
# defines for configure
|
# defines for configure
|
||||||
%define _libexecdir %{_exec_prefix}/libexec/zebra
|
%define _libexecdir %{_exec_prefix}/libexec/quagga
|
||||||
%define _includedir %{_prefix}/include/zebra
|
%define _includedir %{_prefix}/include/quagga
|
||||||
%define _libdir %{_exec_prefix}/%{_lib}/zebra
|
%define _libdir %{_exec_prefix}/%{_lib}/quagga
|
||||||
%define _localstatedir /var/run/zebra
|
%define _localstatedir /var/run/quagga
|
||||||
|
|
||||||
Summary: Routing daemon
|
Summary: Routing daemon
|
||||||
Name: zebra
|
Name: quagga
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Release: @CONFDATE@01
|
Release: @CONFDATE@01
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://ftp.zebra.org/pub/zebra/%{name}-%{version}.tar.gz
|
Source0: http://www.quagga.net/snapshots/cvs/%{name}-%{version}.tar.gz
|
||||||
URL: http://www.zebra.org/
|
URL: http://www.quagga.net
|
||||||
%if %with_snmp
|
%if %with_snmp
|
||||||
#BuildRequires: ucd-snmp-devel
|
#BuildRequires: ucd-snmp-devel
|
||||||
Prereq: ucd-snmp
|
Prereq: ucd-snmp
|
||||||
@ -42,41 +42,42 @@ Prereq: ucd-snmp
|
|||||||
BuildRequires: readline readline-devel ncurses ncurses-devel
|
BuildRequires: readline readline-devel ncurses ncurses-devel
|
||||||
Prereq: readline ncurses
|
Prereq: readline ncurses
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: texinfo tetex autoconf openssl-devel pam-devel patch
|
BuildRequires: texinfo tetex autoconf pam-devel patch
|
||||||
# Initscripts > 5.60 is required for IPv6 support
|
# Initscripts > 5.60 is required for IPv6 support
|
||||||
Prereq: initscripts >= 5.60
|
Prereq: initscripts >= 5.60
|
||||||
Prereq: openssl ncurses readline pam
|
Prereq: openssl ncurses readline pam
|
||||||
Prereq: /sbin/install-info
|
Prereq: /sbin/install-info
|
||||||
Provides: routingdaemon
|
Provides: routingdaemon
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
Obsoletes: bird gated mrt
|
Obsoletes: bird gated mrt zebra
|
||||||
|
|
||||||
%description
|
%description
|
||||||
GNU Zebra is a free software that manages TCP/IP based routing
|
Quagga is a free software that manages TCP/IP based routing
|
||||||
protocol. It takes multi-server and multi-thread approach to resolve
|
protocol. It takes multi-server and multi-thread approach to resolve
|
||||||
the current complexity of the Internet.
|
the current complexity of the Internet.
|
||||||
|
|
||||||
GNU Zebra supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
|
Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
|
||||||
|
|
||||||
GNU Zebra is intended to be used as a Route Server and a Route
|
Quagga is intended to be used as a Route Server and a Route Reflector. It is
|
||||||
Reflector. It is not a toolkit, it provides full routing power under
|
not a toolkit, it provides full routing power under a new architecture.
|
||||||
a new architecture. GNU Zebra is unique in design in that it has a
|
Quagga by design has a process for each protocol.
|
||||||
process for each protocol.
|
|
||||||
|
Quagga is a fork of GNU Zebra.
|
||||||
|
|
||||||
%package contrib
|
%package contrib
|
||||||
Summary: contrib tools for zebra
|
Summary: contrib tools for quagga
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
|
|
||||||
%description contrib
|
%description contrib
|
||||||
Contributed/3rd party tools which may be of use with zebra.
|
Contributed/3rd party tools which may be of use with quagga.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Header and object files for zebra development
|
Summary: Header and object files for quagga development
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The zebra-devel package contains the header and object files neccessary for
|
The quagga-devel package contains the header and object files neccessary for
|
||||||
developing OSPF-API and zebra applications.
|
developing OSPF-API and quagga applications.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -120,9 +121,9 @@ developing OSPF-API and zebra applications.
|
|||||||
%if %with_pam
|
%if %with_pam
|
||||||
--with-libpam \
|
--with-libpam \
|
||||||
%endif
|
%endif
|
||||||
%if %zebra_user
|
%if %quagga_user
|
||||||
--enable-user=%zebra_user \
|
--enable-user=%quagga_user \
|
||||||
--enable-group=%zebra_user \
|
--enable-group=%quagga_user \
|
||||||
%endif
|
%endif
|
||||||
%if %vty_group
|
%if %vty_group
|
||||||
--enable-vty-group=%vty_group \
|
--enable-vty-group=%vty_group \
|
||||||
@ -133,14 +134,14 @@ developing OSPF-API and zebra applications.
|
|||||||
make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
|
make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
|
||||||
|
|
||||||
pushd doc
|
pushd doc
|
||||||
texi2html zebra.texi
|
texi2html quagga.texi
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,pam.d} \
|
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,pam.d} \
|
||||||
$RPM_BUILD_ROOT/var/log/zebra $RPM_BUILD_ROOT%{_infodir}
|
$RPM_BUILD_ROOT/var/log/quagga $RPM_BUILD_ROOT%{_infodir}
|
||||||
|
|
||||||
make install \
|
make install \
|
||||||
DESTDIR=$RPM_BUILD_ROOT
|
DESTDIR=$RPM_BUILD_ROOT
|
||||||
@ -156,19 +157,19 @@ install %{zeb_rh_src}/ripngd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/ripngd
|
|||||||
%endif
|
%endif
|
||||||
install %{zeb_rh_src}/ospfd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/ospfd
|
install %{zeb_rh_src}/ospfd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/ospfd
|
||||||
install %{zeb_rh_src}/ripd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/ripd
|
install %{zeb_rh_src}/ripd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/ripd
|
||||||
install -m644 %{zeb_rh_src}/zebra.pam $RPM_BUILD_ROOT/etc/pam.d/zebra
|
install -m644 %{zeb_rh_src}/quagga.pam $RPM_BUILD_ROOT/etc/pam.d/quagga
|
||||||
install -m644 %{zeb_rh_src}/zebra.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/zebra
|
install -m644 %{zeb_rh_src}/quagga.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/quagga
|
||||||
install -d -m750 $RPM_BUILD_ROOT/var/run/zebra
|
install -d -m750 $RPM_BUILD_ROOT/var/run/quagga
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
# add vty_group
|
# add vty_group
|
||||||
%if %vty_group
|
%if %vty_group
|
||||||
groupadd -r %vty_group 2> /dev/null || :
|
groupadd -r %vty_group 2> /dev/null || :
|
||||||
%endif
|
%endif
|
||||||
# add zebra user and group
|
# add quagga user and group
|
||||||
%if %zebra_user
|
%if %quagga_user
|
||||||
/usr/sbin/useradd -M -r -s /bin/false -c "Zebra routing suite" \
|
/usr/sbin/useradd -M -r -s /bin/false -c "Quagga routing suite" \
|
||||||
-d %_localstatedir %zebra_user 2> /dev/null || :
|
-d %_localstatedir %quagga_user 2> /dev/null || :
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -207,7 +208,7 @@ zebra_spec_add_service ospfapi 2607/tcp "OSPF-API"
|
|||||||
/sbin/chkconfig --add ospfd
|
/sbin/chkconfig --add ospfd
|
||||||
/sbin/chkconfig --add bgpd
|
/sbin/chkconfig --add bgpd
|
||||||
|
|
||||||
/sbin/install-info %{_infodir}/zebra.info.gz %{_infodir}/dir
|
/sbin/install-info %{_infodir}/quagga.info.gz %{_infodir}/dir
|
||||||
|
|
||||||
# Create dummy files if they don't exist so basic functions can be used.
|
# Create dummy files if they don't exist so basic functions can be used.
|
||||||
if [ ! -e %{_sysconfdir}/zebra.conf ]; then
|
if [ ! -e %{_sysconfdir}/zebra.conf ]; then
|
||||||
@ -232,7 +233,7 @@ if [ "$1" -ge "1" ]; then
|
|||||||
%endif
|
%endif
|
||||||
/etc/rc.d/init.d/bgpd condrestart >/dev/null 2>&1
|
/etc/rc.d/init.d/bgpd condrestart >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
/sbin/install-info --delete %{_infodir}/zebra.info.gz %{_infodir}/dir
|
/sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
@ -254,21 +255,21 @@ fi
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc */*.sample* AUTHORS COPYING
|
%doc */*.sample* AUTHORS COPYING
|
||||||
%doc doc/zebra.html
|
%doc doc/quagga.html
|
||||||
%doc doc/mpls
|
%doc doc/mpls
|
||||||
%doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO
|
%doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO
|
||||||
%if %zebra_user
|
%if %quagga_user
|
||||||
%dir %attr(751,%zebra_user,%zebra_user) %{_sysconfdir}
|
%dir %attr(751,%quagga_user,%quagga_user) %{_sysconfdir}
|
||||||
%dir %attr(750,%zebra_user,%zebra_user) /var/log/zebra
|
%dir %attr(750,%quagga_user,%quagga_user) /var/log/quagga
|
||||||
%dir %attr(751,%zebra_user,%zebra_user) /var/run/zebra
|
%dir %attr(751,%quagga_user,%quagga_user) /var/run/quagga
|
||||||
%else
|
%else
|
||||||
%dir %attr(750,root,root) %{_sysconfdir}
|
%dir %attr(750,root,root) %{_sysconfdir}
|
||||||
%dir %attr(750,root,root) /var/log/zebra
|
%dir %attr(750,root,root) /var/log/quagga
|
||||||
%dir %attr(755,root,root) /usr/share/info
|
%dir %attr(755,root,root) /usr/share/info
|
||||||
%dir %attr(750,root,root) /var/run/zebra
|
%dir %attr(750,root,root) /var/run/quagga
|
||||||
%endif
|
%endif
|
||||||
%if %vty_group
|
%if %vty_group
|
||||||
%attr(750,%zebra_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample
|
%attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample
|
||||||
%endif
|
%endif
|
||||||
%{_infodir}/*info*
|
%{_infodir}/*info*
|
||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
@ -276,9 +277,9 @@ fi
|
|||||||
%if %with_vtysh
|
%if %with_vtysh
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%endif
|
%endif
|
||||||
%config /etc/zebra/[!v]*
|
%config /etc/quagga/[!v]*
|
||||||
%config /etc/rc.d/init.d/*
|
%config /etc/rc.d/init.d/*
|
||||||
%config(noreplace) /etc/pam.d/zebra
|
%config(noreplace) /etc/pam.d/quagga
|
||||||
%config(noreplace) %attr(640,root,root) /etc/logrotate.d/*
|
%config(noreplace) %attr(640,root,root) /etc/logrotate.d/*
|
||||||
|
|
||||||
%files contrib
|
%files contrib
|
||||||
@ -294,6 +295,10 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 12 2003 Paul Jakma <paul@dishone.st>
|
||||||
|
- Renamed to Quagga
|
||||||
|
- Sync to Quagga release 0.96
|
||||||
|
|
||||||
* Tue Mar 20 2003 Paul Jakma <paul@dishone.st>
|
* Tue Mar 20 2003 Paul Jakma <paul@dishone.st>
|
||||||
- zebra privileges support
|
- zebra privileges support
|
||||||
|
|
Loading…
Reference in New Issue
Block a user