diff options
author | alepulver <alepulver@FreeBSD.org> | 2007-10-30 11:10:09 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2007-10-30 11:10:09 +0800 |
commit | f143c1109ded80c4bbce26cb507a06351b6b50e3 (patch) | |
tree | 6c7bf1795e8ad936e342fdba76d38ee50579476a /sysutils | |
parent | 7a36256e809975d0fc5016368d079fb24fc00147 (diff) | |
download | freebsd-ports-graphics-f143c1109ded80c4bbce26cb507a06351b6b50e3.tar.gz freebsd-ports-graphics-f143c1109ded80c4bbce26cb507a06351b6b50e3.tar.zst freebsd-ports-graphics-f143c1109ded80c4bbce26cb507a06351b6b50e3.zip |
- Bump PORTREVISION.
- Create pkg-message from SUB_FILES instead of using ${SED} to print.
- Add a note in pkg-message and clean up.
- Create a symlink of ${PREFIX}/sbin/mount_fusefs to /usr/sbin to allow
mounting from /etc/fstab.
- Add "BEFORE: mountlate" to rc.d script.
This has been verified to work with sysutils/fusefs-ntfs (see changes to
pkg-message in last commit).
PR: ports/117516
Submitted by: alepulver (myself)
Approved by: Anish Mistry <amistry@am-productions.biz> (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/fusefs-kmod/Makefile | 12 | ||||
-rw-r--r-- | sysutils/fusefs-kmod/files/fusefs.in | 1 | ||||
-rw-r--r-- | sysutils/fusefs-kmod/files/pkg-message.in | 15 | ||||
-rw-r--r-- | sysutils/fusefs-kmod/pkg-message | 8 | ||||
-rw-r--r-- | sysutils/fusefs-kmod/pkg-plist | 2 |
5 files changed, 26 insertions, 12 deletions
diff --git a/sysutils/fusefs-kmod/Makefile b/sysutils/fusefs-kmod/Makefile index ae16095e510..52907cdf768 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 bcbbe9f4741..c6eb33661ca 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 00000000000..3b7c8d73c7e --- /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 0152b694caa..00000000000 --- 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 ddbf0885253..c8a8b6d211d 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 |