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"