wok view consolekit2/receipt @ rev 25678
Patch ghostscript CVE-2023-36664
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 08 14:12:03 2024 +0100 (5 months ago) |
parents | 7f9e55fc8432 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="consolekit2"
4 VERSION="1.2.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="ConsoleKit framework."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/Consolekit2/ConsoleKit2"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/consolekit.html"
11 REPOLOGY="consolekit"
13 SOURCE="ConsoleKit2"
14 TARBALL="$SOURCE-$VERSION.tar.gz"
15 WGET_URL="https://github.com/$SOURCE/$SOURCE/archive/refs/tags/$VERSION.tar.gz"
17 SUGGESTED="consolekit2-lang"
18 DEPENDS="acl dbus eudev-lib glib polkit xorg-libX11 zlib"
19 BUILD_DEPENDS="acl-dev dbus-dev docbook-xsl eudev-dev gettext-base
20 glib-dev libtool libxml2-tools libxslt polkit-dev
21 util-linux-getopt util-linux-uuid-dev xmlto xorg-libX11-dev"
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
27 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
28 }
30 compile_rules()
31 {
32 ./autogen.sh \
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 --enable-udev-acl \
36 --enable-polkit \
37 --with-xinitrc-dir=/etc/X11/app-defaults/xinitrc.d \
38 --with-systemdsystemunitdir=no \
39 --enable-docbook-docs \
40 $CONFIGURE_ARGS &&
41 make &&
42 make install || return 1
44 mv -v $install/etc/X11/app-defaults/xinitrc.d/90-consolekit \
45 $install/etc/X11/app-defaults/xinitrc.d/90-consolekit.sh
46 }
48 genpkg_rules()
49 {
50 mkdir -p $fs/etc/X11/app-defaults
51 mkdir -p $fs/lib
52 mkdir -p $fs/usr/lib
53 mkdir -p $fs/usr/share
54 mkdir -p $fs/var/log/ConsoleKit
55 mkdir -p $fs/var/run/ConsoleKit
57 cp -a $install/etc/X11/app-defaults/xinitrc.d \
58 $fs/etc/X11/app-defaults
59 cp -a $install/etc $fs
60 cp -a $install/usr/bin $fs/usr
61 cp -a $install/lib/udev $fs/lib
62 cp -a $install/usr/lib/ConsoleKit $fs/usr/lib
63 cp -a $install/usr/lib/*.so* $fs/usr/lib
64 cp -a $install/usr/libexec $fs/usr
65 cp -a $install/usr/sbin $fs/usr
66 cp -a $install/usr/share/dbus-1 $fs/usr/share
67 cp -a $install/usr/share/polkit-1 $fs/usr/share
69 # modify symbolic links
70 rm $fs/lib/udev/udev-acl
71 ln -s ../../usr/libexec/udev-acl $fs/lib/udev/udev-acl
72 rm $fs/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
73 ln -s ../../../libexec/udev-acl $fs/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
74 }