SHA256
1
0
forked from pool/ndppd

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
This commit is contained in:
Marcus Meissner 2018-12-17 16:00:59 +00:00 committed by Git OBS Bridge
commit 7805c452c8
7 changed files with 134 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/DanielAdolfsson/ndppd.git</param>
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/DanielAdolfsson/ndppd.git</param>
<param name="changesrevision">8ed532809f67b003d2481a8237b0178dcfbe22cf</param></service></servicedata>

3
ndppd-0.2.5.43.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2a153959e7d56967c733adb36379bb56bc8b78df60daef2f0aacaa9153398d1b
size 38744

2
ndppd-tmpfiles.conf Normal file
View File

@ -0,0 +1,2 @@
d /run/ndppd 0755 root root

4
ndppd.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sun Dec 16 09:49:04 UTC 2018 - mardnh@gmx.de
- Initial package, version 0.2.5.43

84
ndppd.spec Normal file
View File

@ -0,0 +1,84 @@
#
# spec file for package ndppd
#
# Copyright (c) 2018, Martin Hauke <mardnh@gmx.de>
#
# 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