Initialize for libndp

This commit is contained in:
zyppe 2024-02-28 21:32:28 +08:00
commit b118f1f99f
4 changed files with 105 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
libndp-1.6.tar.gz

1
.libndp.metadata Normal file
View file

@ -0,0 +1 @@
0b9f5eea5d3c64ac112318c1285df4e666bd5ce54f0669689e355d036b04157c libndp-1.6.tar.gz

30
libndp.changes Normal file
View file

@ -0,0 +1,30 @@
* Sun May 22 2016 mpluskal@suse.com
- Update to version 1.6 (bsc#979645 CVE-2016-3698):
* libndp: reject redirect and router advertisements from
non-link-local
* libndp: validate the IPv6 hop limit
- Changes for version 1.5:
* ndptool: validate the IPv6 hop limit
- Small spec file adjustement:
* Used spec-cleaner
* Make building more verbose
* Update describtion of subpackages
* Use correct cathegory for subpackage
* Mon Jan 5 2015 dimstar@opensuse.org
- Update to version 1.4:
+ libndp: fix buffer overflow in ndp_msg_opt_dnssl_domain().
* Wed Jul 9 2014 dimstar@opensuse.org
- Update to version 1.3:
+ libndp: fix [cppcheck] Undefined behavior: Variable 'buf' is
used as parameter and destination in s[n]printf().
- No longer bootstrap: the tarball is complete.
- Remove libtool, automake and autoconf BuildRequires: no longer
needed.
* Wed Jul 9 2014 dimstar@opensuse.org
- Minor cleanups for inclusion into Factory:
+ Shared Library packages must only contain libraries (move
binary file and man page to main package).
+ Adjust RPM Groups: Productivity/Networking/Other for the main
package and System/Libraries for the shared library package.
* Sat Feb 8 2014 meissner@suse.com
- library for neighbour discovery, for later use by NetworkManager

73
libndp.spec Normal file
View file

@ -0,0 +1,73 @@
#
# spec file for package libndp
#
# Copyright (c) 2022-2023 ZhuningOS
#
Name: libndp
Version: 1.6
Release: 1.26
Summary: Library for Neighbor Discovery Protocol
License: LGPL-2.1+
Group: Productivity/Networking/Other
Url: http://www.libndp.org/
Source: http://www.libndp.org/files/libndp-%{version}.tar.gz
BuildRequires: pkgconfig
%description
This package contains a library which provides a wrapper for IPv6 Neighbor
Discovery Protocol. It also provides a tool named ndptool for sending and
receiving NDP messages.
%package -n libndp0
Summary: Libraries and header files for libndp development
Group: System/Libraries
%description -n libndp0
This package contains a library which provides a wrapper for IPv6 Neighbor
Discovery Protocol.
%package devel
Summary: Libraries and header files for libndp development
Group: Development/Libraries/C and C++
Requires: libndp0 = %{version}
%description devel
The libndp-devel package contains the header files necessary for developing
programs using libndp.
%prep
%setup -q
%build
%configure \
--disable-static
make %{?_smp_mflags} V=1
%install
make install DESTDIR=%{buildroot} INSTALL="install -p"
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libndp0 -p /sbin/ldconfig
%postun -n libndp0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/ndptool
%{_mandir}/man8/ndptool.8%{?ext_man}
%files -n libndp0
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libndp.so.*
%files devel
%defattr(-,root,root)
%doc COPYING
%{_includedir}/ndp.h
%{_libdir}/libndp.so
%{_libdir}/pkgconfig/libndp.pc
%changelog