udev: add initramfs-tools, update depends.

--HG--
extra : convert_revision : 2450b2c23182dd801dedb579b86ae3e40c3abdb9
This commit is contained in:
Juan RP
2009-02-19 16:10:13 +01:00
parent b8b01d0e77
commit a392f5f9f4
4 changed files with 127 additions and 1 deletions

View File

@@ -13,4 +13,22 @@ 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."
run_depends="glibc-2.8"
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
}