aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2007-10-30 03:10:09 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2007-10-30 03:10:09 +0000
commit0d2515c609fa0f7086be241accb6f62810a6441d (patch)
tree9b3bf30ed5581116b91ffcc9c0c17e3527d4f72b /sysutils
parent669ca75545d8ebd7a41e544bb6f8e9514e0891b6 (diff)
downloadports-0d2515c609fa0f7086be241accb6f62810a6441d.tar.gz
ports-0d2515c609fa0f7086be241accb6f62810a6441d.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/fusefs-kmod/Makefile12
-rw-r--r--sysutils/fusefs-kmod/files/fusefs.in1
-rw-r--r--sysutils/fusefs-kmod/files/pkg-message.in15
-rw-r--r--sysutils/fusefs-kmod/pkg-message8
-rw-r--r--sysutils/fusefs-kmod/pkg-plist2
5 files changed, 26 insertions, 12 deletions
diff --git a/sysutils/fusefs-kmod/Makefile b/sysutils/fusefs-kmod/Makefile
index ae16095e5101..52907cdf7687 100644
--- a/sysutils/fusefs-kmod/Makefile
+++ b/sysutils/fusefs-kmod/Makefile
@@ -7,6 +7,7 @@
PORTNAME= fusefs
DISTVERSION= 0.3.9-pre1
+PORTREVISION= 1
CATEGORIES= sysutils kld
MASTER_SITES= http://fuse4bsd.creo.hu/downloads/ \
http://am-productions.biz/docs/
@@ -65,6 +66,10 @@ IGNORE= requires the Kernel source to be installed. Set SRC_BASE if it is not i
IGNORE= requires the userland sources to be installed. Set SRC_BASE if it is not in /usr/src
.endif
+.if !defined(WITH_AUTOSETUP)
+SUB_FILES= pkg-message
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's/deplate.rb/deplate/g' \
${WRKSRC}/doc/Makefile
@@ -81,15 +86,14 @@ pre-install:
@${MKDIR} ${KMODDIR}
post-install:
-.if (defined(WITH_AUTOSETUP) && !defined(BATCH) && !defined(PACKAGE_BUILDING)) \
- || (defined(WITH_AUTOSETUP) && defined(BATCH) && !defined(PACKAGE_BUILDING))
+ @${LN} -s ${PREFIX}/sbin/mount_fusefs /usr/sbin
+.if defined(WITH_AUTOSETUP) && !defined(PACKAGE_BUILDING)
@${SED} -e 's|@@PREFIX@@|${PREFIX}|g' \
${FILESDIR}/${SETUP} > ${WRKDIR}/${SETUP}
@${ECHO} "Modifying global startup config files and loading module...";
${SH} ${WRKDIR}/${SETUP}
.else
- @${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
- -e "s|%%MODULE_PATH%%|${MODULE_PATH}|g" ${PKGMESSAGE}
+ @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
.endif
.if !defined(NOPORTDOCS)
diff --git a/sysutils/fusefs-kmod/files/fusefs.in b/sysutils/fusefs-kmod/files/fusefs.in
index bcbbe9f47414..c6eb33661ca6 100644
--- a/sysutils/fusefs-kmod/files/fusefs.in
+++ b/sysutils/fusefs-kmod/files/fusefs.in
@@ -4,6 +4,7 @@
#
# PROVIDE: fusefs
# REQUIRE: sysctl
+# BEFORE: mountlate
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
diff --git a/sysutils/fusefs-kmod/files/pkg-message.in b/sysutils/fusefs-kmod/files/pkg-message.in
new file mode 100644
index 000000000000..3b7c8d73c7e7
--- /dev/null
+++ b/sysutils/fusefs-kmod/files/pkg-message.in
@@ -0,0 +1,15 @@
+==============================================================================
+
+In order to automatically load the fuse module on startup, you need to:
+
+ - Add fusefs_enable="YES" to your /etc/rc.conf.
+ - Run "%%PREFIX%%/etc/rc.d/fusefs start" (for the first time).
+
+Set "sysctl vfs.usermount=1" if you want to be able to mount fuse devices as
+an ordinary user.
+
+Now fuse filesystems (sysutils/fusefs-*) can be mounted at startup from
+/etc/fstab with the "late" parameter. This requires a symlink in /usr/sbin
+named "mount_<fstype>", which is not created by all the fusefs ports.
+
+==============================================================================
diff --git a/sysutils/fusefs-kmod/pkg-message b/sysutils/fusefs-kmod/pkg-message
deleted file mode 100644
index 0152b694caad..000000000000
--- a/sysutils/fusefs-kmod/pkg-message
+++ /dev/null
@@ -1,8 +0,0 @@
-In order to automatically load the fuse module on startup, you need to
-set the following settings:
-
- - Add fusefs_enable="YES" to your /etc/rc.conf
-
-%%PREFIX%%/etc/rc.d/fusefs start will load the module for the first time
-after the installation. Set "sysctl vfs.usermount=1" if you want to be able
-to mount fuse devices as an ordinary user.
diff --git a/sysutils/fusefs-kmod/pkg-plist b/sysutils/fusefs-kmod/pkg-plist
index ddbf08852533..c8a8b6d211d5 100644
--- a/sysutils/fusefs-kmod/pkg-plist
+++ b/sysutils/fusefs-kmod/pkg-plist
@@ -21,3 +21,5 @@ sbin/mount_fusefs
%%PORTDOCS%%@dirrm %%DOCSDIR%%/kmod/html
%%PORTDOCS%%@dirrm %%DOCSDIR%%/kmod
@dirrmtry %%DOCSDIR%%
+@cwd /usr
+sbin/mount_fusefs