commit clatd for openSUSE:Factory

2019-05-22 Thread root
Hello community,

here is the log from the commit of package clatd for openSUSE:Factory checked 
in at 2019-05-22 11:15:57

Comparing /work/SRC/openSUSE:Factory/clatd (Old)
 and  /work/SRC/openSUSE:Factory/.clatd.new.5148 (New)


Package is "clatd"

Wed May 22 11:15:57 2019 rev:2 rq:704392 version:1.5

Changes:

--- /work/SRC/openSUSE:Factory/clatd/clatd.changes  2018-12-13 
19:48:09.736722856 +0100
+++ /work/SRC/openSUSE:Factory/.clatd.new.5148/clatd.changes2019-05-22 
11:15:58.866533077 +0200
@@ -1,0 +2,9 @@
+Mon May 20 18:16:56 UTC 2019 - Martin Hauke 
+
+- Update to version 1.5
+  * Fixes compatibility with recent Linux kernels in get_plat_dev().
+- Drop patches (included in upstream release):
+  * 0001-nm-dispatcher-only-act-on-iface-up-down-events.patch
+  * 0002-Update-siit-dc-eam-I-D-references-to-RFC-numbers.patch
+
+---

Old:

  0001-nm-dispatcher-only-act-on-iface-up-down-events.patch
  0002-Update-siit-dc-eam-I-D-references-to-RFC-numbers.patch
  clatd-1.4.tar.gz

New:

  clatd-1.5.tar.gz



Other differences:
--
++ clatd.spec ++
--- /var/tmp/diff_new_pack.otBqWb/_old  2019-05-22 11:16:00.470531954 +0200
+++ /var/tmp/diff_new_pack.otBqWb/_new  2019-05-22 11:16:00.498531935 +0200
@@ -1,6 +1,7 @@
 #
 # spec file for package clatd
 #
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2018, Martin Hauke 
 #
 # All modifications and additions to the file contributed by third parties
@@ -12,12 +13,12 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:   clatd
-Version:1.4
+Version:1.5
 Release:0
 Summary:CLAT / SIIT-DC Edge Relay implementation for Linux
 License:MIT
@@ -26,8 +27,6 @@
 #Git-Clone: https://github.com/toreanderson/clatd.git
 Source: 
https://github.com/toreanderson/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Source1:clatd.conf
-Patch0: 0001-nm-dispatcher-only-act-on-iface-up-down-events.patch
-Patch1: 0002-Update-siit-dc-eam-I-D-references-to-RFC-numbers.patch
 BuildRequires:  NetworkManager
 BuildRequires:  perl
 BuildRequires:  systemd-rpm-macros
@@ -50,8 +49,6 @@
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
 
 %build
 pod2man --name clatd --center "clatd - a CLAT implementation for Linux" 
--section 8 README.pod clatd.8

++ clatd-1.4.tar.gz -> clatd-1.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/clatd-1.4/LICENCE new/clatd-1.5/LICENCE
--- old/clatd-1.4/LICENCE   2015-10-23 13:43:34.0 +0200
+++ new/clatd-1.5/LICENCE   2019-05-20 10:19:56.0 +0200
@@ -1,4 +1,4 @@
-Copyright (c) 2014-2015 Tore Anderson 
+Copyright (c) 2014-2019 Tore Anderson 
 
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/clatd-1.4/Makefile new/clatd-1.5/Makefile
--- old/clatd-1.4/Makefile  2015-10-23 13:43:34.0 +0200
+++ new/clatd-1.5/Makefile  2019-05-20 10:19:56.0 +0200
@@ -1,20 +1,30 @@
+DESTDIR=
+PREFIX=/usr
+SYSCONFDIR=/etc
+
+APT_GET:=$(shell which apt-get)
+DNF_OR_YUM:=$(shell which dnf || which yum)
+INITCTL:=$(shell which initctl)
+SYSTEMCTL:=$(shell which systemctl)
+TAYGA:=$(shell which tayga)
+
 install:
-   # Install the main script to /usr/sbin
-   install -m0755 clatd /usr/sbin/clatd
+   # Install the main script
+   install -m0755 clatd $(DESTDIR)$(PREFIX)/sbin/clatd
# Install manual page if pod2man is installed
-   pod2man --name clatd --center "clatd - a CLAT implementation for Linux" 
--section 8 README.pod /usr/share/man/man8/clatd.8 && gzip -f9 
/usr/share/man/man8/clatd.8 || echo "pod2man is required to generate manual 
page"
+   pod2man --name clatd --center "clatd - a CLAT implementation for Linux" 
--section 8 README.pod $(DESTDIR)$(PREFIX)/share/man/man8/clatd.8 && gzip -f9 
$(DESTDIR)$(PREFIX)/share/man/man8/clatd.8 || echo "pod2man is required to 
generate manual page"
# Install systemd service file if applicable for this system
-   if test -x /usr/bin/systemctl && test -d "/etc/systemd/system"; then 
install -m0644 scripts/clatd.systemd /etc/systemd/system/clatd.service && 
systemctl daemon-reload; fi
-   if test -e "/etc/systemd/system/clatd.service" && 

commit clatd for openSUSE:Factory

2018-12-13 Thread root
Hello community,

here is the log from the commit of package clatd for openSUSE:Factory checked 
in at 2018-12-13 19:48:09

Comparing /work/SRC/openSUSE:Factory/clatd (Old)
 and  /work/SRC/openSUSE:Factory/.clatd.new.28833 (New)


Package is "clatd"

Thu Dec 13 19:48:09 2018 rev:1 rq:655876 version:1.4

Changes:

New Changes file:

--- /dev/null   2018-10-29 14:05:42.522318975 +0100
+++ /work/SRC/openSUSE:Factory/.clatd.new.28833/clatd.changes   2018-12-13 
19:48:09.736722856 +0100
@@ -0,0 +1,4 @@
+---
+Sun Dec  2 20:37:20 UTC 2018 - mar...@gmx.de
+
+- Initial package, version 1.4

New:

  0001-nm-dispatcher-only-act-on-iface-up-down-events.patch
  0002-Update-siit-dc-eam-I-D-references-to-RFC-numbers.patch
  clatd-1.4.tar.gz
  clatd.changes
  clatd.conf
  clatd.spec



Other differences:
--
++ clatd.spec ++
#
# spec file for package clatd
#
# 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:   clatd
Version:1.4
Release:0
Summary:CLAT / SIIT-DC Edge Relay implementation for Linux
License:MIT
Group:  Productivity/Networking/System
URL:https://github.com/toreanderson/clatd
#Git-Clone: https://github.com/toreanderson/clatd.git
Source: 
https://github.com/toreanderson/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:clatd.conf
Patch0: 0001-nm-dispatcher-only-act-on-iface-up-down-events.patch
Patch1: 0002-Update-siit-dc-eam-I-D-references-to-RFC-numbers.patch
BuildRequires:  NetworkManager
BuildRequires:  perl
BuildRequires:  systemd-rpm-macros
Requires:   iproute2
Requires:   iptables
Requires:   perl
Requires:   tayga
Requires:   perl(File::Temp)
Requires:   perl(IO::Socket::INET6)
Requires:   perl(Net::DNS)
Requires:   perl(Net::IP)
BuildArch:  noarch

%description
clatd implements the CLAT component of the 464XLAT network architecture
specified in RFC 6877. It allows an IPv6-only host to have IPv4
connectivity that is translated to IPv6 before being routed to an upstream
PLAT (which is typically a Stateful NAT64 operated by the ISP) and there
translated back to IPv4 before being routed to the IPv4 internet.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
pod2man --name clatd --center "clatd - a CLAT implementation for Linux" 
--section 8 README.pod clatd.8
sed -i "s,%{_sbindir}/clatd,%{_sbindir}/clatd -c %{_sysconfdir}/clatd.conf," 
scripts/*

%install
install -D -m 0755 clatd %{buildroot}%{_sbindir}/clatd
install -D -m 0644 clatd.8 %{buildroot}%{_mandir}/man8/clatd.8
install -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/clatd.conf
install -D -m 0755 scripts/clatd.networkmanager 
%{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/50-clatd
install -D -m 0644 scripts/clatd.systemd %{buildroot}%{_unitdir}/%{name}.service
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcclatd

%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 LICENCE
%doc README.pod
%{_sbindir}/clatd
%{_sbindir}/rcclatd
%config(noreplace) %{_sysconfdir}/clatd.conf
%{_sysconfdir}/NetworkManager/dispatcher.d/
%{_mandir}/man8/clatd.8%{?ext_man}
%{_unitdir}/%{name}.service

%changelog
++ 0001-nm-dispatcher-only-act-on-iface-up-down-events.patch ++
>From fb4587bfd6d0f6e034d1421a70639cc97a11307b Mon Sep 17 00:00:00 2001
From: Tore Anderson 
Date: Mon, 28 Mar 2016 08:26:20 +0200
Subject: [PATCH 1/2] nm-dispatcher: only act on iface up/down events

Ensure other events (like hostname changes, DHCP lease renewals, etc.)
are ignored as they are very unlikely to be relevant for clatd.
---
 scripts/clatd.networkmanager | 5 +
 1 file changed, 5 insertions(+)

diff --git a/scripts/clatd.networkmanager b/scripts/clatd.networkmanager
index 4187959..8a815ba 100644
--- a/scripts/clatd.networkmanager
+++ b/scripts/clatd.networkmanager
@@ -14,6 +14,11 @@
 # committing suicide from the restarts below
 [ "$DEVICE_IFACE" = "clat" ] && exit 0