diff --git a/templates/udev-glib b/templates/udev-glib new file mode 120000 index 00000000000..b95ad750c43 --- /dev/null +++ b/templates/udev-glib @@ -0,0 +1 @@ +udev \ No newline at end of file diff --git a/templates/udev/glib.template b/templates/udev/glib.template new file mode 100644 index 00000000000..c60e4c05134 --- /dev/null +++ b/templates/udev/glib.template @@ -0,0 +1,16 @@ +# Template file for 'udev-glib'. +# +short_desc="${short_desc} (glib bindings)" +long_desc="${long_desc} + + This package contains libgudev, a library to interact with udev through + the GLib bindings." + +Add_dependency run udev +Add_dependency run glib + +do_install() +{ + mkdir -p ${DESTDIR}/lib + mv ${SRCPKGDESTDIR}/lib/libgudev* ${DESTDIR}/lib +} diff --git a/templates/udev/template b/templates/udev/template index a9c965abe53..5559c8e77d5 100644 --- a/templates/udev/template +++ b/templates/udev/template @@ -1,6 +1,7 @@ # Template file for 'udev' pkgname=udev version=145 +revision=1 distfiles="${KERNEL_SITE}/utils/kernel/hotplug/udev-${version}.tar.bz2" build_style=gnu_configure configure_args="--exec-prefix= --without-selinux --libexecdir=/lib/udev @@ -14,15 +15,15 @@ long_desc=" openrc_services="udev sysinit" conf_files="/etc/udev/udev.conf" -subpackages="devel" +subpackages="devel glib" Add_dependency full glibc Add_dependency full procps Add_dependency full libblkid -Add_dependency full glib Add_dependency full acl Add_dependency full usbutils 0.82 Add_dependency full pciutils +Add_dependency build glib Add_dependency build gperf post_install() @@ -35,18 +36,6 @@ post_install() rm ${DESTDIR}/lib/udev/rules.d/40-${f}.rules done - # Create some devices that are needed by the initramfs. - install -d $DESTDIR/lib/firmware - install -d $DESTDIR/lib/udev/devices/pts - install -d $DESTDIR/lib/udev/devices/shm - mknod -m0666 $DESTDIR/lib/udev/devices/null c 1 3 - mknod -m0600 $DESTDIR/lib/udev/devices/kmsg c 1 11 - ln -s /proc/self/fd $DESTDIR/lib/udev/devices/fd - ln -s /proc/self/fd/0 $DESTDIR/lib/udev/devices/stdin - ln -s /proc/self/fd/1 $DESTDIR/lib/udev/devices/stdout - ln -s /proc/self/fd/2 $DESTDIR/lib/udev/devices/stderr - ln -s /proc/kcore $DESTDIR/lib/udev/devices/core - # Install the OpenRC service install -D -m755 ${FILESDIR}/udev.rc ${DESTDIR}/etc/init.d/udev