Hello community,
here is the log from the commit of package netcf for openSUSE:Factory
checked in at Fri Oct 15 17:14:43 CEST 2010.
--------
New Changes file:
--- /dev/null 2010-07-09 01:59:37.000000000 +0200
+++ /mounts/work_src_done/STABLE/netcf/netcf.changes 2010-09-13 20:06:54.000000000 +0200
@@ -0,0 +1,10 @@
+-------------------------------------------------------------------
+Fri Sep 10 13:57:16 UTC 2010 - pmullaney@novell.com
+
+- added backend for SUSE network configuration syntax
+
+-------------------------------------------------------------------
+Fri Sep 10 13:56:14 UTC 2010 - pmullaney@novell.com
+
+- initial submission of netcf package, version 0.1.6
+
calling whatdependson for head-i586
New:
----
netcf-0.1.6.tar.gz
netcf-suse.patch
netcf.changes
netcf.spec
persist_net_rules.patch
routes_lens.patch
sles-automake.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ netcf.spec ++++++
#
# spec file for package netcf (Version 0.1.6)
#
# Copyright (c) 2010 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
Name: netcf
Version: 0.1.6
Release: 1
Summary: Cross-platform network configuration library
Group: Productivity/Networking/System
License: LGPLv2+
Url: https://fedorahosted.org/netcf/
Source0: https://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.gz
Patch0: netcf-suse.patch
Patch1: persist_net_rules.patch
Patch2: routes_lens.patch
Patch3: sles-automake.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: augeas-devel >= 0.5.2 readline-devel
BuildRequires: libxml2-devel libxslt-devel
BuildRequires: libnl-devel
BuildRequires: pkg-config
%description
A library for modifying the network configuration of a system. Network
configurations are expresed in a platform-independent XML format, which
netcf translates into changes to the system's 'native' network
configuration files.
%define __shrlibname lib%{name}1
%package devel
License: LGPLv2+
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{__shrlibname} = %{version}
Requires: pkgconfig
Requires: augeas-devel libxml2-devel libxslt-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n libnetcf1
License: LGPLv2+
Summary: Libraries for %{name}
Group: System/Libraries
%description -n libnetcf1
The libraries for %{name}.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%if 0%{?sles_version} <= 11
%patch3 -p1
%endif
aclocal -I gnulib/m4
%if 0%{?suse_version} >= 1130
automake
%else
automake --add-missing
%endif
autoconf
%build
%configure --disable-static
%if 0%{?suse_version} >= 1130
make CFLAGS="-DOS113" %{?_smp_mflags}
%else
cp data/lenses/persist_net_rules-pre-os113.aug data/lenses/persist_net_rules.aug
make %{?_smp_mflags}
%endif
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -n %{__shrlibname} -p /sbin/ldconfig
%postun -n %{__shrlibname} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/ncftool
%files -n libnetcf1
%defattr(-,root,root,-)
%{_datadir}/netcf
%{_libdir}/*.so.*
%doc AUTHORS COPYING NEWS
%files devel
%defattr(-,root,root,-)
%doc
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/netcf.pc
%changelog
++++++ netcf-suse.patch ++++++
++++ 1109 lines (skipped)
++++++ persist_net_rules.patch ++++++
From:Patrick Mullaney
From: <>
netcf: augeas lens for persistent net rules
Signed-off-by: Patrick Mullaney
---
data/lenses/persist_net_rules-pre-os113.aug | 45 ++++++++++++++++++++++++++
data/lenses/persist_net_rules.aug | 46 +++++++++++++++++++++++++++
2 files changed, 91 insertions(+), 0 deletions(-)
create mode 100644 data/lenses/persist_net_rules-pre-os113.aug
create mode 100644 data/lenses/persist_net_rules.aug
diff --git a/data/lenses/persist_net_rules-pre-os113.aug b/data/lenses/persist_net_rules-pre-os113.aug
new file mode 100644
index 0000000..0acb3b1
--- /dev/null
+++ b/data/lenses/persist_net_rules-pre-os113.aug
@@ -0,0 +1,45 @@
+(*
+Module: Persist_Net_Rules
+ Parses /etc/udev/rules.d/70-persistent-net.rules
+*)
+module Persist_Net_Rules =
+autoload xfm
+
+let comment = Util.comment
+let empty = Util.empty
+let eol = Util.eol | Util.comment
+
+(* A separator is either whitespace or \ followed by newline *)
+let sep_ch = /[ \t]|\\\\\n/
+(* Anything that's not a separator is part of a token *)
+let tok_ch = /[^ \t\n#\\",]|\\\\[^ \t\n]/
+let optok_ch = /==/
+let optok = del optok_ch "=="
+let eq_optok_ch = /=/
+let eq_optok = del eq_optok_ch "="
+let indent = Util.del_opt_ws ""
+let comma_ch = /,/
+let commatok (n:string) = indent . del n n . indent
+
+let token = store tok_ch+
+let key_token = key /[a-z0-9]/+
+let quote_ch = /"/
+let quote = del quote_ch "\""
+
+let name_arg (n:string) = Util.del_str n . indent . eq_optok . indent . quote . key_token . quote
+let arg (n:string) = [ label n . Util.del_str n . indent . optok . indent . quote . token . quote ]
+
+let entry = [ arg "SUBSYSTEM" . commatok "," .
+ arg "ACTION" . commatok "," .
+ arg "DRIVERS" . commatok "," .
+ arg "ATTR{address}" . commatok "," .
+ arg "ATTR{type}" . commatok "," .
+ arg "KERNEL" . commatok "," .
+ name_arg "NAME" . eol ]
+
+let lns = (comment|empty|entry)*
+
+let filter = incl "/etc/udev/rules.d/70-persistent-net.rules" .
+ Util.stdexcl
+
+let xfm = transform lns filter
diff --git a/data/lenses/persist_net_rules.aug b/data/lenses/persist_net_rules.aug
new file mode 100644
index 0000000..d875904
--- /dev/null
+++ b/data/lenses/persist_net_rules.aug
@@ -0,0 +1,46 @@
+(*
+Module: Persist_Net_Rules
+ Parses /etc/udev/rules.d/70-persistent-net.rules
+*)
+module Persist_Net_Rules =
+autoload xfm
+
+let comment = Util.comment
+let empty = Util.empty
+let eol = Util.eol | Util.comment
+
+(* A separator is either whitespace or \ followed by newline *)
+let sep_ch = /[ \t]|\\\\\n/
+(* Anything that's not a separator is part of a token *)
+let tok_ch = /[^ \t\n#\\",]|\\\\[^ \t\n]/
+let optok_ch = /==/
+let optok = del optok_ch "=="
+let eq_optok_ch = /=/
+let eq_optok = del eq_optok_ch "="
+let indent = Util.del_opt_ws ""
+let comma_ch = /,/
+let commatok (n:string) = indent . del n n . indent
+
+let token = store tok_ch+
+let key_token = key /[a-z0-9]/+
+let quote_ch = /"/
+let quote = del quote_ch "\""
+
+let name_arg (n:string) = Util.del_str n . indent . eq_optok . indent . quote . key_token . quote
+let arg (n:string) = [ label n . Util.del_str n . indent . optok . indent . quote . token . quote ]
+
+let entry = [ arg "SUBSYSTEM" . commatok "," .
+ arg "ACTION" . commatok "," .
+ arg "DRIVERS" . commatok "," .
+ arg "ATTR{address}" . commatok "," .
+ arg "ATTR{dev_id}" . commatok "," .
+ arg "ATTR{type}" . commatok "," .
+ arg "KERNEL" . commatok "," .
+ name_arg "NAME" . eol ]
+
+let lns = (comment|empty|entry)*
+
+let filter = incl "/etc/udev/rules.d/70-persistent-net.rules" .
+ Util.stdexcl
+
+let xfm = transform lns filter
++++++ routes_lens.patch ++++++
From:Patrick Mullaney
netcf: add routes lens for sysconfig routing info
Signed-off-by: Patrick Mullaney
---
data/lenses/routes.aug | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
create mode 100644 data/lenses/routes.aug
diff --git a/data/lenses/routes.aug b/data/lenses/routes.aug
new file mode 100644
index 0000000..3e26d51
--- /dev/null
+++ b/data/lenses/routes.aug
@@ -0,0 +1,30 @@
+(*
+Module: Routes
+ Parses /etc/sysconfig/network/routes
+*)
+module Routes =
+autoload xfm
+
+let comment = Util.comment
+let empty = Util.empty
+let eol = Util.eol | Util.comment
+
+(* Anything that's not a separator is part of a token *)
+let tok_ch = /[^ \t\n#\\",]|\\\\[^ \t\n]/
+let indent = Util.del_ws " "
+
+let token = store tok_ch+
+let route_token = /[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+/
+let mask_token = /[0-9]+/
+
+let column(n:string) = [ label n . token ]
+
+let default_route = [ key /default/ . indent . column "gateway" . indent . column "netmask" . indent . column "device" . eol ]
+let route_entry = [ key route_token . del "/" "/" . [ key mask_token . indent . column "gateway" . indent . column "netmask" . indent . column "device" . eol ] ]
+
+let lns = (comment|empty| default_route | route_entry )*
+
+let filter = incl "/etc/sysconfig/network/routes" .
+ Util.stdexcl
+
+let xfm = transform lns filter
++++++ sles-automake.patch ++++++
From:Patrick Mullaney
netcf: sles supports automake 1.10.1 and not 1.11
Signed-off-by: Patrick Mullaney
---
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 1475875..b3153f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,8 +2,8 @@ AC_INIT(netcf, 0.1.6)
AC_CONFIG_SRCDIR([src/netcf.c])
AC_CONFIG_AUX_DIR([build/aux])
AM_CONFIG_HEADER([config.h])
-AM_INIT_AUTOMAKE([-Wno-portability 1.11 color-tests parallel-tests])
-AM_SILENT_RULES([yes]) # make --enable-silent-rules the default.
+AM_INIT_AUTOMAKE([-Wno-portability 1.10.1 ])
+#AM_SILENT_RULES([yes]) # make --enable-silent-rules the default.
AC_SUBST([LIBNETCF_VERSION_INFO], [4:3:3])
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org