rpmdist.mk: Add targets rpm-remote-install and rpm-remote-install-run

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-06-27 12:12:15 +00:00
commit 85c988b4da

View file

@ -303,3 +303,11 @@ rpm-release: rpm-release-reinstall
rpm-release-reinstall: update
$(BUILD_PACKAGE_SH) release
ifneq ($(TARGET_HOST),)
rpm-remote-install:
scp $(addprefix dist/pckg/,$(PCKG_RPM_RUN_I386) $(PCKG_RPM_DEVEL_I386)) root@$(TARGET_HOST):/tmp/
ssh -l root $(TARGET_HOST) rpm -U --force $(addprefix /tmp/,$(PCKG_RPM_RUN_I386) $(PCKG_RPM_DEVEL_I386))
rpm-remote-install-run: rpm-install-remote.done
scp $(addprefix dist/pckg/,$(PCKG_RPM_RUN_I386)) root@$(TARGET_HOST):/tmp/
ssh -l root $(TARGET_HOST) rpm -U --force $(addprefix /tmp/,$(PCKG_RPM_RUN_I386))
endif