diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-02-22 07:17:12 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-02-22 07:17:12 +0000 |
commit | 927a204bfc29cb07793b634c82a6b3f159dff17b (patch) | |
tree | b5438d260e1e52ef994854b47cac267752327da7 | |
parent | header fix; inherit eutils for epatch; arm needs deps first (diff) | |
download | historical-927a204bfc29cb07793b634c82a6b3f159dff17b.tar.gz historical-927a204bfc29cb07793b634c82a6b3f159dff17b.tar.bz2 historical-927a204bfc29cb07793b634c82a6b3f159dff17b.zip |
initial ebuild #28202
-rw-r--r-- | dev-libs/openct/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/openct/files/digest-openct-0.5.0 | 1 | ||||
-rw-r--r-- | dev-libs/openct/files/openct.rc | 30 | ||||
-rw-r--r-- | dev-libs/openct/files/usb.usermap | 6 | ||||
-rw-r--r-- | dev-libs/openct/openct-0.5.0.ebuild | 65 | ||||
-rw-r--r-- | dev-libs/opensc/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/opensc/files/digest-opensc-0.8.1 | 1 | ||||
-rw-r--r-- | dev-libs/opensc/opensc-0.8.1.ebuild | 41 |
8 files changed, 160 insertions, 0 deletions
diff --git a/dev-libs/openct/ChangeLog b/dev-libs/openct/ChangeLog new file mode 100644 index 000000000000..959ff7979e47 --- /dev/null +++ b/dev-libs/openct/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-libs/openct +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openct/ChangeLog,v 1.1 2004/02/22 07:16:42 vapier Exp $ + +*openct-0.5.0 (22 Feb 2004) + + 22 Feb 2004; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by Lars T. Mikkelsen/Peter Stuge #28202. diff --git a/dev-libs/openct/files/digest-openct-0.5.0 b/dev-libs/openct/files/digest-openct-0.5.0 new file mode 100644 index 000000000000..944bb76490df --- /dev/null +++ b/dev-libs/openct/files/digest-openct-0.5.0 @@ -0,0 +1 @@ +MD5 5e6de721d22db8f5da060a1843bb3259 openct-0.5.0.tar.gz 417742 diff --git a/dev-libs/openct/files/openct.rc b/dev-libs/openct/files/openct.rc new file mode 100644 index 000000000000..2325e86e98fa --- /dev/null +++ b/dev-libs/openct/files/openct.rc @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openct/files/openct.rc,v 1.1 2004/02/22 07:16:42 vapier Exp $ + +depend() { + need localmount +} + +checkconfig() { + if [ ! -e /etc/openct.conf ] ; then + eerror "You need an /etc/openct.conf file to run OpenCT" + return 1 + fi + return 0 +} + +start() { + checkconfig || return 1 + + ebegin "Starting OpenCT" + /usr/sbin/openct-control init + eend $? +} + +stop() { + ebegin "Stopping OpenCT" + /usr/sbin/openct-control shutdown + eend $? +} diff --git a/dev-libs/openct/files/usb.usermap b/dev-libs/openct/files/usb.usermap new file mode 100644 index 000000000000..bff916a1a43c --- /dev/null +++ b/dev-libs/openct/files/usb.usermap @@ -0,0 +1,6 @@ +openct 0x0003 0x0973 0x0001 0x0000 0x0001 0xff 0x00 0x00 0xff 0x00 0x00 0x00000000 +openct 0x0003 0x0529 0x050c 0x0000 0x0001 0xff 0x00 0x00 0xff 0x00 0x00 0x00000000 +openct 0x0003 0x0529 0x0514 0x0000 0x0001 0xff 0x00 0x00 0xff 0x00 0x00 0x00000000 +openct 0x0003 0x073d 0x0005 0x0000 0x0001 0xff 0x00 0x00 0xff 0x00 0x00 0x00000000 +openct 0x0003 0x04b9 0x1300 0x0000 0x0001 0xff 0x00 0x00 0xff 0x00 0x00 0x00000000 +openct 0x0003 0x076b 0x0596 0x0000 0x0001 0xff 0x00 0x00 0xff 0x00 0x00 0x00000000 diff --git a/dev-libs/openct/openct-0.5.0.ebuild b/dev-libs/openct/openct-0.5.0.ebuild new file mode 100644 index 000000000000..77782a49cbb3 --- /dev/null +++ b/dev-libs/openct/openct-0.5.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openct/openct-0.5.0.ebuild,v 1.1 2004/02/22 07:16:42 vapier Exp $ + +inherit eutils + +DESCRIPTION="OpenCT is a library for accessing smart card terminals." +HOMEPAGE="http://opensc.org/" +SRC_URI="http://opensc.org/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" +IUSE="usb" + +RDEPEND="virtual/glibc + usb? ( >=dev-libs/libusb-0.1.7 + >=sys-apps/hotplug-20030805-r1 )" +DEPEND="${RDEPEND} + >=sys-apps/sed-4.0.7" + +pkg_setup() { + enewgroup openct +} + +src_compile() { + econf --localstatedir=/var || die + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + + 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 + + exeinto /etc/init.d + newexe ${FILESDIR}/openct.rc openct || die + + diropts -m0750 -gopenct + dodir /var/run/openct + + dodoc ANNOUNCE AUTHORS NEWS README TODO + dohtml doc/openct.{html,css} +} + +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." +} diff --git a/dev-libs/opensc/ChangeLog b/dev-libs/opensc/ChangeLog new file mode 100644 index 000000000000..865ae3920859 --- /dev/null +++ b/dev-libs/opensc/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-libs/opensc +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/ChangeLog,v 1.1 2004/02/22 07:17:12 vapier Exp $ + +*opensc-0.8.1 (22 Feb 2004) + + 22 Feb 2004; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by Lars T. Mikkelsen/Peter Stuge #28202. diff --git a/dev-libs/opensc/files/digest-opensc-0.8.1 b/dev-libs/opensc/files/digest-opensc-0.8.1 new file mode 100644 index 000000000000..4a8463064b25 --- /dev/null +++ b/dev-libs/opensc/files/digest-opensc-0.8.1 @@ -0,0 +1 @@ +MD5 2b64a8e629bd28a00e707e35fd3eb9c7 opensc-0.8.1.tar.gz 894529 diff --git a/dev-libs/opensc/opensc-0.8.1.ebuild b/dev-libs/opensc/opensc-0.8.1.ebuild new file mode 100644 index 000000000000..864d16bfd1bd --- /dev/null +++ b/dev-libs/opensc/opensc-0.8.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/opensc-0.8.1.ebuild,v 1.1 2004/02/22 07:17:12 vapier Exp $ + +DESCRIPTION="SmartCard library and applications" +HOMEPAGE="http://www.opensc.org/" +SRC_URI="http://www.opensc.org/files/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="ldap pam" + +RDEPEND="ldap? ( net-nds/openldap ) + pam? ( >=sys-libs/pam-0.77 + >=sys-apps/shadow-4.0.3 ) + >=sys-apps/openct-0.5.0" + +src_compile() { + econf \ + --disable-usbtoken \ + --with-openct=/usr \ + --without-pcsclite \ + --without-plugin-dir \ + `use_enable ldap` \ + `use_with pam` \ + ${myconf} || die + emake -j1 || die +} + +src_install() { + make install DESTDIR=${D} || die + + if use pam ; then + dodir /lib/security/ + dosym ../../usr/lib/security/pam_opensc.so /lib/security/ + fi + + dodoc ANNOUNCE AUTHORS ChangeLog NEWS README + dohtml docs/opensc.html docs/opensc.css +} |