install now fails on chown failure

This commit is contained in:
jvdias 2006-02-07 23:47:44 +00:00
parent 718438a9ea
commit 51d98fa07a

View File

@ -0,0 +1,25 @@
--- pegasus-2.5/rpm/Makefile.install_id 2006-02-07 17:37:39.000000000 -0500
+++ pegasus-2.5/rpm/Makefile 2006-02-07 18:39:05.000000000 -0500
@@ -30,6 +30,9 @@
include $(ROOT)/mak/config.mak
+INSTALL_USER?=root
+INSTALL_GROUP?=root
+
#Defines subdirectories to go to recursively
DIRS = manLinux
@@ -53,9 +56,9 @@
install: tog-pegasus.rc wbem cimserver_planned.conf
ifdef PEGASUS_INSTALL
- $(PEGASUS_INSTALL) -D -o root -g root -m 0550 tog-pegasus.rc $(PEGASUS_DESTDIR)/etc/rc.d/init.d/tog-pegasus
- $(PEGASUS_INSTALL) -D -o root -g root -m 0660 cimserver_planned.conf $(PEGASUS_DESTDIR)/$(PEGASUS_CONFIG_DIR)/cimserver_planned.conf
- $(PEGASUS_INSTALL) -D -o root -g root -m 0660 wbem $(PEGASUS_DESTDIR)/etc/pam.d/wbem
+ $(PEGASUS_INSTALL) -D -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0550 tog-pegasus.rc $(PEGASUS_DESTDIR)/etc/rc.d/init.d/tog-pegasus
+ $(PEGASUS_INSTALL) -D -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0660 cimserver_planned.conf $(PEGASUS_DESTDIR)/$(PEGASUS_CONFIG_DIR)/cimserver_planned.conf
+ $(PEGASUS_INSTALL) -D -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0660 wbem $(PEGASUS_DESTDIR)/etc/pam.d/wbem
mkdir -p $(PEGASUS_DESTDIR)/$(PEGASUS_MANUSER_DIR) $(PEGASUS_DESTDIR)/$(PEGASUS_MANADMIN_DIR)
cp -fp manLinux/man1.Z/*.1 $(PEGASUS_DESTDIR)/$(PEGASUS_MANUSER_DIR)/
cp -fp manLinux/man8.Z/*.8 $(PEGASUS_DESTDIR)/$(PEGASUS_MANADMIN_DIR)/