consolekit: adopted port

This commit is contained in:
Tim Biermann 2021-01-28 23:50:42 +00:00
parent 78658aec03
commit 01d589a9f3
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 26 additions and 27 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/RDFTdXctan1EaiPQvUBZcMY7sgoJOXaQZ1oW4XQEFUfLVCXAD4rDeBXuSkjnm2eC71ZtdzH8c/ms4lc98s8WAA=
SHA256 (Pkgfile) = 563169759c5bb18e7d5a12efcd40fadbf2e912b0cbd45f03521cd1f10b63cdaa
RWSE3ohX2g5d/e0mt5csJNbI88aqQ+NYApz3f6AS9SG0Z4xiPSPFVDpsuaQpKJd1SvjS6XMIff3Xtwfom0J90Z3MMaIBwL46HAo=
SHA256 (Pkgfile) = 20426846a55326ab0bed29474c3503c26d90ace35f7a54c9d58782cfda02b53a
SHA256 (.footprint) = 4f82ae4068647763cb9f461dd4ee201db0589fe0e2c7019e773cfdcc9719e4f4
SHA256 (ConsoleKit2-1.2.2.tar.gz) = 104fd9f41c2d572ad62f4032de46c4c384c3522602b0ad953cf55759c6c64c1d
SHA256 (system-session) = 599613516a16ac997a4121b4f20dd3a9c8480403614848f1aa97a0a0f1c6a236

View File

@ -1,39 +1,38 @@
# Description: Framework for defining and tracking users, login sessions, and seats
# URL: http://www.freedesktop.org/wiki/Software/ConsoleKit
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: dbus gobject-introspection linux-pam util-linux xorg-libx11
# Optional: polkit
# URL: http://www.freedesktop.org/wiki/Software/ConsoleKit
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: dbus gobject-introspection linux-pam util-linux xorg-libx11
# Optional: polkit
name=consolekit
version=1.2.2
release=1
source=(https://github.com/ConsoleKit2/ConsoleKit2/archive/$version/ConsoleKit2-$version.tar.gz
system-session pam-foreground-compat.ck
warning-to-debug.patch)
system-session pam-foreground-compat.ck warning-to-debug.patch)
build() {
cd ConsoleKit2-$version
cd ConsoleKit2-$version
patch -p1 -i $SRC/warning-to-debug.patch
patch -p1 -i $SRC/warning-to-debug.patch
NOCONFIGURE=1 ./autogen.sh
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/ConsoleKit \
--with-xinitrc-dir=/etc/X11/xinit/xinitrc.d \
--enable-udev-acl \
--enable-pam-module \
--disable-nls
NOCONFIGURE=1 ./autogen.sh
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/ConsoleKit \
--with-xinitrc-dir=/etc/X11/xinit/xinitrc.d \
--enable-udev-acl \
--enable-pam-module \
--disable-nls
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
# 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}
# 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}
rm -r $PKG/etc/logrotate.d
rm -r $PKG/etc/logrotate.d
}