|
|
|
@ -4,10 +4,12 @@ case "${TARGET}" in
|
|
|
|
|
RELSUFFIX=${RELSUFFIX:-.el6}
|
|
|
|
|
TYPE=${TYPE:-rpm}
|
|
|
|
|
TAGS=${TAGS:-rpm sysv one}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux-ng bind-utils cloud-utils-growpart dracut-modules-growroot ruby rubygem-json sudo shadow-utils open-vm-tools qemu-guest-agent}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux-ng bash curl bind-utils cloud-utils-growpart dracut-modules-growroot ruby rubygem-json sudo shadow-utils open-vm-tools qemu-guest-agent}
|
|
|
|
|
PROVIDES=${PROVIDES:-}
|
|
|
|
|
REPLACES=${REPLACES:-cloud-init}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.one}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.one}
|
|
|
|
|
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall}
|
|
|
|
|
PREUN=${PREUN:-preuninstall}
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -16,10 +18,12 @@ case "${TARGET}" in
|
|
|
|
|
RELSUFFIX=${RELSUFFIX:-.el6}
|
|
|
|
|
TYPE=${TYPE:-rpm}
|
|
|
|
|
TAGS=${TAGS:-rpm sysv ec2}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux-ng bind-utils cloud-utils-growpart dracut-modules-growroot ruby rubygem-json sudo shadow-utils}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux-ng bash curl bind-utils cloud-utils-growpart dracut-modules-growroot ruby rubygem-json sudo shadow-utils}
|
|
|
|
|
PROVIDES=${PROVIDES:-}
|
|
|
|
|
REPLACES=${REPLACES:-cloud-init}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.ec2}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.ec2}
|
|
|
|
|
CONFLICTS=${CONFLICTS:-${REPLACES} one-context}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.ec2 postinstall}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.ec2 preuninstall}
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
'el7')
|
|
|
|
@ -27,21 +31,25 @@ case "${TARGET}" in
|
|
|
|
|
RELSUFFIX=${RELSUFFIX:-.el7}
|
|
|
|
|
TYPE=${TYPE:-rpm}
|
|
|
|
|
TAGS=${TAGS:-rpm systemd one}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bind-utils cloud-utils-growpart ruby rubygem-json sudo shadow-utils open-vm-tools qemu-guest-agent}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart ruby rubygem-json sudo shadow-utils open-vm-tools qemu-guest-agent}
|
|
|
|
|
PROVIDES=${PROVIDES:-}
|
|
|
|
|
REPLACES=${REPLACES:-cloud-init}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.one}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.one}
|
|
|
|
|
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall}
|
|
|
|
|
PREUN=${PREUN:-preuninstall}
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
'el7_ec2')
|
|
|
|
|
NAME=${NAME:-one-context-ec2}
|
|
|
|
|
RELSUFFIX=${RELSUFFIX:-.el7}
|
|
|
|
|
TYPE=${TYPE:-rpm}
|
|
|
|
|
TAGS=${TAGS:-rpm sysv ec2}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bind-utils cloud-utils-growpart ruby rubygem-json sudo shadow-utils}
|
|
|
|
|
TAGS=${TAGS:-rpm systemd ec2}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart ruby rubygem-json sudo shadow-utils}
|
|
|
|
|
PROVIDES=${PROVIDES:-}
|
|
|
|
|
REPLACES=${REPLACES:-cloud-init}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.ec2}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.ec2}
|
|
|
|
|
CONFLICTS=${CONFLICTS:-${REPLACES} one-context}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.ec2 postinstall}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.ec2 preuninstall}
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
'suse')
|
|
|
|
@ -49,32 +57,52 @@ case "${TARGET}" in
|
|
|
|
|
RELSUFFIX=${RELSUFFIX:-.suse}
|
|
|
|
|
TYPE=${TYPE:-rpm}
|
|
|
|
|
TAGS=${TAGS:-rpm systemd one}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bind-utils growpart ruby sudo shadow open-vm-tools qemu-guest-agent} # rubygem-json}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils growpart ruby sudo shadow open-vm-tools qemu-guest-agent} # rubygem-json}
|
|
|
|
|
PROVIDES=${PROVIDES:-}
|
|
|
|
|
REPLACES=${REPLACES:-cloud-init cloud-init-config-suse}
|
|
|
|
|
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall}
|
|
|
|
|
PREUN=${PREUN:-preuninstall}
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
'suse_ec2')
|
|
|
|
|
NAME=${NAME:-one-context-ec2}
|
|
|
|
|
RELSUFFIX=${RELSUFFIX:-.suse}
|
|
|
|
|
TYPE=${TYPE:-rpm}
|
|
|
|
|
TAGS=${TAGS:-rpm systemd ec2}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils growpart ruby sudo shadow} # rubygem-json}
|
|
|
|
|
PROVIDES=${PROVIDES:-}
|
|
|
|
|
REPLACES=${REPLACES:-cloud-init cloud-init-config-suse}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.one}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.one}
|
|
|
|
|
CONFLICTS=${CONFLICTS:-${REPLACES} one-context}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.ec2 postinstall}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.ec2 preuninstall}
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'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 ifupdown acpid sudo passwd open-vm-tools qemu-guest-agent}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bash curl bind9-host cloud-utils ruby python ifupdown acpid sudo passwd open-vm-tools qemu-guest-agent}
|
|
|
|
|
PROVIDES=${PROVIDES:-}
|
|
|
|
|
REPLACES=${REPLACES:-cloud-init}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.one}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.one}
|
|
|
|
|
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall}
|
|
|
|
|
PREUN=${PREUN:-preuninstall}
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
'deb_ec2')
|
|
|
|
|
NAME=${NAME:-one-context-ec2}
|
|
|
|
|
RELSUFFIX=${RELSUFFIX:-}
|
|
|
|
|
TYPE=${TYPE:-deb}
|
|
|
|
|
TAGS=${TAGS:-deb ec2}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bind9-host cloud-utils ruby python ifupdown sudo passwd}
|
|
|
|
|
TAGS=${TAGS:-deb sysv systemd upstart ec2}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bash curl bind9-host cloud-utils ruby python ifupdown sudo passwd resolvconf}
|
|
|
|
|
PROVIDES=${PROVIDES:-}
|
|
|
|
|
REPLACES=${REPLACES:-cloud-init}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.ec2}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.ec2}
|
|
|
|
|
CONFLICTS=${CONFLICTS:-${REPLACES} one-context}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.ec2 postinstall}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.ec2 preuninstall}
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
'alpine')
|
|
|
|
@ -82,16 +110,34 @@ case "${TARGET}" in
|
|
|
|
|
RELSUFFIX=${RELSUFFIX:-}
|
|
|
|
|
TYPE=${TYPE:-apk}
|
|
|
|
|
TAGS=${TAGS:-apk one}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bash curl rsync udev iptables sfdisk e2fsprogs-extra open-vm-tools qemu-guest-agent keepalived quagga sudo shadow}
|
|
|
|
|
REPLACES=${REPLACES:-}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.one}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.one}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bash curl rsync udev iptables sfdisk e2fsprogs-extra keepalived quagga sudo shadow open-vm-tools qemu-guest-agent}
|
|
|
|
|
PROVIDES=${PROVIDES:-}
|
|
|
|
|
REPLACES=${REPLACES:-} #not respected
|
|
|
|
|
CONFLICTS=${CONFLICTS:-one-context-ec2}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall}
|
|
|
|
|
PREUN=${PREUN:-preuninstall}
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
'alpine_ec2')
|
|
|
|
|
NAME=${NAME:-one-context-ec2}
|
|
|
|
|
RELSUFFIX=${RELSUFFIX:-}
|
|
|
|
|
TYPE=${TYPE:-apk}
|
|
|
|
|
TAGS=${TAGS:-apk ec2}
|
|
|
|
|
DEPENDS=${DEPENDS:-util-linux bash curl rsync udev iptables sfdisk e2fsprogs-extra keepalived quagga sudo shadow}
|
|
|
|
|
PROVIDES=${PROVIDES:-}
|
|
|
|
|
REPLACES=${REPLACES:-} #not respected
|
|
|
|
|
CONFLICTS=${CONFLICTS:-one-context}
|
|
|
|
|
POSTIN=${POSTINST:-postinstall.ec2 postinstall}
|
|
|
|
|
PREUN=${PREUN:-preuninstall.ec2 preuninstall}
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'arch')
|
|
|
|
|
NAME=${NAME:-one-context}
|
|
|
|
|
TYPE=${TYPE:-dir}
|
|
|
|
|
TAGS=${TAGS:-arch one}
|
|
|
|
|
echo 'ArchLinux target is currently not maintained'
|
|
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*)
|
|
|
|
|