Commit bb750ed0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play aksusbd: switch to support vendor tarball, add .deb support, improvements

parent 6136f104
......@@ -11,8 +11,30 @@ PKGDIR="$(mktemp -d)"
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
erc $TAR || fatal
if echo "$TAR" | grep "Sentinel_LDK_Linux_Run-time_Installer_script.tar.gz" ; then
erc $TAR || fatal
TAR="Sentinel_LDK_Linux_Run-time_Installer_script/aksusbd-*.tar.gz"
fi
cp -v $PRODUCT*/pkg/aksusbd-*.x86_64.rpm $CURDIR || fatal
if echo "$TAR" | grep "aksusbd" ; then
erc $TAR || fatal
else
fatal "How no idea how to handle $TAR"
fi
return_tar $CURDIR/$PRODUCT*.rpm
pkgtype="$(epm print info -p)"
case $pkgtype in
rpm)
pkg="aksusbd-*.x86_64.rpm"
;;
deb)
pkg="aksusbd_*_amd64.deb"
;;
*)
pkg="aksusbd_*_amd64.deb"
;;
esac
cp -v $PRODUCT*/pkg/$pkg $CURDIR || fatal
return_tar $CURDIR/$pkg
......@@ -6,7 +6,8 @@ DESCRIPTION="Sentinel LDK daemon (HASP) from the official site"
. $(dirname $0)/common.sh
# Dropping Support for HASP HL 1.x API and HASP4 API
# HASP HL 1.x API and HASP4 API are no longer supported with Sentinel LDK Run-time Environment RTE 8.41 or later.
PKGURL="https://sd7.ascon.ru/Public/Utils/Sentinel%20HASP/Linux_driver/aksusbd_vlib46707.tar"
epm pack --repack --install $PKGNAME $PKGURL
#PKGURL="https://sd7.ascon.ru/Public/Utils/Sentinel%20HASP/Linux_driver/aksusbd_vlib46707.tar"
# Site: https://supportportal.gemalto.com/csm?id=kb_category&kb_category=f9ae29a44fb2c304873b69d18110c764
# 8.53 version
PKGURL="https://supportportalsirius.thalesgroup.com/Files%2F01954629db5ea78cfe0aff3dbf9619a0%2FSentinel_LDK_Linux_Run-time_Installer_script.tar.gz?Expires=1681977609125&KeyName=sirius-prod-signing-key&Signature=KGaEmanTGXEeN7Aop4dg5EqOgKY"
epm pack --install $PKGNAME $PKGURL
......@@ -16,6 +16,9 @@ chmod -v u+w $BUILDROOT/usr/sbin/*
move_file /usr/sbin/aksusbd_x86_64 /usr/sbin/aksusbd
move_file /usr/sbin/hasplmd_x86_64 /usr/sbin/hasplmd
mkdir $BUILDROOT/etc/init.d/
subst "s|aksusbd_x86_64|aksusbd|g" $BUILDROOT/etc/udev/rules.d/80-hasp.rules
mkdir -p $BUILDROOT/etc/init.d/
remove_dir /etc/init.d
remove_dir /var/hasplm
remove_dir /var/hasplm/init
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