# Copyright 2019 Arnaud Lefebvre # Distributed under the terms of the GNU General Public License v2 require systemd-service MY_PN=${PN/-bin} MY_PNV="${MY_PN}-${PV}" MY_PLATFORM="linux-x86_64" SUMMARY="Your window into the Elastic Stack" HOMEPAGE="https://www.elastic.co/${MY_PN}" DOWNLOADS="https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PNV}-${MY_PLATFORM}.tar.gz" LICENCES=" Apache-2.0 Elastic-License-2.0 SSPL-1.0 " SLOT="0" PLATFORMS="~amd64" MYOPTIONS="" DEPENDENCIES=" run: group/${MY_PN} user/${MY_PN} " BUGS_TO="arnaud.lefebvre@clever-cloud.com" WORK="${WORKBASE}/${MY_PNV}" RESTRICT="strip" pkg_setup() { exdirectory --allow /opt } src_install() { default edo mkdir "${IMAGE}"/opt edo cd "${WORKBASE}" edo mv "${MY_PNV}" "${IMAGE}"/opt/${MY_PN} # remove empty directories edo find "${IMAGE}" -type d -empty -delete install_systemd_files hereenvd 99${MY_PN} <