# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit rpm MY_PV=$(ver_rs 3 '-') MY_P=fetchmail-${MY_PV} DESCRIPTION="CMSV7 monitoring software" HOMEPAGE="https://www.cmsv7.com" SRC_URI="https://www.cmsv7.com/cmssoft/CMSV7_LINUX(AMD64)_${PV}_260327.rpm" S=${WORKDIR} QA_PREBUILT="*" LICENSE="GPL-2 public-domain" SLOT="0" KEYWORDS="-*" RESTRICT="mirror" # Need to test if the file can be unpacked with rpmoffset and cpio # If it can't then set: BDEPEND=" app-arch/rpm app-arch/xz-utils " # To force the use of rpmoffset and cpio instead of rpm2cpio from # app-arch/rpm, then set the following: #USE_RPMOFFSET_ONLY=1 RPM_COMPRESS_TYPE="xz" src_unpack() { rpm_src_unpack ${A} } src_prepare() { default } src_install() { cp -a opt usr "${ED}/" || die "Failed to copy installation files" }