aboutsummaryrefslogtreecommitdiffstats
path: root/testing/udev/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-08-25 19:09:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-08-25 19:09:32 +0000
commit4040eea16ce61c966c51e440452272b3edeba6be (patch)
treeb341717802eb349b8aa505b4afdfa2ce7cf69d71 /testing/udev/APKBUILD
parent39e7f49d9c884b6c054d9ba793da52dd3a0876cf (diff)
downloadaports-4040eea16ce61c966c51e440452272b3edeba6be.tar.bz2
aports-4040eea16ce61c966c51e440452272b3edeba6be.tar.xz
testing/udev: import initd script from gentoo
Diffstat (limited to 'testing/udev/APKBUILD')
-rw-r--r--testing/udev/APKBUILD25
1 files changed, 9 insertions, 16 deletions
diff --git a/testing/udev/APKBUILD b/testing/udev/APKBUILD
index 76fbb0276b..4689cf6e0e 100644
--- a/testing/udev/APKBUILD
+++ b/testing/udev/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=udev
pkgver=161
-pkgrel=0
+pkgrel=1
pkgdesc="The userspace dev tools (udev)"
url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
license="GPL"
@@ -22,8 +22,10 @@ build ()
cd "$srcdir"/$pkgname-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
+ --sbindir=/sbin \
+ --libdir=/usr/lib \
+ --with-rootlibdir=/lib \
--libexecdir=/lib/udev \
- --exec-prefix="" \
|| return 1
make || return 1
}
@@ -33,15 +35,6 @@ package() {
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/usr/lib/pkgconfig
- mv "$pkgdir"/usr/share/pkgconfig/* \
- "$pkgdir"/lib/pkgconfig/* \
- "$pkgdir"/usr/lib/pkgconfig/ \
- && rmdir "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/share/pkgconfig \
- || return 1
- mv "$pkgdir"/lib/*.la \
- "$pkgdir"/lib/girepository* \
- "$pkgdir"/usr/lib/ || return 1
-
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
@@ -53,13 +46,13 @@ package() {
libgudev() {
pkgdesc="A GObject wrapper of the library gudev"
- mkdir -p "$subpkgdir"/lib
- mv "$pkgdir"/lib/libgudev* "$subpkgdir"/lib/
+ mkdir -p "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/lib/libgudev* "$subpkgdir"/usr/lib/
}
md5sums="95b6a0ffc9913f3e8021c65f51eb4f88 udev-161.tar.bz2
c9de7581099cdfdcd105666cd98a0f0a write_root_link_rule
7bf11e11519117f743483c73e0767750 move_tmp_persistent_rules.sh
-12760065a66ccbddc9e3a86a6cd2231c udev-mount.initd
-bffb42859ca508cfe1d9fa0a169ba810 udev-postmount.initd
-e913f8f122e8879252d2a05de7dd7499 udev.initd"
+884d7faaaa149a323b14e907ea1934f4 udev-mount.initd
+8f0a1b371804c7fa30f1a7bfde88e9ea udev-postmount.initd
+42b7e4ad49874e68851fc21153f41c4f udev.initd"