View | Details | Raw Unified | Return to bug 192851 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/fusefs-simple-mtpfs/Makefile (+9 lines)
Lines 35-42 OPTIONS_DEFINE= DOCS Link Here
35
CONFIGURE_ENV+=	LIBUSB1_CFLAGS=" " LIBUSB1_LIBS="-lusb"
35
CONFIGURE_ENV+=	LIBUSB1_CFLAGS=" " LIBUSB1_LIBS="-lusb"
36
.endif
36
.endif
37
37
38
.if exists(/etc/autofs)
39
PLIST_FILES+=	/etc/autofs/special_simple-mtpfs
40
SUB_FILES+=	special_simple-mtpfs
41
.endif
42
38
post-install:
43
post-install:
39
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
44
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
40
	${INSTALL_DATA} ${PORTDOCS:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
45
	${INSTALL_DATA} ${PORTDOCS:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
46
.if exists(/etc/autofs)
47
	${MKDIR} ${STAGEDIR}/etc/autofs
48
	${INSTALL_SCRIPT} ${WRKDIR}/special_simple-mtpfs ${STAGEDIR}/etc/autofs
49
.endif
41
50
42
.include <bsd.port.mk>
51
.include <bsd.port.mk>
(-)sysutils/fusefs-simple-mtpfs/files/special_simple-mtpfs.in (+18 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# Intended for use with /etc/auto_master containing
4
# /mtp		-simple-mtpfs	-allow_other
5
#
6
7
out=$(%%PREFIX%%/bin/simple-mtpfs --list-devices 2>&1)
8
[ $? -eq 0 ] || exit 1
9
10
if [ $# -eq 0 ]; then
11
	echo "$out" | sed 's/[^:]*: //' | sort -u
12
	exit 0
13
fi
14
15
devno=$(echo "$out" | (fgrep "$1" || echo 0) | sed 's/:.*//')
16
[ $devno -gt 0 ] || exit 1
17
18
echo "/ -fstype=none,--device=$devno,mountprog=%%PREFIX%%/bin/simple-mtpfs :none"

Return to bug 192851