diff options
author | Petre Rodan <kaiowas@gentoo.org> | 2006-06-24 11:50:07 +0000 |
---|---|---|
committer | Petre Rodan <kaiowas@gentoo.org> | 2006-06-24 11:50:07 +0000 |
commit | d7d1e60bcf16c2a3b2c7342dddb059cbcf4ac9bf (patch) | |
tree | a673929e49582cdb5eb0ccf861d993bfe31ef478 /dev-libs/openct | |
parent | adding patch for www.3322.net, solving bug #69090. (diff) | |
download | gentoo-2-d7d1e60bcf16c2a3b2c7342dddb059cbcf4ac9bf.tar.gz gentoo-2-d7d1e60bcf16c2a3b2c7342dddb059cbcf4ac9bf.tar.bz2 gentoo-2-d7d1e60bcf16c2a3b2c7342dddb059cbcf4ac9bf.zip |
version bump as per bug #137680
(Portage version: 2.1)
Diffstat (limited to 'dev-libs/openct')
-rw-r--r-- | dev-libs/openct/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/openct/files/digest-openct-0.6.8 | 3 | ||||
-rw-r--r-- | dev-libs/openct/openct-0.6.8.ebuild | 73 |
3 files changed, 83 insertions, 1 deletions
diff --git a/dev-libs/openct/ChangeLog b/dev-libs/openct/ChangeLog index 679b83bf94ea..68a618f658c5 100644 --- a/dev-libs/openct/ChangeLog +++ b/dev-libs/openct/ChangeLog @@ -1,6 +1,12 @@ # 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.14 2006/06/03 10:10:35 kaiowas Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openct/ChangeLog,v 1.15 2006/06/24 11:50:07 kaiowas Exp $ + +*openct-0.6.8 (24 Jun 2006) + + 24 Jun 2006; Petre Rodan <kaiowas@gentoo.org> -openct-0.6.7.ebuild, + +openct-0.6.8.ebuild: + version bump as per bug #137680 *openct-0.6.7 (03 Jun 2006) diff --git a/dev-libs/openct/files/digest-openct-0.6.8 b/dev-libs/openct/files/digest-openct-0.6.8 new file mode 100644 index 000000000000..95bb0a99e717 --- /dev/null +++ b/dev-libs/openct/files/digest-openct-0.6.8 @@ -0,0 +1,3 @@ +MD5 8fca95145f28929bf5f06bc03b32b625 openct-0.6.8.tar.gz 658965 +RMD160 238f0e27b23ded0b8a1dfa104e76fc8e727c6c2d openct-0.6.8.tar.gz 658965 +SHA256 d86faaf0ae847781a4ee9203bf16cb4b15b3dcb8c769ed8cd760f4a266562bd9 openct-0.6.8.tar.gz 658965 diff --git a/dev-libs/openct/openct-0.6.8.ebuild b/dev-libs/openct/openct-0.6.8.ebuild new file mode 100644 index 000000000000..a95c199f8b91 --- /dev/null +++ b/dev-libs/openct/openct-0.6.8.ebuild @@ -0,0 +1,73 @@ +# 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.8.ebuild,v 1.1 2006/06/24 11:50:07 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 + + # opensc ticket #18 + sed -i 's|usb:\([0-9a-fA-F]\{4\}\):\([0-9a-fA-F]\{4\}\)|usb:\1/\2|' etc/openct.conf + + 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/hotplug.openct openct || 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 +} |