From 391ed8236ce91984627701035984807b0aece8eca1a1891071e4be0421df6a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 6 Dec 2018 08:48:58 +0000 Subject: [PATCH] Accepting request 653134 from home:mnhauke:network Initial package for wrapsix OBS-URL: https://build.opensuse.org/request/show/653134 OBS-URL: https://build.opensuse.org/package/show/network/wrapsix?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + wrapsix-0.2.1.tar.bz2 | 3 ++ wrapsix.changes | 24 +++++++++++++ wrapsix.service | 11 ++++++ wrapsix.spec | 78 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 140 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 wrapsix-0.2.1.tar.bz2 create mode 100644 wrapsix.changes create mode 100644 wrapsix.service create mode 100644 wrapsix.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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/wrapsix-0.2.1.tar.bz2 b/wrapsix-0.2.1.tar.bz2 new file mode 100644 index 0000000..392f312 --- /dev/null +++ b/wrapsix-0.2.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f2496dc68210a7f617c196b77ba6de548c5fc8bd0f90a66f6c9e0ec1451696e +size 100408 diff --git a/wrapsix.changes b/wrapsix.changes new file mode 100644 index 0000000..8937879 --- /dev/null +++ b/wrapsix.changes @@ -0,0 +1,24 @@ +------------------------------------------------------------------- +Sun Nov 25 10:36:43 UTC 2018 - mardnh@gmx.de + +- Update to upstream version 0.2.1 +- Specfile cleanup + +------------------------------------------------------------------- +Fri Feb 26 19:31:27 UTC 2016 - michal.hrusecky@opensuse.org + +- update to the latest git snaphot from 2013-07-25 + * contains runtime configuration + * dropped wrapsix-0.2.0-runtime-configuration.patch + +------------------------------------------------------------------- +Fri Feb 26 19:24:18 UTC 2016 - michal.hrusecky@opensuse.org + +- make configuration runtime + * added wrapsix-0.2.0-runtime-configuration.patch + +------------------------------------------------------------------- +Fri Feb 26 19:01:01 UTC 2016 - michal.hrusecky@opensuse.org + +- initial version 0.2.0 + diff --git a/wrapsix.service b/wrapsix.service new file mode 100644 index 0000000..d2851d7 --- /dev/null +++ b/wrapsix.service @@ -0,0 +1,11 @@ +[Unit] +Description=NAT64 implementation +After=syslog.target +WantedBy=network.target + +[Service] +Type=simple +ExecStart=/usr/sbin/wrapsix /etc/wrapsix.conf + +[Install] +WantedBy=multi-user.target diff --git a/wrapsix.spec b/wrapsix.spec new file mode 100644 index 0000000..8221dc9 --- /dev/null +++ b/wrapsix.spec @@ -0,0 +1,78 @@ +# +# spec file for package wrapsix +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 https://bugs.opensuse.org/ +# + + +Name: wrapsix +Version: 0.2.1 +Release: 0 +Summary: Software implementation of NAT64 +License: GPL-3.0-only +Group: System/Daemons +URL: https://www.wrapsix.org/ +#Git-Clone: https://github.com/xHire/wrapsix.git +Source: https://www.wrapsix.org/download/%{name}-%{version}.tar.bz2 +Source1: %{name}.service +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: systemd-rpm-macros +%systemd_requires + +%description +WrapSix is a NAT64. It's implemented in userspace, currently only for Linux. +There isn't any dependency on external library (currently, may change later). + +So far it's the fastest available software implementation of NAT64 – faster +than kernelspace Ecdysis, faster than userspace Tayga. + +%prep +%setup -q + +%build +autoreconf -fi +%configure \ + --docdir="%{_docdir}/%{name}" +make %{?_smp_mflags} + +%install +%make_install +install -d %{buildroot}%{_unitdir} +install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir} +ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} +rm -f %{buildroot}/%{_docdir}/%{name}/{COPYING,NEWS} + +%pre +%service_add_pre %{name}.service + +%post +%service_add_post %{name}.service + +%preun +%service_del_preun %{name}.service + +%postun +%service_del_postun %{name}.service + +%files +%license COPYING +%doc AUTHORS ChangeLog README +%{_sbindir}/wrapsix +%{_sbindir}/rcwrapsix +%config %{_sysconfdir}/%{name}.conf +%{_unitdir}/%{name}.service + +%changelog