From 1338b1895979a4a20f1207ba02282c73b3dcdf0d Mon Sep 17 00:00:00 2001 From: Vlastimil Holer Date: Tue, 30 May 2017 12:35:54 +0200 Subject: [PATCH] Add SuSE target, package provides for the replacing packages --- generate-all.sh | 2 +- generate.sh | 1 + targets.sh | 13 ++++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/generate-all.sh b/generate-all.sh index e633d5c..01fa360 100755 --- a/generate-all.sh +++ b/generate-all.sh @@ -1,4 +1,4 @@ -TARGETS='el6 el6_ec2 el7 el7_ec2 deb deb_ec2' +TARGETS='el6 el6_ec2 el7 el7_ec2 suse deb deb_ec2' set -e for TARGET in $TARGETS; do diff --git a/generate.sh b/generate.sh index 4c60f86..6400251 100755 --- a/generate.sh +++ b/generate.sh @@ -114,6 +114,7 @@ else ${DEPENDS:+ --depends ${DEPENDS// / --depends }} \ --replaces "${REPLACES}" \ --conflicts "${REPLACES}" \ + --provides "${REPLACES}" \ --package "${OUT}" fi diff --git a/targets.sh b/targets.sh index 59ae294..56efd79 100644 --- a/targets.sh +++ b/targets.sh @@ -44,12 +44,23 @@ case "${TARGET}" in PREUN=${PREUN:-preuninstall.ec2} ;; + 'suse') + NAME=${NAME:-one-context} + RELSUFFIX=${RELSUFFIX:-.suse} + TYPE=${TYPE:-rpm} + TAGS=${TAGS:-rpm systemd one} + DEPENDS=${DEPENDS:-util-linux bind-utils growpart ruby} # rubygem-json} + REPLACES=${REPLACES:-cloud-init cloud-init-config-suse} + POSTIN=${POSTINST:-postinstall.one} + PREUN=${PREUN:-preuninstall.one} + ;; + 'deb') NAME=${NAME:-one-context} RELSUFFIX=${RELSUFFIX:-} TYPE=${TYPE:-deb} TAGS=${TAGS:-deb sysv systemd upstart one} - DEPENDS=${DEPENDS:-util-linux bind9-host cloud-utils ruby python} + DEPENDS=${DEPENDS:-util-linux bind9-host cloud-utils ruby python acpid} REPLACES=${REPLACES:-cloud-init} POSTIN=${POSTINST:-postinstall.one} PREUN=${PREUN:-preuninstall.one}