- Modify sample config to not listen on the net by default [1]

- Fix paths in man page [2]
- While here, silence some portlint warnings and modernize plist

PR:		194252 [1], 194518 [2]
Submitted by:	uffe at uffe.org [1]
			adrian@ [2]
Approved by:	Henry Hu <henry.hu.sh at gmail.com> (maintainer)
This commit is contained in:
Guido Falsi 2014-11-02 09:44:01 +00:00
parent b9346b31fa
commit 95d9ca648e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372060
4 changed files with 19 additions and 16 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= slim
PORTVERSION= 1.3.6
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= x11
MASTER_SITES= ftp://ftp.berlios.de/pub/slim/ \
SF/slim.berlios
@ -23,8 +23,9 @@ LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus \
USES= cmake pkgconfig
USE_XORG= ice sm x11 xau xcb xdmcp xext xft xmu xorg-server xrandr \
xrender xt
xrender xt
USE_RC_SUBR= slim
USE_LDCONFIG= yes
SUB_FILES= pkg-message
CMAKE_ARGS= -DUSE_CONSOLEKIT=yes \
@ -57,7 +58,7 @@ post-patch:
@${CP} ${WRKSRC}/slim.conf ${WRKSRC}/slim.conf.sample
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/slim.conf.sample
@${REINPLACE_CMD} -e 's,/etc/slim.conf,${PREFIX}&,' \
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \
${WRKSRC}/slim.1
post-install:

View file

@ -1,8 +1,12 @@
$FreeBSD$
--- slim.1.orig 2014-03-10 21:18:36.740597788 +0000
+++ slim.1 2014-03-10 21:22:07.373025770 +0000
@@ -42,6 +42,9 @@
--- slim.1.orig 2013-10-01 22:38:05 UTC
+++ slim.1
@@ -37,13 +37,16 @@ display version information
run \fBslim\fP in daemon mode
.TP
.B
-\fBslim\fP \fB-p\fP /usr/share/\fBslim\fP/themes/default
+\fBslim\fP \fB-p\fP %%PREFIX%%/share/\fBslim\fP/themes/default
preview of the default theme
.SH STARTING SLIM AT BOOT
Please refer to documentation of your Operating System to make \fBslim\fP
automatically startup after the system boots.
@ -10,5 +14,8 @@ $FreeBSD$
+For \fBFreeBSD\fP, you should add the line slim_enable=yes to /etc/rc.conf
+to make \fBslim\fP start on boot.
.SH CONFIGURATION
Global configuration is stored in the /etc/slim.conf file. See the comments
-Global configuration is stored in the /etc/slim.conf file. See the comments
+Global configuration is stored in the %%PREFIX%%/etc/slim.conf file. See the comments
inside the file for a detailed explanation of the \fIoptions\fP.
.SH USAGE AND SPECIAL USERNAMES
When started, \fBslim\fP will show a login panel; enter the username and

View file

@ -11,7 +11,7 @@
+default_xserver %%LOCALBASE%%/bin/X
+# The X server needs to be started on an unused virtual terminal,
+# for FreeBSD in a default configuration, the first one of those is #09
+xserver_arguments vt09
+xserver_arguments -nolisten tcp vt09
# Commands for halt, login, etc.
-halt_cmd /sbin/shutdown -h now

View file

@ -5,12 +5,7 @@ lib/libslim.so.%%VERSION%%
%%DATADIR%%/themes/default/panel.png
%%DATADIR%%/themes/default/slim.theme
man/man1/slim.1.gz
@dirrmtry %%DATADIR%%/themes/default
@dirrmtry %%DATADIR%%/themes
@dirrmtry %%DATADIR%%
@unexec if cmp -s %D/etc/slim.conf.sample %D/etc/slim.conf; then rm -f %D/etc/slim.conf; fi
etc/slim.conf.sample
@exec if [ ! -f %D/etc/slim.conf ]; then cp -p %D/%F %B/slim.conf; fi
@sample etc/slim.conf.sample
%%PAM%%@unexec if cmp -s %D/etc/pam.d/slim.default %D/etc/pam.d/slim; then rm -f %D/etc/pam.d/slim; fi
%%PAM%%etc/pam.d/slim.default
%%PAM%%@exec if [ ! -f %D/etc/pam.d/slim ]; then cp -p %D/%F %B/slim; fi