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

andyrtr at archlinux.org andyrtr at archlinux.org
Sun Nov 22 17:37:58 EST 2009


    Date: Sunday, November 22, 2009 @ 17:37:58
  Author: andyrtr
Revision: 59383

split pkg/add udev-compat pkg needed for older(LTS) kernels

Modified:
  udev/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++----------
 1 file changed, 27 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-11-22 21:50:34 UTC (rev 59382)
+++ PKGBUILD	2009-11-22 22:37:58 UTC (rev 59383)
@@ -2,21 +2,15 @@
 # Maintainer: Aaron Griffin <aaron at archlinux.org>
 # Maintainer: Tobias Powalowski <tpowa at archlinux.org>
 # Maintainer: Thomas Bächler <thomas at archlinux.org>
-pkgname=udev
+
+pkgbase="udev"
+pkgname=('udev' 'udev-compat')
 pkgver=146
 pkgrel=3
-pkgdesc="The userspace dev tools (udev)"
 arch=(i686 x86_64)
 url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
 license=('GPL')
 groups=('base')
-depends=('glibc' 'coreutils' 'util-linux' 'libusb' 'glib2')
-makedepends=('kernel26' 'gperf' 'libxslt') #kernel26 needed to build framebuffer blacklist 
-install=udev.install
-backup=(etc/udev/udev.conf
-        etc/modprobe.d/framebuffer_blacklist.conf)
-conflicts=('pcmcia-cs' 'hotplug' 'initscripts<2009.07')
-replaces=('devfsd')
 # older initscripts versions required start_udev
 options=(!makeflags !libtool)
 source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/$pkgname-$pkgver.tar.bz2
@@ -41,7 +35,20 @@
                           --libexecdir=/lib/udev\
                           --datarootdir=/usr/share
   make || return 1
-  make DESTDIR=$startdir/pkg install
+}
+  
+package_udev() {
+  pkgdesc="The userspace dev tools (udev)"
+  depends=('glibc' 'coreutils' 'util-linux' 'libusb' 'glib2')
+  makedepends=('kernel26' 'gperf' 'libxslt') #kernel26 needed to build framebuffer blacklist 
+  install=udev.install
+  backup=(etc/udev/udev.conf
+          etc/modprobe.d/framebuffer_blacklist.conf)
+  conflicts=('pcmcia-cs' 'hotplug' 'initscripts<2009.07')
+  replaces=('devfsd')
+  
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=${pkgdir} install
   # Fix pkgconfig path
   install -d -m755 $pkgdir/usr/lib
   mv $pkgdir/lib/pkgconfig $pkgdir/usr/lib
@@ -120,3 +127,13 @@
     sed -i -e 's#GROUP="dialout"#GROUP="uucp"#g' $i
   done
 }
+
+package_udev-compat() {
+  pkgdesc="The userspace dev tools (udev) - additional rules for older kernels"
+  depends=('udev')
+
+  cd $srcdir/$pkgname-$pkgver
+  install -d -m755 ${pkgdir}/lib/${pkgname}/rules.d
+  install -D -m644 ${srcdir}/${pkgname}-${pkgver}/rules/gentoo/30-kernel-compat.rules ${pkgdir}/lib/udev/rules.d/30-kernel-compat.rules
+}
+



More information about the arch-commits mailing list