Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37912861
en ru br
Репозитории ALT
S:5.17.0-alt2
5.1: 2.6.29-alt1
4.1: 2.6.23-alt2
4.0: 2.6.20.20070313-alt1
3.0: 2.4.7.20020116-alt5.1
www.altlinux.org/Changes

Группа :: Сети/Прочее
Пакет: iproute2

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: iproute2
Version: 2.6.29
Release: alt1

Packager: Victor Forsyuk <force at altlinux.org>

Summary: Advanced IP routing and network devices configuration tools
License: GPLv2+
Group: Networking/Other

URL: http://www.linux-foundation.org/en/Net:Iproute2
Source0: http://devresources.linux-foundation.org/dev/iproute2/download/iproute2-%version-1.tar.bz2

Source11: tcio7.ps.bz2
Source12: guaranteed.ps.bz2
Source13: http://www.aciri.org/floyd/papers/link.ps.bz2

# Apply only one of two patches below depending of target arch (32 or 64 bit)

Patch1: iproute2-iptables.patch
Patch2: iproute2-iptables64.patch

Patch5: iproute2-2.6.18-alt-ifcfg.patch
Patch8: iproute2-2.4.7-alt-ipsectun.patch

Patch20: iproute2-2.6.9-alt-libnetlink.patch
Patch21: http://rad.peet.spb.ru/files/related/iproute2-2.4.7-alt-rtacct_daemon.patch

# Fedora and Mandriva patches

Patch104: iproute2-2.6.18-ip-man.patch
Patch105: iproute2-2.6.25-segfault.patch
Patch106: iproute2-2.6.28-format_not_a_string_literal_and_no_format_arguments.patch
# ip -6 tunnel show" displays only ip6ip6 tunnels not ip4ip6 tunnels - it should display all irrespective of proto
Patch107: iproute2-2.6.29-display_ip4ip6tunnels.patch
Patch108: iproute2-2.6.29-IPPROTO_IP_for_SA.patch

Provides: iproute = %version-%release
Obsoletes: iproute

# Upstream provides libnetlink without soname versioning, so we manually set versioned

# package dependency to ensure correct updates.
Requires: libnetlink = %version-%release

# Automatically added by buildreq on Tue Sep 08 2009

BuildRequires: OpenSP flex iptables-devel libatm-devel libdb4-devel sgml-tools tetex-dvips tetex-latex

BuildRequires: glibc-kernheaders

%description
The iproute package contains networking utilities (ip and rtmon, for example)
which are designed to use the advanced networking capabilities of the Linux
2.4.x and 2.6.x kernel.

%package doc
Summary: Documentation for Advanced IP routing and network device configuration tools
Group: Networking/Other
BuildArch: noarch

%description doc
Documentation for iproute2.

%package -n arpd
Summary: The arpd daemon
Group: Networking/Other
Requires: %name = %version-%release

%description -n arpd
arpd is a daemon collecting gratuitous ARP information, saving it on local disk
and feeding it to kernel on demand to avoid redundant broadcasting due to
limited size of kernel ARP cache.

%package -n libnetlink
Summary: Netlink socket library
Group: System/Libraries

%description -n libnetlink
This package contains libnetlink dynamic library.

%package -n libnetlink-devel
Summary: Netlink socket library headers
Group: System/Libraries
Requires: libnetlink = %version-%release

%description -n libnetlink-devel
This package contains libnetlink dynamic library headers.

%prep
%setup -n %name-%version-1

%patch5 -p1
%patch8 -p1

%if "%_lib" == "lib64"
%patch2 -p1
%else
%patch1 -p1
%endif

%patch20 -p1
%patch21 -p1

%patch104 -p1
%patch105 -p2
%patch106 -p1
%patch107 -p1
%patch108 -p1

%build
# Fix ALT#15409:
%__subst 's/TCSO :=/TCSO := q_prio.so/' tc/Makefile

%make_build \
DBM_INCLUDE=%_includedir/db4 \
LIBDIR=%_libdir \
CCOPTS="-D_GNU_SOURCE %optflags"

%make_build -C doc
bzip2 -9f doc/*.ps ||:

%__subst 's,/sbin/arping,/usr/sbin/arping,g' examples/dhcp-client-script

%install
mkdir -p %buildroot{/sbin,%_sbindir,%_man8dir,%_sysconfdir/iproute2,%_initdir,%_localstatedir/arpd}

install -p -m755 ip/{ip,ifcfg,rtmon} tc/tc %buildroot/sbin/
install -p -m755 misc/{arpd,ifstat,lnstat,nstat,rtacct,ss} ip/{routel,routef} %buildroot%_sbindir/
install -p -m644 etc/iproute2/* %buildroot%_sysconfdir/iproute2/
install -p -m644 man/man8/*.8 %buildroot%_man8dir/

mkdir -p %buildroot%_libdir/tc
install -m 755 tc/q_atm.so tc/q_prio.so %buildroot%_libdir/tc
install -m 644 netem/normal.dist netem/pareto.dist netem/paretonormal.dist %buildroot%_libdir/tc

install -p -m644 %SOURCE11 %SOURCE12 %SOURCE13 doc/

### libnetlink

mkdir -p %buildroot{%_includedir,%_libdir,%_man3dir,/%_lib}
install -p -m644 lib/libnetlink.so %buildroot/%_lib
install -p -m644 include/{libnetlink.h,ll_map.h} %buildroot%_includedir
install -p -m644 man/man3/libnetlink.3 %buildroot%_man3dir/
ln -s ../../%_lib/libnetlink.so %buildroot%_libdir/libnetlink.so

%files
/sbin/*
%_sbindir/*
%_libdir/tc/
%exclude %_sbindir/arpd
%config(noreplace) %_sysconfdir/%name
%_man8dir/*
%doc README* examples

%files doc
%doc ChangeLog doc/*.bz2 doc/actions

%files -n arpd
%_sbindir/arpd
%attr(700,root,root) %dir %_localstatedir/arpd

%files -n libnetlink
/%_lib/libnetlink.so

%files -n libnetlink-devel
%_includedir/*
%_libdir/libnetlink.so
%_man3dir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin