[-]
[+]
|
Added |
ovirt-guest-agent-SLE_11_SP3.spec
|
|
[-]
[+]
|
Added |
ovirt-guest-agent_suse-fhs.patch
^
|
@@ -0,0 +1,33 @@
+--- configure.orig 2013-12-15 20:04:00.945283940 +0100
++++ configure 2013-12-15 20:04:42.905079784 +0100
+@@ -3100,7 +3100,7 @@
+
+
+
+- if test -f /etc/redhat-release; then
++ if [ -f /etc/redhat-release ] || [ -f /etc/SuSE-release ]; then
+
+ exec_prefix='${prefix}'
+
+--- m4/fhs.m4.orig 2013-12-15 20:02:10.833698120 +0100
++++ m4/fhs.m4 2013-12-15 20:03:06.265491079 +0100
+@@ -42,6 +42,8 @@
+ AC_DEFUN([DEFINE_FHS],[
+ if test -f /etc/redhat-release; then
+ DEFINE_FHS_REDHAT
++ elif test -f /etc/SuSE-release; then
++ DEFINE_FHS_REDHAT
+ elif test -f /etc/debian_version; then
+ DEFINE_FHS_DEBIAN
+ fi
+--- configure.ac.orig 2013-12-15 20:03:16.417491377 +0100
++++ configure.ac 2013-12-15 20:20:56.981752152 +0100
+@@ -13,7 +13,7 @@
+ DEFINE_FHS
+ AC_PROG_CC
+ AC_PROG_CXX
+-AM_PROG_AR
++m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+ AC_PROG_LIBTOOL
+ AC_PROG_INSTALL
+ AC_PROG_MKDIR_P
|
[-]
[+]
|
Added |
ovirt-guest-agent_suse-init.patch
^
|
@@ -0,0 +1,41 @@
+--- ovirt-guest-agent/ovirt-guest-agent.in.orig 2013-12-15 19:48:58.552399781 +0100
++++ ovirt-guest-agent/ovirt-guest-agent.in 2013-12-15 19:55:23.595154575 +0100
+@@ -8,8 +8,25 @@
+ # config: /etc/ovirt-guest-agent.conf
+ # pidfile: /var/run/ovirt-guest-agent.pid
+
++### BEGIN INIT INFO
++# Provides: ovirt-guest-agent
++# Required-Start: $syslog $remote_fs
++# Should-Start: $time ypbind smtp
++# Required-Stop: $syslog $remote_fs
++# Should-Stop: $null
++# Default-Start: 3 5
++# Default-Stop: 0 1 2 6
++# Short-Description: oVirt agent
++# Description: Startup/shutdown script for the oVirt agent.
++### END INIT INFO
++
+ # Source function library.
++if [ -f /etc/rc.d/init.d/functions ] ; then
+ . /etc/rc.d/init.d/functions
++fi
++if [ -f /etc/rc.status ] ; then
++. /etc/rc.status
++fi
+
+ agentd=/usr/share/ovirt-guest-agent/ovirt-guest-agent.py
+ prog=ovirt-guest-agent
+@@ -36,7 +53,11 @@
+ /bin/chown ovirtagent:ovirtagent ${pidfile}
+ [ -x /sbin/restorecon ] && /sbin/restorecon ${pidfile}
+ fi
+- daemon --pidfile=${pidfile} --user=ovirtagent $agentd -p ${pidfile} -d $OPTIONS
++ if [ -f /etc/redhat-release ] ; then
++ daemon --pidfile=${pidfile} --user=ovirtagent $agentd -p ${pidfile} -d $OPTIONS
++ elif [ -f /etc/SuSE-release ] ; then
++ startproc -p ${pidfile} -u ovirtagent $agentd -p ${pidfile} -d $OPTIONS
++ fi
+ RETVAL=$?
+ [ $RETVAL -eq 0 ] && touch $lockfile
+ echo
|