View | Details | Raw Unified | Return to bug 226564
Collapse All | Expand All

(-)Makefile (-2 / +4 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	dsbmd
4
PORTNAME=	dsbmd
5
PORTVERSION=	1.2
5
PORTVERSION=	1.3
6
CATEGORIES=	sysutils
6
CATEGORIES=	sysutils
7
MASTER_SITES=	http://freeshell.de/~mk/download/
7
MASTER_SITES=	http://freeshell.de/~mk/download/
8
8
Lines 19-34 Link Here
19
PORTDOCS=	README
19
PORTDOCS=	README
20
PLIST_FILES=	libexec/dsbmd "@sample etc/dsbmd.conf.sample"
20
PLIST_FILES=	libexec/dsbmd "@sample etc/dsbmd.conf.sample"
21
21
22
OPTIONS_DEFINE=		DOCS EXFAT EXT4 MTP NTFS PTP
22
OPTIONS_DEFINE=		DOCS EXFAT EXT4 LKL MTP NTFS PTP
23
OPTIONS_DEFAULT=	EXT4 MTP NTFS PTP
23
OPTIONS_DEFAULT=	EXT4 MTP NTFS PTP
24
24
25
EXFAT_DESC=		exFAT filesystem support
25
EXFAT_DESC=		exFAT filesystem support
26
EXT4_DESC=		Ext4 filesystem support
26
EXT4_DESC=		Ext4 filesystem support
27
LKL_DESC=		Btrfs and XFS support through Linux Kernel Library
27
NTFS_DESC=		Mount NTFS filesystems with read and write support
28
NTFS_DESC=		Mount NTFS filesystems with read and write support
28
PTP_DESC=		Picture Transfer Protocol support
29
PTP_DESC=		Picture Transfer Protocol support
29
30
30
EXFAT_RUN_DEPENDS=	mount.exfat:sysutils/fusefs-exfat
31
EXFAT_RUN_DEPENDS=	mount.exfat:sysutils/fusefs-exfat
31
EXT4_RUN_DEPENDS=	fuse-ext2:sysutils/fusefs-ext2
32
EXT4_RUN_DEPENDS=	fuse-ext2:sysutils/fusefs-ext2
33
LKL_RUN_DEPENDS=	lklfuse:sysutils/fusefs-lkl
32
MTP_RUN_DEPENDS=	simple-mtpfs:sysutils/fusefs-simple-mtpfs
34
MTP_RUN_DEPENDS=	simple-mtpfs:sysutils/fusefs-simple-mtpfs
33
NTFS_RUN_DEPENDS=	ntfs-3g:sysutils/fusefs-ntfs
35
NTFS_RUN_DEPENDS=	ntfs-3g:sysutils/fusefs-ntfs
34
PTP_RUN_DEPENDS=	gphotofs:graphics/fusefs-gphotofs
36
PTP_RUN_DEPENDS=	gphotofs:graphics/fusefs-gphotofs
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1518358429
1
TIMESTAMP = 1520889720
2
SHA256 (dsbmd-1.2.tgz) = 523f553e3ef20c98e91a41f6665f77aeb3f6fe4d5e60017fd3ecf802502298c2
2
SHA256 (dsbmd-1.3.tgz) = c5e28f1cac3d0e1aa2c2f0084fd2b2a878058b5c40640a799b52c84fcdb6bdf1
3
SIZE (dsbmd-1.2.tgz) = 48693
3
SIZE (dsbmd-1.3.tgz) = 49290
(-)files/dsbmd.in (-3 / +21 lines)
Lines 16-28 Link Here
16
. /etc/rc.subr
16
. /etc/rc.subr
17
17
18
name=dsbmd
18
name=dsbmd
19
command=/usr/local/libexec/dsbmd
19
rcvar=dsbmd_enable
20
rcvar=dsbmd_enable
21
pidfile=/var/run/dsbmd.pid
22
stop_cmd=dsbmd_stop
20
23
21
load_rc_config $name
24
load_rc_config $name
22
25
23
: ${dsbmd_enable:=NO}
26
: ${dsbmd_enable:="NO"}
24
27
25
command=%%PREFIX%%/libexec/${name}
28
dsbmd_stop()
26
pidfile=/var/run/${name}.pid
29
{
30
	if [ -f ${pidfile} ]; then
31
		echo "Stopping ${name}."
32
		pid=$(cat ${pidfile})
33
		n=0
34
		while [ $n -lt 5 ]; do
35
			kill ${pid} 2>/dev/null || return 0
36
			n=$(($n + 1))
37
			sleep 1
38
		done
39
		kill -KILL ${pid} 2>/dev/null
40
	else
41
		echo "${name} is not running."
42
		return 1
43
	fi
44
}
27
45
28
run_rc_command "$1"
46
run_rc_command "$1"

Return to bug 226564