From nobody Tue Nov 15 09:58:42 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NBM823x98z4hWD9; Tue, 15 Nov 2022 09:58:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NBM823QWwz447F; Tue, 15 Nov 2022 09:58:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668506322; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Rb3QXrjjkiu8mb2TLgs6To5/EPFA+M1vYrBwHgA5sDs=; b=wUWGMGIbGjvsx15REbHyffiswf0ia9cqWnuxo5vxnplt1MMhpgv3Kz0mwU7FxTkylPCtk5 L714gh+40jGQTcSEMadzwoOXwGHDAgdaKEwn6OJIVDv8ICdv6Kv0ZMhs0efKtHUTrnYlC5 AvkaK7GtkLN0SSDQ0T6bD00ZBtqMS4e1+vkzGCWLcJvv/Jrml79pgTx70/Gpn9mvOvFRRo ktN+KCTkKm0j8rznAQiLC6/IZUH2Elmd/3POfKq2IJlB271VvmOW+Hm/Pmb6NQ7sWn7Xlt aiLmSc6LoW7ZRp+H8PvH11Y3GDvhG4C4g7I3da9zqqkMbUPhTI7V90YGyRBhAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668506322; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Rb3QXrjjkiu8mb2TLgs6To5/EPFA+M1vYrBwHgA5sDs=; b=d16qkV1hdmmrxRwOa1o2ZbBdP/dRAjU4IdRlQYJExdRPBzDQfhfTBcHsAn0axslFqR1868 Tawi9HcuCroSKPJCuAj+wXHxUj39eIJsqoIfr1IwfAJrX24VmayiXe6mHk9hdZ18iQr65p xVJXAXunU4PZbQLDH2guoptAbmh/9JjKxEfUaIrhHxegYfE3xyO46xNFCFK2toyroTXvr5 0oQzIMzy/IxwY51BX9YDZJi70rggo25OGDUbpEv+Fn20Tbe2ZSCl1UvMQ141SNO3/paIu7 L4742aVmZCmPo6yHKxncqTNf4VUMEua1EcGYuqB5Lpl+9FEtyev59gParfUJpQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668506322; a=rsa-sha256; cv=none; b=jNSxwrCIbMl9CvLXMgYPGs+tv0LrjEINMrkJUefehNR+uThHSi8lkRnPhjEzGA6wrBF50f IPok9S/1dBZsQnBDYHM64lmEbwwkfHGesx9gUlIAtlKKzut09lTx+0sSPGzPSBQ6+pqMTG WfJw31F6lNawK/0CZo84AhmwjxNSM7hbqMvmvmMZdobYdybYs2Yuq2p3osxmm/mmh9l4Op xK7qaPqkJ8lTzcimx06XlFO/mY+TSCEjmcvuvwdukow84zJmUADwwqC9wnze/ML6LEEiMl XEc+XEHqr+AW4Y0MFCM5RdazfNKrk5rqNWQNuOjIwljts9TieVRw9tJNkLflwQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NBM822TSqzJ9q; Tue, 15 Nov 2022 09:58:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AF9wgQ0059383; Tue, 15 Nov 2022 09:58:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AF9wg1J059382; Tue, 15 Nov 2022 09:58:42 GMT (envelope-from git) Date: Tue, 15 Nov 2022 09:58:42 GMT Message-Id: <202211150958.2AF9wg1J059382@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hans Petter Selasky Subject: git: 6fad55550cbc - main - audio/hpsjam: Add rc.d file for starting HpsJam server similar to Jamulus. List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6fad55550cbc4e851bd06ca4f58b1a727d9ec7d5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/ports/commit/?id=6fad55550cbc4e851bd06ca4f58b1a727d9ec7d5 commit 6fad55550cbc4e851bd06ca4f58b1a727d9ec7d5 Author: Hans Petter Selasky AuthorDate: 2022-11-15 09:53:34 +0000 Commit: Hans Petter Selasky CommitDate: 2022-11-15 09:58:11 +0000 audio/hpsjam: Add rc.d file for starting HpsJam server similar to Jamulus. Approved by: pi (implicit) --- audio/hpsjam/Makefile | 5 +++++ audio/hpsjam/files/hpsjam_server.in | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/audio/hpsjam/Makefile b/audio/hpsjam/Makefile index e73f33c4d587..604108589ff8 100644 --- a/audio/hpsjam/Makefile +++ b/audio/hpsjam/Makefile @@ -1,6 +1,7 @@ PORTNAME= hpsjam DISTVERSIONPREFIX= v DISTVERSION= 1.2.6 +PORTREVISION= 1 CATEGORIES= audio MAINTAINER= hselasky@FreeBSD.org @@ -20,6 +21,10 @@ USE_GITHUB= yes GH_ACCOUNT= hselasky GH_TUPLE= mborgerding:kissfft:131.1.0:a/kissfft +USER= nobody +SUB_LIST= USER=${USER} +USE_RC_SUBR= ${PORTNAME}_server + PLIST_FILES= \ bin/HpsJam \ share/pixmaps/HpsJam.png \ diff --git a/audio/hpsjam/files/hpsjam_server.in b/audio/hpsjam/files/hpsjam_server.in new file mode 100644 index 000000000000..e96f569ad279 --- /dev/null +++ b/audio/hpsjam/files/hpsjam_server.in @@ -0,0 +1,34 @@ +#!/bin/sh + +# PROVIDE: hpsjam_server +# REQUIRE: DAEMON NETWORKING +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable hpsjam_server: +# hpsjam_server_enable : set to "YES" to enable the daemon, default is "NO" +# hpsjam_server_uname : user to run hpsjam_server as, default is "%%USER%%" +# hpsjam_server_flags : extra flags to pass to daemon(8), default is "" +# hpsjam_server_args : any arguments to pass to hpsjam_server, default is "" +# +# See output from HpsJam --help for more options +# + +. /etc/rc.subr + +name=hpsjam_server +rcvar=hpsjam_server_enable + +load_rc_config $name + +hpsjam_server_enable=${hpsjam_server_enable:-"NO"} +hpsjam_server_uname=${hpsjam_server_uname:-"%%USER%%"} +hpsjam_server_flags=${hpsjam_server_flags:-""} +hpsjam_server_args=${hpsjam_server_args:-""} + +logfile="/var/log/${name}.log" + +procname=%%PREFIX%%/bin/HpsJam +command="/usr/sbin/daemon" +command_args="-u ${hpsjam_server_uname} -o ${logfile} -t ${name} ${procname} --server ${hpsjam_server_args}" + +run_rc_command "$1"