2008-10-26 01:43:11 +02:00
|
|
|
# Template file for 'udev'
|
|
|
|
pkgname=udev
|
2009-02-17 13:59:18 +01:00
|
|
|
version=137
|
2008-10-26 01:43:11 +02:00
|
|
|
distfiles="
|
2009-02-17 13:59:18 +01:00
|
|
|
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-${version}.tar.bz2"
|
2008-10-26 01:43:11 +02:00
|
|
|
build_style=gnu_configure
|
2008-12-17 06:36:37 +01:00
|
|
|
configure_args="--exec-prefix= --without-selinux --mandir=/usr/share/man"
|
|
|
|
make_install_target="DESTDIR=$XBPS_DESTDIR/$pkgname-$version install"
|
2008-10-26 01:43:11 +02:00
|
|
|
short_desc="A userspace implementation of devfs"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2009-01-27 12:34:58 +01:00
|
|
|
checksum=1aaa46da688f54f6d3b6ab727d82d011898b473952b74e812e174dd477602ebc
|
2008-10-26 01:43:11 +02:00
|
|
|
long_desc="
|
|
|
|
udev is a implementation of devfs in userspace using sysfs and
|
|
|
|
/sbin/hotplug. It requires a 2.5/2.6 kernel to run properly."
|
|
|
|
|
2009-02-19 16:10:13 +01:00
|
|
|
build_depends="initramfs-tools-0.92 procps-3.2.7"
|
|
|
|
run_depends="glibc-2.8 $build_depends"
|
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
|
|
|
|
|
|
|
# Install the initramfs-tools udev scripts.
|
|
|
|
mkdir -p $destdir/usr/share/initramfs-tools/hooks
|
|
|
|
mkdir -p $destdir/usr/share/initramfs-tools/scripts/init-premount
|
|
|
|
mkdir -p $destdir/usr/share/initramfs-tools/scripts/init-bottom
|
|
|
|
|
|
|
|
install -m 755 $XBPS_TEMPLATESDIR/udev/udev.initramfs-hook \
|
|
|
|
$destdir/usr/share/initramfs-tools/hooks/udev
|
|
|
|
install -m 755 $XBPS_TEMPLATESDIR/udev/udev.initramfs-premount \
|
|
|
|
$destdir/usr/share/initramfs-tools/scripts/init-premount/udev
|
|
|
|
install -m 755 $XBPS_TEMPLATESDIR/udev/udev.initramfs-bottom \
|
|
|
|
$destdir/usr/share/initramfs-tools/scripts/init-bottom/udev
|
|
|
|
}
|