diff options
author | Chris Rees <crees@FreeBSD.org> | 2020-01-08 16:29:07 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2020-01-08 16:29:07 +0000 |
commit | 45cd42b77d77bd9baa42fe5bf6fbacde31cee9f5 (patch) | |
tree | 4d21082dc9cf55289729c2219c8a3130894d4ea7 /x11/xdm | |
parent | bbaa136120de3133b01ad657376c96f4c160902a (diff) | |
download | ports-45cd42b77d77bd9baa42fe5bf6fbacde31cee9f5.tar.gz ports-45cd42b77d77bd9baa42fe5bf6fbacde31cee9f5.zip |
Add simple rc script for xdm.
All of the other display managers have one, and it saves user
confusion to have this method available too.
PR: ports/225985
Submitted by: edmonddantes@gmx.us (based on)
Notes
Notes:
svn path=/head/; revision=522434
Diffstat (limited to 'x11/xdm')
-rw-r--r-- | x11/xdm/Makefile | 1 | ||||
-rw-r--r-- | x11/xdm/files/xdm.in | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/x11/xdm/Makefile b/x11/xdm/Makefile index a4dfeae2b1b7..e4be388fa86e 100644 --- a/x11/xdm/Makefile +++ b/x11/xdm/Makefile @@ -14,6 +14,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING USES= cpe libtool xorg xorg-cat:app USE_LDCONFIG= yes USE_XORG= x11 xau xaw xdmcp xext xinerama xmu xpm xrender xt +USE_RC_SUBR= xdm CPE_PRODUCT= x_display_manager CPE_VENDOR= x diff --git a/x11/xdm/files/xdm.in b/x11/xdm/files/xdm.in new file mode 100644 index 000000000000..e86171917abd --- /dev/null +++ b/x11/xdm/files/xdm.in @@ -0,0 +1,30 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: xdm +# REQUIRE: LOGIN moused +# KEYWORD: nojail shutdown +# +# Add the following line to /etc/rc.conf to enable xdm: +# xdm_enable="YES" +# +# Alternatively, edit /etc/ttys and change the line below +# ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure +# to this: +# ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm on secure + +. /etc/rc.subr + +name="xdm" +rcvar=xdm_enable +desc="X.org X display manager" + +load_rc_config $name + +: ${xdm_enable:=NO} + +command=%%PREFIX%%/bin/$name +pidfile=/var/run/$name.pid + +run_rc_command $1 |