From b118f1f99f36393697d12fa50154d94802cbe69a Mon Sep 17 00:00:00 2001 From: zyppe <210hcl@gmail.com> Date: Wed, 28 Feb 2024 21:32:28 +0800 Subject: [PATCH] Initialize for libndp --- .gitignore | 1 + .libndp.metadata | 1 + libndp.changes | 30 ++++++++++++++++++++ libndp.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 .gitignore create mode 100644 .libndp.metadata create mode 100644 libndp.changes create mode 100644 libndp.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2b841a9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +libndp-1.6.tar.gz diff --git a/.libndp.metadata b/.libndp.metadata new file mode 100644 index 0000000..14bd0b1 --- /dev/null +++ b/.libndp.metadata @@ -0,0 +1 @@ +0b9f5eea5d3c64ac112318c1285df4e666bd5ce54f0669689e355d036b04157c libndp-1.6.tar.gz diff --git a/libndp.changes b/libndp.changes new file mode 100644 index 0000000..2df4060 --- /dev/null +++ b/libndp.changes @@ -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 diff --git a/libndp.spec b/libndp.spec new file mode 100644 index 0000000..4a1a19b --- /dev/null +++ b/libndp.spec @@ -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