Difference between revisions of "ConsoleKit"

From CBLFS
Jump to navigationJump to search
(Multilib)
Line 19: Line 19:
  
 
  ./configure --prefix=/usr --sysconfdir=/etc \
 
  ./configure --prefix=/usr --sysconfdir=/etc \
     --localstatedir=/var &&
+
     --localstatedir=/var --libexecdir=/usr/lib/ConsoleKit &&
 
  make
 
  make
  
Line 30: Line 30:
 
=== 32Bit ===
 
=== 32Bit ===
  
Compile the package:
+
  Todo
 
 
  CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
 
./configure --prefix=/usr --sysconfdir=/etc \
 
    --localstatedir=/var &&
 
make
 
 
 
Install the package
 
 
 
make install
 
  
 
=== N32 ===
 
=== N32 ===
  
Compile the package:
+
  Todo
 
 
  CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
 
./configure --prefix=/usr --sysconfdir=/etc \
 
    --localstatedir=/var &&
 
make
 
 
 
Install the package
 
 
 
make pamlibdir=/lib32/security install
 
  
 
=== 64Bit ===
 
=== 64Bit ===
  
Compile the package:
+
  Todo
 
 
  CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
 
./configure --prefix=/usr --sysconfdir=/etc \
 
    --localstatedir=/var &&
 
make
 
 
 
Install the package
 
 
 
make pamlibdir=/lib64/security install
 
  
 
== Configuration ==
 
== Configuration ==
Line 133: Line 106:
 
|-valign="top"
 
|-valign="top"
 
! Installed Programs:
 
! Installed Programs:
| console-kit-daemon
+
| ck-list-sessions console-kit-daemon
 
|-valign="top"
 
|-valign="top"
 
! Installed Libraries:
 
! Installed Libraries:
| None
+
| libck-connector.{so,a,la}
 
|-valign="top"
 
|-valign="top"
 
! Installed Directories:
 
! Installed Directories:
| None
+
| /usr/lib/ConsoleKit
|}
 
 
 
=== Short Descriptions ===
 
 
 
{| style="text-align: left;"
 
|-valign="top"
 
! console-kit-daemon
 
| ???
 
 
|}
 
|}

Revision as of 18:09, 1 April 2007

Download Source: http://people.freedesktop.org/~mccann/dist/ConsoleKit-0.4.1.tar.gz

Introduction to ConsoleKit

ConsoleKit is a system-wide service that tracks seats and sessions.

Dependencies

Required

Non-Multilib

Compile the package:

./configure --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var --libexecdir=/usr/lib/ConsoleKit &&
make

Install the package

make install

Multilib

32Bit

Todo

N32

Todo

64Bit

Todo

Configuration

Bootscript

Overwrite the bootscript that was installed with ConsoleKit with the following command:

cat > /etc/rc.d/init.d/ConsoleKit << "EOF"
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/ConsoleKit
#
# Description :
#
# Authors     : Joe Ciccone <jciccone@linuxfromscratch.org>
#
# Version     : 00.01
#
# Notes       :
#
########################################################################

. /etc/sysconfig/rc
. ${rc_functions}

case "${1}" in
        start)
                boot_mesg "Starting ConsoleKit..."
                loadproc /usr/sbin/console-kit-daemon
                ;;

        stop)
                boot_mesg "Stopping ConsoleKit..."
                killproc /usr/sbin/console-kit-daemon
                ;;

        restart)
                ${0} stop
                sleep 1
                ${0} start
                ;;

        status)
                statusproc /usr/sbin/console-kit-daemon
                ;;

        *)
                echo "Usage: ${0} {start|stop|restart|status}"
                exit 1
                ;;
esac

# End $rc_base/init.d/ConsoleKit
EOF
chmod -v 754 /etc/rc.d/init.d/ConsoleKit

Link it into the run-levels:

for link in /etc/rc.d/rc{{0,1,6}.d/K27,{2,3,4,5}.d/S23}ConsoleKit; do
  ln -sfv ../init.d/ConsoleKit $link;
done

Contents

Installed Programs: ck-list-sessions console-kit-daemon
Installed Libraries: libck-connector.{so,a,la}
Installed Directories: /usr/lib/ConsoleKit