On Sat, Mar 17, 2007 at 02:14:21PM +0000, Tom wrote:
> Hi Guys
>
> With help from the community, this port now works very well. Tested on
> x86/x86_64.
Well, that may be a bit optimistic, as it didn't build for me
(packaging error). Regenerating pkg/PLIST solved that.
Also, why not change the default configuration in line with the changed
example? That is quite a bit more user-friendly.
Therefore, I propose the patch at the end.
Joachim
--- slim.old/patches/patch-cfg_cpp Thu Jan 1 01:00:00 1970
+++ slim/patches/patch-cfg_cpp Mon Mar 19 00:23:58 2007
@@ -0,0 +1,19 @@
+$OpenBSD$
+--- cfg.cpp.orig Mon Mar 19 00:22:34 2007
++++ cfg.cpp Mon Mar 19 00:23:45 2007
+@@ -27,13 +27,13 @@ Cfg::Cfg() {
+ options.insert(option("numlock",""));
+ options.insert(option("daemon",""));
+ options.insert(option("xauth_path","/usr/X11R6/bin/xauth"));
+- options.insert(option("login_cmd","exec /bin/bash -login ~/.xinitrc
%session"));
++ options.insert(option("login_cmd","exec /bin/sh -login ~/.xinitrc
%session"));
+ options.insert(option("halt_cmd","/sbin/shutdown -h now"));
+ options.insert(option("reboot_cmd","/sbin/shutdown -r now"));
+ options.insert(option("suspend_cmd",""));
+ options.insert(option("sessionstart_cmd",""));
+ options.insert(option("sessionstop_cmd",""));
+- options.insert(option("console_cmd","/usr/X11R6/bin/xterm -C -fg white
-bg black +sb -g %dx%d+%d+%d -fn %dx%d -T ""Console login"" -e /bin/sh -c
""/bin/cat /etc/issue;
exec /bin/login"""));
++ options.insert(option("console_cmd","/usr/X11R6/bin/xterm -C -fg white
-bg black +sb -g %dx%d+%d+%d -fn %dx%d -T ""Console login"" -e /bin/sh -c
""/bin/head -1 /etc/mot
d; exec /bin/login"));
+ options.insert(option("screenshot_cmd","import -window root
/login.app.png"));
+ options.insert(option("welcome_msg","Welcome to %host"));
+ options.insert(option("default_user",""));
diff -Nurd slim.old/pkg/PLIST slim/pkg/PLIST
--- slim.old/pkg/PLIST Mon Mar 19 00:26:15 2007
+++ slim/pkg/PLIST Mon Mar 19 00:13:34 2007
@@ -1,11 +1,11 @@
@comment $OpenBSD$
-bin/${BASE_PKGPATH}
[EMAIL PROTECTED] man/man1/${BASE_PKGPATH}.1
-share/examples/${BASE_PKGPATH}/
-share/examples/${BASE_PKGPATH}/${BASE_PKGPATH}.conf
-share/${BASE_PKGPATH}/
-share/${BASE_PKGPATH}/themes/
-share/${BASE_PKGPATH}/themes/default/
-share/${BASE_PKGPATH}/themes/default/background.jpg
-share/${BASE_PKGPATH}/themes/default/panel.png
-share/${BASE_PKGPATH}/themes/default/${BASE_PKGPATH}.theme
+bin/slim
[EMAIL PROTECTED] man/man1/slim.1
+share/examples/slim/
+share/examples/slim/slim.conf
+share/slim/
+share/slim/themes/
+share/slim/themes/default/
+share/slim/themes/default/background.jpg
+share/slim/themes/default/panel.png
+share/slim/themes/default/slim.theme