# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=eudev pkgver=3.2.2 pkgrel=0 pkgdesc="OpenRC compatible fork of systemd-udev" url="https://wiki.gentoo.org/wiki/Project:Eudev" arch="all" license="GPLv2" depends="udev-init-scripts" depends_dev="" replaces="udev" provides="udev=176" makedepends="$depends_dev gperf glib-dev linux-headers kmod-dev gobject-introspection-dev util-linux-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-netifnames::noarch" source="http://dev.gentoo.org/~blueness/$pkgname/$pkgname-$pkgver.tar.gz default-rules.patch load-fbcon.patch udev-postmount.initd setup-udev " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" # we need disable kmod til busybox depmod generates binary formats: # modules.dep.bin modules.alias.bin modules.symbols.bin # modules.builtin.bin ./configure \ --build=$CBUILD \ --host=$CHOST \ --sysconfdir=/etc \ --with-rootprefix= \ --with-rootrundir=/run \ --with-rootlibexecdir=/lib/udev \ --libdir=/usr/lib \ --enable-split-usr \ --enable-manpages \ --disable-hwdb \ --enable-kmod \ --exec-prefix=/ make } package() { cd "$builddir" make DESTDIR="$pkgdir" sharepkgconfigdir=/usr/lib/pkgconfig \ install install -Dm755 "$srcdir"/udev-postmount.initd \ "$pkgdir"/etc/init.d/udev-postmount install -Dm755 "$srcdir"/setup-udev \ "$pkgdir"/sbin/setup-udev } dev() { replaces="udev-dev" default_dev } libs() { pkgdesc="Dynamic library to access udev device information" replaces="libudev" depends="" mkdir -p "$subpkgdir"/lib local i; for i in "$pkgdir"/usr/lib/libudev.so.*; do mv $i "$subpkgdir"/lib || return 1 ln -s ../../lib/${i##*/} "$pkgdir"/usr/lib/${i##*/} || return 1 done } netifnames() { pkgdesc="udev rules for systemd-style interface names" mkdir -p "$subpkgdir"/lib/udev/rules.d mv "$pkgdir"/lib/udev/rules.d/80-net-name-slot.rules \ "$subpkgdir"/lib/udev/rules.d/ } sha512sums="38465ba6a68c3a8756d750ac36dfde0e220c3b13d058a8fcb664ee628e95d2f83b4155cb080a7bd518a5435c7c502aa3fa785a99233ebb24dda406441a753f7a eudev-3.2.2.tar.gz 683e3c26ca4f058303f8db7d4977e436d728386ee6866719c4f11ff31db27572d3f486f51d3173310e1ec2cf995fa4c396f2415bdf45dabdd80e6e55e798a314 default-rules.patch ff5928fd555e095d9f3234dd004ac4c5925405d308777e9b018e8e03112cd109935b51d75a3bc4a2a1018eb486e8a5e5ef6ee978860002a8fff93b116e9721f5 load-fbcon.patch 8ef1b911843ab13acb1c1b9b7a0a5cd76659f395c3db9e579429556f23eacebb414507dc0231e2455e7589bc70054fa1e6b6dd93dd833f7101c0da0597aabf88 udev-postmount.initd aa8a040ad503633bf751e8cab34535715f0db2a8b4b716a1dc0b00a6f9c6a78fabc0652daba3e43df91d4d80c68563c00a27b7bc6f419573bc7704a5c7f76ee1 setup-udev"