Index: Makefile =================================================================== --- Makefile (revision 462044) +++ Makefile (working copy) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= dsbmd -PORTVERSION= 1.2 +PORTVERSION= 1.3 CATEGORIES= sysutils MASTER_SITES= http://freeshell.de/~mk/download/ @@ -19,16 +19,18 @@ PORTDOCS= README PLIST_FILES= libexec/dsbmd "@sample etc/dsbmd.conf.sample" -OPTIONS_DEFINE= DOCS EXFAT EXT4 MTP NTFS PTP +OPTIONS_DEFINE= DOCS EXFAT EXT4 LKL MTP NTFS PTP OPTIONS_DEFAULT= EXT4 MTP NTFS PTP EXFAT_DESC= exFAT filesystem support EXT4_DESC= Ext4 filesystem support +LKL_DESC= Btrfs and XFS support through Linux Kernel Library NTFS_DESC= Mount NTFS filesystems with read and write support PTP_DESC= Picture Transfer Protocol support EXFAT_RUN_DEPENDS= mount.exfat:sysutils/fusefs-exfat EXT4_RUN_DEPENDS= fuse-ext2:sysutils/fusefs-ext2 +LKL_RUN_DEPENDS= lklfuse:sysutils/fusefs-lkl MTP_RUN_DEPENDS= simple-mtpfs:sysutils/fusefs-simple-mtpfs NTFS_RUN_DEPENDS= ntfs-3g:sysutils/fusefs-ntfs PTP_RUN_DEPENDS= gphotofs:graphics/fusefs-gphotofs Index: distinfo =================================================================== --- distinfo (revision 462044) +++ distinfo (working copy) @@ -1,3 +1,3 @@ -TIMESTAMP = 1518358429 -SHA256 (dsbmd-1.2.tgz) = 523f553e3ef20c98e91a41f6665f77aeb3f6fe4d5e60017fd3ecf802502298c2 -SIZE (dsbmd-1.2.tgz) = 48693 +TIMESTAMP = 1520889720 +SHA256 (dsbmd-1.3.tgz) = c5e28f1cac3d0e1aa2c2f0084fd2b2a878058b5c40640a799b52c84fcdb6bdf1 +SIZE (dsbmd-1.3.tgz) = 49290 Index: files/dsbmd.in =================================================================== --- files/dsbmd.in (revision 462044) +++ files/dsbmd.in (working copy) @@ -16,13 +16,31 @@ . /etc/rc.subr name=dsbmd +command=/usr/local/libexec/dsbmd rcvar=dsbmd_enable +pidfile=/var/run/dsbmd.pid +stop_cmd=dsbmd_stop load_rc_config $name -: ${dsbmd_enable:=NO} +: ${dsbmd_enable:="NO"} -command=%%PREFIX%%/libexec/${name} -pidfile=/var/run/${name}.pid +dsbmd_stop() +{ + if [ -f ${pidfile} ]; then + echo "Stopping ${name}." + pid=$(cat ${pidfile}) + n=0 + while [ $n -lt 5 ]; do + kill ${pid} 2>/dev/null || return 0 + n=$(($n + 1)) + sleep 1 + done + kill -KILL ${pid} 2>/dev/null + else + echo "${name} is not running." + return 1 + fi +} run_rc_command "$1"