pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sndio: fix rc file
Module Name: pkgsrc-wip
Committed By: kikadf <kikadf.01%gmail.com@localhost>
Pushed By: kikadf
Date: Wed Aug 28 18:57:41 2024 +0200
Changeset: 57625e01ac00d37503cd8ee974277c5631994b48
Modified Files:
sndio/Makefile
sndio/files/sndio.sh
Log Message:
sndio: fix rc file
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=57625e01ac00d37503cd8ee974277c5631994b48
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
sndio/Makefile | 10 ++++++++++
sndio/files/sndio.sh | 16 ++--------------
2 files changed, 12 insertions(+), 14 deletions(-)
diffs:
diff --git a/sndio/Makefile b/sndio/Makefile
index b6294ed047..ecd544eda8 100644
--- a/sndio/Makefile
+++ b/sndio/Makefile
@@ -19,4 +19,14 @@ CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
PKGCONFIG_OVERRIDE= libsndio/sndio.pc
PKGCONFIG_OVERRIDE_STAGE= post-configure
+RCD_SCRIPTS= sndio
+
+SNDIO_USER= _sndio
+SNDIO_GROUP= _sndio
+
+PKG_USERS= ${SNDIO_USER}:${SNDIO_GROUP}
+PKG_GROUPS= ${SNDIO_GROUP}
+PKG_GECOS.${SNDIO_USER}= Sndio user
+
+
.include "../../mk/bsd.pkg.mk"
diff --git a/sndio/files/sndio.sh b/sndio/files/sndio.sh
index 9f991bae9e..c8f57a34bc 100644
--- a/sndio/files/sndio.sh
+++ b/sndio/files/sndio.sh
@@ -9,20 +9,8 @@
. /etc/rc.subr
name="sndio"
-rcvar=$name
+rcvar=${name}
command="@PREFIX@/bin/sndiod"
-pidfile="@VARBASE@/run/sndio/pid"
-start_precmd=sndio_prestart
-sndio_prestart() {
- dir="@VARBASE@/run/sndio"
- if @TEST@ ! -d $dir; then
- @MKDIR@ $dir
- @CHMOD@ 0755 $dir
- @CHOWN@ @DBUS_USER@:@DBUS_GROUP@ $dir
- fi
- @PREFIX@/bin/dbus-uuidgen --ensure
-}
-
-load_rc_config $name
+load_rc_config ${name}
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index