ipwatchd/ipwatchd.spec

61 lines
1.7 KiB
RPMSpec
Raw Normal View History

2020-05-14 00:14:17 +08:00
Name: ipwatchd
Version: 1.3.0
2024-03-29 11:16:04 +08:00
Release: 5
2020-05-14 00:14:17 +08:00
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/
2024-03-29 11:16:04 +08:00
Source0: https://github.com/jariq/IPwatchD/archive/v%{version}/%{name}-%{version}.tar.gz
2020-05-14 00:14:17 +08:00
2021-09-10 19:21:58 +08:00
BuildRequires: gcc autoconf automake libnet-devel libpcap-devel systemd chrpath
2020-05-14 00:14:17 +08:00
%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.
%prep
%setup -q -n IPwatchD-%{version}/
%build
%make_build -C src
%install
%make_install -C src DESTDIR=%{buildroot}
2021-09-10 19:21:58 +08:00
chrpath -d %{buildroot}%{_sbindir}/ipwatchd
2020-05-14 00:14:17 +08:00
install -d %{buildroot}/%{_unitdir}
mv %{buildroot}/lib/systemd/system/* %{buildroot}/%{_unitdir}
%pre
%preun
%systemd_preun ipwatchd.service
%post
%systemd_post ipwatchd.service
%postun
%systemd_postun_with_restart ipwatchd.service
%check
%files
%license LICENSE
%doc INSTALL README.md
%config(noreplace) %{_sysconfdir}/ipwatchd.conf
%{_unitdir}/ipwatchd.service
%{_sbindir}/*
%{_mandir}/*
%changelog
2024-03-29 11:16:04 +08:00
* Fri Mar 29 2024 Ge Wang <wang__ge@126.com> - 1.3.0-5
- fix source url
* Fri Sep 10 2021 Pengju Jiang <jiangpengju2@huawei.com> - 1.3.0-4
2021-09-10 19:21:58 +08:00
- solve the rpath problem
2024-03-29 11:16:04 +08:00
* Mon Jun 07 2021 wulei <wulei80@huawei.com> - 1.3.0-3
2021-06-07 10:57:25 +08:00
- fixes failed: File must begin with "/": %{_unitdir}/ipwatchd.server
2024-03-29 11:16:04 +08:00
* Tue Oct 13 2020 liqingqing_1229 <liqingqing3@huawei.com> - 1.3.0-2
2020-10-13 15:45:15 +08:00
- update source0
2024-03-29 11:16:04 +08:00
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com> - 1.3.0-1
2020-05-14 00:14:17 +08:00
- Package init