arp-ethers.service systemd unit file. Don't ship /etc/ethers (#713759)
This commit is contained in:
parent
d6dc1444ab
commit
d1a18e2bc0
15
arp-ethers.service
Normal file
15
arp-ethers.service
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Load static arp entries
|
||||||
|
ConditionPathExists=/etc/ethers
|
||||||
|
DefaultDependencies=no
|
||||||
|
After=shutdown.target
|
||||||
|
Wants=network.target
|
||||||
|
Before=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/sbin/arp -f /etc/ethers
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=network.target
|
@ -1,10 +1,11 @@
|
|||||||
Summary: Basic networking tools
|
Summary: Basic networking tools
|
||||||
Name: net-tools
|
Name: net-tools
|
||||||
Version: 1.60
|
Version: 1.60
|
||||||
Release: 120%{?dist}
|
Release: 121%{?dist}
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://net-tools.berlios.de/
|
URL: http://net-tools.berlios.de/
|
||||||
|
|
||||||
Source0: http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-%{version}.tar.bz2
|
Source0: http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-%{version}.tar.bz2
|
||||||
Source1: net-tools-%{version}-config.h
|
Source1: net-tools-%{version}-config.h
|
||||||
Source2: net-tools-%{version}-config.make
|
Source2: net-tools-%{version}-config.make
|
||||||
@ -14,6 +15,8 @@ Source5: mii-diag.c
|
|||||||
Source6: mii-diag.8
|
Source6: mii-diag.8
|
||||||
Source7: iptunnel.8
|
Source7: iptunnel.8
|
||||||
Source8: ipmaddr.8
|
Source8: ipmaddr.8
|
||||||
|
Source9: arp-ethers.service
|
||||||
|
|
||||||
Patch1: net-tools-1.57-bug22040.patch
|
Patch1: net-tools-1.57-bug22040.patch
|
||||||
Patch2: net-tools-1.60-miiioctl.patch
|
Patch2: net-tools-1.60-miiioctl.patch
|
||||||
Patch3: net-tools-1.60-manydevs.patch
|
Patch3: net-tools-1.60-manydevs.patch
|
||||||
@ -144,8 +147,9 @@ Patch94: net-tools-1.60-coverity.patch
|
|||||||
|
|
||||||
BuildRequires: gettext, libselinux
|
BuildRequires: gettext, libselinux
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
|
BuildRequires: systemd-units
|
||||||
Requires: hostname
|
Requires: hostname
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Requires(post): systemd-units
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The net-tools package contains basic networking tools,
|
The net-tools package contains basic networking tools,
|
||||||
@ -312,14 +316,18 @@ rm -rf %{buildroot}%{_mandir}/fr/man1
|
|||||||
rm -rf %{buildroot}%{_mandir}/man1
|
rm -rf %{buildroot}%{_mandir}/man1
|
||||||
rm -rf %{buildroot}%{_mandir}/pt/man1
|
rm -rf %{buildroot}%{_mandir}/pt/man1
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}
|
# install systemd unit file
|
||||||
touch %{buildroot}%{_sysconfdir}/ethers
|
mkdir -p %{buildroot}%{_unitdir}
|
||||||
echo "# see man ethers for syntax" > %{buildroot}%{_sysconfdir}/ethers
|
install -m 644 %{SOURCE9} %{buildroot}%{_unitdir}
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%clean
|
%post
|
||||||
rm -rf %{buildroot}
|
# Initial installation
|
||||||
|
if [ $1 -eq 1 ] ; then
|
||||||
|
/bin/systemctl enable arp-ethers.service >/dev/null 2>&1 || :
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -330,9 +338,13 @@ rm -rf %{buildroot}
|
|||||||
%lang(de) %{_mandir}/de/man[58]/*
|
%lang(de) %{_mandir}/de/man[58]/*
|
||||||
%lang(fr) %{_mandir}/fr/man[58]/*
|
%lang(fr) %{_mandir}/fr/man[58]/*
|
||||||
%lang(pt) %{_mandir}/pt/man[58]/*
|
%lang(pt) %{_mandir}/pt/man[58]/*
|
||||||
%config(noreplace) %{_sysconfdir}/ethers
|
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 17 2011 Jiri Popelka <jpopelka@redhat.com> - 1.60-121
|
||||||
|
- Added arp-ethers.service systemd unit file to run 'arp -f /etc/ethers'
|
||||||
|
on startup of system. Don't ship default /etc/ethers (#713759)
|
||||||
|
|
||||||
* Wed May 25 2011 Jiri Popelka <jpopelka@redhat.com> - 1.60-120
|
* Wed May 25 2011 Jiri Popelka <jpopelka@redhat.com> - 1.60-120
|
||||||
- Do not mention /proc/net/socket in ifconfig(8) (#661905)
|
- Do not mention /proc/net/socket in ifconfig(8) (#661905)
|
||||||
- Merge all 'man page only fix' patches into net-tools-1.60-man.patch
|
- Merge all 'man page only fix' patches into net-tools-1.60-man.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user