Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=589e2da0aebca9c23815bfe5b2d69bc20b9f6a86
commit 589e2da0aebca9c23815bfe5b2d69bc20b9f6a86 Author: crazy <[EMAIL PROTECTED]> Date: Thu Dec 6 19:24:06 2007 +0100 openct-0.6.14-1-i686 * New package * for bug #2278 diff --git a/source/apps-extra/openct/FrugalBuild b/source/apps-extra/openct/FrugalBuild new file mode 100644 index 0000000..94a2c17 --- /dev/null +++ b/source/apps-extra/openct/FrugalBuild @@ -0,0 +1,32 @@ +# Compiling Time: 0.30 SBU +# Maintainer: crazy <[EMAIL PROTECTED]> + +pkgname=openct +pkgver=0.6.14 +pkgrel=1 +pkgdesc="Library and tools for accessing smart card terminals." +url="http://www.opensc-project.org/openct/wiki/WikiStart" +depends=('libtool' 'glibc' 'libusb' 'udev') # hal if found +makedepends=('pcsc-lite') +groups=('apps-extra') +archs=('i686') +up2date="lynx -dump http://www.opensc-project.org/files/openct/|Flasttar" +source=(http://www.opensc-project.org/files/$pkgname/$pkgname-$pkgver.tar.gz rc.openct) +sha1sums=('a4432c69d87310bc653666aa41444703c64ff024' \ + '739d85ec3ab4310784fa59cf77a414e390f9644e') + +build() +{ + Fbuild --with-bundle-dir=/usr/share/pcsc/drivers + Ffilerel etc/openct.udev /etc/udev/rules.d/95-openct.rules + Fexerel etc/openct_usb /lib/udev/openct_usb + Fexerel etc/openct_pcmcia /lib/udev/openct_pcmcia + Fexerel etc/openct_serial /lib/udev/openct_serial + Ffilerel etc/openct.fdi /usr/share/hal/fdi/information/10freedesktop/10-usb-openct.fdi + Fexerel etc/openct.hald /usr/bin/hald-addon-openct + Ffilerel etc/openct.conf /etc/openct.conf.sample + Fmkdir var/run/openct + Frcd2 +} + +# optimization OK diff --git a/source/apps-extra/openct/rc.openct b/source/apps-extra/openct/rc.openct new file mode 100755 index 0000000..88cad12 --- /dev/null +++ b/source/apps-extra/openct/rc.openct @@ -0,0 +1,37 @@ +#!/bin/bash + +# rc.openct for FrugalWare +# distributed under GPL License + +# chkconfig: 2345 32 56 +# description: Starts or stops the OpenCT daemon + +source /lib/initscripts/functions +TEXTDOMAIN=openct +TEXTDOMAINDIR=/lib/initscripts/messages + +actions=(restart start stop) +daemon=$"openct daemon" + +conf="/etc/openct.conf" + +rc_start() { + if [ ! -e "$conf" ]; then + msg "You need a valid openct.conf before you can start the daemon.\n" + msg "Please edit /etc/openct.conf.sample\n" + exit 1 + else + start_msg + /usr/sbin/openct-control init + ok $? + fi +} + +rc_stop() { + stop_msg + + /usr/sbin/openct-control shutdown 1>/dev/null + ok $? +} + +rc_exec $1 _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
