1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils multilib
8 DESCRIPTION="SafeNet (Aladdin) eTokens Middleware (PRO, NG OTP, Flash, Java)"
10 MY_PN="SafenetAuthenticationClient"
13 MY_P_STD="${MY_PN}-${MY_PV}"
14 SRC_URI="http://repositorio.serpro.gov.br/drivers/safenet/linux/SafenetAuthenticationClient-BR-10.3_Linux_Ubuntu-RedHat(32-64bits).zip"
16 HOMEPAGE="http://aladdin-rd.ru"
34 ssl? ( dev-libs/libp11 )
47 unpack "$S/SafenetAuthenticationClient-BR-10.0.37-0_amd64.deb"
49 unpack "$S/SafenetAuthenticationClient-BR-10.0.37-0_i386.deb"
52 unpack "$S/data.tar.xz"
56 mv lib usr/$(get_libdir)
62 cp "${FILESDIR}/SACSrv.init" etc/init.d/SACSrv
67 local usb_readers_dir="usr/$(get_libdir)/readers/usb"
69 mkdir -p "${usb_readers_dir}"
70 ln -s "../../../share/eToken/drivers/aks-ifdh.bundle" "${usb_readers_dir}/aks-ifdh.bundle"
72 pushd usr/share/eToken/drivers/aks-ifdh.bundle/Contents/Linux
74 ln -s libAksIfdh.so{.$(ver_cut 1-2),}
78 touch etc/conf.d/SACSrv
86 einfo "usermod -aG usb pcscd"
88 einfo "rc-update add SACSrv default"
90 einfo "If you need some help, you can ask the help in that article:"
91 einfo "http://www.it-lines.ru/blogs/linux/nastrojka-etoken-v-gentoo-linux"