Skip to content
Snippets Groups Projects
Commit b3d23e84 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/coreutils: try match better where busybox places things

we default to /usr prefix and move things that busybox has in /bin
to /bin and do same with /usr/sbin
parent 2bf9bd38
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=coreutils pkgname=coreutils
pkgver=8.10 pkgver=8.10
pkgrel=0 pkgrel=1
pkgdesc="The basic file, shell and text manipulation utilities" pkgdesc="The basic file, shell and text manipulation utilities"
url="http://www.gnu.org/software/coreutils/" url="http://www.gnu.org/software/coreutils/"
arch="all" arch="all"
...@@ -15,7 +15,7 @@ source="http://ftp.gnu.org/gnu/coreutils/$pkgname-$pkgver.tar.gz" ...@@ -15,7 +15,7 @@ source="http://ftp.gnu.org/gnu/coreutils/$pkgname-$pkgver.tar.gz"
build() { build() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/ \ ./configure --prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
--infodir=/usr/share/info \ --infodir=/usr/share/info \
...@@ -29,6 +29,17 @@ build() { ...@@ -29,6 +29,17 @@ build() {
package() { package() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
return 0
install -d "$pkgdir"/bin "$pkgdir"/usr/sbin
cd "$pkgdir"/usr/bin/
# binaries that busybox puts in /bin
mv base64 cat chgrp chmod chown cp date dd df 'echo' false ln ls \
mkdir mknod mktemp mv nice printenv pwd rm rmdir sleep stat \
stty sync touch true uname \
"$pkgdir"/bin
mv chroot "$pkgdir"/usr/sbin/
} }
md5sums="74d54d09fc5c1bd3337127f49c88b1c5 coreutils-8.10.tar.gz" md5sums="74d54d09fc5c1bd3337127f49c88b1c5 coreutils-8.10.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment