summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetre Rodan <kaiowas@gentoo.org>2006-09-22 11:20:19 +0000
committerPetre Rodan <kaiowas@gentoo.org>2006-09-22 11:20:19 +0000
commita4c1e6c0ca5755adc6ba0fdb548a742933f32e85 (patch)
tree6d0be5b28a7a0ed8e7a24456b77f66bf1b17eb0b /dev-libs/openct
parentSet myself as maintainer. (diff)
downloadgentoo-2-a4c1e6c0ca5755adc6ba0fdb548a742933f32e85.tar.gz
gentoo-2-a4c1e6c0ca5755adc6ba0fdb548a742933f32e85.tar.bz2
gentoo-2-a4c1e6c0ca5755adc6ba0fdb548a742933f32e85.zip
version bump
(Portage version: 2.1.1)
Diffstat (limited to 'dev-libs/openct')
-rw-r--r--dev-libs/openct/ChangeLog7
-rw-r--r--dev-libs/openct/files/digest-openct-0.6.93
-rw-r--r--dev-libs/openct/openct-0.6.9.ebuild85
3 files changed, 94 insertions, 1 deletions
diff --git a/dev-libs/openct/ChangeLog b/dev-libs/openct/ChangeLog
index eed55e624b1a..9f3173700d37 100644
--- a/dev-libs/openct/ChangeLog
+++ b/dev-libs/openct/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/openct
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/openct/ChangeLog,v 1.24 2006/08/17 21:10:40 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/openct/ChangeLog,v 1.25 2006/09/22 11:20:19 kaiowas Exp $
+
+*openct-0.6.9 (22 Sep 2006)
+
+ 22 Sep 2006; Petre Rodan <kaiowas@gentoo.org> +openct-0.6.9.ebuild:
+ version bump
17 Aug 2006; Gustavo Zacarias <gustavoz@gentoo.org> openct-0.6.8.ebuild:
Stable on sparc
diff --git a/dev-libs/openct/files/digest-openct-0.6.9 b/dev-libs/openct/files/digest-openct-0.6.9
new file mode 100644
index 000000000000..2d40f5c9661a
--- /dev/null
+++ b/dev-libs/openct/files/digest-openct-0.6.9
@@ -0,0 +1,3 @@
+MD5 26c7f8d9fabbd698303601cc7d844252 openct-0.6.9.tar.gz 665513
+RMD160 72f69b95e302f75ef54dd64f77f63767a03d8dd8 openct-0.6.9.tar.gz 665513
+SHA256 878703c82cbc1caac996063f1efc54d1adc2b2b94a03dad97d813ca6691a6ef0 openct-0.6.9.tar.gz 665513
diff --git a/dev-libs/openct/openct-0.6.9.ebuild b/dev-libs/openct/openct-0.6.9.ebuild
new file mode 100644
index 000000000000..29a00c0747cd
--- /dev/null
+++ b/dev-libs/openct/openct-0.6.9.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/openct/openct-0.6.9.ebuild,v 1.1 2006/09/22 11:20:19 kaiowas Exp $
+
+inherit eutils
+
+DESCRIPTION="library for accessing smart card terminals"
+HOMEPAGE="http://www.opensc-project.org/openct/"
+SRC_URI="http://www.opensc-project.org/files/openct/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="usb"
+
+RDEPEND="usb? ( >=dev-libs/libusb-0.1.7 >=sys-apps/hotplug-20030805-r1 )"
+
+pkg_setup() {
+ enewgroup openct
+}
+
+src_compile() {
+ econf --localstatedir=/var || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+
+ # gentoo has the udev scripts in /etc/udev/scripts/
+ sed -i 's|RUN+="/lib/udev/|RUN+="/etc/udev/scripts/|' etc/openct.udev
+
+ insinto /etc
+ doins etc/openct.conf || die
+ if use usb ; then
+ insinto /etc/hotplug/usb
+ doins etc/openct.usermap || die
+ exeinto /etc/hotplug/usb
+ newexe etc/openct_usb openct || die
+ fi
+
+ if [ -e ${ROOT}etc/udev/rules.d ]; then
+ insinto /etc/udev/rules.d/
+ newins etc/openct.udev 70-openct.rules || die
+ fi
+
+ if [ -e ${ROOT}etc/udev/scripts ]; then
+ exeinto /etc/udev/scripts/
+ newexe etc/openct_pcmcia || die
+ newexe etc/openct_serial || die
+ newexe etc/openct_usb || die
+ fi
+
+ newinitd "${FILESDIR}"/openct.rc openct
+
+ diropts -m0750 -gopenct
+ keepdir /var/run/openct
+
+ dodoc NEWS TODO doc/README
+}
+
+pkg_preinst() {
+ if [[ -e ${ROOT}/usr/lib/libopenct.so.0 ]] ; then
+ cp "${ROOT}"/usr/lib/libopenct.so.0 "${IMAGE}"/usr/lib/
+ fi
+}
+
+pkg_postinst() {
+ einfo "You need to edit /etc/openct.conf to enable serial readers."
+ einfo
+ einfo "To use hotplugging (USB readers) your kernel has to be compiled"
+ einfo "with CONFIG_HOTPLUG enabled and sys-apps/hotplug must be emerged."
+ einfo
+ einfo "You should add \"openct\" to your default runlevel. To do so"
+ einfo "type \"rc-update add openct default\"."
+ einfo
+ einfo "You need to be a member of the (newly created) group openct to"
+ einfo "access smart card readers connected to this system. Set users'"
+ einfo "groups with usermod -G. root always has access."
+ if [[ -e ${ROOT}/usr/lib/libopenct.so.0 ]] ; then
+ echo
+ ewarn "Please run: revdep-rebuild --library libopenct.so.0"
+ echo
+ fi
+}