PKGBUILDs/core/udev-oxnas/PKGBUILD

85 lines
2.9 KiB
Bash
Raw Normal View History

2011-10-25 21:18:24 +00:00
# $Id: PKGBUILD 141113 2011-10-24 09:59:23Z dreisner $
2011-07-05 23:34:18 +00:00
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Thomas Bächler <thomas@archlinux.org>
# Maintainer: Tom Gundersen <teg@jklm.no>
# ALARM: Jason Plum <max@warheads.net>
# - Make this compatible with non-accept4 kernels.
2011-10-25 21:18:24 +00:00
# - noautobuild to keep from building on v7h
2011-07-05 23:34:18 +00:00
2011-10-25 21:18:24 +00:00
plugrel=1
noautobuild=1
2011-07-05 23:34:18 +00:00
2011-10-25 21:18:24 +00:00
_pkgbase='udev'
pkgname='udev-oxnas'
pkgver=174
pkgrel=1
2011-07-05 23:34:18 +00:00
arch=(i686 x86_64)
url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
license=('GPL')
groups=('base')
options=(!makeflags !libtool)
2011-10-25 21:18:24 +00:00
makedepends=('gobject-introspection' 'gperf')
#source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/$_pkgbase-$pkgver.tar.bz2
source=(http://people.freedesktop.org/~kay/$_pkgbase-$pkgver.tar.bz2
2011-07-05 23:34:18 +00:00
81-arch.rules
2011-10-25 21:18:24 +00:00
pre-accept4-kernel.patch)
md5sums=('3b84706046a33d7a7e00491a1136804d'
'3da2bb9891592f9438a07bd641465531'
'c6d2de68c7a30f3deb2cbb151bc6749f')
2011-07-05 23:34:18 +00:00
build() {
2011-10-25 21:18:24 +00:00
cd $srcdir/$_pkgbase-$pkgver
patch -Np1 -i ${srcdir}/pre-accept4-kernel.patch
./configure --sysconfdir=/etc\
--with-rootlibdir=/lib\
--libexecdir=/lib/udev\
--sbindir=/sbin\
--with-systemdsystemunitdir=/lib/systemd/system\
--disable-rule-generator\
--enable-udev_acl
2011-07-05 23:34:18 +00:00
make
}
package_udev-oxnas() {
pkgdesc="The userspace dev tools (udev-oxnas)"
2011-10-25 21:18:24 +00:00
depends=('util-linux' 'libusb-compat' 'glib2' 'module-init-tools' 'pciutils')
2011-07-05 23:34:18 +00:00
install=udev.install
2011-10-25 21:18:24 +00:00
backup=(etc/udev/udev.conf)
2011-07-05 23:34:18 +00:00
conflicts=('pcmcia-cs' 'hotplug' 'initscripts<2009.07' 'udev')
replaces=('devfsd')
2011-10-25 21:18:24 +00:00
provides=('udev=174')
2011-07-05 23:34:18 +00:00
2011-10-25 21:18:24 +00:00
cd $srcdir/$_pkgbase-$pkgver
2011-07-05 23:34:18 +00:00
make DESTDIR=${pkgdir} install
# Install our rule for permissions and symlinks
install -D -m644 $srcdir/81-arch.rules $pkgdir/lib/udev/rules.d/81-arch.rules
# create framebuffer blacklist
2011-10-25 21:18:24 +00:00
mkdir -p $pkgdir/lib/modprobe.d/
2011-07-05 23:34:18 +00:00
for mod in $(find /lib/modules/*/kernel/drivers/video -name '*fb.ko.gz' -exec basename {} .ko.gz \;); do
echo "blacklist $mod"
2011-10-25 21:18:24 +00:00
done | sort -u > $pkgdir/lib/modprobe.d/framebuffer_blacklist.conf
2011-07-05 23:34:18 +00:00
2011-10-25 21:18:24 +00:00
# /dev/loop0 is created for convenience, to autoload the module if necessary
# may be obsoleted by https://lkml.org/lkml/2011/7/30/111
2011-07-05 23:34:18 +00:00
mknod -m 0660 ${pkgdir}/lib/udev/devices/loop0 b 7 0
chgrp disk ${pkgdir}/lib/udev/devices/loop0
2011-10-25 21:18:24 +00:00
# udevd moved, symlink to make life easy for restarting udevd manually
ln -s /lib/udev/udevd ${pkgdir}/sbin/udevd
2011-07-05 23:34:18 +00:00
# Replace dialout/tape/cdrom group in rules with uucp/storage/optical group
for i in $pkgdir/lib/udev/rules.d/*.rules; do
sed -i -e 's#GROUP="dialout"#GROUP="uucp"#g;
s#GROUP="tape"#GROUP="storage"#g;
s#GROUP="cdrom"#GROUP="optical"#g' $i
done
}
2011-10-25 21:18:24 +00:00
md5sums=('3b84706046a33d7a7e00491a1136804d'
'3da2bb9891592f9438a07bd641465531'
'8b28d85b2158be1b5a190135c9cc8851')