From de30ebe475c494e1af525b2607b6a20869a5b0045779ed6d42a03fb9be877d5f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 14 Jul 2014 14:27:43 +0000 Subject: [PATCH] Restore logfile.diff OBS-URL: https://build.opensuse.org/package/show/filesystems/cdemu-daemon?expand=0&rev=23 --- cdemu-daemon.spec | 9 +++++---- logfile.diff | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 logfile.diff diff --git a/cdemu-daemon.spec b/cdemu-daemon.spec index cf7892c..60b2719 100644 --- a/cdemu-daemon.spec +++ b/cdemu-daemon.spec @@ -28,7 +28,7 @@ Url: http://cdemu.sf.net/about/daemon/ Source: http://downloads.sf.net/cdemu/%name-%version.tar.bz2 Source1: cdemu-daemon.sysconfig Source2: 60-vhba.rules - +Patch1: logfile.diff BuildRequires: cmake >= 2.8.5 BuildRequires: pkgconfig BuildRequires: pkgconfig(ao) >= 0.8.0 @@ -52,12 +52,13 @@ that can be used by clients to control it. %prep %setup -q +%patch -P 1 -p1 %build cmake . \ --DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ --DCMAKE_INSTALL_LIBEXECDIR:PATH="%_libexecdir" \ --DCMAKE_C_FLAGS:STRING="%optflags" + -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ + -DCMAKE_INSTALL_LIBEXECDIR:PATH="%_libexecdir" \ + -DCMAKE_C_FLAGS:STRING="%optflags" make %{?_smp_mflags} %install diff --git a/logfile.diff b/logfile.diff new file mode 100644 index 0000000..afab5d6 --- /dev/null +++ b/logfile.diff @@ -0,0 +1,17 @@ +--- + system/cdemu-daemon-system.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: cdemu-daemon-2.1.0/system/cdemu-daemon-system.sh +=================================================================== +--- cdemu-daemon-2.1.0.orig/system/cdemu-daemon-system.sh ++++ cdemu-daemon-2.1.0/system/cdemu-daemon-system.sh +@@ -6,7 +6,7 @@ + # Default settings + NUM_DEVICES=1 + AUDIO_DRIVER=null +-LOG_FILE=/tmp/cdemu-daemon.log ++LOG_FILE=/var/log/cdemu-daemon.log + + # Read the settings + CONFIG_FILE=/etc/sysconfig/cdemu-daemon