Commit 7be5e504 authored by abveritas's avatar abveritas

udev move to /usr/lib, trying new dep hwids for better usb printer .db

parent 37529c4c
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
pkgname=hwids
pkgver=20120512
pkgrel=1
pkgdesc="hardware identification databases"
url=https://github.com/Flameeyes/hwids
license=('GPL2')
arch=('any')
source=("https://github.com/Flameeyes/${pkgname}/tarball/${pkgname}-${pkgver}")
md5sums=('d530009df4967b5ece996262f4e39851')
package() {
cd ${srcdir}/*
mkdir -p "${pkgdir}/usr/share/hwdata"
cp pci.ids usb.ids "${pkgdir}/usr/share/hwdata/"
}
......@@ -5,9 +5,9 @@
pkgname=udev
pkgver=182
pkgrel=1
pkgrel=2
pkgdesc="The userspace dev tools (udev)"
depends=('util-linux' 'libusb-compat' 'glib2' 'kmod' 'pciutils' 'usbutils' 'acl')
depends=('util-linux' 'libusb-compat' 'glib2' 'kmod' 'acl' 'hwids')
install=udev.install
arch=(i686 x86_64)
license=('GPL')
......@@ -17,7 +17,7 @@ source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$pkgname-$pkgver.tar
initcpio-install-udev)
md5sums=('023877e6cc0d907994b8c648beab542b'
'a4dd853050bf2e0ae6b2e3d2c75499c2'
'ee0bfe91a20fff12cc25ab1d1e024853')
'd2b16edc6d806b5dafdbbad43ae5a3de')
url="http://git.kernel.org/?p=linux/hotplug/udev.git;a=summary"
backup=(etc/udev/udev.conf)
groups=('base')
......@@ -29,10 +29,11 @@ build() {
./configure --prefix=/usr \
--with-rootprefix= \
--sysconfdir=/etc \
--libdir=/usr/lib \
--libexecdir=/lib \
--libexecdir=/usr/lib \
--with-systemdsystemunitdir=/lib/systemd/system \
--enable-udev_acl
--with-usb-ids-path=/usr/share/hwdata/usb.ids \
--with-pci-ids-path=/usr/share/hwdata/pci.ids \
--with-firmware-path=/usr/lib/firmware/updates:/lib/firmware/updates:/usr/lib/firmware:/lib/firmware
make
}
......@@ -49,14 +50,12 @@ package() {
ln -s ../usr/bin/udevadm ${pkgdir}/sbin/udevadm
# 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
sed -i 's#GROUP="dialout"#GROUP="uucp"#g;
s#GROUP="tape"#GROUP="storage"#g;
s#GROUP="cdrom"#GROUP="optical"#g' "$pkgdir"/usr/lib/udev/rules.d/*.rules
# install the mkinitpcio hook
install -D -m644 ../initcpio-hooks-udev ${pkgdir}/lib/initcpio/hooks/udev
install -D -m644 ../initcpio-install-udev ${pkgdir}/lib/initcpio/install/udev
install -Dm644 "$srcdir/initcpio-install-udev" "$pkgdir/usr/lib/initcpio/install/udev"
install -Dm644 "$srcdir/initcpio-hooks-udev" "$pkgdir/usr/lib/initcpio/hooks/udev"
}
......@@ -4,14 +4,14 @@ build() {
FILES="/etc/udev/udev.conf"
SCRIPT="udev"
add_binary /lib/udev/udevd
add_binary /usr/lib/udev/udevd
add_binary /usr/bin/udevadm
for rules in 50-udev-default.rules 60-persistent-storage.rules 80-drivers.rules; do
add_file "/lib/udev/rules.d/$rules"
add_file "/usr/lib/udev/rules.d/$rules"
done
for tool in ata_id scsi_id; do
add_file "/lib/udev/$tool"
add_file "/usr/lib/udev/$tool"
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment