1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="ASEDriveIIIe Serial Card Reader"
7 HOMEPAGE="http://www.athena-scs.com"
8 SRC_URI="http://www.athena-scs.com/downloads/${P}.tar.bz2"
12 KEYWORDS="~amd64 ~x86"
13 RDEPEND=">=sys-apps/pcsc-lite-1.3.0"
20 local conf="/etc/reader.conf.d/${PN}.conf"
22 dodir "$(dirname "${conf}")"
23 insinto "$(dirname "${conf}")"
24 newins "etc/reader.conf" "$(basename "${conf}")"
29 elog "1. Update ${conf} file"
30 elog "2. Run update-reader.conf, yes this is a command..."
31 elog "3. Restart pcscd"
36 # Without this, pcscd will not start next time.
38 local conf="/etc/reader.conf.d/${PN}.conf"
39 if ! [ -f "$(grep LIBPATH "${conf}" | sed 's/LIBPATH *//' | sed 's/ *$//g' | head -n 1)" ]; then
43 elog "You need to restart pcscd"