aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authortdb <tdb@FreeBSD.org>2009-07-26 20:01:21 +0800
committertdb <tdb@FreeBSD.org>2009-07-26 20:01:21 +0800
commit8d03164e134a7cead82d8fc8a525718a7dd3e193 (patch)
tree8f423cd78229012880c51732ba17ef559a47cdc3 /misc
parent256f628fc14912c4eab0740e9e180ae199d548df (diff)
downloadfreebsd-ports-gnome-8d03164e134a7cead82d8fc8a525718a7dd3e193.tar.gz
freebsd-ports-gnome-8d03164e134a7cead82d8fc8a525718a7dd3e193.tar.zst
freebsd-ports-gnome-8d03164e134a7cead82d8fc8a525718a7dd3e193.zip
Add dnetc_idprio RC flag to run dnetc under idprio with the given
priority. Not on by default. PR: ports/136958 Submitted by: Martin Lesser <ml-freebsd@bettercom.de>
Diffstat (limited to 'misc')
-rw-r--r--misc/dnetc/Makefile8
-rw-r--r--misc/dnetc/files/dnetc.sh.in3
2 files changed, 6 insertions, 5 deletions
diff --git a/misc/dnetc/Makefile b/misc/dnetc/Makefile
index 78b46d47f24e..4606089b333a 100644
--- a/misc/dnetc/Makefile
+++ b/misc/dnetc/Makefile
@@ -49,7 +49,7 @@ SUB_LIST= BINDIR="${BINDIR}" \
.include <bsd.port.pre.mk>
.if ${ARCH} == i386
-REVISION= 0
+REVISION= 1
VERSION= 2.9103.509
.if ${OSVERSION} >= 700055
DISTNAME= dnetc${PORTVERSION:E}-freebsd7-${ARCH:S/i386/x86/}
@@ -61,7 +61,7 @@ WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd6-${ARCH:S/i386/x86/}
.endif
.if ${ARCH} == amd64
-REVISION= 0
+REVISION= 1
VERSION= 2.9103.509
.if ${OSVERSION} >= 700055
DISTNAME= dnetc${PORTVERSION:E}-freebsd7-${ARCH:S/i386/x86/}
@@ -73,7 +73,7 @@ WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd6-${ARCH:S/i386/x86/}
.endif
.if ${ARCH} == sparc64
-REVISION= 0
+REVISION= 1
VERSION= 2.9103.509
.if ${OSVERSION} >= 700055
DISTNAME= dnetc${PORTVERSION:E}-freebsd7-${ARCH:S/i386/x86/}-elf
@@ -85,7 +85,7 @@ WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd6-${ARCH:S/i386/x86/}
.endif
.if ${ARCH} == alpha
-REVISION= 3
+REVISION= 4
VERSION= 2.9003.481
.endif
diff --git a/misc/dnetc/files/dnetc.sh.in b/misc/dnetc/files/dnetc.sh.in
index 32e0d2a2ea59..d0e3fa3e46db 100644
--- a/misc/dnetc/files/dnetc.sh.in
+++ b/misc/dnetc/files/dnetc.sh.in
@@ -12,6 +12,7 @@
# Set to "YES" to enable dnetc.
# dnetc_dir (path): Set to "%%BINDIR%%" by default.
# dnetc_user (user): Set to "%%CLIENTUSER%%" by default.
+# dnetc_idprio (priority): Unset by default. See idprio manpage.
#
. %%RC_SUBR%%
@@ -41,7 +42,7 @@ dnetc_start()
if ps -x -o ucomm -U${dnetc_user} | grep ${name} >/dev/null; then
echo "${name} already running?"
else
- su -m ${dnetc_user} -c "${dnetc_dir}/${name} -quiet" >/dev/null 2>&1
+ ${dnetc_idprio:+idprio} ${dnetc_idprio} su -m ${dnetc_user} -c "${dnetc_dir}/${name} -quiet" >/dev/null 2>&1
echo -n " ${name}"
fi
}