summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2005-02-01 23:26:35 +0000
committerHanno Böck <hanno@gentoo.org>2005-02-01 23:26:35 +0000
commit369d85e9a6c97b5f9ede3a32227b2f13c5ecb091 (patch)
tree2172d2e3bc4adb2dd9a7ed4c76e62ffa1623e4cb /sys-libs/libchipcard
parentamd64/ia64 stable (diff)
downloadgentoo-2-369d85e9a6c97b5f9ede3a32227b2f13c5ecb091.tar.gz
gentoo-2-369d85e9a6c97b5f9ede3a32227b2f13c5ecb091.tar.bz2
gentoo-2-369d85e9a6c97b5f9ede3a32227b2f13c5ecb091.zip
added libchipcard 2.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sys-libs/libchipcard')
-rw-r--r--sys-libs/libchipcard/ChangeLog8
-rw-r--r--sys-libs/libchipcard/files/chipcardd216
-rw-r--r--sys-libs/libchipcard/files/digest-libchipcard-1.9.9_beta1
-rw-r--r--sys-libs/libchipcard/libchipcard-1.9.9_beta.ebuild49
4 files changed, 73 insertions, 1 deletions
diff --git a/sys-libs/libchipcard/ChangeLog b/sys-libs/libchipcard/ChangeLog
index 4aec016ad206..3d96deec3aa7 100644
--- a/sys-libs/libchipcard/ChangeLog
+++ b/sys-libs/libchipcard/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-libs/libchipcard
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libchipcard/ChangeLog,v 1.17 2005/01/30 22:55:01 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libchipcard/ChangeLog,v 1.18 2005/02/01 23:26:35 hanno Exp $
+
+*libchipcard-1.9.9_beta (02 Feb 2005)
+
+ 02 Feb 2005; Hanno Boeck <hanno@gentoo.org> +files/chipcardd2,
+ +libchipcard-1.9.9_beta.ebuild:
+ Added libchipcard2 (former packages chipcard-server and chipcard-client).
30 Jan 2005; Hanno Boeck <hanno@gentoo.org> libchipcard-0.9.1-r1.ebuild:
Added SLOT="1" to make parallel install with libchipcard2 possible.
diff --git a/sys-libs/libchipcard/files/chipcardd2 b/sys-libs/libchipcard/files/chipcardd2
new file mode 100644
index 000000000000..31bc0207df41
--- /dev/null
+++ b/sys-libs/libchipcard/files/chipcardd2
@@ -0,0 +1,16 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libchipcard/files/chipcardd2,v 1.1 2005/02/01 23:26:35 hanno Exp $
+
+start() {
+ ebegin "Starting chipcard2 daemon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/chipcardd2
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping chipcard2 daemon"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/chipcardd2
+ eend $?
+}
diff --git a/sys-libs/libchipcard/files/digest-libchipcard-1.9.9_beta b/sys-libs/libchipcard/files/digest-libchipcard-1.9.9_beta
new file mode 100644
index 000000000000..aceead964bca
--- /dev/null
+++ b/sys-libs/libchipcard/files/digest-libchipcard-1.9.9_beta
@@ -0,0 +1 @@
+MD5 8e515dddc8f01e75c57561a9dfb874f4 libchipcard2-1.9.9beta.tar.gz 759658
diff --git a/sys-libs/libchipcard/libchipcard-1.9.9_beta.ebuild b/sys-libs/libchipcard/libchipcard-1.9.9_beta.ebuild
new file mode 100644
index 000000000000..09383d8f76b9
--- /dev/null
+++ b/sys-libs/libchipcard/libchipcard-1.9.9_beta.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libchipcard/libchipcard-1.9.9_beta.ebuild,v 1.1 2005/02/01 23:26:35 hanno Exp $
+
+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="~x86 ~sparc ~alpha ~ppc"
+
+IUSE="debug ssl usb"
+
+DEPEND=">=sys-libs/gwenhywfar-1.7.2
+ ssl? ( >=dev-libs/openssl-0.9.6b )
+ usb? ( dev-libs/libusb )"
+
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+
+ # Fix location of pid file
+ sed -i -e \
+ 's:\${localstatedir}/run/chipcard2:/var/run:g' configure
+
+ econf \
+ `use_enable ssl` \
+ `use_enable debug` \
+ `use_enable usb libusb` \
+ --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
+}