aboutsummaryrefslogtreecommitdiff
path: root/misc/dnetc
diff options
context:
space:
mode:
Diffstat (limited to 'misc/dnetc')
-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
}