From 7805c452c811644ca7ae82fab6b134ed6129c5193b7a9b57ad0a8e44d8fa8f30 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 17 Dec 2018 16:00:59 +0000 Subject: [PATCH] Accepting request 658755 from home:mnhauke:network Initial package for ndppd OBS-URL: https://build.opensuse.org/request/show/658755 OBS-URL: https://build.opensuse.org/package/show/network/ndppd?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ _service | 14 ++++++++ _servicedata | 4 +++ ndppd-0.2.5.43.tar.xz | 3 ++ ndppd-tmpfiles.conf | 2 ++ ndppd.changes | 4 +++ ndppd.spec | 84 +++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 _servicedata create mode 100644 ndppd-0.2.5.43.tar.xz create mode 100644 ndppd-tmpfiles.conf create mode 100644 ndppd.changes create mode 100644 ndppd.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..0c4a202 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + git + https://github.com/DanielAdolfsson/ndppd.git + @PARENT_TAG@.@TAG_OFFSET@ + enable + + + *.tar + xz + + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..4c263af --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/DanielAdolfsson/ndppd.git + 8ed532809f67b003d2481a8237b0178dcfbe22cf \ No newline at end of file diff --git a/ndppd-0.2.5.43.tar.xz b/ndppd-0.2.5.43.tar.xz new file mode 100644 index 0000000..94cbbe8 --- /dev/null +++ b/ndppd-0.2.5.43.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a153959e7d56967c733adb36379bb56bc8b78df60daef2f0aacaa9153398d1b +size 38744 diff --git a/ndppd-tmpfiles.conf b/ndppd-tmpfiles.conf new file mode 100644 index 0000000..962ff14 --- /dev/null +++ b/ndppd-tmpfiles.conf @@ -0,0 +1,2 @@ +d /run/ndppd 0755 root root + diff --git a/ndppd.changes b/ndppd.changes new file mode 100644 index 0000000..6102bb9 --- /dev/null +++ b/ndppd.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Dec 16 09:49:04 UTC 2018 - mardnh@gmx.de + +- Initial package, version 0.2.5.43 diff --git a/ndppd.spec b/ndppd.spec new file mode 100644 index 0000000..e06894c --- /dev/null +++ b/ndppd.spec @@ -0,0 +1,84 @@ +# +# spec file for package ndppd +# +# Copyright (c) 2018, Martin Hauke +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: ndppd +Version: 0.2.5.43 +Release: 0 +Summary: NDP Proxy Daemon +License: GPL-3.0-or-later +Group: Productivity/Networking/System +URL: https://github.com/DanielAdolfsson/ndppd +#Git-Clone: https://github.com/DanielAdolfsson/ndppd.git +#Source: https://github.com/DanielAdolfsson/%%{name}/archive/%%{version}.tar.gz#/%%{name}-%%{version}.tar.gz +Source: %{name}-%{version}.tar.xz +Source1: ndppd-tmpfiles.conf +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: systemd-rpm-macros +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(libnl-3.0) +%{?systemd_requires} + +%description +ndppd is a daemon that proxies certain IPv6 NDP messages between two or more +interfaces. It currently supports proxying Neighbor Solicitation Messages +and Neighbor Advertisement messages in order to allow IPv6 routing without +relying on Linux "proxy_ndp". + +The daemon is partially compliant with (experimental) RFC4389. + +%prep +%setup -q + +%build +export CXXFLAGS='%{optflags}' +make %{?_smp_mflags} + +%install +make install PREFIX=%{_prefix} DESTDIR=%{buildroot} +install -D -m0644 %{SOURCE1} %{buildroot}/%{_tmpfilesdir}/%{name}.conf +install -D -m0644 ndppd.service %{buildroot}%{_unitdir}/%{name}.service +install -D -m0644 ndppd.conf-dist %{buildroot}%{_sysconfdir}/ndppd.conf +ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcndppd + +%pre +%service_add_pre %{name}.service + +%post +%service_add_post %{name}.service +%tmpfiles_create %{_tmpfilesdir}/%{name}.conf + +%preun +%service_del_preun %{name}.service + +%postun +%service_del_postun %{name}.service + +%files +%license LICENSE +%doc ChangeLog README +%config %{_sysconfdir}/ndppd.conf +%{_sbindir}/ndppd +%{_sbindir}/rcndppd +%{_mandir}/man1/ndppd.1%{?ext_man} +%{_mandir}/man5/ndppd.conf.5%{?ext_man} +%{_tmpfilesdir}/%{name}.conf +%dir %attr(-,root,root) %ghost %{_rundir}/%{name} +%{_unitdir}/%{name}.service + +%changelog