From 3a12a0265dcff4022b6bdccd229be3049f8d5cacda5dcbae86e2c656111b2d9a Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 3 Jun 2012 10:41:40 +0000 Subject: [PATCH] Accepting request 122585 from home:vitezslav_cizek:branches:network - Use the new 'su' logrotate option (bnc#677335) OBS-URL: https://build.opensuse.org/request/show/122585 OBS-URL: https://build.opensuse.org/package/show/network/freeradius-server?expand=0&rev=40 --- freeradius-server-2.1.1-logrotate_su.patch | 14 ++++++++++++++ freeradius-server.changes | 5 +++++ freeradius-server.spec | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 freeradius-server-2.1.1-logrotate_su.patch diff --git a/freeradius-server-2.1.1-logrotate_su.patch b/freeradius-server-2.1.1-logrotate_su.patch new file mode 100644 index 0000000..1cef2ad --- /dev/null +++ b/freeradius-server-2.1.1-logrotate_su.patch @@ -0,0 +1,14 @@ +Index: freeradius-server-2.1.1/suse/radiusd-logrotate +=================================================================== +--- freeradius-server-2.1.1.orig/suse/radiusd-logrotate 2008-09-25 10:41:26.000000000 +0200 ++++ freeradius-server-2.1.1/suse/radiusd-logrotate 2012-05-28 14:04:33.755496027 +0200 +@@ -5,6 +5,9 @@ + # (or similar) in radiusd.conf, without rotation. If you go with the + # second technique, you will need another cron job that removes old + # detail files. You do not need to comment out the below for method #2. ++ ++su radiusd radiusd ++ + /var/log/radius/radacct/*/detail { + compress + dateext diff --git a/freeradius-server.changes b/freeradius-server.changes index 8a10863..569e7e2 100644 --- a/freeradius-server.changes +++ b/freeradius-server.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 28 11:47:32 UTC 2012 - vcizek@suse.com + +- Use the new 'su' logrotate option (bnc#677335) + ------------------------------------------------------------------- Mon May 14 21:47:20 UTC 2012 - joop.boonen@opensuse.org diff --git a/freeradius-server.spec b/freeradius-server.spec index f590376..40f6e68 100644 --- a/freeradius-server.spec +++ b/freeradius-server.spec @@ -34,6 +34,8 @@ Patch8: freeradius-server-initscript-pidfile.patch Patch9: freeradius-server-radius-reload-logrotate.patch # PATCH-FIX-UPSTREAM edirectory ldap extensions (bnc#720620) Patch11: freeradius-server-2.1.1-edirectory.patch +# PATCH-FIX-SUSE use 'su' logrotate option (bnc#677335) +Patch12: freeradius-server-2.1.1-logrotate_su.patch BuildRequires: apache2-devel BuildRequires: cyrus-sasl-devel BuildRequires: db-devel @@ -183,6 +185,7 @@ This package contains FreeRADIUS Documentation %patch8 -p1 %patch9 -p1 %patch11 -p0 +%patch12 -p1 %build modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"