1
0
forked from ports/opt
opt/udev/Pkgfile
Johannes Winkelmann 575fab944c remove $Id:$ Lines
2005-11-09 22:59:50 +00:00

34 lines
1.1 KiB
Plaintext

# Description: Userspace device management daemon
# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Depends on: hotplug, sysfsutils
name=udev
version=071
release=1
source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
crux-udev.rules scsi-devfs.sh)
build() {
cd $name-$version
sed -i -e 's/$(OPTIMIZATION)//' Makefile
make \
USE_KLIBC=false \
USE_LOG=false \
DEBUG=false \
EXTRAS="extras/scsi_id extras/volume_id extras/ata_id extras/run_directory extras/usb_id extras/floppy extras/cdrom_id" \
udevdir="/dev" \
mandir="/usr/man" \
DESTDIR=$PKG all install
install -m 0644 $SRC/crux-udev.rules \
$PKG/etc/udev/rules.d/50-udev.rules
mkdir -p $PKG/etc/udev/scripts
install extras/{dvb,ide-devfs,raid-devfs}.sh \
$PKG/etc/udev/scripts/
install $SRC/scsi-devfs.sh \
$PKG/etc/udev/scripts/
install -D -m 0755 extras/start_udev $PKG/sbin/start_udev
mkdir -p $PKG/etc/hotplug.d/default
ln -s /sbin/udevsend $PKG/etc/hotplug.d/default/10-udev.hotplug
}