From ad6fccf871af181b3bb238a9129ef4d350b6752c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Daniel=20Colmenares=20Oviedo?= Date: Wed, 13 Nov 2024 17:37:46 -0800 Subject: [PATCH] deskutils/pueue: Add rc script PR: 282742 --- deskutils/pueue/Makefile | 3 ++- deskutils/pueue/files/pueued.in | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 deskutils/pueue/files/pueued.in diff --git a/deskutils/pueue/Makefile b/deskutils/pueue/Makefile index 70fefe0cead8..5444f5f746e8 100644 --- a/deskutils/pueue/Makefile +++ b/deskutils/pueue/Makefile @@ -1,7 +1,7 @@ PORTNAME= pueue DISTVERSIONPREFIX= v DISTVERSION= 3.4.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= deskutils MAINTAINER= yuri@FreeBSD.org @@ -15,6 +15,7 @@ USES= cargo USE_GITHUB= yes GH_ACCOUNT= Nukesor +USE_RC_SUBR= pueued RUSTFLAGS= ${ARCH:S/i386/YES/:C/^[a-z].*//:S/YES/-C target-feature=+sse,+sse2/} # add sse sse2 target-features only on i386 diff --git a/deskutils/pueue/files/pueued.in b/deskutils/pueue/files/pueued.in new file mode 100644 index 000000000000..d8c8ef2551ce --- /dev/null +++ b/deskutils/pueue/files/pueued.in @@ -0,0 +1,24 @@ +#! /bin/sh + +# PROVIDE: pueued +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Configuration settings for pueued in /etc/rc.conf +# +# pueued_enable (bool): Enable pueued. (default=NO) + +. /etc/rc.subr + +name="pueued" +rcvar="pueued_enable" + +load_rc_config $name + +: ${pueued_enable:="NO"} +: ${pueued_env:="HOME=/root"} + +command="%%PREFIX%%/bin/${name}" +command_args="-d" + +run_rc_command "$1"