diff options
Diffstat (limited to 'filesystems/dsbmd')
-rw-r--r-- | filesystems/dsbmd/Makefile | 43 | ||||
-rw-r--r-- | filesystems/dsbmd/distinfo | 3 | ||||
-rw-r--r-- | filesystems/dsbmd/files/dsbmd.in | 44 | ||||
-rw-r--r-- | filesystems/dsbmd/pkg-descr | 9 |
4 files changed, 99 insertions, 0 deletions
diff --git a/filesystems/dsbmd/Makefile b/filesystems/dsbmd/Makefile new file mode 100644 index 000000000000..915d7182d96a --- /dev/null +++ b/filesystems/dsbmd/Makefile @@ -0,0 +1,43 @@ +PORTNAME= dsbmd +PORTVERSION= 1.11.4 +CATEGORIES= filesystems sysutils + +MAINTAINER= mk@nic-nac-project.org +COMMENT= Media mounting daemon +WWW= https://github.com/mrclksr/DSBMD + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= tar:tgz + +USE_RC_SUBR= dsbmd + +USE_GITHUB= yes +GH_ACCOUNT= mrclksr +GH_PROJECT= DSBMD + +PLIST_FILES= "@sample etc/dsbmd.conf.sample" \ + libexec/dsbmd + +PORTDOCS= readme.mdoc + +OPTIONS_DEFINE= DOCS EXFAT EXT4 HFS LKL MTP NTFS PTP +OPTIONS_DEFAULT= EXT4 MTP NTFS PTP + +EXFAT_DESC= exFAT filesystem support +EXT4_DESC= Ext4 filesystem support +HFS_DESC= HFS+ 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:filesystems/exfat +EXT4_RUN_DEPENDS= fuse-ext2:filesystems/ext2 +HFS_RUN_DEPENDS= hfsfuse:filesystems/hfsfuse +LKL_RUN_DEPENDS= lklfuse:filesystems/lkl +MTP_RUN_DEPENDS= jmtpfs:filesystems/jmtpfs +NTFS_RUN_DEPENDS= ntfs-3g:filesystems/ntfs +PTP_RUN_DEPENDS= gphotofs:filesystems/gphotofs + +.include <bsd.port.mk> diff --git a/filesystems/dsbmd/distinfo b/filesystems/dsbmd/distinfo new file mode 100644 index 000000000000..893dc203c2e4 --- /dev/null +++ b/filesystems/dsbmd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1618517134 +SHA256 (mrclksr-DSBMD-1.11.4_GH0.tar.gz) = 8efd286bb21f516f1285602ba052212e200392b06a1979ca0338f05d65a8535d +SIZE (mrclksr-DSBMD-1.11.4_GH0.tar.gz) = 53458 diff --git a/filesystems/dsbmd/files/dsbmd.in b/filesystems/dsbmd/files/dsbmd.in new file mode 100644 index 000000000000..95eb922d3c64 --- /dev/null +++ b/filesystems/dsbmd/files/dsbmd.in @@ -0,0 +1,44 @@ +#!/bin/sh + +# PROVIDE: dsbmd +# REQUIRE: LOGIN devfs devd mountlate +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# dsbmd_enable (bool): Set to NO by default. +# Set it to YES to enable dsbmd. +# + +. /etc/rc.subr + +name=dsbmd +command=%%PREFIX%%/libexec/dsbmd +rcvar=dsbmd_enable +pidfile=/var/run/dsbmd.pid +stop_cmd=dsbmd_stop + +load_rc_config $name + +: ${dsbmd_enable:="NO"} + +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" diff --git a/filesystems/dsbmd/pkg-descr b/filesystems/dsbmd/pkg-descr new file mode 100644 index 000000000000..0829e6d49107 --- /dev/null +++ b/filesystems/dsbmd/pkg-descr @@ -0,0 +1,9 @@ +DSBMD is a media/filesystem type detecting daemon that allows clients to mount +storage devices. + +DSBMD watches the mount table for changes, monitors devd events for new storage +devices, polls CD/DVD drives and card readers for media change events, deter- +mines media types, volume names, and filesystem types. Mountable devices, +changes in the mount table as well as device add/remove events and altered +states of mountable devices are presented to clients. Clients can request DSBMD +to mount, unmount, and eject media, or set the CD/DVD reading speed. |