diff --git a/srcpkgs/moosefs/files/mfschunkserver/run b/srcpkgs/moosefs/files/mfschunkserver/run new file mode 100644 index 0000000000..3e02c6e9e6 --- /dev/null +++ b/srcpkgs/moosefs/files/mfschunkserver/run @@ -0,0 +1,5 @@ +#!/bin/sh +[ -e conf ] && . ./conf +: ${CONF_FILE:=/etc/mfs/mfschunkserver.cfg} +[ -e ${CONF_FILE} ] || exit 1 +exec mfschunkserver -c ${CONF_FILE} -f start diff --git a/srcpkgs/moosefs/files/mfsmaster/run b/srcpkgs/moosefs/files/mfsmaster/run new file mode 100644 index 0000000000..083632c8a8 --- /dev/null +++ b/srcpkgs/moosefs/files/mfsmaster/run @@ -0,0 +1,5 @@ +#!/bin/sh +[ -e conf ] && . ./conf +: ${CONF_FILE:=/etc/mfs/mfsmaster.cfg} +[ -e ${CONF_FILE} ] || exit 1 +exec mfsmaster -c ${CONF_FILE} -f start diff --git a/srcpkgs/moosefs/files/mfsmetalogger/run b/srcpkgs/moosefs/files/mfsmetalogger/run new file mode 100644 index 0000000000..bdd9fdf432 --- /dev/null +++ b/srcpkgs/moosefs/files/mfsmetalogger/run @@ -0,0 +1,5 @@ +#!/bin/sh +[ -e conf ] && . ./conf +: ${CONF_FILE:=/etc/mfs/mfsmetalogger.cfg} +[ -e ${CONF_FILE} ] || exit 1 +exec mfsmetalogger -c ${CONF_FILE} -f start diff --git a/srcpkgs/moosefs/patches/musl.patch b/srcpkgs/moosefs/patches/musl.patch new file mode 100644 index 0000000000..9887837a45 --- /dev/null +++ b/srcpkgs/moosefs/patches/musl.patch @@ -0,0 +1,10 @@ +--- mfsmount/mfs_fuse.c.orig 2016-07-17 18:56:40.670701543 +0200 ++++ mfsmount/mfs_fuse.c 2016-07-17 18:57:03.222961265 +0200 +@@ -28,6 +28,7 @@ + #include "config.h" + #endif + ++#include /* LOCK_UN */ + #include + #include + #include diff --git a/srcpkgs/moosefs/template b/srcpkgs/moosefs/template new file mode 100644 index 0000000000..e055f2da59 --- /dev/null +++ b/srcpkgs/moosefs/template @@ -0,0 +1,26 @@ +# Template file for 'moosefs' +pkgname=moosefs +version=3.0.80 +revision=1 +build_style=gnu-configure +configure_args="--localstatedir=/var/lib --with-default-user=_mfs --with-default-group=_mfs" +hostmakedepends="automake libtool pkg-config" +makedepends="zlib-devel libpcap-devel fuse-devel" +system_accounts="_mfs" +short_desc="A fault tolerant, network distributed file system" +maintainer="Juan RP " +license="GPL-2" +homepage="http://moosefs.org/" +distfiles="http://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz" +checksum=f1a7fea882d44af71f4b09e04df4683cd4ee064e9b0a2ad32116263e60c7b4e7 + +pre_configure() { + sed -i 's,AC_RUN_IFELSE,AC_LINK_IFELSE,g' configure.ac + autoreconf -fi +} +post_install() { + mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin + for f in chunkserver master metalogger; do + vsv mfs${f} + done +}