From b7317503235a04dd37a90ac4c5afc5c0b5e3cbd0883896326e7930cf104d5362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 17:00:01 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main netcontrol revision c0113470726c932fdd0d13a7d9e2f6cd --- .gitattributes | 23 +++++ baselibs.conf | 1 + netcontrol-0.3.2.tar.bz2 | 3 + netcontrol.changes | 212 +++++++++++++++++++++++++++++++++++++++ netcontrol.spec | 137 +++++++++++++++++++++++++ 5 files changed, 376 insertions(+) create mode 100644 .gitattributes create mode 100644 baselibs.conf create mode 100644 netcontrol-0.3.2.tar.bz2 create mode 100644 netcontrol.changes create mode 100644 netcontrol.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/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..26f49eb --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libnetcontrol0 diff --git a/netcontrol-0.3.2.tar.bz2 b/netcontrol-0.3.2.tar.bz2 new file mode 100644 index 0000000..f11abfc --- /dev/null +++ b/netcontrol-0.3.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f92247a728de451d3f17e70f15708bfb87ab738e16d3f304a1190fc2dedb91a +size 406346 diff --git a/netcontrol.changes b/netcontrol.changes new file mode 100644 index 0000000..b8e180a --- /dev/null +++ b/netcontrol.changes @@ -0,0 +1,212 @@ +------------------------------------------------------------------- +Tue Jun 15 15:48:36 UTC 2021 - Marius Tomaschewski + +- version 0.3.2 +- use SPDX shortname lincense and PKG_INSTALLDIR autoconf macro +- virsh iface-list takes too long with many interfaces (bsc#1179144) + - Cleanup netcf functions, include elapsed time in debug messages + - Changed to refresh config and system info to keep them consistent + - Add (fix or) adaptive refresh caching, set to double refresh-time + - Implemented new backend refresh using wicked config/system queries +- remove packages included in 0.3.2 source archive: + [- 0005-bonding-don-t-complain-about-unknown-options.1132794.patch] + [- 0004-udev-use-correct-udev-rule-write-lock-directory.patch] + [- 0003-sysconfig-fix-segfault-on-missed-end-quote-bsc-10277.patch] + [- 0002-Fix-invalid-check-in-route-creation-bsc-1148646.patch] + [- 0001-virsh-iface-list-not-working-as-expected-bsc-1029201.patch] + +------------------------------------------------------------------- +Wed Mar 11 23:13:15 UTC 2020 - mt@suse.com + +- bonding: don't complain about unknown options (bsc#1132794) + [+ 0005-bonding-don-t-complain-about-unknown-options.1132794.patch] + +------------------------------------------------------------------- +Wed Mar 11 15:06:33 UTC 2020 - mt@suse.com + +- udev: use correct udev rule (write) lock directory + [+ 0004-udev-use-correct-udev-rule-write-lock-directory.patch] +- sysconfig: fix segfault on missed end-quote (bsc#1027736) + [+ 0003-sysconfig-fix-segfault-on-missed-end-quote-bsc-10277.patch] +- fix segfault on invalid check in route creation (bsc#1148646) + [+ 0002-Fix-invalid-check-in-route-creation-bsc-1148646.patch] +- fix virsh iface-list not working as expected (bsc#1029201) + [+ 0001-virsh-iface-list-not-working-as-expected-bsc-1029201.patch] + +------------------------------------------------------------------- +Mon Mar 25 16:58:41 UTC 2019 - olaf@aepfle.de + +- Install pkgconfig into libdir instead of datadir + +------------------------------------------------------------------- +Fri May 20 15:30:41 UTC 2016 - mt@suse.de + +- version 0.3.1 +- filter devices not supported by libvirt API (fate#320557) + [- 0001-blacklist-ifcfg-files-ending-in-.orig-or-tilde-bnc-8.patch] + +------------------------------------------------------------------- +Wed Sep 3 01:41:37 CEST 2014 - ro@suse.de + +- sanitize release line in specfile + +------------------------------------------------------------------- +Tue May 6 11:58:04 UTC 2014 - mt@suse.de + +- blacklist ifcfg files ending in .orig or tilde (bnc#871600) + [+ 0001-blacklist-ifcfg-files-ending-in-.orig-or-tilde-bnc-8.patch] + +------------------------------------------------------------------- +Fri Jan 10 10:55:26 UTC 2014 - mt@suse.de + +- version 0.3.0 +- Added libnl version configure option and detection +- Obsoletes 0002-allow-wicked.patch, 0001-use-libnl3.patch + +------------------------------------------------------------------- +Tue Dec 17 16:40:46 UTC 2013 - mt@suse.de + +- Applied a minimal 0002-allow-wicked.patch to accept wicked + as the network service (fate#316768). +- Renamed libnl3.patch to 0001-use-libnl3.patch + +------------------------------------------------------------------- +Fri Oct 25 09:41:22 UTC 2013 - idonmez@suse.com + +- Add libnl3.patch to build with libnl3 open openSUSE 13.1+, this + fixes bnc#845540 + +------------------------------------------------------------------- +Tue Mar 26 15:01:02 UTC 2013 - mt@suse.de + +- version 0.2.8 +- Added ChangeLog.git to dist archive and to devel package docs. +- Fixed ncf_close to not close logger as ncf_init did not open any. + This caused SEGV's in libvirt, that redirects the global logger + to itself and is using multiple ncf instances (bnc#811002). +- Fixed pthreads detection and source enablement in configure, + added an explicit configure --enable-pthreads option to spec + file to cause a failure on detection problems (bnc#811002). +- Fixed SEGV at parsing not existing BRIDGE_PATHCOSTS and memory + leaks in in loop check, xml parsing and on backup file creation + failure while routes file rewrite (bnc#810381). + +------------------------------------------------------------------- +Fri Jan 25 09:39:55 UTC 2013 - mt@suse.de + +- version 0.2.7 +- Fixed a bridge variable initialization in try_bridge +- Use --enable-network-service on openSUSE >= 12.3 (bnc#798348) +- Check the network.service alias link instead of NETWORKMANAGER + variable in /etc/sysconfig/network/config, when requested by + the --enable-network-service configure option. + +------------------------------------------------------------------- +Tue Jul 3 11:15:47 UTC 2012 - mt@suse.de + +- version 0.2.6 +- Merged spec file changes from openSUSE:Factory +- Fixed libnl-devel build requires to build on 12.1 +- Updated FSF address in copyright/license statements + +------------------------------------------------------------------- +Mon Jul 2 11:00:33 UTC 2012 - mt@suse.de + +- version 0.2.5 +- Fixed several bugs reported in bnc#760500, bnc#763388, + bnc#765040, bnc#754001: + - Fetch ip addresses and routes in system refresh via + netlink, adds libnl-1 dependency to libnetcontrol. + - Do not use -o rc for ifup or it fails when startmode + is set to manual. + - Always call ifstatus in ncf_if_status and not check + interface operstate to better match ifstatus results + - Check type while creating topology tree as well, not + only if the interface specific data exists. + - Do not report error in ncf_if_xml_state when interface + does not exists any more [has been stopped/removed]. + - Improved error handling, report several errors once + - Expose a lot of error details to the caller + - Fixed to parse and configure complete interface trees + and fixed a senseless type check that caused SEGV. + - Fetch mac address from system when not in the config + - Fixed arp ip target bonding option handling and expose + errors while trying to add not unique slave interface. + - Refresh config handle earlier in ncf_define, fixed a + double free in regression test it does. + - Automatically start port/slave/base interfeces when + stating a bridge/bond/vlan. + +------------------------------------------------------------------- +Wed Dec 21 10:31:41 UTC 2011 - coolo@suse.com + +- remove call to suse_update_config (very old work around) + +------------------------------------------------------------------- +Wed Dec 7 09:34:43 UTC 2011 - mt@suse.com + +- Lowered bad_reference (bridge config references an unknown + interface) log level to warning (bnc#735187). + +------------------------------------------------------------------- +Tue Sep 27 11:09:35 UTC 2011 - mt@suse.de + +- version 0.2.4 +- Fixed writing of bonding slaves into ifcfg file +- Fixed a memory leak while netcf xml generation error +- Generate complete interface chanins, do not generate + type attribute in vlan interface reference xml node + (bnc#708398). + +------------------------------------------------------------------- +Fri Sep 9 14:10:39 UTC 2011 - cfarrell@suse.com + +- license update: LGPL-2.1+ + SPDX syntax. See http://www.spdx.org/licenses + +------------------------------------------------------------------- +Thu Sep 8 17:05:01 UTC 2011 - mt@suse.de + +- Fixed to include config.h to have _GNU_SOURCE defined + +------------------------------------------------------------------- +Fri Aug 26 11:04:59 UTC 2011 - mt@suse.de + +- version 0.2.3, cleaning up copyright statements in source, header + and other files, adding authorization notes about use of GPL code + from wicked project inside of the LGPL libnetcontrol library and + a short README and COPYING files (bnc#713519). + +------------------------------------------------------------------- +Wed Aug 17 09:14:01 CEST 2011 - dmueller@suse.de + +- add baselibs.conf to sources + +------------------------------------------------------------------- +Tue Jul 12 09:42:32 UTC 2011 - mt@suse.de + +- version 0.2.2, with several fixes (fate#306765): + Change to use bus-id for bonding slave udev rules, + fixed / tweaked infiniband and vlan configuration, + fixed deletion to not remove unrequested configs, + set close-on-exec flag for all files we open. + +------------------------------------------------------------------- +Wed Jul 6 19:03:28 UTC 2011 - mt@suse.de + +- version 0.2.1, fixing config cleanup of depending interfaces + while configure and delete action, ifup and ifdown actions, + adding several checks and removing patch level from the API + version (fate#306765). + +------------------------------------------------------------------- +Fri Jul 1 11:17:17 UTC 2011 - mt@suse.de + +- A first write-enabled version 0.2.0, added hook to redirect log + messages e.g. to the libvirtd log routines (fate#306765). + +------------------------------------------------------------------- +Thu Jun 16 19:22:52 UTC 2011 - mt@suse.de + +- Initial package (fate#306765) + diff --git a/netcontrol.spec b/netcontrol.spec new file mode 100644 index 0000000..ca3f7f0 --- /dev/null +++ b/netcontrol.spec @@ -0,0 +1,137 @@ +# +# spec file for package netcontrol +# +# Copyright (c) 2021 SUSE LLC +# +# 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: netcontrol +Version: 0.3.2 +Release: 0 +Summary: A network configuration library +# +# License note: +# libnetcontrol contains source code which is based on wicked. +# Wicked is licensed under the GPL-2.0-or-later, but permission has +# been granted by the authors of wicked to use the code derived from +# wicked under the LGPL-2.1-or-later in libnetcontrol. +# +License: LGPL-2.1-or-later +Group: Productivity/Networking/System +Source0: %{name}-%{version}.tar.bz2 +Source1: baselibs.conf +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} >= 1310 +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libnl3-devel +BuildRequires: libtool +%else +%if 0%{?suse_version} >= 1210 +BuildRequires: libnl-1_1-devel +%else +BuildRequires: libnl-devel +%endif +%endif +BuildRequires: pkg-config +%if 0%{?suse_version} >= 1230 +Requires: sysconfig >= 0.80.0 +%else +Requires: sysconfig >= 0.71.0 +%endif + +%description +A interim network configuration library, currently implementing the +libnetcf interface for libvirt. + + + +Authors: +-------- + Olaf Kirch + Marius Tomaschewski + +%package -n libnetcontrol0 + +Summary: A network configuration library +Group: Productivity/Networking/System + +%description -n libnetcontrol0 +A interim network configuration library, currently implementing the +libnetcf interface for libvirt. + +The libnetcontrol0 package provides the shared library. + + + +Authors: +-------- + Olaf Kirch + Marius Tomaschewski + +%package -n libnetcontrol-devel + +Summary: Development header and library files +Group: Development/Libraries/C and C++ +Requires: libnetcontrol0 = %{version} + +%description -n libnetcontrol-devel +A interim network configuration library, currently implementing the +libnetcf interface for libvirt. + +The libnetcontrol-devel package contains libraries and header files +required for development. + + + +Authors: +-------- + Olaf Kirch + Marius Tomaschewski + +%prep +%setup -q + +%build +export CFLAGS="-W -Wall $RPM_OPT_FLAGS" +%configure \ +%if 0%{?suse_version} >= 1230 + --enable-network-service \ +%endif + --enable-pthreads \ + --disable-static +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la + +%post -n libnetcontrol0 +/sbin/ldconfig + +%postun -n libnetcontrol0 +/sbin/ldconfig + +%files -n libnetcontrol0 +%defattr(-,root,root,-) +%{_libdir}/*.so.* + +%files -n libnetcontrol-devel +%defattr(-,root,root,-) +%doc README COPYING.LGPL COPYING.GPL ChangeLog.git +%{_libdir}/*.so +%{_includedir}/* +%{_libdir}/pkgconfig/netcontrol.pc + +%changelog