summaryrefslogtreecommitdiff
path: root/setup_native/scripts
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-07-19 06:19:43 +0000
committerOliver Bolte <obo@openoffice.org>2007-07-19 06:19:43 +0000
commit2682f1fdba2452d387b584aaa67b28a017ee0389 (patch)
tree6044c6134e6ad2dfe9abfb738147f9d680a9422c /setup_native/scripts
parent529454b8fc82b4f6b9d700e6115a9bdd60c72231 (diff)
INTEGRATION: CWS native84 (1.11.28); FILE MERGED
2007/07/17 12:57:22 obr 1.11.28.1: #i77418# populate private rpm database with required packages to get rid of --nodeps
Diffstat (limited to 'setup_native/scripts')
-rw-r--r--setup_native/scripts/makefile.mk34
1 files changed, 22 insertions, 12 deletions
diff --git a/setup_native/scripts/makefile.mk b/setup_native/scripts/makefile.mk
index 75e56669fd2a..345456328f33 100644
--- a/setup_native/scripts/makefile.mk
+++ b/setup_native/scripts/makefile.mk
@@ -4,9 +4,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.12 $
+# $Revision: 1.13 $
#
-# last change: $Author: ihi $ $Date: 2007-07-11 15:05:11 $
+# last change: $Author: obo $ $Date: 2007-07-19 07:19:43 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@@ -56,18 +56,32 @@ UNIXTEXT= \
UNIXTEXT+= $(BIN)$/stclient_wrapper.sh
.ENDIF
+FAKEDB=$(BIN)$/noarch/fake-db-1.0-0.noarch.rpm
+FAKEDBROOT=$(COMMONMISC)/$(TARGET)/fake-db-root
+
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
-.IF "$(OS)" == "LINUX"
+.IF "$(OS)" == "SOLARIS" || "$(OS)" == "LINUX"
-ALLTAR : $(BIN)$/install $(BIN)$/uninstall
+ALLTAR: $(BIN)$/install $(BIN)$/uninstall
-$(BIN)$/install: install_linux.sh
- $(TYPE) $< | tr -d "\015" > $@
+$(BIN)$/install: install_$(OS:l).sh
+ $(PERL) install_create.pl $& $@
-chmod 775 $@
+.ENDIF
+
+.IF "$(OS)" == "LINUX"
+.INCLUDE : packtools.mk
+
+$(FAKEDB) : fake-db.spec
+ $(MKDIRHIER) $(FAKEDBROOT)
+ $(RPM) --define "_builddir $(shell cd $(FAKEDBROOT) && pwd)" --define "_rpmdir $(BIN)" -bb $<
+
+$(BIN)$/install: $(FAKEDB)
+
$(BIN)$/uninstall: uninstall_linux.sh
$(TYPE) $< | tr -d "\015" > $@
-chmod 775 $@
@@ -76,14 +90,10 @@ $(BIN)$/uninstall: uninstall_linux.sh
.IF "$(OS)" == "SOLARIS"
-ALLTAR: $(BIN)$/install $(BIN)$/uninstall $(LB)$/getuid.so.stripped
-
-$(BIN)$/install: install_solaris.sh $(LB)$/getuid.so.stripped
- $(PERL) install_create.pl install_$(OS).sh $(LB)$/getuid.so.stripped $@
- -chmod 775 $@
+$(BIN)$/install: $(LB)$/getuid.so.stripped
$(BIN)$/uninstall: uninstall_solaris.sh $(LB)$/getuid.so.stripped
- $(PERL) install_create.pl uninstall_$(OS).sh $(LB)$/getuid.so.stripped $@
+ $(PERL) install_create.pl $< $@
-chmod 775 $@
$(LB)$/getuid.so.stripped: $(LB)$/getuid.so