summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
Diffstat (limited to 'legacy')
-rw-r--r--legacy/hwdata/APKBUILD47
-rw-r--r--legacy/hwdata/install-T.patch11
-rw-r--r--legacy/pcsc-lite/APKBUILD68
-rw-r--r--legacy/pcsc-lite/pcsc-lite.pre-install10
l---------legacy/pcsc-lite/pcsc-lite.pre-upgrade1
-rw-r--r--legacy/pcsc-lite/pcscd.initd23
-rw-r--r--legacy/wget/APKBUILD50
7 files changed, 102 insertions, 108 deletions
diff --git a/legacy/hwdata/APKBUILD b/legacy/hwdata/APKBUILD
deleted file mode 100644
index a25f9b891..000000000
--- a/legacy/hwdata/APKBUILD
+++ /dev/null
@@ -1,47 +0,0 @@
-# Maintainer:
-pkgname=hwdata
-pkgver=0.316
-pkgrel=0
-pkgdesc="Hardware identification and configuration data"
-url="https://github.com/vcrhonek/hwdata"
-arch="noarch"
-options="!check" # requires pciutils, which causes build loop
-license="GPL-2.0+"
-subpackages="$pkgname-usb $pkgname-pci $pkgname-pnp $pkgname-oui"
-depends="$subpackages"
-makedepends="bash"
-source="$pkgname-$pkgver.tar.gz::https://github.com/vcrhonek/hwdata/archive/v$pkgver.tar.gz
- install-T.patch"
-
-build() {
- cd "$builddir"
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- --sysconfdir=/etc \
- --datadir=/usr/share
- # nothing to make
-}
-
-package() {
- cd "$builddir"
- make -j1 DESTDIR="$pkgdir" install
- # remove modprobe blacklist
- rm -r "$pkgdir"/usr/lib
-}
-
-_mv() {
- pkgdesc="$pkgdesc - $1"
- depends=""
- mkdir -p "$subpkgdir"/usr/share/hwdata
- mv "$pkgdir"/usr/share/hwdata/$1 "$subpkgdir"/usr/share/hwdata
-}
-
-usb() { replaces="usbutils"; _mv usb.ids; }
-pci() { replaces="pciutils"; _mv pci.ids; }
-pnp() { _mv pnp.ids; }
-oui() { _mv oui.txt; }
-
-sha512sums="8d43b91e6c410c43d6831f793a8e5a71903072ebc72cfd3414fa70fb76efaa873474bfbdd6af015970c3e43f7ba65eaa4e0a781f87ad1170be82afc793ef6d3c hwdata-0.316.tar.gz
-88a786d8feb5c8b7de587ac70f3e4307d10ac5ed9b0edfc8711de1ba51808ca33a76df518cb5a508215c309289a079a778a91c3e6fc359d644d230de8d23f049 install-T.patch"
diff --git a/legacy/hwdata/install-T.patch b/legacy/hwdata/install-T.patch
deleted file mode 100644
index a98400841..000000000
--- a/legacy/hwdata/install-T.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./Makefile.orig 2014-04-22 06:38:35.320410230 +0000
-+++ ./Makefile 2014-04-22 06:39:15.260889885 +0000
-@@ -33,7 +33,7 @@
- install -m 644 $$foo $(DESTDIR)$(datadir)/$(NAME) ;\
- done
- mkdir -p -m 755 $(DESTDIR)$(libdir)/modprobe.d
-- install -m 644 -T blacklist.conf $(DESTDIR)$(libdir)/modprobe.d/dist-blacklist.conf
-+ install -m 644 blacklist.conf $(DESTDIR)$(libdir)/modprobe.d/dist-blacklist.conf
-
- commit:
- git commit -a ||:
diff --git a/legacy/pcsc-lite/APKBUILD b/legacy/pcsc-lite/APKBUILD
new file mode 100644
index 000000000..3066ad3bc
--- /dev/null
+++ b/legacy/pcsc-lite/APKBUILD
@@ -0,0 +1,68 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer:
+pkgname=pcsc-lite
+pkgver=1.8.24
+pkgrel=0
+pkgdesc="Middleware to access a smart card using SCard API (PC/SC)"
+url="https://pcsclite.apdu.fr/"
+arch="all"
+license="BSD-3-Clause AND GPL-3.0+ AND BSD-2-Clause AND MIT"
+depends=""
+depends_dev="eudev-dev"
+makedepends="$depends_dev perl perl-dev libcap-ng-utils polkit-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-openrc"
+install="pcsc-lite.pre-install pcsc-lite.pre-upgrade"
+source="https://pcsclite.apdu.fr/files/pcsc-lite-$pkgver.tar.bz2
+ pcscd.initd"
+
+build() {
+ cd "$builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-libusb \
+ --enable-libudev \
+ --disable-maintainer-mode \
+ --disable-silent-rules \
+ --without-systemdsystemunitdir \
+ --enable-ipcdir=/run/pcscd \
+ --enable-usbdropdir=/usr/lib/pcsc/drivers \
+ --disable-libsystemd \
+ --enable-polkit
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -D -m755 "$srcdir"/pcscd.initd \
+ "$pkgdir"/etc/init.d/pcscd
+ mkdir -p "$pkgdir"/usr/lib/pcsc/drivers
+
+ # grant sysfs access
+ filecap "$pkgdir"/usr/sbin/pcscd dac_override
+}
+
+libs() {
+ pkgdesc="Middleware to access a smart card using SCard API (PC/SC) (libraries)"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/lib "$subpkgdir"/usr
+}
+
+dev() {
+ default_dev
+ # move back the /usr/lib/libpcsclite.so
+ # see http://bugs.alpinelinux.org/issues/3236 (and 6392)
+ mv "$subpkgdir"/usr/lib/libpcsclite.so "$pkgdir"/usr/lib/libpcsclite.so
+}
+
+sha512sums="df2e6a7a8179563a6dbf654ab75cf78a4b297b0562214a081d7d2b5d00fd4adf92fd892bd16aacf9d5e2867f3ad46c88a88e5834e311011f37556dd7e8936a0c pcsc-lite-1.8.24.tar.bz2
+6810ab357b5bcf07bf1ad76ed17ebb8e92be4599303a4e697b87a05d43b8d2bec5d3c29d44d8ddb5d031910ea62ca52a9868e6de9a255227eaeb29d1a7ee0041 pcscd.initd"
diff --git a/legacy/pcsc-lite/pcsc-lite.pre-install b/legacy/pcsc-lite/pcsc-lite.pre-install
new file mode 100644
index 000000000..2e654f28d
--- /dev/null
+++ b/legacy/pcsc-lite/pcsc-lite.pre-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+username=pcscd
+groupname=$username
+
+addgroup -S $username 2>/dev/null
+adduser -S -D -H -h /var/run/$username -s /sbin/nologin -G $groupname \
+ -g $username $username 2>/dev/null
+
+exit 0
diff --git a/legacy/pcsc-lite/pcsc-lite.pre-upgrade b/legacy/pcsc-lite/pcsc-lite.pre-upgrade
new file mode 120000
index 000000000..46d75afae
--- /dev/null
+++ b/legacy/pcsc-lite/pcsc-lite.pre-upgrade
@@ -0,0 +1 @@
+pcsc-lite.pre-install \ No newline at end of file
diff --git a/legacy/pcsc-lite/pcscd.initd b/legacy/pcsc-lite/pcscd.initd
new file mode 100644
index 000000000..7c580253a
--- /dev/null
+++ b/legacy/pcsc-lite/pcscd.initd
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/files/pcscd-init.7,v 1.1 2014/02/14 23:11:54 flameeyes Exp $
+
+name="PC/SC Daemon"
+
+pidfile=/run/pcscd/pcscd.pid
+
+command=/usr/sbin/pcscd
+command_args="${EXTRA_OPTS}"
+
+start_stop_daemon_args="--user pcscd:pcscd"
+
+depend() {
+ need localmount
+ after udev openct dbus
+ use logger
+}
+
+start_pre() {
+ checkpath -d -m 0755 -o pcscd:pcscd /run/pcscd
+}
diff --git a/legacy/wget/APKBUILD b/legacy/wget/APKBUILD
deleted file mode 100644
index 6852b453c..000000000
--- a/legacy/wget/APKBUILD
+++ /dev/null
@@ -1,50 +0,0 @@
-# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
-# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
-pkgname=wget
-pkgver=1.19.5
-pkgrel=0
-pkgdesc="Utility to retrieve files from the Web"
-url="https://www.gnu.org/software/wget/wget.html"
-arch="none"
-license="GPL-3.0+"
-depends=""
-makedepends="openssl-dev perl"
-checkdepends="perl-http-daemon"
-subpackages="$pkgname-doc $pkgname-lang"
-source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz "
-
-# secfixes:
-# 1.19.1-r1:
-# - CVE-2017-6508
-# 1.19.2-r0:
-# - CVE-2017-13090
-# 1.19.5-r0:
-# - CVE-2018-0494
-
-build() {
- cd "$builddir"
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --with-ssl=openssl
- make
-}
-
-check() {
- cd "$builddir"
- make check
-}
-
-package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install
-
- rm -rf "$pkgdir"/usr/lib
-}
-
-sha512sums="0d4964e0f5adb0c023edc831bde9c9f13f3222f6efc1ce93250d234ab937e92b53921624532fb0e6586151ddfdee6df9a7ca91a2a99b3d16e2e68401c625301b wget-1.19.5.tar.gz"