summaryrefslogtreecommitdiff
path: root/pcr-testing/pcsclite-openrc
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2019-02-13 03:27:05 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2019-02-13 03:27:13 -0500
commit13cab15faefe5d867546bec85759143d176bf46b (patch)
tree8a9d1049201930096fc7f4c0ec4d5861dfb76556 /pcr-testing/pcsclite-openrc
parentfca82e7e4843f0b4916b9bbf7e803b673aba0200 (diff)
downloadabslibre-13cab15faefe5d867546bec85759143d176bf46b.tar.gz
abslibre-13cab15faefe5d867546bec85759143d176bf46b.tar.bz2
abslibre-13cab15faefe5d867546bec85759143d176bf46b.zip
add 'pcsclite-openrc'
Diffstat (limited to 'pcr-testing/pcsclite-openrc')
-rw-r--r--pcr-testing/pcsclite-openrc/PKGBUILD30
-rw-r--r--pcr-testing/pcsclite-openrc/pcscd.confd7
-rw-r--r--pcr-testing/pcsclite-openrc/pcscd.initd24
3 files changed, 61 insertions, 0 deletions
diff --git a/pcr-testing/pcsclite-openrc/PKGBUILD b/pcr-testing/pcsclite-openrc/PKGBUILD
new file mode 100644
index 000000000..290210f4b
--- /dev/null
+++ b/pcr-testing/pcsclite-openrc/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer (Artix): artoo <artoo@artixlinux.org>
+# Maintainer: bill-auger <bill-auger@programmer.net>
+
+
+pkgname=pcsclite-openrc
+pkgver=20190128
+pkgrel=2
+pkgdesc="OpenRC pcsclite init script"
+arch=('any')
+url="https://gitea.artixlinux.org/artixlinux/packages-openrc/src/branch/master/pcsclite-openrc/repos/community-any"
+license=('GPL2')
+depends=('openrc' 'pcsclite')
+conflicts=('systemd-sysvcompat')
+source=("pcscd.initd" "pcscd.confd")
+sha256sums=('be7210e7ebb17bee2da9a22082323fa87f3d76da71e6957b9205f3a04af4be20'
+ '75c38f3d60fc6506d6bccdefeace24143cae2786b5665770ec69aed3140407d4')
+
+
+_inst_initd(){
+ install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
+}
+
+_inst_confd(){
+ install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
+}
+
+package() {
+ _inst_initd 'pcscd'
+ _inst_confd 'pcscd'
+}
diff --git a/pcr-testing/pcsclite-openrc/pcscd.confd b/pcr-testing/pcsclite-openrc/pcscd.confd
new file mode 100644
index 000000000..283cb0f6d
--- /dev/null
+++ b/pcr-testing/pcsclite-openrc/pcscd.confd
@@ -0,0 +1,7 @@
+# config file for /etc/conf.d/pcscd
+
+EXTRA_OPTS=""
+
+PCSCD_USER="root"
+
+PCSCD_GROUP="root"
diff --git a/pcr-testing/pcsclite-openrc/pcscd.initd b/pcr-testing/pcsclite-openrc/pcscd.initd
new file mode 100644
index 000000000..a18ad78da
--- /dev/null
+++ b/pcr-testing/pcsclite-openrc/pcscd.initd
@@ -0,0 +1,24 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Copyright 2019 Artix Linux
+# Distributed under the terms of the GNU General Public License v2
+
+name="PC/SC Daemon"
+
+pidfile=/run/pcscd/pcscd.pid
+
+command=/usr/bin/pcscd
+command_args="${EXTRA_OPTS}"
+
+start_stop_daemon_args="--user ${PCSCD_USER}:${PCSCD_GROUP}"
+
+depend() {
+ need localmount
+ after udev openct dbus
+ use logger
+}
+
+start_pre() {
+ checkpath -d -m 0755 -o ${PCSCD_USER}:${PCSCD_GROUP} /run/pcscd
+}
+