Date: Sun, 14 Nov 2010 14:01:48 GMT From: Gleb Kurtsou <gleb.kurtsou@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/152236: [patch] Enable pam support, add hald and dbus as start dependecies, fix reboot/halt with pam Message-ID: <201011141401.oAEE1mtY074099@www.freebsd.org> Resent-Message-ID: <201011141410.oAEEA61s045558@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 152236 >Category: ports >Synopsis: [patch] Enable pam support, add hald and dbus as start dependecies, fix reboot/halt with pam >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 14 14:10:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Gleb Kurtsou >Release: 9-CURRENT >Organization: >Environment: >Description: Please find shar file with following patches attached: slim-patches/slim.sh-patch -- Add hald and dbus as start dependencies to rc.d script. Without the patch slim can start before hald and dbus which results in X without keyboard and mouse slim-patches/pam.d/slim -- Should be installed with port to enable PAM. slim-patches/slim-reboot.patch -- Without PAM support typing reboot or halt as user name would reboot/halt the system, it doesn't work with PAM enabled. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # slim-patches # slim-patches/slim-reboot.patch # slim-patches/pam.d # slim-patches/pam.d/slim # slim-patches/slim.sh-patch # echo c - slim-patches mkdir -p slim-patches > /dev/null 2>&1 echo x - slim-patches/slim-reboot.patch sed 's/^X//' >slim-patches/slim-reboot.patch << 'fc997b24be9dc635e56f5ceb17190bd3' X--- app.cpp.orig 2010-10-09 10:15:14.471995323 +0300 X+++ app.cpp 2010-10-09 10:14:00.170256484 +0300 X@@ -422,6 +422,8 @@ X switch(LoginPanel->getAction()){ X case Panel::Exit: X case Panel::Console: X+ case Panel::Reboot: X+ case Panel::Halt: X return true; // <--- This is simply fake! X default: X break; fc997b24be9dc635e56f5ceb17190bd3 echo c - slim-patches/pam.d mkdir -p slim-patches/pam.d > /dev/null 2>&1 echo x - slim-patches/pam.d/slim sed 's/^X//' >slim-patches/pam.d/slim << '7e4359c329d1f82a5aeb6ce84287e894' X Xauth include system Xaccount include system Xsession include system Xpassword include system 7e4359c329d1f82a5aeb6ce84287e894 echo x - slim-patches/slim.sh-patch sed 's/^X//' >slim-patches/slim.sh-patch << 'b04fcd7b3435330128e2dbd3e403f6de' X--- slim.sh.in.orig 2010-03-27 02:15:23.000000000 +0200 X+++ slim.sh.in 2010-11-09 12:23:51.000000000 +0200 X@@ -1,7 +1,7 @@ X #!/bin/sh X X # PROVIDE: slim X-# REQUIRE: LOGIN X+# REQUIRE: LOGIN hald dbus X X # X # Add the following lines to /etc/rc.conf to enable slim: b04fcd7b3435330128e2dbd3e403f6de exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011141401.oAEE1mtY074099>