blob: 553879cf8e36f30a48987973282f5e2eac255aa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libchipcard/libchipcard-2.1.3.ebuild,v 1.1 2006/03/26 20:55:55 hanno Exp $
inherit eutils
MY_P="${PN}2-${PV}"
DESCRIPTION="Libchipcard is a library for easy access to chip cards via chip card readers (terminals)."
HOMEPAGE="http://www.libchipcard.de"
SRC_URI="mirror://sourceforge/libchipcard/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="2"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="debug ssl usb"
DEPEND=">=sys-libs/gwenhywfar-2.1.0
ssl? ( >=dev-libs/openssl-0.9.6b )
usb? ( dev-libs/libusb )
>=sys-fs/sysfsutils-1.2.0 "
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd ${S}
# Fix location of pid file
sed -i -e \
's:\${localstatedir}/run/chipcard2:/var/run:g' configure
}
src_compile() {
econf \
`use_enable ssl` \
`use_enable debug` \
`use_enable usb libusb` \
--datadir=/usr/lib/chipcard2-server \
--enable-pcsc || die
emake || die
}
src_install() {
make DESTDIR=${D} install || die
# ctapi.h conflicts with towitoko-package
rm ${D}/usr/include/ctapi.h
doinitd ${FILESDIR}/chipcardd2
dodoc INSTALL COPYING AUTHORS ChangeLog README
cp ${D}/etc/chipcard2-client/chipcardc2.conf.example \
${D}/etc/chipcard2-client/chipcardc2.conf
cp ${D}/etc/chipcard2-server/chipcardd2.conf.minimal \
${D}/etc/chipcard2-server/chipcardd2.conf
}
|