diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-10-04 11:51:22 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-10-04 11:51:22 +0000 |
commit | 00988521484a48ddcb6df5ec319277a27b8087c7 (patch) | |
tree | 74de629d5fbb69fe3769eb98f4c99901e31eadce /main/udev/APKBUILD | |
parent | d13f1399e367057ba18c55fcb8792228b8529e7a (diff) | |
download | aports-00988521484a48ddcb6df5ec319277a27b8087c7.tar.bz2 aports-00988521484a48ddcb6df5ec319277a27b8087c7.tar.xz |
main/udev: moved from testing
Diffstat (limited to 'main/udev/APKBUILD')
-rw-r--r-- | main/udev/APKBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/main/udev/APKBUILD b/main/udev/APKBUILD new file mode 100644 index 000000000..f48f99f5a --- /dev/null +++ b/main/udev/APKBUILD @@ -0,0 +1,58 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=udev +pkgver=162 +pkgrel=0 +pkgdesc="The userspace dev tools (udev)" +url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" +license="GPL" +subpackages="$pkgname-dev $pkgname-doc libgudev" +depends= +makedepends="gobject-introspection glib-dev gperf acl-dev libusb-compat-dev + usbutils pciutils-dev libtool" +install= +source="http://www.kernel.org/pub/linux/utils/kernel/hotplug/$pkgname-$pkgver.tar.bz2 + write_root_link_rule + move_tmp_persistent_rules.sh + udev-mount.initd + udev-postmount.initd + udev.initd" + +build () +{ + cd "$srcdir"/$pkgname-$pkgver + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --sbindir=/sbin \ + --libdir=/usr/lib \ + --with-rootlibdir=/lib \ + --libexecdir=/lib/udev \ + || return 1 + make || return 1 +} + +package() { + cd "$srcdir"/$pkgname-$pkgver + make DESTDIR="$pkgdir" install + + mkdir -p "$pkgdir"/usr/lib/pkgconfig + chmod +x "$pkgdir"/lib/udev/write_*_rules + for _i in write_root_link_rule move_tmp_persistent_rules.sh; do + install -Dm755 ../$_i "$pkgdir"/lib/udev/$_i + done + for _i in udev udev-mount udev-postmount; do + install -Dm755 ../$_i.initd "$pkgdir"/etc/init.d/$_i + done +} + +libgudev() { + pkgdesc="A GObject wrapper of the library gudev" + mkdir -p "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/libgudev* "$subpkgdir"/usr/lib/ +} + +md5sums="dd7099242e92084605e07db0c7299a02 udev-162.tar.bz2 +c9de7581099cdfdcd105666cd98a0f0a write_root_link_rule +7bf11e11519117f743483c73e0767750 move_tmp_persistent_rules.sh +884d7faaaa149a323b14e907ea1934f4 udev-mount.initd +8f0a1b371804c7fa30f1a7bfde88e9ea udev-postmount.initd +42b7e4ad49874e68851fc21153f41c4f udev.initd" |