move the SunOS r-commands into the rcmds package

rup, rusers and rwall implement the SunOS remote status utilities based
on RPC.  these are not widely used nowadays and most users won't have
them enabled, so there's no reason to ship them in the utilities
packages.

move the command-line utilities and their respective daemons into the
rcmds package, which already contains the related utilities rwho and
ruptime.

improve the comment/description of the rcmds package to be more
informative and mention its new contents.

while here, standardise formatting in the affected Makefiles.

Reviewed by:	manu, imp, des, emaste
Approved by:	des (mentor)
Differential Revision:	https://reviews.freebsd.org/D50143
This commit is contained in:
Lexi Winter 2025-05-05 16:20:46 +01:00
parent f91d251b39
commit 47cf7c780a
8 changed files with 27 additions and 13 deletions

View file

@ -1,6 +1,7 @@
PROG = rpc.rstatd
SRCS = rstatd.c rstat_proc.c
MAN = rpc.rstatd.8
PACKAGE= rcmds
PROG= rpc.rstatd
SRCS= rstatd.c rstat_proc.c
MAN= rpc.rstatd.8
LIBADD= rpcsvc devstat

View file

@ -1,6 +1,7 @@
PROG = rpc.rusersd
SRCS = rusersd.c rusers_proc.c extern.h
MAN = rpc.rusersd.8
PACKAGE= rcmds
PROG= rpc.rusersd
SRCS= rusersd.c rusers_proc.c extern.h
MAN= rpc.rusersd.8
LIBADD= rpcsvc

View file

@ -1,6 +1,7 @@
PROG = rpc.rwalld
SRCS = rwalld.c
MAN = rpc.rwalld.8
PACKAGE= rcmds
PROG= rpc.rwalld
SRCS= rwalld.c
MAN= rpc.rwalld.8
LIBADD= util

View file

@ -136,8 +136,12 @@ periodic_COMMENT= Periodic Utility
periodic_DESC= Periodic Utility
rc_COMMENT= RC Scripts
rc_DESC= RC Scripts
rcmds_COMMENT= Remote Command Utilities
rcmds_DESC= Remote Command Utilities
rcmds_COMMENT= BSD/SunOS remote status commands
rcmds_DESC=\
The BSD/SunOS remote status commands, which can be used to query or interact\
with remote hosts over the network. This includes the command-line utilities\
rwho, ruptime, rup, rusers and rwall and the daemons rwhod, rpc.rstatd,\
rpc.rusersd, and rpc.rwalld.
rdma_COMMENT= RDMA Utilities
rdma_DESC= RDMA Utilities
rescue_COMMENT= Rescue Utilities

View file

@ -43,6 +43,10 @@ main() {
periodic)
pkgdeps="cron"
;;
rcmds)
# the RPC daemons require rpcbind
pkgdeps="utilities"
;;
# -dev packages that have no corresponding non-dev package
# as a dependency.

View file

@ -1,3 +1,4 @@
PACKAGE= rcmds
PROG= rup
LIBADD= rpcsvc

View file

@ -1,4 +1,5 @@
PROG = rusers
PACKAGE= rcmds
PROG= rusers
LIBADD= rpcsvc

View file

@ -1,3 +1,4 @@
PROG = rwall
PACKAGE= rcmds
PROG= rwall
.include <bsd.prog.mk>