2006-02-23 17:19:35 +00:00
|
|
|
# Description: Userspace device management daemon
|
2012-04-19 11:35:26 +02:00
|
|
|
# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
# Depends on: kmod
|
2006-02-23 17:19:35 +00:00
|
|
|
|
|
|
|
name=udev
|
2012-04-19 11:35:26 +02:00
|
|
|
version=182
|
|
|
|
release=1
|
|
|
|
source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.xz \
|
2011-10-24 18:50:46 +02:00
|
|
|
81-crux.rules start_udev)
|
2006-02-23 17:19:35 +00:00
|
|
|
|
|
|
|
build() {
|
2010-12-02 18:41:39 +01:00
|
|
|
cd udev-$version
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
2012-04-19 11:35:26 +02:00
|
|
|
--sbindir=/sbin --bindir=/sbin \
|
2010-12-02 18:41:39 +01:00
|
|
|
--sysconfdir=/etc \
|
2011-02-20 15:25:41 +01:00
|
|
|
--with-rootlibdir=/lib \
|
2012-04-19 11:35:26 +02:00
|
|
|
--with-rootprefix= \
|
|
|
|
--libexecdir=/lib \
|
2010-12-02 18:41:39 +01:00
|
|
|
--mandir=/usr/man \
|
2011-02-20 15:25:41 +01:00
|
|
|
--disable-introspection \
|
2011-05-24 10:04:04 +02:00
|
|
|
--disable-gudev \
|
|
|
|
--disable-udev_acl \
|
|
|
|
--disable-keymap \
|
2012-01-22 18:06:21 +01:00
|
|
|
--enable-static \
|
|
|
|
--enable-rule_generator
|
2010-12-02 18:41:39 +01:00
|
|
|
|
|
|
|
make
|
2011-02-20 15:25:41 +01:00
|
|
|
make install DESTDIR=$PKG
|
2010-12-02 18:41:39 +01:00
|
|
|
|
|
|
|
mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
|
2012-04-19 11:35:26 +02:00
|
|
|
mkdir -p $PKG/{lib,sbin,run}
|
2011-10-24 18:50:46 +02:00
|
|
|
|
|
|
|
# Symlink to udevd
|
|
|
|
ln -s ../lib/udev/udevd $PKG/sbin/udevd
|
2010-12-02 18:41:39 +01:00
|
|
|
|
|
|
|
# Add CRUX items
|
|
|
|
install -m 0755 $SRC/start_udev $PKG/sbin
|
2011-10-24 18:50:46 +02:00
|
|
|
install -m 0644 $SRC/81-crux.rules $PKG/lib/udev/rules.d
|
2010-12-02 18:41:39 +01:00
|
|
|
|
|
|
|
# Remove junk
|
2012-04-19 11:35:26 +02:00
|
|
|
rm -r $PKG/usr/share/{gtk-,}doc
|
2006-02-23 17:19:35 +00:00
|
|
|
}
|