FreeBSD Bugzilla – Attachment 146220 Details for
Bug 192851
sysutils/simple-mtpfs: allow use in fstab or autofs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
install autofs special map
install_autofs.diff (text/plain), 1.75 KB, created by
Jan Beich
on 2014-08-24 16:49:12 UTC
(
hide
)
Description:
install autofs special map
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2014-08-24 16:49:12 UTC
Size:
1.75 KB
patch
obsolete
>Index: sysutils/fusefs-simple-mtpfs/Makefile >=================================================================== >--- sysutils/fusefs-simple-mtpfs/Makefile (revision 365957) >+++ sysutils/fusefs-simple-mtpfs/Makefile (working copy) >@@ -35,8 +35,17 @@ OPTIONS_DEFINE= DOCS > CONFIGURE_ENV+= LIBUSB1_CFLAGS=" " LIBUSB1_LIBS="-lusb" > .endif > >+.if exists(/etc/autofs) >+PLIST_FILES+= /etc/autofs/special_simple-mtpfs >+SUB_FILES+= special_simple-mtpfs >+.endif >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} >+.if exists(/etc/autofs) >+ ${MKDIR} ${STAGEDIR}/etc/autofs >+ ${INSTALL_SCRIPT} ${WRKDIR}/special_simple-mtpfs ${STAGEDIR}/etc/autofs >+.endif > > .include <bsd.port.mk> >Index: sysutils/fusefs-simple-mtpfs/files/special_simple-mtpfs.in >=================================================================== >--- sysutils/fusefs-simple-mtpfs/files/special_simple-mtpfs.in (revision 0) >+++ sysutils/fusefs-simple-mtpfs/files/special_simple-mtpfs.in (working copy) >@@ -0,0 +1,18 @@ >+#!/bin/sh >+# >+# Intended for use with /etc/auto_master containing >+# /mtp -simple-mtpfs -allow_other >+# >+ >+out=$(%%PREFIX%%/bin/simple-mtpfs --list-devices 2>&1) >+[ $? -eq 0 ] || exit 1 >+ >+if [ $# -eq 0 ]; then >+ echo "$out" | sed 's/[^:]*: //' | sort -u >+ exit 0 >+fi >+ >+devno=$(echo "$out" | (fgrep "$1" || echo 0) | sed 's/:.*//') >+[ $devno -gt 0 ] || exit 1 >+ >+echo "/ -fstype=none,--device=$devno,mountprog=%%PREFIX%%/bin/simple-mtpfs :none" > >Property changes on: sysutils/fusefs-simple-mtpfs/files/special_simple-mtpfs.in >___________________________________________________________________ >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192851
:
146066
|
146087
|
146181
|
146183
| 146220