Hello community,

here is the log from the commit of package openslp for openSUSE:Factory
checked in at Wed Mar 2 16:44:46 CET 2011.



--------
--- openslp/openslp.changes     2010-10-12 18:20:40.000000000 +0200
+++ /mounts/work_src_done/STABLE/openslp/openslp.changes        2011-02-28 
13:16:33.000000000 +0100
@@ -1,0 +2,11 @@
+Mon Feb 28 12:12:37 UTC 2011 - [email protected]
+
+- use dedicated user instead of 'daemon' (bnc#656780)
+
+-------------------------------------------------------------------
+Fri Nov  5 22:06:43 UTC 2010 - [email protected]
+
+- libslp: export only functions of the public interface
+  defined in slp.h
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  openslp-1.2.0-daemon.diff
  openslp-1.2.0-visibility.patch

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

Other differences:
------------------
++++++ openslp.spec ++++++
--- /var/tmp/diff_new_pack.SYT8ZG/_old  2011-03-02 16:42:49.000000000 +0100
+++ /var/tmp/diff_new_pack.SYT8ZG/_new  2011-03-02 16:42:49.000000000 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package openslp (Version 1.2.0)
+# spec file for package openslp
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 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
@@ -21,7 +21,7 @@
 BuildRequires:  bison flex openssl-devel
 Summary:        An OpenSLP Implementation of Service Location Protocol V2
 Version:        1.2.0
-Release:        182
+Release:        186
 License:        BSD3c
 Group:          System/Daemons
 Url:            http://www.openslp.org/
@@ -62,6 +62,8 @@
 Patch20:        openslp.initda.diff
 Patch21:        openslp.ignorespaces.diff
 Patch22:        openslp.parseext.diff
+Patch23:        openslp-1.2.0-visibility.patch
+Patch24:        openslp-1.2.0-daemon.diff
 
 %description
 Service Location Protocol is an IETF standards track protocol that
@@ -88,7 +90,7 @@
 License:        BSD3c
 Group:          System/Daemons
 Summary:        The OpenSLP Implementation of the  Service Location Protocol V2
-PreReq:         %fillup_prereq %insserv_prereq
+PreReq:         %fillup_prereq %insserv_prereq /usr/sbin/useradd
 Recommends:     logrotate
 
 %description server
@@ -170,6 +172,8 @@
 %patch20
 %patch21
 %patch22
+%patch23
+%patch24 -p1
 
 %build
 autoreconf -fiv
@@ -221,10 +225,15 @@
 install -D -m 644 %{S:7} 
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/openslp
 %endif
 
+nm -C -D %{buildroot}%_libdir/libslp.so
+
 %post   -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
+%pre server
+/usr/sbin/useradd -r -g daemon -d /var/lib/empty -s /sbin/nologin -c "openslp 
daemon" openslp 2>/dev/null || :
+
 %post server
 %if 0%{?sles_version} == 9 || 0%{?sles_version} == 10
 %{fillup_and_insserv -y slpd}
@@ -271,7 +280,7 @@
 /usr/sbin/rcopenslp
 /usr/sbin/rcslpd
 /usr/sbin/slpd
-/etc/init.d/slpd
+%config /etc/init.d/slpd
 %config(noreplace) /etc/slp.reg
 %config(noreplace) /etc/logrotate.d/openslp-server
 /usr/share/omc/svcinfo.d/slpd.xml

++++++ openslp-1.2.0-daemon.diff ++++++
Index: openslp-1.2.0/slpd/slpd_main.c
===================================================================
--- openslp-1.2.0.orig/slpd/slpd_main.c
+++ openslp-1.2.0/slpd/slpd_main.c
@@ -508,7 +508,7 @@ int Daemonize(const char* pidfile)
     close(2); 
     setsid(); /* will only fail if we are already the process group leader */
 
-    pwent = getpwnam("daemon"); 
+    pwent = getpwnam("openslp"); 
     /*---------------------*/
     /* chroot to slp.reg.d */
     /*---------------------*/
++++++ openslp-1.2.0-visibility.patch ++++++
--- libslp/Makefile.am.orig
+++ libslp/Makefile.am
@@ -26,4 +26,4 @@ libslp_la_SOURCES = libslp_dereg.c   \
        libslp_mdns.c \
         libslp.h
 libslp_la_LIBADD = ../common/libcommonlibslp.la
-libslp_la_LDFLAGS = -version-info 1:0:0
+libslp_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libslp.map -version-info 
1:0:0
--- /dev/null
+++ libslp/libslp.map
@@ -0,0 +1,25 @@
+{
+global:
+  SLPAssociateIFList;
+  SLPAssociateIP;
+  SLPClose;
+  SLPDelAttrs;
+  SLPDereg;
+  SLPEscape;
+  SLPFindAttrs;
+  SLPFindScopes;
+  SLPFindSrvTypes;
+  SLPFindSrvs;
+  SLPFree;
+  SLPGetMDNSName;
+  SLPGetPeer;
+  SLPGetProperty;
+  SLPGetRefreshInterval;
+  SLPOpen;
+  SLPParseAttrs;
+  SLPParseSrvURL;
+  SLPReg;
+  SLPSetProperty;
+  SLPUnescape;
+local: *;
+};


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



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to