]> git.pld-linux.org Git - packages/iproute2.git/commitdiff
package /var/run/netns dir. used with `ip netns` command auto/th/iproute2-3.12.0-3
authorElan Ruusamäe <glen@delfi.ee>
Sat, 23 Nov 2013 11:18:08 +0000 (13:18 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 23 Nov 2013 11:18:08 +0000 (13:18 +0200)
iproute2.spec
iproute2.tmpfiles [new file with mode: 0644]

index efb232617816d8f9b19a79ee17aa266cbfb61c35..f42afb63825c4e0ae520356f610bbbc2b578e445 100644 (file)
@@ -16,11 +16,12 @@ Summary(pl.UTF-8):  Narzędzie do konfigurowania sieci
 Summary(pt_BR.UTF-8):  Ferramentas para roteamento avançado e configuração de interfaces de rede
 Name:          iproute2
 Version:       3.12.0
-Release:       2
+Release:       3
 License:       GPL v2+
 Group:         Networking/Admin
 Source0:       https://www.kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.xz
 # Source0-md5: f87386aaaecafab95607fd10e8152c68
+Source1:       iproute2.tmpfiles
 Patch0:                %{name}-arp.patch
 Patch1:                %{name}-iptables.patch
 Patch2:                %{name}-iptables64.patch
@@ -154,7 +155,7 @@ Dokumentacja do iproute zawiera "howto" oraz przykłady ustawień.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_includedir}
+install -d $RPM_BUILD_ROOT{%{_includedir},/var/run/netns,%{systemdtmpfilesdir}}
 
 %{__make} install \
        LIBDIR=%{_libdir} \
@@ -166,8 +167,10 @@ install -Dp man/man7/tc-hfsc.7 $RPM_BUILD_ROOT%{_mandir}/man7/tc-hfsc.7
 # arpd is not packaged here
 %{__rm} $RPM_BUILD_ROOT%{_sbindir}/arpd $RPM_BUILD_ROOT%{_mandir}/man8/arpd.8
 
-cp -a lib/libnetlink.a $RPM_BUILD_ROOT%{_libdir}
-cp -a include/libnetlink.h $RPM_BUILD_ROOT%{_includedir}
+cp -p lib/libnetlink.a $RPM_BUILD_ROOT%{_libdir}
+cp -p include/libnetlink.h $RPM_BUILD_ROOT%{_includedir}
+
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
 
 %if %{with doc}
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -226,6 +229,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man8/tc.8*
 %{_mandir}/man8/tc-*.8*
 %endif
+%{systemdtmpfilesdir}/%{name}.conf
+%dir %attr(750,root,root) /var/run/netns
 
 %files -n libnetlink-devel
 %defattr(644,root,root,755)
diff --git a/iproute2.tmpfiles b/iproute2.tmpfiles
new file mode 100644 (file)
index 0000000..1edf5d5
--- /dev/null
@@ -0,0 +1 @@
+d /var/run/netns 0755 root root -
This page took 0.042173 seconds and 4 git commands to generate.