gh-96: Arch Linux support packaging WIP

5.6.0
Vlastimil Holer 7 years ago
parent 1d98c317f9
commit ae816ccbad
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -64,17 +64,20 @@ To get support check the OpenNebula web page:
DESCRIPTION=${DESCRIPTION:-$DESC} DESCRIPTION=${DESCRIPTION:-$DESC}
URL=${URL:-http://opennebula.org} URL=${URL:-http://opennebula.org}
RELEASE_FULL="${RELEASE}${RELSUFFIX}" RELEASE_FULL="${RELEASE}${RELSUFFIX}"
EXT="${EXT:-${TYPE}}"
if [ "${TYPE}" = 'deb' ]; then if [ "${TYPE}" = 'deb' ]; then
FILENAME="${NAME}_${VERSION}-${RELEASE_FULL}.${TYPE}" FILENAME="${NAME}_${VERSION}-${RELEASE_FULL}.${EXT}"
elif [ "${TYPE}" = 'apk' ]; then elif [ "${TYPE}" = 'apk' ]; then
RELEASE_FULL="r${RELEASE_FULL}" RELEASE_FULL="r${RELEASE_FULL}"
FILENAME="${NAME}-${VERSION}-${RELEASE_FULL}.${TYPE}" FILENAME="${NAME}-${VERSION}-${RELEASE_FULL}.${EXT}"
elif [ "${TARGET}" = 'arch' ]; then
FILENAME="${NAME}-${VERSION}-${RELEASE_FULL}-any.${EXT}"
elif [ "${TYPE}" = 'iso' ]; then elif [ "${TYPE}" = 'iso' ]; then
LABEL="${NAME}-${VERSION}" LABEL="${NAME}-${VERSION}"
FILENAME="${NAME}-${VERSION}-${RELEASE_FULL}.${TYPE}" FILENAME="${NAME}-${VERSION}-${RELEASE_FULL}.${EXT}"
else else
FILENAME="${NAME}-${VERSION}-${RELEASE_FULL}.noarch.${TYPE}" FILENAME="${NAME}-${VERSION}-${RELEASE_FULL}.noarch.${EXT}"
fi fi
### ###
@ -175,6 +178,8 @@ else
${CONFLICTS:+ --conflicts ${CONFLICTS// / --conflicts }} \ ${CONFLICTS:+ --conflicts ${CONFLICTS// / --conflicts }} \
${PROVIDES:+ --provides ${PROVIDES// / --provides }} \ ${PROVIDES:+ --provides ${PROVIDES// / --provides }} \
--deb-no-default-config-files \ --deb-no-default-config-files \
--pacman-user 0 \
--pacman-group 0 \
${CONFIG_FILES} \ ${CONFIG_FILES} \
--package "${OUT}" --package "${OUT}"
fi fi

@ -158,8 +158,19 @@ case "${TARGET}" in
'arch') 'arch')
NAME=${NAME:-one-context} NAME=${NAME:-one-context}
TYPE=${TYPE:-dir} RELSUFFIX=${RELSUFFIX:-}
TAGS=${TAGS:-arch one} TYPE=${TYPE:-pacman}
EXT=${EXT:-pkg.tar.xz}
TAGS=${TAGS:-arch systemd one}
# mkinitcpio-growrootfs ruby-json
DEPENDS=${DEPENDS:-filesystem util-linux bash curl bind-tools ruby sudo shadow open-vm-tools qemu-guest-agent}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
POSTIN=${POSTINST:-pkg/postinstall}
PREUN=${PREUN:-pkg/preuninstall}
POSTUN=${POSTUN:-pkg/postuninstall}
POSTUP=${POSTUP:-pkg/postupgrade}
echo 'ArchLinux target is currently not maintained' echo 'ArchLinux target is currently not maintained'
exit 1 exit 1
;; ;;

Loading…
Cancel
Save