aboutsummaryrefslogtreecommitdiffstats
path: root/main/xfsprogs
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2015-12-11 12:39:01 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-12-11 12:16:17 +0000
commitc8a2204ccf2cf5b6c0504cbb74376b75af9fb5a6 (patch)
tree0889d3f06309fee5fd52f8ecc6ce2992798e48cf /main/xfsprogs
parent77ffb7bd90f1c3e6e00bfa82a30b0ceeb6a7d8c3 (diff)
downloadaports-c8a2204ccf2cf5b6c0504cbb74376b75af9fb5a6.tar.bz2
aports-c8a2204ccf2cf5b6c0504cbb74376b75af9fb5a6.tar.xz
main/xfsprogs: All binaries and scripts not involved in the boot process and the creation of the filesystem are moved to -extra subpackage
TODO: - replace /sbin/fsck.xfs dummy script with real '/sbin/xfs_repair'-based one.
Diffstat (limited to 'main/xfsprogs')
-rw-r--r--main/xfsprogs/APKBUILD23
1 files changed, 16 insertions, 7 deletions
diff --git a/main/xfsprogs/APKBUILD b/main/xfsprogs/APKBUILD
index 5aea23af3b..0c7142001a 100644
--- a/main/xfsprogs/APKBUILD
+++ b/main/xfsprogs/APKBUILD
@@ -2,14 +2,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfsprogs
pkgver=4.3.0
-pkgrel=0
+pkgrel=1
pkgdesc="XFS filesystem utilities"
url="http://oss.sgi.com/projects/xfs/"
arch="all"
license="LGPL"
depends=""
-makedepends="linux-headers e2fsprogs-dev bash gzip"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+makedepends="linux-headers util-linux-dev bash gzip"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-extra"
source="ftp://oss.sgi.com/projects/xfs/cmd_tars/$pkgname-$pkgver.tar.gz
musl-fixes.patch
"
@@ -29,18 +29,14 @@ build() {
cd "$_builddir"
export DEBUG=-DNDEBUG
export OPTIMIZER="$CFLAGS"
- export INSTALL_USER=root
- export INSTALL_GROUP=root
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sbindir=/sbin \
--libexecdir=/usr/lib \
- --enable-lib64=no \
--enable-gettext=no \
|| return 1
-
make SHELL=/bin/bash || return 1
}
@@ -48,6 +44,19 @@ package() {
cd "$_builddir"
make -j1 DIST_ROOT="$pkgdir" install install-dev || return 1
find "$pkgdir" -name *.la -delete
+ mv "$pkgdir"/sbin "$pkgdir"/usr
+ mkdir -p "$pkgdir"/sbin
+ for i in mkfs.xfs fsck.xfs xfs_repair; do
+ mv "$pkgdir"/usr/sbin/$i "$pkgdir"/sbin/
+ done
+}
+
+extra() {
+ depends="$pkgname"
+ pkgdesc"XFS filesystem extra utilities"
+ mkdir -p "$subpkgdir"
+ rmdir "$pkgdir"/lib "$pkgdir"/usr/lib || return 1
+ mv "$pkgdir"/usr "$subpkgdir"/
}
md5sums="ade22791338fa3d2cf442d6bb84f1748 xfsprogs-4.3.0.tar.gz