mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
volman is a FreeBSD specific volume manager. It acts
as a translator of devd(8) events, probing storage devices for their file system information, and serving this over a FIFO based API to which clients can subscribe. In addition to notifying clients of new or lost volumes, it will mount and unmount such volumes at the command of subscribing clients. It runs as root and allows any local clients the ability to mount and unmount volumes which are detected, regardless of any user privileges. This is intended for single user X11 systems needing an easy way of accessing USB flash disks on the fly. WWW: http://forums.freebsd.org/showthread.php?t=27233 PR: ports/161977 Submitted by: Aragon Gouveia <aragon@phat.za.net>
This commit is contained in:
parent
b706405e3a
commit
13d94c2936
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288658
@ -934,6 +934,7 @@
|
||||
SUBDIR += virtualmin
|
||||
SUBDIR += vlogger
|
||||
SUBDIR += vobcopy
|
||||
SUBDIR += volman
|
||||
SUBDIR += vordog
|
||||
SUBDIR += vstrip
|
||||
SUBDIR += vttest
|
||||
|
53
sysutils/volman/Makefile
Normal file
53
sysutils/volman/Makefile
Normal file
@ -0,0 +1,53 @@
|
||||
# New ports collection makefile for: volman
|
||||
# Date created: 2012-01-06
|
||||
# Whom: Aragon Gouveia <aragon@phat.za.net>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= volman
|
||||
PORTVERSION= 0.7
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://cloud.github.com/downloads/jmptbl/volman/
|
||||
|
||||
MAINTAINER= aragon@phat.za.net
|
||||
COMMENT= FreeBSD specific volume manager
|
||||
|
||||
USE_XZ= yes
|
||||
USE_RC_SUBR= volmand
|
||||
VM_SUB_FILES= vmount volmand
|
||||
|
||||
OPTIONS= OPENBOX "Install Openbox pipemenu script" off \
|
||||
NTFS3G "Use fusefs-ntfs extensions" off
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if defined(WITH_OPENBOX)
|
||||
VM_SUB_FILES+= obvolman
|
||||
RUN_DEPENDS+= ${LOCALBASE}/bin/xmessage:${PORTSDIR}/x11/xmessage
|
||||
PLIST_SUB+= OPENBOX=""
|
||||
.else
|
||||
PLIST_SUB+= OPENBOX="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_NTFS3G)
|
||||
RUN_DEPENDS+= ${LOCALBASE}/bin/ntfs-3g:${PORTSDIR}/sysutils/fusefs-ntfs
|
||||
SUB_LIST+= RCFUSEFS=" fusefs"
|
||||
.else
|
||||
SUB_LIST+= RCFUSEFS=""
|
||||
.endif
|
||||
|
||||
do-build:
|
||||
.for file in ${VM_SUB_FILES}
|
||||
${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKSRC}/${file}.in >${WRKSRC}/${file}
|
||||
.endfor
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/volmand ${PREFIX}/sbin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/vmount ${PREFIX}/bin
|
||||
.if defined(WITH_OPENBOX)
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/obvolman ${PREFIX}/bin
|
||||
.endif
|
||||
${INSTALL_DATA} ${WRKSRC}/volman.conf ${PREFIX}/etc/volman.conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
2
sysutils/volman/distinfo
Normal file
2
sysutils/volman/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (volman-0.7.tar.xz) = a2efc86f990b547245f58ec3db20059f597ad040805b6834fc6b9aab66df78b5
|
||||
SIZE (volman-0.7.tar.xz) = 4988
|
17
sysutils/volman/files/volmand.in
Normal file
17
sysutils/volman/files/volmand.in
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: volmand
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown nojail
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="volmand"
|
||||
rcvar=`set_rcvar`
|
||||
command="%%PREFIX%%/sbin/volmand"
|
||||
load_rc_config $name
|
||||
pidfile="/var/run/volmand.pid"
|
||||
|
||||
run_rc_command "$1"
|
15
sysutils/volman/pkg-descr
Normal file
15
sysutils/volman/pkg-descr
Normal file
@ -0,0 +1,15 @@
|
||||
volman is a FreeBSD specific volume manager. It acts
|
||||
as a translator of devd(8) events, probing storage
|
||||
devices for their file system information, and serving
|
||||
this over a FIFO based API to which clients can
|
||||
subscribe. In addition to notifying clients of new
|
||||
or lost volumes, it will mount and unmount such
|
||||
volumes at the command of subscribing clients.
|
||||
|
||||
It runs as root and allows any local clients the
|
||||
ability to mount and unmount volumes which are
|
||||
detected, regardless of any user privileges. This
|
||||
is intended for single user X11 systems needing
|
||||
an easy way of accessing USB flash disks on the fly.
|
||||
|
||||
WWW: http://forums.freebsd.org/showthread.php?t=27233
|
4
sysutils/volman/pkg-plist
Normal file
4
sysutils/volman/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
etc/volman.conf.sample
|
||||
sbin/volmand
|
||||
bin/vmount
|
||||
%%OPENBOX%%bin/obvolman
|
Loading…
Reference in New Issue
Block a user