!1 init package

Merge pull request !1 from myeuler/master
This commit is contained in:
openeuler-ci-bot 2020-06-03 18:26:10 +08:00 committed by Gitee
commit 8eb16654f5
2 changed files with 49 additions and 0 deletions

BIN
ipwatchd-1.3.0.tar.gz Normal file

Binary file not shown.

49
ipwatchd.spec Normal file
View File

@ -0,0 +1,49 @@
#%global debug_package %{nil}
Name: ipwatchd
Version: 1.3.0
Release: 1
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://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/%{name}-%{version}.tar.gz
BuildRequires: gcc autoconf automake libnet-devel libpcap-devel
%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}
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
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init