SHA256
1
0
forked from pool/cdemu-daemon

Restore logfile.diff

OBS-URL: https://build.opensuse.org/package/show/filesystems/cdemu-daemon?expand=0&rev=23
This commit is contained in:
Jan Engelhardt 2014-07-14 14:27:43 +00:00 committed by Git OBS Bridge
parent b402682ec6
commit de30ebe475
2 changed files with 22 additions and 4 deletions

View File

@ -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

17
logfile.diff Normal file
View File

@ -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