#!/bin/bash # udev # # Douglas Thrift # # $Id$ name=udev version=105 revision=0 categories=(base sysutils) description='Linux userspace dynamic and persistent device naming support' url='http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html' depends=('base/coreutils' 'base/util-linux') sources=(`site_kernel linux/utils/kernel/hotplug/$name-$version.tar.bz2`) tasks=(install upgrade) function build() { cd $source/$sourcedir || return $? local -a extras=`echo extras/@(@(ata|cdrom|edd|patch|scsi|usb|volume)_id|firmware|floppy)` || return $? gmake EXTRAS="$extras" && gmake install DESTDIR=$package EXTRAS="$extras" || return $? install -dv $package/lib/{firmware,udev/devices/{pts,shm}} || return $? ln -sv /proc/self/fd $package/lib/udev/devices/fd || return $? ln -sv /proc/self/fd/0 $package/lib/udev/devices/stdin || return $? ln -sv /proc/self/fd/1 $package/lib/udev/devices/stdout || return $? ln -sv /proc/self/fd/2 $package/lib/udev/devices/stderr || return $? ln -sv /proc/kcore $package/lib/udev/devices/core || return $? }