Polkit: Difference between revisions
multilib fix for gobject-introspection |
changed gobject-introspection to optional dependency, changed build instructions to not require it |
||
| Line 17: | Line 17: | ||
* [[Linux-PAM]] | * [[Linux-PAM]] | ||
* [[xmlto]] | * [[xmlto]] | ||
=== Optional === | === Optional === | ||
| Line 23: | Line 22: | ||
* [[intltool]] | * [[intltool]] | ||
* [[SELinux]] | * [[SELinux]] | ||
* [[Gobject-introspection]] | |||
== PolKit User/Group == | == PolKit User/Group == | ||
| Line 31: | Line 31: | ||
== Non-Multilib == | == Non-Multilib == | ||
If building with support for [[Gobject-introspection]], remove the --disable-introspection option to configure. | |||
Compile the package: | Compile the package: | ||
| Line 36: | Line 38: | ||
./configure --prefix=/usr --sysconfdir=/etc \ | ./configure --prefix=/usr --sysconfdir=/etc \ | ||
--libexecdir=/usr/lib/polkit-1 --localstatedir=/var \ | --libexecdir=/usr/lib/polkit-1 --localstatedir=/var \ | ||
--with-polkit-user=polkit && | --with-polkit-user=polkit --disable-introspection && | ||
make | make | ||
| Line 46: | Line 48: | ||
=== 32Bit === | === 32Bit === | ||
If building with support for [[Gobject-introspection]], use the following commands to prepare for compilation, and remove the --disable-introspection option from configure in the next step: | |||
sed -i "/GIRDIR/s/gir-1.0/&-32/" configure.ac && | |||
autoconf | |||
Compile the package: | Compile the package: | ||
| Line 52: | Line 59: | ||
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" | export PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" | ||
export USE_ARCH=32 | export USE_ARCH=32 | ||
./configure --prefix=/usr --sysconfdir=/etc \ | ./configure --prefix=/usr --sysconfdir=/etc \ | ||
--libexecdir=/usr/lib/polkit-1 --localstatedir=/var \ | --libexecdir=/usr/lib/polkit-1 --localstatedir=/var \ | ||
--with-polkit-user=polkit && | --with-polkit-user=polkit --disable-introspection && | ||
make | make | ||
| Line 67: | Line 72: | ||
=== N32 === | === N32 === | ||
If building with support for [[Gobject-introspection]], use the following commands to prepare for compilation, and remove the --disable-introspection option from configure in the next step: | |||
sed -i "/GIRDIR/s/gir-1.0/&-n32/" configure.ac && | |||
autoconf | |||
Compile the package: | Compile the package: | ||
| Line 73: | Line 83: | ||
export PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" | export PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" | ||
export USE_ARCH=n32 | export USE_ARCH=n32 | ||
./configure --prefix=/usr --sysconfdir=/etc \ | ./configure --prefix=/usr --sysconfdir=/etc \ | ||
--libexecdir=/usr/lib32/polkit-1 --localstatedir=/var \ | --libexecdir=/usr/lib32/polkit-1 --localstatedir=/var \ | ||
--libdir=/usr/lib32 --with-pam-module-dir=/lib32/security \ | --libdir=/usr/lib32 --with-pam-module-dir=/lib32/security \ | ||
--with-polkit-user=polkit && | --with-polkit-user=polkit --disable-introspection && | ||
make | make | ||
| Line 89: | Line 97: | ||
=== 64Bit === | === 64Bit === | ||
If building with support for [[Gobject-introspection]], use the following commands to prepare for compilation, and remove the --disable-introspection option from configure in the next step: | |||
sed -i "/GIRDIR/s/gir-1.0/&-64/" configure.ac && | |||
autoconf | |||
Compile the package: | Compile the package: | ||
| Line 95: | Line 108: | ||
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" | export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" | ||
export USE_ARCH=64 | export USE_ARCH=64 | ||
./configure --prefix=/usr --sysconfdir=/etc \ | ./configure --prefix=/usr --sysconfdir=/etc \ | ||
--libexecdir=/usr/lib64/polkit-1 --localstatedir=/var \ | --libexecdir=/usr/lib64/polkit-1 --localstatedir=/var \ | ||
--libdir=/usr/lib64 --with-pam-module-dir=/lib64/security \ | --libdir=/usr/lib64 --with-pam-module-dir=/lib64/security \ | ||
--with-polkit-user=polkit && | --with-polkit-user=polkit --disable-introspection && | ||
make | make | ||
Latest revision as of 02:56, 10 January 2010
| Download Source: | http://hal.freedesktop.org/releases/polkit-0.94.tar.gz |
|---|
Introduction to Polkit
PolicyKit is a framework for defining policy for system-wide components and for desktop pieces to configure it. It is used by several packages including Gnome and ConsoleKit. Note that this is not compatible with current versions of HAL; see PolicyKit for the older version.
Project Homepage: Unknown
Dependencies
Required
Optional
PolKit User/Group
groupadd -g 26 polkit &&
useradd -c "Policy Kit Daemon User" -d /dev/null \
-u 26 -g polkit -s /bin/false polkit
Non-Multilib
If building with support for Gobject-introspection, remove the --disable-introspection option to configure.
Compile the package:
./configure --prefix=/usr --sysconfdir=/etc \
--libexecdir=/usr/lib/polkit-1 --localstatedir=/var \
--with-polkit-user=polkit --disable-introspection &&
make
Install the package
make install
Multilib
32Bit
If building with support for Gobject-introspection, use the following commands to prepare for compilation, and remove the --disable-introspection option from configure in the next step:
sed -i "/GIRDIR/s/gir-1.0/&-32/" configure.ac && autoconf
Compile the package:
export CC="gcc ${BUILD32}"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}"
export USE_ARCH=32
./configure --prefix=/usr --sysconfdir=/etc \
--libexecdir=/usr/lib/polkit-1 --localstatedir=/var \
--with-polkit-user=polkit --disable-introspection &&
make
Install the package
make install unset CC unset PKG_CONFIG_PATH unset USE_ARCH
N32
If building with support for Gobject-introspection, use the following commands to prepare for compilation, and remove the --disable-introspection option from configure in the next step:
sed -i "/GIRDIR/s/gir-1.0/&-n32/" configure.ac && autoconf
Compile the package:
export CC="gcc ${BUILDN32}"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}"
export USE_ARCH=n32
./configure --prefix=/usr --sysconfdir=/etc \
--libexecdir=/usr/lib32/polkit-1 --localstatedir=/var \
--libdir=/usr/lib32 --with-pam-module-dir=/lib32/security \
--with-polkit-user=polkit --disable-introspection &&
make
Install the package
make install unset CC unset PKG_CONFIG_PATH unset USE_ARCH
64Bit
If building with support for Gobject-introspection, use the following commands to prepare for compilation, and remove the --disable-introspection option from configure in the next step:
sed -i "/GIRDIR/s/gir-1.0/&-64/" configure.ac && autoconf
Compile the package:
export CC="gcc ${BUILD64}"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}"
export USE_ARCH=64
./configure --prefix=/usr --sysconfdir=/etc \
--libexecdir=/usr/lib64/polkit-1 --localstatedir=/var \
--libdir=/usr/lib64 --with-pam-module-dir=/lib64/security \
--with-polkit-user=polkit --disable-introspection &&
make
Install the package
make install unset CC unset PKG_CONFIG_PATH unset USE_ARCH
Configuration
TODO: Update for new config format
Contents
| Installed Programs: | pkexec pkcheck pkaction pk-example-frobnicate |
|---|---|
| Installed Libraries: | libpolkit-gobject-1.{a,la,so} libpolkit-backend-1.{a,la,so} libpolkit-agent-1.{a,la,so} libnullbackend.{a,la,so} |
| Installed Directories: | /usr/share/polkit-1 /usr/include/polkit-1 /var/lib/polkit-1 /usr/lib/polkit-1 /etc/polkit-1 |