|
@@ -1,51 +1,22 @@
|
|
%bcond_without tipc
|
|
%bcond_without tipc
|
|
-%bcond_with texdoc
|
|
|
|
-%define cbq_version v0.7.3
|
|
|
|
-
|
|
|
|
-Summary: Advanced IP routing and network device configuration tools
|
|
|
|
-Summary(ja): IP ルーティング,ネットワークデバイスの設定ツール
|
|
|
|
-Name: iproute
|
|
|
|
-Version: 4.14.1
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
-Group: Applications/System
|
|
|
|
-Source: https://kernel.org/pub/linux/utils/net/%{name}2/%{name}2-%{version}.tar.xz
|
|
|
|
-URL: http://kernel.org/pub/linux/utils/net/%{name}2/
|
|
|
|
-Source1: cbq-0000.example
|
|
|
|
-Source2: avpkt
|
|
|
|
-
|
|
|
|
-Vendor: Project Vine
|
|
|
|
-Distribution: Vine Linux
|
|
|
|
|
|
|
|
-# http://www.spinics.net/lists/netdev/msg325114.html
|
|
+Summary: Advanced IP routing and network device configuration tools
|
|
-Patch1: iproute2-3.19.0-docs.patch
|
|
+Summary(ja): IP ルーティング,ネットワークデバイスの設定ツール
|
|
|
|
+Name: iproute
|
|
|
|
+Version: 5.6.0
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
+Group: Applications/System
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
|
|
-# VINE
|
|
+License: GPLv2+ and Public Domain
|
|
-Patch100: iproute2-3.14.0-platex.patch
|
|
+URL: https://wiki.linuxfoundation.org/networking/iproute2
|
|
|
|
+Source: https://kernel.org/pub/linux/utils/net/%{name}2/%{name}2-%{version}.tar.xz
|
|
|
|
|
|
-License: GPLv2+ and Public Domain
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: bison flex
|
|
BuildRequires: bison flex
|
|
BuildRequires: iptables-devel >= 1.4.10, libdb-devel
|
|
BuildRequires: iptables-devel >= 1.4.10, libdb-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig
|
|
-%if %{with texdoc}
|
|
|
|
-BuildRequires: texlive-collection-fontsrecommended
|
|
|
|
-BuildRequires: texlive-collection-latexrecommended
|
|
|
|
-BuildRequires: texlive-collection-langafrican
|
|
|
|
-BuildRequires: texlive-collection-langarabic
|
|
|
|
-BuildRequires: texlive-collection-langchinese
|
|
|
|
-BuildRequires: texlive-collection-langczechslovak
|
|
|
|
-BuildRequires: texlive-collection-langenglish
|
|
|
|
-BuildRequires: texlive-collection-langeuropean
|
|
|
|
-BuildRequires: texlive-collection-langfrench
|
|
|
|
-BuildRequires: texlive-collection-langindic
|
|
|
|
-BuildRequires: texlive-collection-langitalian
|
|
|
|
-BuildRequires: texlive-collection-langkorean
|
|
|
|
-BuildRequires: texlive-collection-langpolish
|
|
|
|
-BuildRequires: texlive-collection-langportuguese
|
|
|
|
-BuildRequires: texlive-collection-langspanish
|
|
|
|
-BuildRequires: texlive-collection-langother
|
|
|
|
-BuildRequires: linuxdoc-tools psutils
|
|
|
|
-%endif
|
|
|
|
%if %{with tipc}
|
|
%if %{with tipc}
|
|
BuildRequires: libmnl-devel
|
|
BuildRequires: libmnl-devel
|
|
%endif
|
|
%endif
|
|
@@ -53,14 +24,13 @@ BuildRequires: libmnl-devel
|
|
Requires: iptables >= 1.4.10
|
|
Requires: iptables >= 1.4.10
|
|
|
|
|
|
%description
|
|
%description
|
|
-The iproute package contains networking utilities (ip and rtmon, for
|
|
+The iproute package contains networking utilities (ip and rtmon, for example)
|
|
-example) which are designed to use the advanced networking
|
|
+which are designed to use the advanced networking capabilities of the Linux
|
|
-capabilities of the Linux 2.4.x and 2.6.x kernel.
|
|
+kernel.
|
|
|
|
|
|
%description -l ja
|
|
%description -l ja
|
|
-このiprouteパッケージには、カーネル 2.4.x または 2.6.x の進歩した
|
|
+ このiprouteパッケージには、進歩したカーネルのネットワーク技術を使うように
|
|
-ネットワーク技術を使うように設計された、ネットワーキングユーティリ
|
|
+設計されたネットワーキングユーティリティ(ip, rtmon等々)が収録されています。
|
|
-ティ(ip, rtmon等々)が収録されています。
|
|
|
|
|
|
|
|
%package doc
|
|
%package doc
|
|
Summary: ip and tc documentation with examples
|
|
Summary: ip and tc documentation with examples
|
|
@@ -80,13 +50,20 @@ Requires: %{name} = %{version}
|
|
%description devel
|
|
%description devel
|
|
Libraries, include files, etc you can use to develop iproute2.
|
|
Libraries, include files, etc you can use to develop iproute2.
|
|
|
|
|
|
|
|
+%package -n arpd
|
|
|
|
+Summary: arpd - userspace arp daemon
|
|
|
|
+Summary(ja): arpd - ユーザー空間のarpデーモン
|
|
|
|
+Group: Applications/System
|
|
|
|
+Requires: %{name} = %{version}
|
|
|
|
+
|
|
|
|
+%description -n arpd
|
|
|
|
+ The arpd daemon collects gratuitous ARP information, saving it on local
|
|
|
|
+disk and feeding it to the kernel on demand to avoid redundant broad
|
|
|
|
+casting due to limited size of the kernel ARP cache.
|
|
|
|
+
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n iproute2-%{version}
|
|
%setup -q -n iproute2-%{version}
|
|
-%if %{with texdoc}
|
|
|
|
-%patch1 -p1 -b .doc
|
|
|
|
-%patch100 -p1 -b .platex
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
export CFLAGS="%{optflags}"
|
|
@@ -94,89 +71,26 @@ export LIBDIR=/%{_libdir}
|
|
export IPT_LIB_DIR=/%{_lib}/xtables
|
|
export IPT_LIB_DIR=/%{_lib}/xtables
|
|
./configure
|
|
./configure
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
-%if %{with texdoc}
|
|
|
|
-#make -C doc
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-mkdir -p \
|
|
+export DESTDIR='%{buildroot}'
|
|
- %{buildroot}%{_includedir} \
|
|
+export SBINDIR='%{_sbindir}'
|
|
- %{buildroot}/sbin \
|
|
+export MANDIR='%{_mandir}'
|
|
- %{buildroot}%{_sbindir} \
|
|
+export LIBDIR='%{_libdir}'
|
|
- %{buildroot}%{_mandir}/man3 \
|
|
+export CONFDIR='%{_sysconfdir}/iproute2'
|
|
- %{buildroot}%{_mandir}/man7 \
|
|
+export DOCDIR='%{_docdir}'
|
|
- %{buildroot}%{_mandir}/man8 \
|
|
+make install
|
|
- %{buildroot}%{_libdir}/tc \
|
|
+
|
|
- %{buildroot}%{_sysconfdir}/iproute2/{rt_protos.d,rt_tables.d} \
|
|
+mkdir -p %{buildroot}/sbin
|
|
- %{buildroot}%{_sysconfdir}/sysconfig/cbq
|
|
+for f in ifcfg ip rtmon tc; do
|
|
-
|
|
+ mv -f %{buildroot}%{_sbindir}/$f %{buildroot}/sbin/
|
|
-for binary in \
|
|
|
|
- ip/ifcfg \
|
|
|
|
- ip/ip \
|
|
|
|
- ip/rtmon \
|
|
|
|
- tc/tc
|
|
|
|
- do install -m755 ${binary} %{buildroot}/sbin/
|
|
|
|
-done
|
|
|
|
-
|
|
|
|
-install -m755 examples/cbq.init-%{cbq_version} %{buildroot}/sbin/cbq
|
|
|
|
-
|
|
|
|
-for binary in \
|
|
|
|
- bridge/bridge \
|
|
|
|
- genl/genl \
|
|
|
|
- ip/routef \
|
|
|
|
- ip/routel \
|
|
|
|
- ip/rtpr \
|
|
|
|
-%if %{with tipc}
|
|
|
|
- tipc/tipc \
|
|
|
|
-%endif
|
|
|
|
- misc/arpd \
|
|
|
|
- misc/ifstat \
|
|
|
|
- misc/lnstat \
|
|
|
|
- misc/nstat \
|
|
|
|
- misc/rtacct \
|
|
|
|
- misc/ss
|
|
|
|
- do install -m755 ${binary} %{buildroot}%{_sbindir}
|
|
|
|
done
|
|
done
|
|
|
|
|
|
-cd %{buildroot}%{_sbindir}
|
|
|
|
- ln -s lnstat ctstat
|
|
|
|
- ln -s lnstat rtstat
|
|
|
|
-cd -
|
|
|
|
-
|
|
|
|
-# Libs
|
|
|
|
-install -m644 netem/*.dist %{buildroot}%{_libdir}/tc
|
|
|
|
-install -m755 tc/m_xt.so %{buildroot}%{_libdir}/tc
|
|
|
|
-cd %{buildroot}%{_libdir}/tc
|
|
|
|
- ln -s m_xt.so m_ipt.so
|
|
|
|
-cd -
|
|
|
|
-
|
|
|
|
# libnetlink
|
|
# libnetlink
|
|
-install -m644 include/libnetlink.h %{buildroot}%{_includedir}
|
|
+install -D -m644 include/libnetlink.h %{buildroot}%{_includedir}/libnetlink.h
|
|
-install -m644 lib/libnetlink.a %{buildroot}%{_libdir}
|
|
+install -D -m644 lib/libnetlink.a %{buildroot}%{_libdir}/libnetlink.a
|
|
-
|
|
|
|
-# Manpages
|
|
|
|
-iconv -f latin1 -t utf8 man/man8/ss.8 > man/man8/ss.8.utf8 &&
|
|
|
|
- mv man/man8/ss.8.utf8 man/man8/ss.8
|
|
|
|
-install -m644 man/man3/*.3 %{buildroot}%{_mandir}/man3
|
|
|
|
-install -m644 man/man7/*.7 %{buildroot}%{_mandir}/man7
|
|
|
|
-install -m644 man/man8/*.8 %{buildroot}%{_mandir}/man8
|
|
|
|
-
|
|
|
|
-# Config files
|
|
|
|
-for f in `find etc/iproute2/ -maxdepth 1 -type f`;
|
|
|
|
- do install -m644 $f %{buildroot}%{_sysconfdir}/iproute2
|
|
|
|
-done
|
|
|
|
-
|
|
|
|
-install -m644 etc/iproute2/rt_protos.d/* %{buildroot}%{_sysconfdir}/iproute2/rt_protos.d/
|
|
|
|
-
|
|
|
|
-install -m644 etc/iproute2/rt_tables.d/* %{buildroot}%{_sysconfdir}/iproute2/rt_tables.d/
|
|
|
|
-
|
|
|
|
-for config in \
|
|
|
|
- %{SOURCE1} \
|
|
|
|
- %{SOURCE2}
|
|
|
|
- do install -m644 ${config} %{buildroot}%{_sysconfdir}/sysconfig/cbq
|
|
|
|
-done
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
@@ -184,44 +98,48 @@ done
|
|
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
|
|
+%license COPYING
|
|
|
|
+%doc README
|
|
%dir %{_sysconfdir}/iproute2
|
|
%dir %{_sysconfdir}/iproute2
|
|
-%dir %{_sysconfdir}/iproute2/rt_protos.d
|
|
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/*
|
|
-%dir %{_sysconfdir}/iproute2/rt_tables.d
|
|
|
|
-%doc COPYING
|
|
|
|
-%doc README README.decnet README.iproute2+tc README.distribution README.lnstat
|
|
|
|
-%{_mandir}/man7/*
|
|
|
|
-%{_mandir}/man8/*
|
|
|
|
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/bpf_pinning
|
|
|
|
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/ematch_map
|
|
|
|
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/group
|
|
|
|
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/nl_protos
|
|
|
|
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/rt_dsfield
|
|
|
|
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/rt_protos
|
|
|
|
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/rt_realms
|
|
|
|
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/rt_scopes
|
|
|
|
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/rt_tables
|
|
|
|
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/rt_protos.d/*
|
|
|
|
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/rt_tables.d/*
|
|
|
|
/sbin/*
|
|
/sbin/*
|
|
%{_sbindir}/*
|
|
%{_sbindir}/*
|
|
|
|
+%exclude %{_sbindir}/arpd
|
|
%dir %{_libdir}/tc/
|
|
%dir %{_libdir}/tc/
|
|
%{_libdir}/tc/*
|
|
%{_libdir}/tc/*
|
|
-%dir %{_sysconfdir}/sysconfig/cbq
|
|
+%dir %{_datadir}/bash-completion
|
|
-%config(noreplace) %{_sysconfdir}/sysconfig/cbq/*
|
|
+%dir %{_datadir}/bash-completion/completions
|
|
|
|
+%{_datadir}/bash-completion/completions/tc
|
|
|
|
+%{_mandir}/man7/*
|
|
|
|
+%{_mandir}/man8/*
|
|
|
|
+%exclude %{_mandir}/man8/arpd.8*
|
|
|
|
|
|
%files doc
|
|
%files doc
|
|
-%doc COPYING
|
|
+%license COPYING
|
|
%doc doc/*
|
|
%doc doc/*
|
|
%doc examples
|
|
%doc examples
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
-%doc COPYING
|
|
+%license COPYING
|
|
%{_mandir}/man3/*
|
|
%{_mandir}/man3/*
|
|
%{_libdir}/libnetlink.a
|
|
%{_libdir}/libnetlink.a
|
|
%{_includedir}/libnetlink.h
|
|
%{_includedir}/libnetlink.h
|
|
|
|
+%{_includedir}/iproute2/bpf_elf.h
|
|
|
|
+
|
|
|
|
+%files -n arpd
|
|
|
|
+%license COPYING
|
|
|
|
+%{_sbindir}/arpd
|
|
|
|
+%{_mandir}/man8/arpd.8*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Apr 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.6.0-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- dropped Source1 and 2.
|
|
|
|
+- dropped Patch1 and 100.
|
|
|
|
+- added a new subpackage "arpd".
|
|
|
|
+- modified %%description.
|
|
|
|
+
|
|
* Sat Feb 24 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.14.1-2
|
|
* Sat Feb 24 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.14.1-2
|
|
- rebuilt with iptables-1.6.
|
|
- rebuilt with iptables-1.6.
|
|
|
|
|