summaryrefslogtreecommitdiff
path: root/filesystems
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2011-05-12 10:28:47 +0000
committermanu <manu@pkgsrc.org>2011-05-12 10:28:47 +0000
commit2281a0e51ae9754c573247f762d50cf8474610a3 (patch)
tree77d652856dc3a4d88ba65740e4249dae87f0ec0e /filesystems
parent60d4f07c5772536e45105982545c01c6bbfa9dca (diff)
downloadpkgsrc-2281a0e51ae9754c573247f762d50cf8474610a3.tar.gz
Add message to use the mount script so that mount -t glusterfs works
Also remove reference to /etc/mtab in it, prefer /proc/mounts
Diffstat (limited to 'filesystems')
-rw-r--r--filesystems/glusterfs/MESSAGE.NetBSD11
-rw-r--r--filesystems/glusterfs/Makefile12
2 files changed, 16 insertions, 7 deletions
diff --git a/filesystems/glusterfs/MESSAGE.NetBSD b/filesystems/glusterfs/MESSAGE.NetBSD
index eeb608f7e07..a3615e9eeec 100644
--- a/filesystems/glusterfs/MESSAGE.NetBSD
+++ b/filesystems/glusterfs/MESSAGE.NetBSD
@@ -1,11 +1,14 @@
===========================================================================
-$NetBSD: MESSAGE.NetBSD,v 1.4 2011/04/28 10:49:41 tnn Exp $
+$NetBSD: MESSAGE.NetBSD,v 1.5 2011/05/12 10:28:47 manu Exp $
+
+In order to use mount -t glusterfs, please install this link
+ ln -s ${PREFIX}/sbin/mount.glusterfs /sbin/mount_glusterfs
glusterfs clients need the following in /etc/sysctl.conf in order to
avoid hangs on I/O operations:
-kern.sbmax=4194304
-net.inet.tcp.sendbuf_max=1048576
-net.inet.tcp.recvbuf_max=1048576
+ kern.sbmax=4194304
+ net.inet.tcp.sendbuf_max=1048576
+ net.inet.tcp.recvbuf_max=1048576
glusterfs servers will need extended attributes in exported filesystems.
The required attributes can be initialized by running
diff --git a/filesystems/glusterfs/Makefile b/filesystems/glusterfs/Makefile
index 9009f2085f9..402d6eb33a3 100644
--- a/filesystems/glusterfs/Makefile
+++ b/filesystems/glusterfs/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2011/05/09 09:38:26 manu Exp $
+# $NetBSD: Makefile,v 1.8 2011/05/12 10:28:47 manu Exp $
#
DISTNAME= glusterfs-3.1.4
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= filesystems
MASTER_SITES= http://download.gluster.com/pub/gluster/glusterfs/3.1/LATEST/
@@ -36,6 +36,11 @@ SUBST_STAGE.bash= post-build
SUBST_FILES.bash= xlators/mount/fuse/utils/mount.glusterfs
SUBST_SED.bash= -e "s,/bin/bash,/bin/sh,g"
+SUBST_CLASSES+= mtab
+SUBST_STAGE.mtab= post-build
+SUBST_FILES.mtab= xlators/mount/fuse/utils/mount.glusterfs
+SUBST_SED.mtab= -e "s,/etc/mtab,/proc/mounts,g"
+
SUBST_CLASSES+= etc
SUBST_STAGE.etc= pre-build
SUBST_FILES.etc+= cli/src/cli-rpc-ops.c
@@ -63,7 +68,8 @@ BUILD_DEFS+= VARBASE
RCD_SCRIPTS= glusterfsd glusterd
post-install:
- cp ${DESTDIR}/sbin/mount.glusterfs ${DESTDIR}/${PREFIX}/sbin/
+ ${INSTALL_SCRIPT} ${DESTDIR}/sbin/mount.glusterfs \
+ ${DESTDIR}/${PREFIX}/sbin/
${INSTALL_SCRIPT} ${FILESDIR}/xattr-init.sh \
${DESTDIR}/${PREFIX}/etc/glusterfs