aboutsummaryrefslogtreecommitdiffstats
path: root/main/e2fsprogs
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2015-12-11 12:35:39 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-12-11 12:13:46 +0000
commit77ffb7bd90f1c3e6e00bfa82a30b0ceeb6a7d8c3 (patch)
tree3f6fd223eb66ff58b78531a0ac51b0a09079de24 /main/e2fsprogs
parent37c82bb72e88fde407a77ff4a9db40e637281494 (diff)
downloadaports-77ffb7bd90f1c3e6e00bfa82a30b0ceeb6a7d8c3.tar.bz2
aports-77ffb7bd90f1c3e6e00bfa82a30b0ceeb6a7d8c3.tar.xz
main/e2fsprogs: All binaries and scripts not involved in the boot process and the creation of the filesystem are moved to -extra subpackage
Diffstat (limited to 'main/e2fsprogs')
-rw-r--r--main/e2fsprogs/APKBUILD24
1 files changed, 18 insertions, 6 deletions
diff --git a/main/e2fsprogs/APKBUILD b/main/e2fsprogs/APKBUILD
index 87b2c3f47e..87c586e11e 100644
--- a/main/e2fsprogs/APKBUILD
+++ b/main/e2fsprogs/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=e2fsprogs
pkgver=1.42.13
-pkgrel=1
+pkgrel=2
pkgdesc="Standard Ext2/3/4 filesystem utilities"
url="http://e2fsprogs.sourceforge.net"
arch="all"
@@ -11,11 +11,11 @@ depends=
install=
depends_dev="util-linux-dev"
makedepends="$depends_dev linux-headers"
-subpackages="$pkgname-dev $pkgname-doc libcom_err $pkgname-libs"
+subpackages="$pkgname-dev $pkgname-doc libcom_err $pkgname-libs $pkgname-extra"
source="http://downloads.sourceforge.net/sourceforge/e2fsprogs/e2fsprogs-$pkgver.tar.gz"
-
_builddir="$srcdir"/$pkgname-$pkgver
+
prepare() {
local i
cd "$_builddir"
@@ -33,6 +33,7 @@ build () {
--host=$CHOST \
--mandir=/usr/share/man \
--enable-elf-shlibs \
+ --enable-symlink-install \
--disable-fsck \
--disable-uuidd \
--disable-libuuid \
@@ -46,7 +47,11 @@ build () {
package() {
cd "$_builddir"
- make -j1 LDCONFIG=: DESTDIR="${pkgdir}" install install-libs || return 1
+ make -j1 LDCONFIG=: DESTDIR="$pkgdir" install install-libs || return 1
+ mv "$pkgdir"/sbin/* "$pkgdir"/usr/sbin/
+ for i in e2fsck mke2fs mkfs.* fsck.*; do
+ mv "$pkgdir"/usr/sbin/$i "$pkgdir"/sbin/
+ done
}
dev() {
@@ -60,12 +65,19 @@ dev() {
}
libcom_err() {
- depends=
- replaces="e2fsprogs"
+ pkgdesc="Common error description library"
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/libcom_err* "$subpkgdir"/lib/
}
+extra() {
+ depends="$pkgname"
+ pkgdesc="Ext2/3/4 filesystem extra utilities"
+ mkdir -p "$subpkgdir"
+ rmdir "$pkgdir"/lib || return 1
+ mv "$pkgdir"/etc "$pkgdir"/usr "$subpkgdir"/
+}
+
md5sums="bc759fc62666786f5436e2075beb3265 e2fsprogs-1.42.13.tar.gz"
sha256sums="59993ff3a44f82e504561e0ebf95e8c8fa9f9f5746eb6a7182239605d2a4e2d4 e2fsprogs-1.42.13.tar.gz"
sha512sums="d341790f55c3bff34425369063757280b9ba6ac08f405e14f94f299345ae76c0dc6e90871b746cc98c73467448d888fe5bc029688b5eed5fd22c3c37bf285cd0 e2fsprogs-1.42.13.tar.gz"