fix rpatn problem

This commit is contained in:
jiangpengjuj 2021-09-10 19:21:58 +08:00
parent 4aad29cabf
commit ad52ecd296

View File

@ -1,14 +1,12 @@
#%global debug_package %{nil}
Name: ipwatchd
Version: 1.3.0
Release: 3
Release: 4
Summary: IPwatchD is a simple daemon that analyses all incoming ARP packets in order to detect IP conflicts on Linux
License: GPLv2
URL: https://ipwatchd.sourceforge.io/
Source0: https://github.com/jariq/IPwatchD/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc autoconf automake libnet-devel libpcap-devel systemd
BuildRequires: gcc autoconf automake libnet-devel libpcap-devel systemd chrpath
%description
IPwatchD can be configured to listen on one or more interfaces (alias interfaces are also supported) in active or passive mode. In active mode it protects your host before IP takeover by answering Gratuitous ARP requests received from conflicting system. In passive mode it just records information about conflict through standard syslog interface.
@ -21,6 +19,7 @@ IPwatchD can be configured to listen on one or more interfaces (alias interfaces
%install
%make_install -C src DESTDIR=%{buildroot}
chrpath -d %{buildroot}%{_sbindir}/ipwatchd
install -d %{buildroot}/%{_unitdir}
mv %{buildroot}/lib/systemd/system/* %{buildroot}/%{_unitdir}
@ -44,6 +43,9 @@ mv %{buildroot}/lib/systemd/system/* %{buildroot}/%{_unitdir}
%changelog
* Fri Sep 10 2021 Pengju Jiang <jiangpengju2@huawei.com>
- solve the rpath problem
* Mon Jun 07 2021 wulei <wulei80@huawei.com>
- fixes failed: File must begin with "/": %{_unitdir}/ipwatchd.server