Gentooify init script thanks to David B. Ferguson <david@microtask.ca>
authorStefan Schweizer <genstef@gentoo.org>
Wed, 24 Jan 2007 07:31:00 +0000 (07:31 +0000)
committerStefan Schweizer <genstef@gentoo.org>
Wed, 24 Jan 2007 07:31:00 +0000 (07:31 +0000)
Package-Manager: portage-2.1.2_rc4-r8

sys-fs/fuse/ChangeLog
sys-fs/fuse/Manifest
sys-fs/fuse/files/fuse.init [new file with mode: 0644]
sys-fs/fuse/fuse-2.6.1.ebuild

index 1813e02f6ad4d4e3cd455a777e4fbd932520229d..010e2caa8d7888819048111a3f37807d676e64bf 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for sys-fs/fuse
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/fuse/ChangeLog,v 1.70 2006/12/19 17:39:13 genstef Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/fuse/ChangeLog,v 1.71 2007/01/24 07:31:00 genstef Exp $
+
+  24 Jan 2007; <genstef@gentoo.org> +files/fuse.init, fuse-2.6.1.ebuild:
+  Gentooify init script thanks to David B. Ferguson <david@microtask.ca>
 
   19 Dec 2006; Stefan Schweizer <genstef@gentoo.org> fuse-2.6.1.ebuild:
   remove spaces from KV_FULL to fix bug 158519 thanks to Jasmine
index b85486fd65b6f1e6a16dd89419362db040100f6c..24d6642aba8c48524b9bd2e4f4982ecc8731f100 100644 (file)
@@ -6,6 +6,10 @@ AUX fuse-fix-lazy-binding.patch 398 RMD160 e8663cdbf720378839bf3ac786a49a9927b81
 MD5 c1ef6366ba5892111ddef08887328663 files/fuse-fix-lazy-binding.patch 398
 RMD160 e8663cdbf720378839bf3ac786a49a9927b81afe files/fuse-fix-lazy-binding.patch 398
 SHA256 d9733aaece65a0c864edbfebae205cdec096174165e943a569adb216ec73f9e1 files/fuse-fix-lazy-binding.patch 398
+AUX fuse.init 869 RMD160 9baa604fbeef0877853a245d250eaaec3c71134c SHA1 5a95a321da2c1c2196a73108b993e73236d19e10 SHA256 f24be2ca20cbe7cac24f194dc86861a69595c3762528bb1b3bf764be45117435
+MD5 d62a8c5d6acda0b1a3921fcb0a11f94f files/fuse.init 869
+RMD160 9baa604fbeef0877853a245d250eaaec3c71134c files/fuse.init 869
+SHA256 f24be2ca20cbe7cac24f194dc86861a69595c3762528bb1b3bf764be45117435 files/fuse.init 869
 DIST fuse-2.6.0-rc1.tar.gz 435861 RMD160 c872c7835daf6b6f85342f5f05f36bb8c2f29aeb SHA1 0eff5d3d89012f9fd76ed8584b4f65d9d45af584 SHA256 f7046379088ff6bbceaaf989a9ec838f7bf8d7fd7833ffdecdc8a32dc5bd9dce
 DIST fuse-2.6.0.tar.gz 470514 RMD160 bf36a008d17fbb1169bfd7d077a53587df90ddb4 SHA1 23a6919b92d6a5935902c143baa7a1d19754e6a5 SHA256 782137879b964139e2dc4767114b763cb0e11ae322476404920cf767728e659e
 DIST fuse-2.6.1.tar.gz 472606 RMD160 99624de23edb634b5e92c86fb75fa266aeff5a65 SHA1 85ec4458d0ab2647b6b43605f0200006d89981ed SHA256 e5d039f1adcb5fcc16f5f3eb1c7d95918b62ace79f75d327c72707cafdd8be7c
@@ -17,14 +21,14 @@ EBUILD fuse-2.6.0_rc1.ebuild 1853 RMD160 274fa3ae72a0b26d7b3cff35e8a89e09b7d8854
 MD5 2651e3fce08d95f7fbb553838de1f1b8 fuse-2.6.0_rc1.ebuild 1853
 RMD160 274fa3ae72a0b26d7b3cff35e8a89e09b7d88544 fuse-2.6.0_rc1.ebuild 1853
 SHA256 5b0a3f2009a74a5cd0f27c5ee2de1fd3d96ffd308d6871092a8572a1c250dd59 fuse-2.6.0_rc1.ebuild 1853
-EBUILD fuse-2.6.1.ebuild 1861 RMD160 d7fe37889efa8ba0761eb7d4f499599420428ee6 SHA1 54d5b84b4b4d24299a699a6bef785c198a1dfd7e SHA256 fe670d04e8d5503b3e4d68305f2d4818cebc8efa6b69d5bfd506f17de85ea377
-MD5 0c59abf30ac1bad4bba99d9d4c208959 fuse-2.6.1.ebuild 1861
-RMD160 d7fe37889efa8ba0761eb7d4f499599420428ee6 fuse-2.6.1.ebuild 1861
-SHA256 fe670d04e8d5503b3e4d68305f2d4818cebc8efa6b69d5bfd506f17de85ea377 fuse-2.6.1.ebuild 1861
-MISC ChangeLog 10129 RMD160 450fdf288834b5582a1a7e16007ad3ef8e684546 SHA1 3d715f796b3468f767a8b65ee8e959ef41c312a7 SHA256 a290137108af33d1bbf6a4e57488156c65a5e66af907c61af126765f5e74c9c0
-MD5 c4714b6159427c05d7d9318a7d396f0f ChangeLog 10129
-RMD160 450fdf288834b5582a1a7e16007ad3ef8e684546 ChangeLog 10129
-SHA256 a290137108af33d1bbf6a4e57488156c65a5e66af907c61af126765f5e74c9c0 ChangeLog 10129
+EBUILD fuse-2.6.1.ebuild 1899 RMD160 de6cdf6ea395b155f59829966895d7675eb3c2af SHA1 fe2b5d424d00e18ad46f548f556fb6383d49a524 SHA256 60ff7b48801d663ab55f86697bd576297d97c00bf9be18792a54911e57dc7e85
+MD5 331732ac60da779e9988f118890cd76e fuse-2.6.1.ebuild 1899
+RMD160 de6cdf6ea395b155f59829966895d7675eb3c2af fuse-2.6.1.ebuild 1899
+SHA256 60ff7b48801d663ab55f86697bd576297d97c00bf9be18792a54911e57dc7e85 fuse-2.6.1.ebuild 1899
+MISC ChangeLog 10276 RMD160 88101035948a3c071f391c2e06d3c93338eaa053 SHA1 088f735582d38a11699c015b78c37a8450610284 SHA256 a91d4ffeb2dda42c577292c34de01f7da56cb0f1a8043bc3afc589e6a4c2d02b
+MD5 e8015562199d97cf1d45c2a7c17365de ChangeLog 10276
+RMD160 88101035948a3c071f391c2e06d3c93338eaa053 ChangeLog 10276
+SHA256 a91d4ffeb2dda42c577292c34de01f7da56cb0f1a8043bc3afc589e6a4c2d02b ChangeLog 10276
 MISC metadata.xml 264 RMD160 ff3b07b3794623e4733a4dd289cffc9606d6e432 SHA1 310c846802ac0f01334ee8677c428e2962594d01 SHA256 62bbe388ec16f0c4a20cfbb752b05fdefd1349254c494cdea67c096bb553c06b
 MD5 6e89ba8198764bfd079a0cfa18dca593 metadata.xml 264
 RMD160 ff3b07b3794623e4733a4dd289cffc9606d6e432 metadata.xml 264
diff --git a/sys-fs/fuse/files/fuse.init b/sys-fs/fuse/files/fuse.init
new file mode 100644 (file)
index 0000000..c9322cd
--- /dev/null
@@ -0,0 +1,42 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MOUNTPOINT=/sys/fs/fuse/connections
+
+depend() {
+       need localmount
+}
+
+start() {
+
+       ebegin "Starting fuse"
+       if ! grep -qw fuse /proc/filesystems; then
+               modprobe fuse >/dev/null 2>&1 || echo "Error loading fuse module"
+       fi
+       if grep -qw fusectl /proc/filesystems && \
+          ! grep -qw $MOUNTPOINT /proc/mounts; then
+               mount -t fusectl none $MOUNTPOINT >/dev/null 2>&1 || \
+                       eerror $? "Error mounting control filesystem"
+       fi
+       eend ${?}
+       
+}
+
+stop() {
+
+       ebegin "Stopping fuse"
+       if grep -qw $MOUNTPOINT /proc/mounts; then
+               umount $MOUNTPOINT >/dev/null 2>&1 || \
+                       eerror "Error unmounting control filesystem"
+       fi
+       if grep -qw "^fuse" /proc/modules; then
+               rmmod fuse >/dev/null 2>&1 || eerror $? "Error unloading fuse module"
+       fi
+       eend ${?}
+       
+}
+
+
+
+
index 2003dfb1f34cd4a9210244784b421d32b3ec34c6..2dbd237c6fb6337e557e4512f78eb42d2ade115e 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/fuse/fuse-2.6.1.ebuild,v 1.3 2006/12/19 17:39:13 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/fuse/fuse-2.6.1.ebuild,v 1.4 2007/01/24 07:31:00 genstef Exp $
 
 inherit linux-mod eutils libtool
 
@@ -64,6 +64,8 @@ src_install() {
                doins include/fuse_kernel.h
        fi
 
+       newinitd ${FILESDIR}/fuse.init fuse
+
        rm -rf "${D}/dev"
 }