2009-03-08 02:09:37 +01:00
|
|
|
# Template file for 'klibc-udev'
|
|
|
|
pkgname=klibc-udev
|
2009-03-08 04:14:24 +01:00
|
|
|
version=139
|
2009-03-08 02:09:37 +01:00
|
|
|
wrksrc="udev-${version}"
|
|
|
|
distfiles="
|
|
|
|
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-$version.tar.bz2"
|
|
|
|
build_style=custom-install
|
|
|
|
short_desc="A Userspace implementation of devfs (for initramfs)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2009-03-08 04:14:24 +01:00
|
|
|
checksum=6786a896146b12323d0ef31601dc23b6e5501762d7d61c475d09e405494c21df
|
2009-03-08 02:09:37 +01: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.
|
|
|
|
|
|
|
|
This package has been built with klibc for use on the initramfs."
|
|
|
|
|
2009-03-08 04:14:24 +01:00
|
|
|
Add_dependency build klibc
|
2009-03-08 02:09:37 +01:00
|
|
|
Add_dependency run klibc
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
cd $wrksrc
|
|
|
|
CC=klcc LD=klcc CFLAGS="-O2" ./configure --prefix=
|
|
|
|
make || exit 1
|
|
|
|
|
2009-03-11 06:31:56 +01:00
|
|
|
install -d ${DESTDIR}/usr/lib/klibc/udev
|
|
|
|
install -s -m755 udev/udevd ${DESTDIR}/usr/lib/klibc/udev
|
|
|
|
install -s -m755 udev/udevadm ${DESTDIR}/usr/lib/klibc/udev
|
|
|
|
install -m755 extras/path_id/path_id ${DESTDIR}/usr/lib/klibc/udev
|
|
|
|
install -s -m755 extras/volume_id/vol_id ${DESTDIR}/usr/lib/klibc/udev
|
2009-03-08 02:09:37 +01:00
|
|
|
|
2009-03-08 04:14:24 +01:00
|
|
|
# Install the initramfs-tools hook.
|
2009-03-11 06:31:56 +01:00
|
|
|
install -d $DESTDIR/usr/share/initramfs-tools/hooks
|
|
|
|
install -d $DESTDIR/usr/share/initramfs-tools/scripts/init-premount
|
|
|
|
install -d $DESTDIR/usr/share/initramfs-tools/scripts/init-bottom
|
2009-03-08 02:09:37 +01:00
|
|
|
install -m 755 ${FILESDIR}/udev.initramfs-hook \
|
2009-03-11 06:31:56 +01:00
|
|
|
$DESTDIR/usr/share/initramfs-tools/hooks/udev
|
2009-03-08 02:09:37 +01:00
|
|
|
install -m 755 ${FILESDIR}/udev.initramfs-premount \
|
2009-03-11 06:31:56 +01:00
|
|
|
$DESTDIR/usr/share/initramfs-tools/scripts/init-premount/udev
|
2009-03-08 02:09:37 +01:00
|
|
|
install -m 755 ${FILESDIR}/udev.initramfs-bottom \
|
2009-03-11 06:31:56 +01:00
|
|
|
$DESTDIR/usr/share/initramfs-tools/scripts/init-bottom/udev
|
2009-03-08 02:09:37 +01:00
|
|
|
}
|