Index: head/audio/Makefile =================================================================== --- head/audio/Makefile +++ head/audio/Makefile @@ -912,6 +912,7 @@ SUBDIR += xvmixer SUBDIR += xwave SUBDIR += yell + SUBDIR += ympd SUBDIR += yoshimi SUBDIR += zam-plugins-lv2 SUBDIR += zinf Index: head/audio/ympd/Makefile =================================================================== --- head/audio/ympd/Makefile +++ head/audio/ympd/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= ympd +DISTVERSIONPREFIX= v +DISTVERSION= 1.3.0 +CATEGORIES= audio www +MASTER_SITES= GH + +MAINTAINER= dch@FreeBSD.org +COMMENT= Stand-alone lightweight web UI controller for audio/musicpd + +LICENSE= GPLv2 BSD3CLAUSE MIT +LICENSE_COMB= multi + +LIB_DEPENDS= libmpdclient.so:audio/libmpdclient + +USES= cmake ssl +USE_GITHUB= yes +GH_ACCOUNT= notandy + +USE_RC_SUBR= ${PORTNAME} + +PLIST_FILES= bin/${PORTNAME} \ + share/man/man1/${PORTNAME}.1 + +.include Index: head/audio/ympd/distinfo =================================================================== --- head/audio/ympd/distinfo +++ head/audio/ympd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1531151012 +SHA256 (notandy-ympd-v1.3.0_GH0.tar.gz) = d9f68920cd93d1cfa971e1d7b9162a2b1724909bc9753c1338cecb3688d234d5 +SIZE (notandy-ympd-v1.3.0_GH0.tar.gz) = 350115 Index: head/audio/ympd/files/ympd.in =================================================================== --- head/audio/ympd/files/ympd.in +++ head/audio/ympd/files/ympd.in @@ -0,0 +1,39 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: ympd +# REQUIRE: DAEMON NETWORKING musicpd +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf to enable ympd: +# +# ympd_enable (bool): set to NO by default. +# Set it to YES to enable ympd. +# +# ympd_flags (string): optional flags to pass through to daemon + +. /etc/rc.subr + +name=ympd +rcvar=ympd_enable +desc="A lightweight web UI for audio/musicpd" + +# defaults +: ${ympd_enable:=NO} +: ${ympd_flags:=""} + +load_rc_config ${name} + +start_cmd="ympd_start" + +command="%%PREFIX%%/bin/${name}" +pidfile="/var/run/${name}.pid" + +ympd_start () { + echo "Starting ympd." + /usr/sbin/daemon -t ${name} -f -p ${pidfile} ${command} ${ympd_flags} +} + +run_rc_command "$1" Index: head/audio/ympd/pkg-descr =================================================================== --- head/audio/ympd/pkg-descr +++ head/audio/ympd/pkg-descr @@ -0,0 +1,5 @@ +A lightweight MPD (Music Player Daemon) web client written in C, that +runs without a dedicated webserver or interpreters like PHP, NodeJS or +Ruby. It's tuned for minimal resource usage, and minimal configuration. + +WWW: https://www.ympd.org/ Index: head/audio/ympd/pkg-message =================================================================== --- head/audio/ympd/pkg-message +++ head/audio/ympd/pkg-message @@ -0,0 +1,11 @@ +To configure ympd, assuming it is running on the same system as +audio/musicpd itself: + +sysrc ympd_enable=YES +service ympd start + +You may optionally configure additional flags for the daemon: + +sysrc ympd_flags="--webport localhost:9000 --user=nobody" + +See ympd(1) for further details.