aboutsummaryrefslogtreecommitdiffstats
path: root/main/pcsc-lite
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-08-06 09:47:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-08-06 09:47:59 +0000
commit8fa6ea86545480c6b91adf7e90618689df6bc86a (patch)
tree78d65f0c6909f14cc797760ce511ae005d869693 /main/pcsc-lite
parentf76185cfcaa939d21d4c9915aec5d2882fff2e20 (diff)
downloadaports-8fa6ea86545480c6b91adf7e90618689df6bc86a.tar.bz2
aports-8fa6ea86545480c6b91adf7e90618689df6bc86a.tar.xz
main/pcsc-lite: fix user creation script
ref #3237
Diffstat (limited to 'main/pcsc-lite')
-rw-r--r--main/pcsc-lite/APKBUILD6
-rw-r--r--main/pcsc-lite/pcsc-lite.pre-install8
l---------main/pcsc-lite/pcsc-lite.pre-upgrade1
3 files changed, 11 insertions, 4 deletions
diff --git a/main/pcsc-lite/APKBUILD b/main/pcsc-lite/APKBUILD
index 70335d8be9..3f3ebcf071 100644
--- a/main/pcsc-lite/APKBUILD
+++ b/main/pcsc-lite/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer:
pkgname=pcsc-lite
pkgver=1.8.11
-pkgrel=1
+pkgrel=2
pkgdesc="Middleware to access a smart card using SCard API (PC/SC)"
url="http://pcsclite.alioth.debian.org/pcsclite.html"
arch="all"
@@ -10,11 +10,11 @@ license="Custom"
depends=""
depends_dev="udev-dev"
makedepends="$depends_dev perl automake autoconf libtool"
-install="pcsc-lite.pre-install"
+install="pcsc-lite.pre-install pcsc-lite.pre-upgrade"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://alioth.debian.org/frs/download.php/file/3991/pcsc-lite-1.8.11.tar.bz2
pcscd.initd
- musl-stacksize.patch
+ musl-stacksize.patch
pcsc-lite-1.8.11-nopolkit.patch"
_builddir="$srcdir"/pcsc-lite-$pkgver
diff --git a/main/pcsc-lite/pcsc-lite.pre-install b/main/pcsc-lite/pcsc-lite.pre-install
index 276309a423..1c1ba3c414 100644
--- a/main/pcsc-lite/pcsc-lite.pre-install
+++ b/main/pcsc-lite/pcsc-lite.pre-install
@@ -1,3 +1,9 @@
#!/bin/sh
-adduser -H -G pcscd -D -s /sbin/nologin pcscd 2>/dev/null
+
+username=pcscd
+groupname=$username
+
+addgroup -S $username 2>/dev/null
+adduser -S -H -h /var/run/$username -s /sbin/nologin -D -G $groupname \
+ $username 2>/dev/null
exit 0
diff --git a/main/pcsc-lite/pcsc-lite.pre-upgrade b/main/pcsc-lite/pcsc-lite.pre-upgrade
new file mode 120000
index 0000000000..46d75afaec
--- /dev/null
+++ b/main/pcsc-lite/pcsc-lite.pre-upgrade
@@ -0,0 +1 @@
+pcsc-lite.pre-install \ No newline at end of file