From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Nov 14 14:10:06 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABE5A106566C for ; Sun, 14 Nov 2010 14:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 64BB08FC15 for ; Sun, 14 Nov 2010 14:10:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAEEA6a7045559 for ; Sun, 14 Nov 2010 14:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAEEA61s045558; Sun, 14 Nov 2010 14:10:06 GMT (envelope-from gnats) Resent-Date: Sun, 14 Nov 2010 14:10:06 GMT Resent-Message-Id: <201011141410.oAEEA61s045558@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gleb Kurtsou Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C48A106564A for ; Sun, 14 Nov 2010 14:01:48 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 4E9328FC0C for ; Sun, 14 Nov 2010 14:01:48 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id oAEE1mdV074100 for ; Sun, 14 Nov 2010 14:01:48 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id oAEE1mtY074099; Sun, 14 Nov 2010 14:01:48 GMT (envelope-from nobody) Message-Id: <201011141401.oAEE1mtY074099@www.freebsd.org> Date: Sun, 14 Nov 2010 14:01:48 GMT From: Gleb Kurtsou To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/152236: [patch] Enable pam support, add hald and dbus as start dependecies, fix reboot/halt with pam X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2010 14:10:06 -0000 >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: