svn commit: r522434 - in head/x11/xdm: . files
Chris Rees
crees at FreeBSD.org
Wed Jan 8 16:29:08 UTC 2020
Author: crees
Date: Wed Jan 8 16:29:07 2020
New Revision: 522434
URL: https://svnweb.freebsd.org/changeset/ports/522434
Log:
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 at gmx.us (based on)
Added:
head/x11/xdm/files/xdm.in (contents, props changed)
Modified:
head/x11/xdm/Makefile
Modified: head/x11/xdm/Makefile
==============================================================================
--- head/x11/xdm/Makefile Wed Jan 8 16:22:09 2020 (r522433)
+++ head/x11/xdm/Makefile Wed Jan 8 16:29:07 2020 (r522434)
@@ -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
Added: head/x11/xdm/files/xdm.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/xdm/files/xdm.in Wed Jan 8 16:29:07 2020 (r522434)
@@ -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
More information about the svn-ports-head
mailing list