Unverified Commit 0f07fb20 authored by VanoMajukin's avatar VanoMajukin Committed by GitHub

epm play: add grdcontrol (eterbug #18608) (#495)

parent 9b3274bb
#!/bin/sh
PKGNAME="grdcontrol"
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Guardant Control Center Implements Guardant SLK functional"
URL="https://www.guardant.ru/support/users/control-center/"
. $(dirname $0)/common.sh
[ "$VERSION" = "*" ] && VERSION="$(basename $(eget --list --latest https://download.guardant.ru/Guardant_Control_Center/ '*/'))"
[ -n "$VERSION" ] || fatal "Can't get version."
pkgtype="$(epm print info -p)"
case "$pkgtype" in
rpm)
# all rpm have the same name pattern with "-0" before architecture
file="grdcontrol-${VERSION}-0.x86_64.rpm"
;;
deb)
file="grdcontrol-${VERSION}_amd64.deb"
;;
*)
file="grdcontrol-${VERSION}_amd64.deb"
;;
esac
PKGURL="https://download.guardant.ru/Guardant_Control_Center/$VERSION/$file"
install_pkgurl || exit
cat <<EOF
Note: run
# serv grdcontrol on
to start Guardant Control Center permanently
EOF
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
install_file /opt/guardant/grdcontrol/grdcontrol.service /etc/systemd/system/grdcontrol.service
install_file /opt/guardant/grdcontrol/95-grdnt.rules /etc/udev/rules.d/95-grdnt.rules
add_bin_link_command license_wizard /opt/guardant/grdcontrol/license_wizard
add_libs_requires
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment