wok-6.x view consolekit2/receipt @ rev 24429
updated collectd (5.10.0 -> 5.12.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 12 15:50:46 2022 +0100 (2022-02-12) |
parents | 5ea0ce1cecc0 |
children | 5f0a41dd58c1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="consolekit2"
4 VERSION="1.2.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="ConsoleKit framework."
7 MAINTAINER="developer@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.bz2"
15 WGET_URL="https://github.com/$SOURCE/$SOURCE/releases/download/$VERSION/$TARBALL"
16 TARBALL_SHA1="28869807eed0cc4a7a1d98030be1f2c7e5700d0e"
19 DEPENDS="acl dbus eudev-lib glib polkit xorg-libX11 zlib"
20 BUILD_DEPENDS="acl-dev dbus-dev docbook-xsl eudev-dev gettext-base \
21 glib-dev libtool libxml2-tools libxslt polkit-dev \
22 util-linux-getopt util-linux-uuid-dev xmlto xorg-libX11-dev"
24 current_version()
25 {
26 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
27 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
28 }
30 compile_rules()
31 {
32 ./configure \
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 \
72 $fs/lib/udev/udev-acl
73 rm $fs/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
74 ln -s ../../../libexec/udev-acl \
75 $fs/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
76 }