View | Details | Raw Unified | Return to bug 153392 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	slim
8
PORTNAME=	slim
9
PORTVERSION=	1.3.2
9
PORTVERSION=	1.3.2
10
PORTREVISION=	1
10
CATEGORIES=	x11
11
CATEGORIES=	x11
11
MASTER_SITES=	${MASTER_SITE_BERLIOS} \
12
MASTER_SITES=	${MASTER_SITE_BERLIOS} \
12
		http://depot.fsck.ch/mirror/distfiles/
13
		http://depot.fsck.ch/mirror/distfiles/
(-)files/slim.sh.in (-2 / +14 lines)
Lines 1-9 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
# $FreeBSD$
4
#
3
# PROVIDE: slim
5
# PROVIDE: slim
4
# REQUIRE: LOGIN
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
5
8
6
#
7
# Add the following lines to /etc/rc.conf to enable slim:
9
# Add the following lines to /etc/rc.conf to enable slim:
8
# slim_enable (bool):      Set to "NO" by default.
10
# slim_enable (bool):      Set to "NO" by default.
9
#                          Set it to "YES" to enable slim
11
#                          Set it to "YES" to enable slim
Lines 11-23 Link Here
11
# Alternatively, edit /etc/ttys and change the line below
13
# Alternatively, edit /etc/ttys and change the line below
12
#   ttyv8   "/usr/X11R6/bin/xdm -nodaemon"  xterm   off secure
14
#   ttyv8   "/usr/X11R6/bin/xdm -nodaemon"  xterm   off secure
13
# to this:
15
# to this:
14
#   ttyv8   "/usr/local/bin/slim"   xterm   on secure
16
#   ttyv8   "%%PREFIX%%/bin/slim"   xterm   on secure
15
17
16
. /etc/rc.subr
18
. /etc/rc.subr
17
19
18
name="slim"
20
name="slim"
19
rcvar=`set_rcvar`
21
rcvar=`set_rcvar`
20
22
23
stop_precmd=${name}_prestop
24
21
load_rc_config $name
25
load_rc_config $name
22
26
23
: ${slim_enable="NO"}
27
: ${slim_enable="NO"}
Lines 26-29 Link Here
26
command_args="-d"
30
command_args="-d"
27
pidfile=/var/run/slim.pid
31
pidfile=/var/run/slim.pid
28
32
33
slim_prestop ()
34
{
35
	local xpid
36
37
	xpid=`ps -axww | grep '/bin/[X] .* -auth /var/run/slim.auth'`
38
	kill ${xpid%% *}
39
}
40
29
run_rc_command "$1"
41
run_rc_command "$1"

Return to bug 153392