From ad52ecd2966be30aa9911458611abe438218a544 Mon Sep 17 00:00:00 2001 From: jiangpengjuj Date: Fri, 10 Sep 2021 19:21:58 +0800 Subject: [PATCH] fix rpatn problem --- ipwatchd.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ipwatchd.spec b/ipwatchd.spec index abd5391..b88f482 100644 --- a/ipwatchd.spec +++ b/ipwatchd.spec @@ -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 +- solve the rpath problem + * Mon Jun 07 2021 wulei - fixes failed: File must begin with "/": %{_unitdir}/ipwatchd.server