Add SuSE target, package provides for the replacing packages

pull/76/head
Vlastimil Holer 7 years ago
parent df6afb0998
commit 1338b18959
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -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

@ -114,6 +114,7 @@ else
${DEPENDS:+ --depends ${DEPENDS// / --depends }} \
--replaces "${REPLACES}" \
--conflicts "${REPLACES}" \
--provides "${REPLACES}" \
--package "${OUT}"
fi

@ -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}

Loading…
Cancel
Save