Name:		ndisc6
Version:	1.0.7
Release:	2
Summary:	IPv6 diagnostic tools
License:	GPLv2 or GPLv3
URL:		http://www.remlab.net/ndisc6
Source0:	http://www.remlab.net/files/ndisc6/%{name}-%{version}.tar.bz2

Patch0:    	bugfix-add-self-mac-check.patch
Patch1:    	bugfix-add-SO_BINDTODEVICE.patch
Patch2:         backport-Fix-potential-integer-overflow-in-parsednssl.patch

BuildRequires:	gcc perl-generators

%description
NDisc6 is a small collection of useful tools for IPv6 networking.
It includes the follwing programs :
 - ndisc6: ICMPv6 Neighbor Discovery tool
 - rdisc6: ICMPv6 Router Discovery tool
 - tcptraceroute6: lightweight IPv6 tcptraceroute
 - traceroute6: IPv6 traceroute
 - rdnssd: Recursive DNS Servers discovery Daemon

%package_help

%prep
%autosetup -n %{name}-%{version} -p1

%build
%configure --disable-suid-install
%make_build

%install
%make_install

%files
%defattr(-,root,root)
%doc AUTHORS README 
%license COPYING 
%{_sysconfdir}/rdnssd
%{_bindir}/*
%{_sbindir}/*
%{_datadir}/locale/*

%files         help
%defattr(-,root,root)
%doc ChangeLog NEWS
%{_mandir}/man*

%changelog
* Tue Jan 7 2025 yinbin <yinbin8@huawei.com> - 1.0.7-2
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: Fix potential integer overflow in parsednssl

* Thu Feb 1 2024 liubo <liubo335@huawei.com> - 1.0.7-1
- Type: requirement
- ID: NA
- SUG: NA
- DESC: update to version 1.0.7

* Mon Jan 9 2023 caofei <caofei@xfusion.com> - 1.0.4-7
- Type:bugfix
- CVE:NA
- SUG:restart
- DESC: Update NEWS

* Sat Jan 7 2023 caofei <caofei@xfusion.com> - 1.0.4-6
- Type:bugfix
- CVE:NA
- SUG:restart
- DESC: Update AUTHORS

* Fri Nov 11 2022 gaoxingwang <gaoxingwang1@huawei.com> - 1.0.4-5
- Type:bugfix
- CVE:NA
- SUG:restart
- DESC: rdnssd: remove unused parameter

* Fri Apr 29 2022 gaoxingwang <gaoxingwang1@huawei.com> - 1.0.4-4
- Type:bugfix
- CVE:NA
- SUG:restart
- DESC: rebuild ndisc6

* Tue Apr 5 2022 gaoxingwang <gaoxingwang@huawei.com> - 1.0.4-3
- Type:bugfix
- CVE:NA
- SUG:restart
- DESC: add self mac check and fix issue in VRF

* Mon Oct 19 2020 orange-snn <songnannan2@huawei.com> - 1.0.4-2
- change the spec name to ndisc6 from ndisc

* Sun Jan 7 2018 openEuler Buildteam <buildteam@openeuler.org> - 1.0.4-1
- Package init