From 2c25ad0e78db82c2e865ab637f9d373c99f8d0cb87120082f3003c000cbcb883 Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Wed, 12 Jan 2011 22:51:53 +0000 Subject: [PATCH] build script changes for libvirt-guests OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=84 --- libvirt.spec | 3 ++- use-libvirt-guests-on-suse.patch | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libvirt.spec b/libvirt.spec index 7fb76ca..0ad84e9 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -420,10 +420,11 @@ ln_dupes() ln_dupes .%{_docdir}/%{name} ln_dupes ./usr/share/locale ) -# init script +# init scripts mkdir -p $RPM_BUILD_ROOT/etc/init.d install %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/libvirtd ln -s /etc/init.d/libvirtd $RPM_BUILD_ROOT/usr/sbin/rclibvirtd +ln -s /etc/init.d/libvirt-guests $RPM_BUILD_ROOT/usr/sbin/rclibvirt-guests %find_lang %{name} %clean diff --git a/use-libvirt-guests-on-suse.patch b/use-libvirt-guests-on-suse.patch index 6d05406..79552f8 100644 --- a/use-libvirt-guests-on-suse.patch +++ b/use-libvirt-guests-on-suse.patch @@ -2,7 +2,7 @@ Index: libvirt-0.8.7/tools/Makefile.am =================================================================== --- libvirt-0.8.7.orig/tools/Makefile.am +++ libvirt-0.8.7/tools/Makefile.am -@@ -129,17 +129,18 @@ install-data-local: install-init +@@ -129,17 +129,16 @@ install-data-local: install-init uninstall-local: uninstall-init @@ -14,8 +14,6 @@ Index: libvirt-0.8.7/tools/Makefile.am - $(DESTDIR)$(sysconfdir)/rc.d/init.d/libvirt-guests - mkdir -p $(DESTDIR)$(sysconfdir)/sysconfig + $(DESTDIR)$(sysconfdir)/init.d/libvirt-guests -+ ln -s $(DESTDIR)$(sysconfdir)/init.d/libvirt-guests \ -+ $(DESTDIR)/usr/sbin/rclibvirt-guests + mkdir -p $(DESTDIR)/var/adm/fillup-templates $(INSTALL_DATA) $(srcdir)/libvirt-guests.sysconf \ - $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests @@ -27,7 +25,7 @@ Index: libvirt-0.8.7/tools/Makefile.am $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests BUILT_SOURCES += libvirt-guests.init -@@ -152,11 +153,6 @@ libvirt-guests.init: libvirt-guests.init +@@ -152,11 +151,6 @@ libvirt-guests.init: libvirt-guests.init < $< > $@-t && \ chmod a+x $@-t && \ mv $@-t $@