From 345ebe05f19d719ac4838f5c99665dcee81d7dfc Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 29 Jun 2018 09:52:40 +0200 Subject: core/pcmciautils reintroduced --- core/pcmciautils/PKGBUILD | 35 ++++++++++++++++++++++++++++++++ core/pcmciautils/initcpio-install-pcmcia | 22 ++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 core/pcmciautils/PKGBUILD create mode 100644 core/pcmciautils/initcpio-install-pcmcia diff --git a/core/pcmciautils/PKGBUILD b/core/pcmciautils/PKGBUILD new file mode 100644 index 00000000..d16f9a7d --- /dev/null +++ b/core/pcmciautils/PKGBUILD @@ -0,0 +1,35 @@ +# $Id$ +# Maintainer: Andreas Baumann +# Contributor: Tom Gundersen +# Contributor: Tobias Powalowski +pkgname=pcmciautils +pkgver=018 +pkgrel=8 +pkgdesc="Utilities for inserting and removing PCMCIA cards" +arch=('i686' 'x86_64') +url="http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html" +license=('GPL') +groups=('base') +depends=('systemd') +conflicts=('pcmcia-cs') +source=(https://kernel.org/pub/linux/utils/kernel/pcmcia/${pkgname}-${pkgver}.tar.{xz,sign} + initcpio-install-pcmcia) +options=(!makeflags) +sha512sums=('69a01cb4d6cefc4bcb31309fafbd76f937dd0599fbd097a5f22d76d3bc4eeddfccd16bddf42d8e079b323bd8eb62f4b0b25e1da3755664bd01cb2ccbf939c7cf' + 'SKIP' + '8e486c7432264bdce6698c3831f89b1473400b99dc5aad70df70b2b01cd4219066595fe3f7bc062c56cc2487ad9d65bb6d27d843e20ebfb03e5479f69a9d5299') +validpgpkeys=('DD46DC35691C79509D15F58CFEF39108F6FD2C20') + +build() { + cd "$pkgname-$pkgver" + sed -i -e 's,/lib/udev,/usr/lib/udev,g' Makefile + sed -i -e 's,/sbin,/usr/bin,g' Makefile + make +} + +package() { + make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install + + # install the mkinitpcio hook + install -Dm644 initcpio-install-pcmcia "$pkgdir/usr/lib/initcpio/install/pcmcia" +} diff --git a/core/pcmciautils/initcpio-install-pcmcia b/core/pcmciautils/initcpio-install-pcmcia new file mode 100644 index 00000000..af89c4c9 --- /dev/null +++ b/core/pcmciautils/initcpio-install-pcmcia @@ -0,0 +1,22 @@ +#!/bin/bash + +build() { + if add_checked_modules -f 'sound|net' '/drivers/pcmcia/'; then + add_module 'sd_mod?' + fi + + add_binary "/usr/lib/udev/pcmcia-socket-startup" + add_binary "/usr/lib/udev/pcmcia-check-broken-cis" + add_file "/usr/lib/udev/rules.d/60-pcmcia.rules" + add_file "/etc/pcmcia/config.opts" +} + +help() { + cat <