Hello community, here is the log from the commit of package siproxd for openSUSE:Factory checked in at 2012-03-20 11:35:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/siproxd (Old) and /work/SRC/openSUSE:Factory/.siproxd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "siproxd", Maintainer is "r...@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/siproxd/siproxd.changes 2011-09-23 12:46:22.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.siproxd.new/siproxd.changes 2012-03-20 11:35:48.000000000 +0100 @@ -1,0 +2,5 @@ +Mon Mar 19 16:12:48 CET 2012 - r...@suse.de + +- switch from user nobody to own user siproxd (bnc#710608) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ siproxd.spec ++++++ --- /var/tmp/diff_new_pack.6g5HQL/_old 2012-03-20 11:35:49.000000000 +0100 +++ /var/tmp/diff_new_pack.6g5HQL/_new 2012-03-20 11:35:49.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package siproxd # -# 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 @@ -19,15 +19,16 @@ # %define piddir /var/run/siproxd/ %define regdir /var/lib/siproxd/ -%define siproxduser nobody +%define siproxduser siproxd +%define siproxdgroup siproxd Name: siproxd Version: 0.8.1 -Release: 1 -License: GPL-2.0+ +Release: 0 Summary: A SIP masquerading proxy with RTP support -Url: http://siproxd.sourceforge.net/ +License: GPL-2.0+ Group: Productivity/Networking/Other +Url: http://siproxd.sourceforge.net/ Source0: %{name}-%{version}.tar.bz2 Source1: susefirewall2.%{name} Source2: %name.init.in @@ -44,8 +45,13 @@ #PATCH-FIX-FROM-DEBIAN use logger not user Patch1: siproxd-log.c.patch Patch9: siproxd.plugin_fix_bogus_via.c.patch -BuildRequires: docbook-utils libltdl libosip2 libosip2-devel libtool +BuildRequires: docbook-utils +BuildRequires: libltdl +BuildRequires: libosip2 +BuildRequires: libosip2-devel +BuildRequires: libtool Requires: logrotate +PreReq: %_sbindir/groupadd %_sbindir/useradd Suggests: SuSEfirewall2 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -59,7 +65,6 @@ %package doc Summary: Documentation for %{name} -License: GPL-2.0+ Group: Documentation/Other %description doc @@ -106,6 +111,10 @@ %{__mkdir} -p %buildroot%_mandir/man8 %__install -m 0644 %{S:4} %{buildroot}%{_mandir}/man8/%name.8.gz +# +sed -i -e "s@nobody@%{siproxduser}@" %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf +sed -i -e "s@nobody@%{siproxduser}@" %buildroot/%{_sysconfdir}/init.d/%{name} +# # Directory needs to exist for packaging %if %suse_version > 1120 %{__mkdir} -p %buildroot%{_localstatedir}/run/%{name} @@ -121,6 +130,10 @@ %post -p /sbin/ldconfig +%pre +%_sbindir/groupadd -r %{sipproxdgroup} 2> /dev/null || : +%_sbindir/useradd -r -o -g %{sipproxdgroup} -s /bin/false -c "Siproxd user" -d %{_localstatedir}/run/%{name} %{siproxduser} 2> /dev/null || : + %postun /sbin/ldconfig %restart_on_update %{name} @@ -148,7 +161,7 @@ %if %suse_version > 1120 #make rpm know about a directory but do not package it - %attr(0750,nobody,root) %ghost %{_localstatedir}/run/%{name} + %attr(0750,%{siproxduser},root) %ghost %{_localstatedir}/run/%{name} %endif %files doc -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org