[arch-commits] Commit in pcmciautils/trunk (PKGBUILD initcpio-install-pcmcia)

Tom Gundersen tomegun at archlinux.org
Wed Apr 4 07:56:19 EDT 2012


    Date: Wednesday, April 4, 2012 @ 07:56:19
  Author: tomegun
Revision: 155503

upgpkg: pcmciautils 018-4

move initcpio hook from mkinitcpio

Added:
  pcmciautils/trunk/initcpio-install-pcmcia
Modified:
  pcmciautils/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |   11 ++++++++---
 initcpio-install-pcmcia |   22 ++++++++++++++++++++++
 2 files changed, 30 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-04-04 11:55:42 UTC (rev 155502)
+++ PKGBUILD	2012-04-04 11:56:19 UTC (rev 155503)
@@ -3,7 +3,7 @@
 # Contributor: Tobias Powalowski <tpowa at archlinux.org>
 pkgname=pcmciautils
 pkgver=018
-pkgrel=3
+pkgrel=4
 pkgdesc="Utilities for inserting and removing PCMCIA cards"
 arch=(i686 x86_64)
 url="http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
@@ -13,7 +13,8 @@
 depends=('udev' 'sysfsutils')
 conflicts=('pcmcia-cs')
 # source=(http://kernel.org/pub/linux/utils/kernel/pcmcia/${pkgname}-${pkgver}.tar.bz2) broken due to breakin
-source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz)
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz
+	initcpio-install-pcmcia)
 options=(!makeflags)
 
 build() {
@@ -26,5 +27,9 @@
 package() {
   cd "${srcdir}/${pkgname}-${pkgver}"
   make DESTDIR="${pkgdir}" install
+
+  # install the mkinitpcio hook
+  install -D -m644 ../initcpio-install-pcmcia ${pkgdir}/usr/lib/initcpio/install/pcmcia
 }
-md5sums=('964c802994677a71b38ec56554aa229f')
+md5sums=('964c802994677a71b38ec56554aa229f'
+         '2659576a4637c58c4e79a96f8e43e316')

Added: initcpio-install-pcmcia
===================================================================
--- initcpio-install-pcmcia	                        (rev 0)
+++ initcpio-install-pcmcia	2012-04-04 11:56:19 UTC (rev 155503)
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+build() {
+    FILES="/etc/pcmcia/config.opts"
+    MODULES=" $(checked_modules '/drivers/pcmcia/' | grep -ve 'sound' -e 'net') $(checked_modules '/ide/legacy')"
+
+    [[ $MODULES ]] && MODULES+=" sd_mod?"
+
+    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"
+}
+
+help() {
+    cat <<HELPEOF
+This hook loads the necessary modules for a pcmcia root device.  Detection will
+take place at runtime. To minimize the modules in the image, add the autodetect
+hook too.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:



More information about the arch-commits mailing list