2019-05-10 13:00:07 +02:00
|
|
|
# Description: Framework for defining and tracking users, login sessions, and seats
|
2021-01-28 23:50:42 +00:00
|
|
|
# URL: http://www.freedesktop.org/wiki/Software/ConsoleKit
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-08-10 07:01:12 +02:00
|
|
|
# Depends on: dbus gobject-introspection linux-pam xorg-libx11
|
2021-01-28 23:50:42 +00:00
|
|
|
# Optional: polkit
|
2013-09-28 08:25:04 +09:00
|
|
|
|
|
|
|
name=consolekit
|
2023-08-10 07:01:12 +02:00
|
|
|
version=1.2.6
|
2023-04-03 21:46:27 +02:00
|
|
|
release=1
|
2020-12-28 13:16:59 +01:00
|
|
|
source=(https://github.com/ConsoleKit2/ConsoleKit2/archive/$version/ConsoleKit2-$version.tar.gz
|
2021-07-04 16:49:04 +00:00
|
|
|
system-session pam-foreground-compat.ck)
|
2013-09-28 08:25:04 +09:00
|
|
|
|
|
|
|
build() {
|
2023-04-03 21:46:27 +02:00
|
|
|
cd ConsoleKit2-$version
|
2019-05-10 13:00:07 +02:00
|
|
|
|
2023-04-03 21:46:27 +02:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--libexecdir=/usr/lib/ConsoleKit \
|
|
|
|
--with-xinitrc-dir=/etc/X11/xinit/xinitrc.d \
|
|
|
|
--with-rundir=/run \
|
|
|
|
--enable-udev-acl \
|
|
|
|
--enable-pam-module \
|
|
|
|
--disable-nls
|
2019-05-10 13:00:07 +02:00
|
|
|
|
2023-04-03 21:46:27 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2013-09-28 08:25:04 +09:00
|
|
|
|
2023-04-03 21:46:27 +02:00
|
|
|
# http://www.linuxfromscratch.org/blfs/view/stable/postlfs/consolekit.html
|
|
|
|
install -D -m 0644 $SRC/system-session $PKG/etc/pam.d/system-session
|
|
|
|
install -m 0755 $SRC/pam-foreground-compat.ck $PKG/etc/ConsoleKit/run-session.d/
|
|
|
|
mv $PKG/etc/X11/xinit/xinitrc.d/90-consolekit{,.sh}
|
2019-05-10 13:00:07 +02:00
|
|
|
|
2023-04-03 21:46:27 +02:00
|
|
|
rm -r $PKG/etc/logrotate.d $PKG/run
|
2013-09-28 08:25:04 +09:00
|
|
|
}
|