Commit 1c308123 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add guardant (glds)

parent 64fd5fae
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
PKG="$(basename $TAR)"
# we need this pack script to override broken package version
cp -v $TAR $PKG
cat <<EOF >$PKG.eepm.yaml
name: $PRODUCT
version: $VERSION
upstream_file: $PKG
EOF
return_tar $PKG
#!/bin/sh
PKGNAME=glds
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Guardant License Server from the official site"
URL="https://www.guardant.ru/support/users/download/1223/"
. $(dirname $0)/common.sh
[ "$VERSION" = "*" ] && VERSION="$(basename $(epm tool eget --list --latest https://download.guardant.ru/LM/Linux/ '*/'))"
shortarch=x64
pkgtype="$(epm print info -p)"
case "$pkgtype" in
rpm)
file="glds-*.x86_64.rpm"
;;
deb)
file="glds-*_x86_64.deb"
;;
*)
file="glds-*_x86_64.deb"
;;
esac
PKGURL=$(epm tool eget --list --latest https://download.guardant.ru/LM/Linux/$VERSION/$shortarch/ "$file") || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm pack $PKGNAME $repack --install "$PKGURL" "$VERSION" || exit
cat <<EOF
Note: run
# serv glds on
to start Guardant License Server permanently
EOF
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCTDIR=/opt/guardant/glds
. $(dirname $0)/common.sh
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