[arch-commits] Commit in fuse/repos (16 files)

Ronald van Haren ronald at archlinux.org
Thu Oct 27 14:45:14 UTC 2011


    Date: Thursday, October 27, 2011 @ 10:45:14
  Author: ronald
Revision: 141256

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  fuse/repos/extra-i686/PKGBUILD
    (from rev 141255, fuse/trunk/PKGBUILD)
  fuse/repos/extra-i686/fuse.conf
    (from rev 141255, fuse/trunk/fuse.conf)
  fuse/repos/extra-i686/fuse.install
    (from rev 141255, fuse/trunk/fuse.install)
  fuse/repos/extra-i686/fuse.rc.d
    (from rev 141255, fuse/trunk/fuse.rc.d)
  fuse/repos/extra-x86_64/PKGBUILD
    (from rev 141255, fuse/trunk/PKGBUILD)
  fuse/repos/extra-x86_64/fuse.conf
    (from rev 141255, fuse/trunk/fuse.conf)
  fuse/repos/extra-x86_64/fuse.install
    (from rev 141255, fuse/trunk/fuse.install)
  fuse/repos/extra-x86_64/fuse.rc.d
    (from rev 141255, fuse/trunk/fuse.rc.d)
Deleted:
  fuse/repos/extra-i686/PKGBUILD
  fuse/repos/extra-i686/fuse.conf
  fuse/repos/extra-i686/fuse.install
  fuse/repos/extra-i686/fuse.rc.d
  fuse/repos/extra-x86_64/PKGBUILD
  fuse/repos/extra-x86_64/fuse.conf
  fuse/repos/extra-x86_64/fuse.install
  fuse/repos/extra-x86_64/fuse.rc.d

---------------------------+
 extra-i686/PKGBUILD       |  116 +++++++++++++++++++++++---------------------
 extra-i686/fuse.conf      |   18 +++---
 extra-i686/fuse.install   |   24 +++------
 extra-i686/fuse.rc.d      |   98 ++++++++++++++++++-------------------
 extra-x86_64/PKGBUILD     |  116 +++++++++++++++++++++++---------------------
 extra-x86_64/fuse.conf    |   18 +++---
 extra-x86_64/fuse.install |   24 +++------
 extra-x86_64/fuse.rc.d    |   98 ++++++++++++++++++-------------------
 8 files changed, 258 insertions(+), 254 deletions(-)

Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2011-10-27 14:44:30 UTC (rev 141255)
+++ extra-i686/PKGBUILD	2011-10-27 14:45:14 UTC (rev 141256)
@@ -1,55 +0,0 @@
-# $Id$
-# Maintainer: Ronald van Haren <ronald.archlinux.org>
-# Contributor: Mark Rosenstand <mark at archlinux.org>
-
-pkgname=fuse
-pkgver=2.8.5
-pkgrel=1
-pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
-arch=('i686' 'x86_64')
-url="http://fuse.sourceforge.net/"
-license="GPL2"
-depends=('glibc')
-makedepends=('pkg-config')
-backup=(etc/fuse.conf)
-install=fuse.install
-source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
-	'fuse.conf')
-options=(!libtool)
-sha1sums=('862320b56d6bc4ad5e7be2b1e0b5029166aae09b'
-          '3b42e37a741d4651099225987dc40e7f02a716ad')
-
-build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-  ./configure --prefix=/usr --enable-lib \
-              --enable-util --bindir=/bin
-  make || return 1
-}
-
-package() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-
-  make DESTDIR=${pkgdir} install || return 1
-
-  # static device nodes will cause collision.
-  rm -rf ${pkgdir}/dev
- 
-  # Remove init script in wrong path
-  # Don't add our own for now, as fusectl fs oopses on 2.6.18
-  rm -rf ${pkgdir}/etc/init.d
-  #install -D -m755 ${srcdir}/fuse.rc.d ${pkgdir}/etc/rc.d/fuse
-
-  install -d ${pkgdir}/lib
-  mv ${pkgdir}/usr/lib/libfuse.so.${pkgver} ${pkgdir}/lib/ || return 1
-  ln -s ../../lib/libfuse.so.${pkgver} ${pkgdir}/usr/lib/libfuse.so.${pkgver} || return 1
-  ln -s libfuse.so.${pkgver} ${pkgdir}/lib/libfuse.so.2 || return 1
-  mv ${pkgdir}/usr/lib/libulockmgr.so.1.0.1 ${pkgdir}/lib/ || return 1
-  ln -s ../../lib/libulockmgr.so.1.0.1 ${pkgdir}/usr/lib/libulockmgr.so.1.0.1 || return 1
-  ln -s libulockmgr.so.1.0.1 ${pkgdir}/lib/libulockmgr.so.1 || return 1
-
-  # install sample config file
-  install -Dm644 ${srcdir}/fuse.conf ${pkgdir}/etc/fuse.conf || return 1
-  # Fix udev rule location
-  install -d -m755 "${pkgdir}/lib"
-  mv "${pkgdir}/etc/udev" "${pkgdir}/lib/"
-}

Copied: fuse/repos/extra-i686/PKGBUILD (from rev 141255, fuse/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2011-10-27 14:45:14 UTC (rev 141256)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Mark Rosenstand <mark at archlinux.org>
+
+pkgname=fuse
+pkgver=2.8.6
+pkgrel=1
+pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
+arch=('i686' 'x86_64')
+url="http://fuse.sourceforge.net/"
+license="GPL2"
+depends=('glibc')
+makedepends=('pkg-config')
+backup=(etc/fuse.conf)
+install=fuse.install
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+	'fuse.conf')
+options=(!libtool)
+sha1sums=('c2c0f9fff8bfee217da200888123e5abb5b498f2'
+          '3b42e37a741d4651099225987dc40e7f02a716ad')
+build() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+
+  # fix building with glibc-2.14
+  sed -i '1i#define _GNU_SOURCE' util/fusermount.c
+
+  ./configure --prefix=/usr --enable-lib \
+              --enable-util --bindir=/bin
+  make
+}
+
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+
+  make DESTDIR=${pkgdir} install
+
+  # static device nodes will cause collision.
+  rm -rf ${pkgdir}/dev
+ 
+  # Remove init script in wrong path
+  # Don't add our own for now, as fusectl fs oopses on 2.6.18
+  rm -rf ${pkgdir}/etc/init.d
+  #install -D -m755 ${srcdir}/fuse.rc.d ${pkgdir}/etc/rc.d/fuse
+
+  install -d ${pkgdir}/lib
+  mv ${pkgdir}/usr/lib/libfuse.so.${pkgver} ${pkgdir}/lib/
+  ln -s ../../lib/libfuse.so.${pkgver} ${pkgdir}/usr/lib/libfuse.so.${pkgver}
+  ln -s libfuse.so.${pkgver} ${pkgdir}/lib/libfuse.so.2
+  mv ${pkgdir}/usr/lib/libulockmgr.so.1.0.1 ${pkgdir}/lib/
+  ln -s ../../lib/libulockmgr.so.1.0.1 ${pkgdir}/usr/lib/libulockmgr.so.1.0.1
+  ln -s libulockmgr.so.1.0.1 ${pkgdir}/lib/libulockmgr.so.1
+
+  # install sample config file
+  install -Dm644 ${srcdir}/fuse.conf ${pkgdir}/etc/fuse.conf
+  # Fix udev rule location
+  install -d -m755 "${pkgdir}/lib"
+  mv "${pkgdir}/etc/udev" "${pkgdir}/lib/"
+
+  # remove udev rules (should already be in udev package}
+  rm -f ${pkgdir}/lib/udev/rules.d/99-fuse.rules
+}

Deleted: extra-i686/fuse.conf
===================================================================
--- extra-i686/fuse.conf	2011-10-27 14:44:30 UTC (rev 141255)
+++ extra-i686/fuse.conf	2011-10-27 14:45:14 UTC (rev 141256)
@@ -1,9 +0,0 @@
-# Set the maximum number of FUSE mounts allowed to non-root users.
-# The default is 1000.
-#
-#mount_max = 1000
-
-# Allow non-root users to specify the 'allow_other' or 'allow_root'
-# mount options.
-#
-#user_allow_other

Copied: fuse/repos/extra-i686/fuse.conf (from rev 141255, fuse/trunk/fuse.conf)
===================================================================
--- extra-i686/fuse.conf	                        (rev 0)
+++ extra-i686/fuse.conf	2011-10-27 14:45:14 UTC (rev 141256)
@@ -0,0 +1,9 @@
+# Set the maximum number of FUSE mounts allowed to non-root users.
+# The default is 1000.
+#
+#mount_max = 1000
+
+# Allow non-root users to specify the 'allow_other' or 'allow_root'
+# mount options.
+#
+#user_allow_other

Deleted: extra-i686/fuse.install
===================================================================
--- extra-i686/fuse.install	2011-10-27 14:44:30 UTC (rev 141255)
+++ extra-i686/fuse.install	2011-10-27 14:45:14 UTC (rev 141256)
@@ -1,14 +0,0 @@
-post_install() {
-  cat << 'EOM'
-==> You must load the fuse kernel module to use FUSE.
- -> Run 'modprobe fuse' to load the module now.
- -> Add fuse to $MODULES in /etc/rc.conf to load on every boot.
-==> You will need a /dev/fuse device node to use FUSE.
- -> If you use udev, nothing needs to be done
- -> For a static /dev, run: mknod /dev/fuse -m 0666 c 10 229
-EOM
-}
-
-op=$1
-shift
-$op $*

Copied: fuse/repos/extra-i686/fuse.install (from rev 141255, fuse/trunk/fuse.install)
===================================================================
--- extra-i686/fuse.install	                        (rev 0)
+++ extra-i686/fuse.install	2011-10-27 14:45:14 UTC (rev 141256)
@@ -0,0 +1,10 @@
+post_install() {
+  cat << 'EOM'
+==> You must load the fuse kernel module to use FUSE.
+ -> Run 'modprobe fuse' to load the module now.
+ -> Add fuse to $MODULES in /etc/rc.conf to load on every boot.
+==> You will need a /dev/fuse device node to use FUSE.
+ -> If you use udev, nothing needs to be done
+ -> For a static /dev, run: mknod /dev/fuse -m 0666 c 10 229
+EOM
+}

Deleted: extra-i686/fuse.rc.d
===================================================================
--- extra-i686/fuse.rc.d	2011-10-27 14:44:30 UTC (rev 141255)
+++ extra-i686/fuse.rc.d	2011-10-27 14:45:14 UTC (rev 141256)
@@ -1,49 +0,0 @@
-#!/bin/bash
-#
-# fuse		Init script for Filesystem in Userspace
-# Based on the script by Miklos Szeredi <miklos at szeredi.hu>
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-FUSECTL=/sys/fs/fuse/connections
-
-case "$1" in
-  start)
-    stat_busy "Starting fuse"
-    if ! grep -qw fuse /proc/filesystems; then
-      modprobe fuse >/dev/null 2>&1
-      if [ $? -gt 0 ]; then
-        stat_fail
-        exit 1
-      fi
-    fi
-    if grep -qw fusectl /proc/filesystems && ! grep -qw $FUSECTL /proc/mounts; then
-      mount -t fusectl none $FUSECTL >/dev/null 2>&1
-      if [ $? -gt 0 ]; then
-        stat_fail
-        exit 1
-      fi
-    fi
-    add_daemon fuse
-    stat_done
-    ;;
-  stop)
-    stat_busy "Stopping fuse"
-    umount $FUSECTL >/dev/null 2>&1
-    rmmod fuse >/dev/null 2>&1
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon fuse
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 1
-    $0 start
-    ;;
-  *)  
-    echo "usage: $0 {start|stop|restart}"
-esac
-exit 0

Copied: fuse/repos/extra-i686/fuse.rc.d (from rev 141255, fuse/trunk/fuse.rc.d)
===================================================================
--- extra-i686/fuse.rc.d	                        (rev 0)
+++ extra-i686/fuse.rc.d	2011-10-27 14:45:14 UTC (rev 141256)
@@ -0,0 +1,49 @@
+#!/bin/bash
+#
+# fuse		Init script for Filesystem in Userspace
+# Based on the script by Miklos Szeredi <miklos at szeredi.hu>
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+FUSECTL=/sys/fs/fuse/connections
+
+case "$1" in
+  start)
+    stat_busy "Starting fuse"
+    if ! grep -qw fuse /proc/filesystems; then
+      modprobe fuse >/dev/null 2>&1
+      if [ $? -gt 0 ]; then
+        stat_fail
+        exit 1
+      fi
+    fi
+    if grep -qw fusectl /proc/filesystems && ! grep -qw $FUSECTL /proc/mounts; then
+      mount -t fusectl none $FUSECTL >/dev/null 2>&1
+      if [ $? -gt 0 ]; then
+        stat_fail
+        exit 1
+      fi
+    fi
+    add_daemon fuse
+    stat_done
+    ;;
+  stop)
+    stat_busy "Stopping fuse"
+    umount $FUSECTL >/dev/null 2>&1
+    rmmod fuse >/dev/null 2>&1
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon fuse
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)  
+    echo "usage: $0 {start|stop|restart}"
+esac
+exit 0

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2011-10-27 14:44:30 UTC (rev 141255)
+++ extra-x86_64/PKGBUILD	2011-10-27 14:45:14 UTC (rev 141256)
@@ -1,55 +0,0 @@
-# $Id$
-# Maintainer: Ronald van Haren <ronald.archlinux.org>
-# Contributor: Mark Rosenstand <mark at archlinux.org>
-
-pkgname=fuse
-pkgver=2.8.5
-pkgrel=1
-pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
-arch=('i686' 'x86_64')
-url="http://fuse.sourceforge.net/"
-license="GPL2"
-depends=('glibc')
-makedepends=('pkg-config')
-backup=(etc/fuse.conf)
-install=fuse.install
-source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
-	'fuse.conf')
-options=(!libtool)
-sha1sums=('862320b56d6bc4ad5e7be2b1e0b5029166aae09b'
-          '3b42e37a741d4651099225987dc40e7f02a716ad')
-
-build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-  ./configure --prefix=/usr --enable-lib \
-              --enable-util --bindir=/bin
-  make || return 1
-}
-
-package() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-
-  make DESTDIR=${pkgdir} install || return 1
-
-  # static device nodes will cause collision.
-  rm -rf ${pkgdir}/dev
- 
-  # Remove init script in wrong path
-  # Don't add our own for now, as fusectl fs oopses on 2.6.18
-  rm -rf ${pkgdir}/etc/init.d
-  #install -D -m755 ${srcdir}/fuse.rc.d ${pkgdir}/etc/rc.d/fuse
-
-  install -d ${pkgdir}/lib
-  mv ${pkgdir}/usr/lib/libfuse.so.${pkgver} ${pkgdir}/lib/ || return 1
-  ln -s ../../lib/libfuse.so.${pkgver} ${pkgdir}/usr/lib/libfuse.so.${pkgver} || return 1
-  ln -s libfuse.so.${pkgver} ${pkgdir}/lib/libfuse.so.2 || return 1
-  mv ${pkgdir}/usr/lib/libulockmgr.so.1.0.1 ${pkgdir}/lib/ || return 1
-  ln -s ../../lib/libulockmgr.so.1.0.1 ${pkgdir}/usr/lib/libulockmgr.so.1.0.1 || return 1
-  ln -s libulockmgr.so.1.0.1 ${pkgdir}/lib/libulockmgr.so.1 || return 1
-
-  # install sample config file
-  install -Dm644 ${srcdir}/fuse.conf ${pkgdir}/etc/fuse.conf || return 1
-  # Fix udev rule location
-  install -d -m755 "${pkgdir}/lib"
-  mv "${pkgdir}/etc/udev" "${pkgdir}/lib/"
-}

Copied: fuse/repos/extra-x86_64/PKGBUILD (from rev 141255, fuse/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2011-10-27 14:45:14 UTC (rev 141256)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Mark Rosenstand <mark at archlinux.org>
+
+pkgname=fuse
+pkgver=2.8.6
+pkgrel=1
+pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
+arch=('i686' 'x86_64')
+url="http://fuse.sourceforge.net/"
+license="GPL2"
+depends=('glibc')
+makedepends=('pkg-config')
+backup=(etc/fuse.conf)
+install=fuse.install
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+	'fuse.conf')
+options=(!libtool)
+sha1sums=('c2c0f9fff8bfee217da200888123e5abb5b498f2'
+          '3b42e37a741d4651099225987dc40e7f02a716ad')
+build() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+
+  # fix building with glibc-2.14
+  sed -i '1i#define _GNU_SOURCE' util/fusermount.c
+
+  ./configure --prefix=/usr --enable-lib \
+              --enable-util --bindir=/bin
+  make
+}
+
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+
+  make DESTDIR=${pkgdir} install
+
+  # static device nodes will cause collision.
+  rm -rf ${pkgdir}/dev
+ 
+  # Remove init script in wrong path
+  # Don't add our own for now, as fusectl fs oopses on 2.6.18
+  rm -rf ${pkgdir}/etc/init.d
+  #install -D -m755 ${srcdir}/fuse.rc.d ${pkgdir}/etc/rc.d/fuse
+
+  install -d ${pkgdir}/lib
+  mv ${pkgdir}/usr/lib/libfuse.so.${pkgver} ${pkgdir}/lib/
+  ln -s ../../lib/libfuse.so.${pkgver} ${pkgdir}/usr/lib/libfuse.so.${pkgver}
+  ln -s libfuse.so.${pkgver} ${pkgdir}/lib/libfuse.so.2
+  mv ${pkgdir}/usr/lib/libulockmgr.so.1.0.1 ${pkgdir}/lib/
+  ln -s ../../lib/libulockmgr.so.1.0.1 ${pkgdir}/usr/lib/libulockmgr.so.1.0.1
+  ln -s libulockmgr.so.1.0.1 ${pkgdir}/lib/libulockmgr.so.1
+
+  # install sample config file
+  install -Dm644 ${srcdir}/fuse.conf ${pkgdir}/etc/fuse.conf
+  # Fix udev rule location
+  install -d -m755 "${pkgdir}/lib"
+  mv "${pkgdir}/etc/udev" "${pkgdir}/lib/"
+
+  # remove udev rules (should already be in udev package}
+  rm -f ${pkgdir}/lib/udev/rules.d/99-fuse.rules
+}

Deleted: extra-x86_64/fuse.conf
===================================================================
--- extra-x86_64/fuse.conf	2011-10-27 14:44:30 UTC (rev 141255)
+++ extra-x86_64/fuse.conf	2011-10-27 14:45:14 UTC (rev 141256)
@@ -1,9 +0,0 @@
-# Set the maximum number of FUSE mounts allowed to non-root users.
-# The default is 1000.
-#
-#mount_max = 1000
-
-# Allow non-root users to specify the 'allow_other' or 'allow_root'
-# mount options.
-#
-#user_allow_other

Copied: fuse/repos/extra-x86_64/fuse.conf (from rev 141255, fuse/trunk/fuse.conf)
===================================================================
--- extra-x86_64/fuse.conf	                        (rev 0)
+++ extra-x86_64/fuse.conf	2011-10-27 14:45:14 UTC (rev 141256)
@@ -0,0 +1,9 @@
+# Set the maximum number of FUSE mounts allowed to non-root users.
+# The default is 1000.
+#
+#mount_max = 1000
+
+# Allow non-root users to specify the 'allow_other' or 'allow_root'
+# mount options.
+#
+#user_allow_other

Deleted: extra-x86_64/fuse.install
===================================================================
--- extra-x86_64/fuse.install	2011-10-27 14:44:30 UTC (rev 141255)
+++ extra-x86_64/fuse.install	2011-10-27 14:45:14 UTC (rev 141256)
@@ -1,14 +0,0 @@
-post_install() {
-  cat << 'EOM'
-==> You must load the fuse kernel module to use FUSE.
- -> Run 'modprobe fuse' to load the module now.
- -> Add fuse to $MODULES in /etc/rc.conf to load on every boot.
-==> You will need a /dev/fuse device node to use FUSE.
- -> If you use udev, nothing needs to be done
- -> For a static /dev, run: mknod /dev/fuse -m 0666 c 10 229
-EOM
-}
-
-op=$1
-shift
-$op $*

Copied: fuse/repos/extra-x86_64/fuse.install (from rev 141255, fuse/trunk/fuse.install)
===================================================================
--- extra-x86_64/fuse.install	                        (rev 0)
+++ extra-x86_64/fuse.install	2011-10-27 14:45:14 UTC (rev 141256)
@@ -0,0 +1,10 @@
+post_install() {
+  cat << 'EOM'
+==> You must load the fuse kernel module to use FUSE.
+ -> Run 'modprobe fuse' to load the module now.
+ -> Add fuse to $MODULES in /etc/rc.conf to load on every boot.
+==> You will need a /dev/fuse device node to use FUSE.
+ -> If you use udev, nothing needs to be done
+ -> For a static /dev, run: mknod /dev/fuse -m 0666 c 10 229
+EOM
+}

Deleted: extra-x86_64/fuse.rc.d
===================================================================
--- extra-x86_64/fuse.rc.d	2011-10-27 14:44:30 UTC (rev 141255)
+++ extra-x86_64/fuse.rc.d	2011-10-27 14:45:14 UTC (rev 141256)
@@ -1,49 +0,0 @@
-#!/bin/bash
-#
-# fuse		Init script for Filesystem in Userspace
-# Based on the script by Miklos Szeredi <miklos at szeredi.hu>
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-FUSECTL=/sys/fs/fuse/connections
-
-case "$1" in
-  start)
-    stat_busy "Starting fuse"
-    if ! grep -qw fuse /proc/filesystems; then
-      modprobe fuse >/dev/null 2>&1
-      if [ $? -gt 0 ]; then
-        stat_fail
-        exit 1
-      fi
-    fi
-    if grep -qw fusectl /proc/filesystems && ! grep -qw $FUSECTL /proc/mounts; then
-      mount -t fusectl none $FUSECTL >/dev/null 2>&1
-      if [ $? -gt 0 ]; then
-        stat_fail
-        exit 1
-      fi
-    fi
-    add_daemon fuse
-    stat_done
-    ;;
-  stop)
-    stat_busy "Stopping fuse"
-    umount $FUSECTL >/dev/null 2>&1
-    rmmod fuse >/dev/null 2>&1
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon fuse
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 1
-    $0 start
-    ;;
-  *)  
-    echo "usage: $0 {start|stop|restart}"
-esac
-exit 0

Copied: fuse/repos/extra-x86_64/fuse.rc.d (from rev 141255, fuse/trunk/fuse.rc.d)
===================================================================
--- extra-x86_64/fuse.rc.d	                        (rev 0)
+++ extra-x86_64/fuse.rc.d	2011-10-27 14:45:14 UTC (rev 141256)
@@ -0,0 +1,49 @@
+#!/bin/bash
+#
+# fuse		Init script for Filesystem in Userspace
+# Based on the script by Miklos Szeredi <miklos at szeredi.hu>
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+FUSECTL=/sys/fs/fuse/connections
+
+case "$1" in
+  start)
+    stat_busy "Starting fuse"
+    if ! grep -qw fuse /proc/filesystems; then
+      modprobe fuse >/dev/null 2>&1
+      if [ $? -gt 0 ]; then
+        stat_fail
+        exit 1
+      fi
+    fi
+    if grep -qw fusectl /proc/filesystems && ! grep -qw $FUSECTL /proc/mounts; then
+      mount -t fusectl none $FUSECTL >/dev/null 2>&1
+      if [ $? -gt 0 ]; then
+        stat_fail
+        exit 1
+      fi
+    fi
+    add_daemon fuse
+    stat_done
+    ;;
+  stop)
+    stat_busy "Stopping fuse"
+    umount $FUSECTL >/dev/null 2>&1
+    rmmod fuse >/dev/null 2>&1
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon fuse
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)  
+    echo "usage: $0 {start|stop|restart}"
+esac
+exit 0




More information about the arch-commits mailing list