udev: move libgudev into a subpkg, remove unneeded stuff.
Bump revision. --HG-- extra : convert_revision : b0a478d249fae14f908b589a2c128cabc72eefc2
This commit is contained in:
parent
98fbffc1fa
commit
d9a9bbae51
3 changed files with 20 additions and 14 deletions
1
templates/udev-glib
Symbolic link
1
templates/udev-glib
Symbolic link
|
@ -0,0 +1 @@
|
|||
udev
|
16
templates/udev/glib.template
Normal file
16
templates/udev/glib.template
Normal file
|
@ -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
|
||||
}
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue