From d14ba6107e7837d93c1141cdcfd5ee8a3a6a8590 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 2 Dec 2009 10:39:00 +0000 Subject: main/squashfs-tools: new aport Tools for squashfs, a highly compressed read-only filesystem for Linux http://squashfs.sourceforge.net --- main/squashfs-tools/APKBUILD | 26 ++++++++++++++++++++++ .../squashfs-tools-4.0-uclibc-get_nprocs.patch | 22 ++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 main/squashfs-tools/APKBUILD create mode 100644 main/squashfs-tools/squashfs-tools-4.0-uclibc-get_nprocs.patch (limited to 'main/squashfs-tools') diff --git a/main/squashfs-tools/APKBUILD b/main/squashfs-tools/APKBUILD new file mode 100644 index 000000000..8af448562 --- /dev/null +++ b/main/squashfs-tools/APKBUILD @@ -0,0 +1,26 @@ +# Maintainer: Natanael Copa +pkgname=squashfs-tools +pkgver=4.0 +pkgrel=0 +pkgdesc="Tools for squashfs, a highly compressed read-only filesystem for Linux." +url="http://squashfs.sourceforge.net" +license="GPL" +depends= +makedepends="zlib-dev" +source="http://downloads.sourceforge.net/sourceforge/squashfs/squashfs$pkgver.tar.gz + squashfs-tools-4.0-uclibc-get_nprocs.patch" + +build() { + cd "$srcdir"/squashfs$pkgver/$pkgname + patch -p2 -i "$srcdir"/squashfs-tools-4.0-uclibc-get_nprocs.patch \ + || return 1 + make +} + +package() { + cd "$srcdir"/squashfs$pkgver/$pkgname + mkdir -p "$pkgdir"/sbin + cp -a mksquashfs unsquashfs "$pkgdir"/sbin +} +md5sums="a3c23391da4ebab0ac4a75021ddabf96 squashfs4.0.tar.gz +761580c100eeffb60ebbda62d724bd3f squashfs-tools-4.0-uclibc-get_nprocs.patch" diff --git a/main/squashfs-tools/squashfs-tools-4.0-uclibc-get_nprocs.patch b/main/squashfs-tools/squashfs-tools-4.0-uclibc-get_nprocs.patch new file mode 100644 index 000000000..9c6312f16 --- /dev/null +++ b/main/squashfs-tools/squashfs-tools-4.0-uclibc-get_nprocs.patch @@ -0,0 +1,22 @@ +--- a/squashfs-tools/mksquashfs.c Wed Dec 2 10:30:31 2009 ++++ b/squashfs-tools/mksquashfs.c Wed Dec 2 10:31:34 2009 +@@ -3705,7 +3705,7 @@ + processors = 1; + } + #else +- processors = get_nprocs(); ++ processors = sysconf(_SC_NPROCESSORS_ONLN); + #endif + } + +--- a/squashfs-tools/unsquashfs.c Wed Dec 2 10:30:31 2009 ++++ b/squashfs-tools/unsquashfs.c Wed Dec 2 10:31:34 2009 +@@ -1811,7 +1811,7 @@ + processors = 1; + } + #else +- processors = get_nprocs(); ++ processors = sysconf(_SC_NPROCESSORS_ONLN); + #endif + } + -- cgit v1.2.3