udev: switch to systemd, drop openrc support.

This commit is contained in:
Juan RP 2011-10-11 04:38:38 +02:00
parent 87f58d76e2
commit 7a4e0d8c31
2 changed files with 2 additions and 37 deletions

View File

@ -1,32 +0,0 @@
#!/sbin/runscript
#
# OpenRC service for udev(7).
command=/sbin/udevd
command_args="--daemon"
name="udev daemon"
depend()
{
provide dev
need sysfs
before checkfs fsck
keyword novserver
}
start()
{
[ ! -d /run/udev ] && mkdir -p /run/udev
ebegin "Starting udev and waiting for uevents"
${command} ${command_args} && \
udevadm trigger --action=add && udevadm settle
eend $?
}
stop()
{
ebegin "Stopping udev daemon"
udevadm control --exit
eend $?
}

View File

@ -1,7 +1,7 @@
# Template file for 'udev'
pkgname=udev
version=173
revision=1
revision=2
distfiles="${KERNEL_SITE}/utils/kernel/hotplug/udev-${version}.tar.bz2"
build_style=gnu_configure
configure_args="--sbindir=/sbin --without-selinux --libexecdir=/lib/udev
@ -17,7 +17,7 @@ long_desc="
udev is a daemon which dynamically creates and removes device nodes from
/dev/, handles hotplug events and loads drivers at boot time."
openrc_services="udev sysinit true"
systemd_services="udev.service"
conf_files="/etc/udev/udev.conf"
subpackages="libudev libudev-devel"
@ -38,9 +38,6 @@ post_install()
# Install some additional rules.
install -m644 rules/misc/* ${DESTDIR}/lib/udev/rules.d
# Install the OpenRC service
vinstall ${FILESDIR}/udev.rc 755 etc/init.d udev
# Install the initramfs-tools hook/scripts.
vinstall ${FILESDIR}/udev.initramfs-hook 755 \
usr/share/initramfs-tools/hooks udev