freebsd-ports/sysutils/volman/Makefile
Eitan Adler 13d94c2936 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>
2012-01-07 04:59:41 +00:00

53 lines
1.3 KiB
Makefile

# 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>