[Midnightbsd-cvs] mports: xfs.in: Add missing file.
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Fri Oct 12 10:39:37 EDT 2007
Log Message:
-----------
Add missing file.
Added Files:
-----------
mports/x11-fonts/xfs/files:
xfs.in (r1.1)
-------------- next part --------------
--- /dev/null
+++ x11-fonts/xfs/files/xfs.in
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/x11-fonts/xfs/files/xfs.in,v 1.1 2007/05/19 20:29:39 flz Exp $
+#
+
+# PROVIDE: xfs
+# REQUIRE: cleartmp ldconfig
+# BEFORE: LOGIN
+
+# The following variables are provided to control startup of X font server in
+# rc configuration file (eg /etc/rc.conf):
+# xfs_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable X font server
+# xfs_config (str): Set to "%%PREFIX%%/lib/X11/fs/config" by default.
+# Configuration file for X font server.
+#
+# Please see xfs(1), rc.conf(5) and rc(8) for further details.
+
+. %%RC_SUBR%%
+
+name="xfs"
+rcvar=`set_rcvar`
+
+# Set defaults
+[ -z "$xfs_enable" ] && xfs_enable="NO"
+[ -z "$xfs_config" ] && xfs_config="%%PREFIX%%/lib/X11/fs/config"
+
+load_rc_config $name
+
+command="%%PREFIX%%/bin/${name}"
+command_args="-config ${xfs_config} -daemon ${xfs_user:+-user ${xfs_user}}"
+required_files="$xfs_config"
+extra_commands="reload"
+
+unset xfs_user
+
+run_rc_command "$1"
More information about the Midnightbsd-cvs
mailing list