Hello community,

here is the log from the commit of package radvd for openSUSE:Factory checked 
in at 2012-06-25 12:45:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/radvd (Old)
 and      /work/SRC/openSUSE:Factory/.radvd.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "radvd", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/radvd/radvd.changes      2011-12-08 
11:54:17.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.radvd.new/radvd.changes 2012-06-25 
12:46:23.000000000 +0200
@@ -1,0 +2,15 @@
+Thu Jun 14 16:14:42 UTC 2012 - [email protected]
+
+- Remove URL from source as this is a git snapshot 
+
+-------------------------------------------------------------------
+Thu Jun 14 01:00:56 UTC 2012 - [email protected]
+
+- Update to version 1.9rc1.xxx
+ * Support systemd tmpfiles.d 
+ * add Native systemd units for this service
+ * Uses libdaemon to deamonize and store PID file.
+ * Use setsockopt NETLINK_NO_ENOBUFS
+ * fixes debian bug 634485
+
+-------------------------------------------------------------------

Old:
----
  radvd-1.8.3.tar.gz

New:
----
  radvd-1.9.rc1_git201206030100.tar.xz
  radvd-configure.patch
  radvd.service

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ radvd.spec ++++++
--- /var/tmp/diff_new_pack.ig1MEE/_old  2012-06-25 12:46:26.000000000 +0200
+++ /var/tmp/diff_new_pack.ig1MEE/_new  2012-06-25 12:46:26.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package radvd
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -15,24 +15,35 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:           radvd
-Version:        1.8.3
+Version:        1.9.rc1_git201206030100
 Release:        0
-License:        BSD-3-Clause
 Summary:        Router ADVertisement Daemon for IPv6
-Url:            http://v6web.litech.org/radvd
+License:        BSD-3-Clause
 Group:          Productivity/Networking/Routing
-Source0:        http://www.litech.org/radvd/dist/%{name}-%{version}.tar.gz
+Url:            http://v6web.litech.org/radvd
+Source0:        %{name}-%{version}.tar.xz
 Source1:        radvd.init
 Source2:        sysconfig.radvd
+Source3:        radvd.service
 Patch1:         0001-run-as-user-radvd-by-default.diff
+Patch2:         radvd-configure.patch
 BuildRequires:  automake
 BuildRequires:  bison
 BuildRequires:  flex
+BuildRequires:  libdaemon-devel
+BuildRequires:  pkgconfig
+BuildRequires:  xz
 PreReq:         %fillup_prereq
 PreReq:         %insserv_prereq
 PreReq:         /usr/sbin/useradd
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%if 0%{?suse_version} >= 1210
+BuildRequires:  systemd
+%{?systemd_requires}
+%define i_can_has_systemd 1
+%endif
 
 %description
 RADVD is the Router ADVertisement Daemon. It is used for automated
@@ -41,10 +52,10 @@
 %prep
 %setup -q
 %patch1 -p1
+%patch2 -p1
 
 %build
-autoreconf -fi
-CFLAGS="%{optflags} -fno-strict-aliasing" 
+autoreconf -fiv
 %configure --disable-silent-rules --with-configfile=%{_sysconfdir}/radvd.conf 
--with-pidfile=/var/run/radvd/radvd.pid
 make %{?_smp_mflags}
 
@@ -58,10 +69,18 @@
 install -m 644 %{SOURCE2} %{buildroot}%{_localstatedir}/adm/fillup-templates/
 install -m 644 /dev/null %{buildroot}%{_sysconfdir}/radvd.conf
 
+%if 0%{?i_can_has_systemd}
+install -D -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
+install -D -m 0644 redhat/radvd-tmpfs.conf 
%{buildroot}/usr/lib/tmpfiles.d/radvd-tmpfs.conf
+%endif
+
 %pre
 getent passwd radvd >/dev/null || \
        /usr/sbin/useradd -r -d /var/lib/empty -s /bin/false \
        -c "Router ADVertisement Daemon for" -g daemon radvd 2>/dev/null || :
+%if 0%{?i_can_has_systemd}
+%service_add_pre %{name}.service
+%endif
 
 %post
 # zap old (<= 11.4) default
@@ -95,13 +114,25 @@
 #
 install -d -m 755 -o radvd /var/run/radvd
 
+%if 0%{?i_can_has_systemd}
+%service_add_post %{name}.service
+%endif
+
 %postun
 %restart_on_update radvd
 %insserv_cleanup
 
+%if 0%{?i_can_has_systemd}
+%service_del_postun %{name}.service
+%endif
+
 %preun
 %stop_on_removal radvd
 
+%if 0%{?i_can_has_systemd}
+%service_del_preun %{name}.service
+%endif
+
 %clean
 rm -rf %{buildroot}
 
@@ -119,5 +150,9 @@
 %doc radvd.conf.example
 %config %{_sysconfdir}/init.d/radvd
 %{_sbindir}/rcradvd
+%if 0%{?i_can_has_systemd}
+%{_unitdir}/%{name}.service
+/usr/lib/tmpfiles.d/%{name}-tmpfs.conf
+%endif
 
 %changelog

++++++ radvd-configure.patch ++++++
diff --git a/configure.ac b/configure.ac
index 3ab6667..afbdc5a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,7 +44,9 @@ you must specifiy it with --target on the configure command 
line])
 esac
 
 dnl Determine CC and preset CFLAGS
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
 
 dnl Determine of netlink is available
 AC_MSG_CHECKING(netlink)
++++++ radvd.service ++++++
[Unit]
Description=IPv6 Router Advertisement Daemon
After=syslog.target

[Service]
EnvironmentFile-=/etc/sysconfig/radvd
ExecStart=/usr/sbin/radvd --nodaemon $RADVD_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to