[arch-commits] Commit in udev/trunk (3 files)

Dave Reisner dreisner at archlinux.org
Sat May 19 14:53:16 UTC 2012


    Date: Saturday, May 19, 2012 @ 10:53:15
  Author: dreisner
Revision: 159250

upgpkg: udev 182-3

- update hooks for mkinitcpio 0.9.0

Modified:
  udev/trunk/PKGBUILD
  udev/trunk/initcpio-hooks-udev
  udev/trunk/initcpio-install-udev

-----------------------+
 PKGBUILD              |   12 ++++++------
 initcpio-hooks-udev   |   21 ++++++++++++++++-----
 initcpio-install-udev |    6 +++---
 3 files changed, 25 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-05-19 14:52:59 UTC (rev 159249)
+++ PKGBUILD	2012-05-19 14:53:15 UTC (rev 159250)
@@ -6,7 +6,7 @@
 
 pkgname=udev
 pkgver=182
-pkgrel=2
+pkgrel=3
 pkgdesc="The userspace dev tools (udev)"
 depends=('util-linux' 'glib2' 'kmod' 'pciutils' 'usbutils' 'bash' 'acl')
 install=udev.install
@@ -22,6 +22,11 @@
 backup=(etc/udev/udev.conf)
 groups=('base')
 options=(!makeflags !libtool)
+md5sums=('023877e6cc0d907994b8c648beab542b'
+         '0fa3eac115ad0140af1582d941b15f2c'
+         '94b816896bf23275c0598fc8e07270c3'
+         'e433c11d38cf4f877b41d06e2753ebe0'
+         'e6faf4c3fe456f10d8efd2487d5e3cb7')
 
 build() {
   cd $srcdir/$pkgname-$pkgver
@@ -67,8 +72,3 @@
                s#GROUP="cdrom"#GROUP="optical"#g' $i
   done
 }
-md5sums=('023877e6cc0d907994b8c648beab542b'
-         '0fa3eac115ad0140af1582d941b15f2c'
-         '94b816896bf23275c0598fc8e07270c3'
-         'a4dd853050bf2e0ae6b2e3d2c75499c2'
-         'd2b16edc6d806b5dafdbbad43ae5a3de')

Modified: initcpio-hooks-udev
===================================================================
--- initcpio-hooks-udev	2012-05-19 14:52:59 UTC (rev 159249)
+++ initcpio-hooks-udev	2012-05-19 14:53:15 UTC (rev 159250)
@@ -1,9 +1,20 @@
-# vim: set ft=sh:
-run_hook ()
-{
-    msg -n ":: Triggering uevents..."
+#!/usr/bin/ash
+
+run_earlyhook() {
+    /usr/lib/udev/udevd --daemon --resolve-names=never
+    udevd_running=1
+}
+
+run_hook() {
+    msg ":: Triggering uevents..."
     udevadm trigger --action=add --type=subsystems
     udevadm trigger --action=add --type=devices
     udevadm settle
-    msg "done."
 }
+
+run_cleanuphook() {
+    udevadm control --exit
+    udevadm info --cleanup-db
+}
+
+# vim: set ft=sh ts=4 sw=4 et:

Modified: initcpio-install-udev
===================================================================
--- initcpio-install-udev	2012-05-19 14:52:59 UTC (rev 159249)
+++ initcpio-install-udev	2012-05-19 14:53:15 UTC (rev 159250)
@@ -1,9 +1,7 @@
 #!/bin/bash
 
 build() {
-    FILES="/etc/udev/udev.conf"
-    SCRIPT="udev"
-
+    add_file "/etc/udev/udev.conf"
     add_binary /usr/lib/udev/udevd
     add_binary /usr/bin/udevadm
 
@@ -13,6 +11,8 @@
     for tool in ata_id scsi_id; do
         add_file "/usr/lib/udev/$tool"
     done
+
+    add_runscript
 }
 
 help() {




More information about the arch-commits mailing list