diff options
Diffstat (limited to 'abs/core-testing/klibc-udev/PKGBUILD')
-rw-r--r-- | abs/core-testing/klibc-udev/PKGBUILD | 91 |
1 files changed, 46 insertions, 45 deletions
diff --git a/abs/core-testing/klibc-udev/PKGBUILD b/abs/core-testing/klibc-udev/PKGBUILD index baad6d4..5f41a96 100644 --- a/abs/core-testing/klibc-udev/PKGBUILD +++ b/abs/core-testing/klibc-udev/PKGBUILD @@ -1,58 +1,59 @@ -# $Id: PKGBUILD 5858 2008-07-21 18:47:23Z thomas $ +# $Id: PKGBUILD 23620 2009-01-11 14:11:40Z thomas $ # Maintainer: Tobias Powalowski <tpowa@archlinux.org> pkgname=klibc-udev -pkgver=116 -pkgrel=13 -pkgdesc="udevd compiled under klibc" +pkgver=135 +pkgrel=2 +pkgdesc="udev compiled for klibc" arch=(i686 x86_64) url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" groups=('base') depends=('coreutils' 'klibc' $(basename /lib/klibc-*.so .so)) license=('GPL') -source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-$pkgver.tar.bz2 \ - udev_hook udev_install start_udev udev.rules load-modules.sh \ - vol_id-suspend2.patch) -md5sums=('02c49d93ffda4a104c853c082138b835' - 'bcfed63882660e7d33f367d722e0a5c9' - '92b62124dd43d61a2e610c305bf95d15' - '22741baf8f5d7d8bc88022b39bca74d8' - 'f50bd6b378a5e75b2475bc67b32cb692' - '1ecfeec15e88485e88f2e37f46861f2e' - '80f75fc9a8fc32c7b8ff146d53bf579f') +source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-$pkgver.tar.bz2 + udev-fix-klibc-build.patch + disable-uid-gid-lookup.patch + udev_hook + udev_install + 50-udev-default.rules + 60-persistent-storage.rules + 64-device-mapper.rules + 64-md-raid.rules + 80-drivers.rules + load-modules.sh) +md5sums=('661b9df34e1304dad10f595d95b472bb' + 'c769a0440fc90ba0fee7a2ae2bf7d76f' + '89acd170a2771f81ca9e4b7920820555' + '042fd2ba6a0351bbae30da33ff492c03' + 'a3d81917e2bbe66f6c24486a86d4dc9c' + 'f9095dbad80fc93bcde60d7fe4572022' + '6625a4000069b9d46ae0ff9d9c2cebb7' + '258fea1c2b024f9755f905a21bd45a01' + 'e20efd69738bbbba35c49e7b63ee0212' + 'd42740d13b6bb5c5d90bfc2062019f58' + '5dd248da5d5fa3adfbe87309807ab734') -build() -{ - cd $startdir/src/udev-$pkgver - patch -p1 -i ${startdir}/src/vol_id-suspend2.patch || return 1 - sed -i "s|USE_LOG = .*|USE_LOG = false|g" Makefile +build() { + cd ${srcdir}/udev-$pkgver + patch -p1 -i ../udev-fix-klibc-build.patch || return 1 + # uid/gid lookup fails to build on klibc due to incomplete headers + # we don't use this feature in klibc, simply omit it + patch -p1 -i ../disable-uid-gid-lookup.patch || return 1 - #I need to look at this... it appears the __CTYPE_NO_INLINE may be a klibc issue - aaron - make VOLUME_ID_STATIC=true CC=klcc LD=klcc PROGRAMS="udevd udevsettle udevtrigger" \ - CFLAGS="$CFLAGS -U__CTYPE_NO_INLINE" \ - EXTRAS="extras/firmware extras/cdrom_id extras/ata_id \ - extras/edd_id extras/usb_id extras/volume_id" \ - || return 1 + CC=klcc LD=klcc ./configure --prefix="" + make || return 1 - mkdir -p $startdir/pkg/lib/initcpio/udev - install -m755 udevd $startdir/pkg/lib/initcpio/udev - install -m755 udevtrigger $startdir/pkg/lib/initcpio/udev - install -m755 udevsettle $startdir/pkg/lib/initcpio/udev - install -m755 extras/firmware/firmware.sh $startdir/pkg/lib/initcpio/udev - install -m755 extras/cdrom_id/cdrom_id $startdir/pkg/lib/initcpio/udev - install -m755 extras/ata_id/ata_id $startdir/pkg/lib/initcpio/udev - install -m755 extras/edd_id/edd_id $startdir/pkg/lib/initcpio/udev - install -m755 extras/scsi_id/scsi_id $startdir/pkg/lib/initcpio/udev - install -m755 extras/usb_id/usb_id $startdir/pkg/lib/initcpio/udev - # broken atm - install -m755 extras/volume_id/vol_id $startdir/pkg/lib/initcpio/udev - #install -m755 extras/path_id/path_id $startdir/pkg/lib/initcpio/udev - install -m755 $startdir/src/start_udev $startdir/pkg/lib/initcpio/udev - install -m644 $startdir/src/udev.rules $startdir/pkg/lib/initcpio/udev - install -m755 $startdir/src/load-modules.sh $startdir/pkg/lib/initcpio/udev + mkdir -p ${pkgdir}/lib/initcpio/udev + install -m755 udev/udevd ${pkgdir}/lib/initcpio/udev/ || return 1 + install -m755 udev/udevadm ${pkgdir}/lib/initcpio/udev/ || return 1 + install -m755 extras/path_id/path_id ${pkgdir}/lib/initcpio/udev/ || return 1 + install -m755 extras/volume_id/vol_id ${pkgdir}/lib/initcpio/udev/ || return 1 + install -m755 extras/firmware/firmware.sh ${pkgdir}/lib/initcpio/udev/ || return 1 + for rules in 50-udev-default.rules 60-persistent-storage.rules 64-device-mapper.rules 64-md-raid.rules 80-drivers.rules; do + install -m644 ${srcdir}/${rules} ${pkgdir}/lib/initcpio/udev/ || return 1 + done + install -m755 ${srcdir}/load-modules.sh ${pkgdir}/lib/initcpio/udev/ || return 1 - mkdir -p $startdir/pkg/lib/initcpio/install - install -m644 $startdir/src/udev_install $startdir/pkg/lib/initcpio/install/udev - mkdir -p $startdir/pkg/lib/initcpio/hooks/ - install -m644 $startdir/src/udev_hook $startdir/pkg/lib/initcpio/hooks/udev + install -D -m644 ${srcdir}/udev_install ${pkgdir}/lib/initcpio/install/udev || return 1 + install -D -m644 ${srcdir}/udev_hook ${pkgdir}/lib/initcpio/hooks/udev || return 1 } |