Commit 42c24c16 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add aksusbd

parent f47acd70
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
CURDIR="$(pwd)"
PKGDIR="$(mktemp -d)"
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
erc $TAR || fatal
cp -v $PRODUCT*/pkg/aksusbd-*.x86_64.rpm $CURDIR || fatal
return_tar $CURDIR/$PRODUCT*.rpm
#!/bin/sh
PKGNAME=aksusbd
SUPPORTEDARCHES="x86_64"
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
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
#subst '1iAutoReq:no' $SPEC
subst '1iAutoProv:no' $SPEC
install_file /var/hasplm/init/hasplmd.service /etc/systemd/system/hasplmd.service
install_file /var/hasplm/init/aksusbd.service /etc/systemd/system/aksusbd.service
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/
remove_dir /etc/init.d
remove_dir /var/hasplm
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