diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-15 12:22:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-15 12:29:44 +0000 |
commit | 1f38fcbfe526213426a6440200d354562ab47a0e (patch) | |
tree | cb1516965cf0a2e3d7948a727072428be8db65dd | |
parent | e83efe677ab545847a0d8b880ebdf4da5c089b0a (diff) | |
download | aports-1f38fcbfe526213426a6440200d354562ab47a0e.tar.bz2 aports-1f38fcbfe526213426a6440200d354562ab47a0e.tar.xz |
testing/nilfs-utils: new aport
Utilities for managing NILFS v2 filesystems
http://nilfs.sourceforge.net
fixes #2285
-rw-r--r-- | testing/nilfs-utils/APKBUILD | 64 | ||||
-rw-r--r-- | testing/nilfs-utils/max-input.patch | 12 | ||||
-rw-r--r-- | testing/nilfs-utils/rpc-types.patch | 11 |
3 files changed, 87 insertions, 0 deletions
diff --git a/testing/nilfs-utils/APKBUILD b/testing/nilfs-utils/APKBUILD new file mode 100644 index 0000000000..295826380a --- /dev/null +++ b/testing/nilfs-utils/APKBUILD @@ -0,0 +1,64 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: +pkgname=nilfs-utils +pkgver=2.2.2 +pkgrel=0 +pkgdesc="Utilities for managing NILFS v2 filesystems" +url="http://nilfs.sourceforge.net" +arch="all" +license="GPLv2+" +depends="" +depends_dev="" +makedepends="$depends_dev util-linux-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://nilfs.sourceforge.net/download/nilfs-utils-$pkgver.tar.bz2 + max-input.patch + rpc-types.patch" + +_builddir="$srcdir"/nilfs-utils-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + update_config_sub || return 1 +} + +build() { + cd "$_builddir" + LDCONFIG=/bin/true \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --disable-static \ + || return 1 + sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ + -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ + libtool || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="17033394c30515c41c8ae08f83d1cbbe nilfs-utils-2.2.2.tar.bz2 +502f124b1c6def25dab791b6d56d7bb5 max-input.patch +eeeed9b3e7485b0fb164cbbada47ece7 rpc-types.patch" +sha256sums="14376ff6ca4e286030aa65cf09e224e02ae8aacd1352711e1cc083243c2f51f0 nilfs-utils-2.2.2.tar.bz2 +a389724e0b7c020ead9556a6e28ac1f203bae083979ed72c470c23ac25100cf1 max-input.patch +57c6eadb917691deeeec11339d4806a89d3e8b6344c4f4d08d19d3ab60009bfa rpc-types.patch" +sha512sums="2ac0f1f25472d8900732db9f31e6b824e7e591bf306aa18d8b55c5d93807f4f7ceb65ba7e49540a39c7f285ad63c5f4ab795d34b2a04398d91cd2beb5fc6edce nilfs-utils-2.2.2.tar.bz2 +2561be048bbe3a931d8f39073667c5f1730fb1741dc194cf3d7c89d2d8780985d15b4ac960d03fe7ad5638111ff3c4db248f899623f8fa47558c27791d9f5c53 max-input.patch +6604102ead3ee4cb261cb71b9a1dc46c8e344061724f0a5e8a6d037f6b72ee7f5a983a21f691fbc6a66e441e982b9d727eed9499925b92cebefacd9ec9dd6ea3 rpc-types.patch" diff --git a/testing/nilfs-utils/max-input.patch b/testing/nilfs-utils/max-input.patch new file mode 100644 index 0000000000..5241ea55c0 --- /dev/null +++ b/testing/nilfs-utils/max-input.patch @@ -0,0 +1,12 @@ +--- ./bin/rmcp.c.orig ++++ ./bin/rmcp.c +@@ -51,6 +51,9 @@ + #include "nilfs.h" + #include "parser.h" + ++#ifndef MAX_INPUT ++#define MAX_INPUT _POSIX_MAX_INPUT ++#endif + + #ifdef _GNU_SOURCE + #include <getopt.h> diff --git a/testing/nilfs-utils/rpc-types.patch b/testing/nilfs-utils/rpc-types.patch new file mode 100644 index 0000000000..ce55c439a2 --- /dev/null +++ b/testing/nilfs-utils/rpc-types.patch @@ -0,0 +1,11 @@ +--- ./sbin/mount/sundries.h.orig ++++ ./sbin/mount/sundries.h +@@ -15,7 +15,7 @@ + #include <signal.h> + #include <stdarg.h> + #include <stdlib.h> +-#if !defined(bool_t) && !defined(__GLIBC__) ++#if !defined(bool_t) && !defined(__GLIBC__) && HAVE_RPC_TYPES_H + #include <rpc/types.h> + #endif + |