Switch to new download format, remove dependencies field from esvm service and enable documentation
This commit is contained in:
@@ -1,9 +1,28 @@
|
|||||||
name: polkit
|
name: polkit
|
||||||
description: Toolkit for defining and handling authorizations
|
description: Toolkit for defining and handling authorizations
|
||||||
version: 126
|
version: "126"
|
||||||
|
revision: 2
|
||||||
url: https://github.com/polkit-org/polkit
|
url: https://github.com/polkit-org/polkit
|
||||||
license: LGPL2-or-later
|
license: LGPL2-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["docbook-xsl-nons","duktape","elogind","expat","glib","glibc","pam","sysusers"]
|
|
||||||
make_depends: ["dbus","gobject-introspection","meson","python-setuptools"]
|
|
||||||
type: source
|
type: source
|
||||||
|
depends:
|
||||||
|
- docbook-xsl-nons
|
||||||
|
- duktape
|
||||||
|
- elogind
|
||||||
|
- expat
|
||||||
|
- glib
|
||||||
|
- glibc
|
||||||
|
- pam
|
||||||
|
- sysusers
|
||||||
|
make_depends:
|
||||||
|
- dbus
|
||||||
|
- gobject-introspection
|
||||||
|
- gtk-doc
|
||||||
|
- meson
|
||||||
|
- python-setuptools
|
||||||
|
downloads:
|
||||||
|
- url: https://github.com/polkit-org/polkit/archive/${BPM_PKG_VERSION}/polkit-${BPM_PKG_VERSION}.tar.gz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: 2814a7281989f6baa9e57bd33bbc5e148827e2721ccef22aaf28ab2b376068e8
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
From 55ee1b70456eca8281dda9612c485c619122f202 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Rybar <[email protected]>
|
||||||
|
Date: Tue, 14 Jan 2025 13:47:54 +0100
|
||||||
|
Subject: [PATCH] meson: fix unused dependency, fixes elogind FTBFS
|
||||||
|
|
||||||
|
polkit-126 could not be built from source with elogind session service due
|
||||||
|
to wrong dependencies in meson.build.
|
||||||
|
|
||||||
|
Author: @markhindley
|
||||||
|
---
|
||||||
|
src/polkitbackend/meson.build | 3 +--
|
||||||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/polkitbackend/meson.build b/src/polkitbackend/meson.build
|
||||||
|
index fc35e195..a807b41b 100644
|
||||||
|
--- a/src/polkitbackend/meson.build
|
||||||
|
+++ b/src/polkitbackend/meson.build
|
||||||
|
@@ -37,7 +37,6 @@ deps += thread_dep
|
||||||
|
|
||||||
|
if enable_logind
|
||||||
|
sources += files('polkitbackendsessionmonitor-systemd.c')
|
||||||
|
-
|
||||||
|
deps += logind_dep
|
||||||
|
else
|
||||||
|
sources += files('polkitbackendsessionmonitor.c')
|
||||||
|
@@ -73,7 +72,7 @@ executable(
|
||||||
|
program,
|
||||||
|
program + '.c',
|
||||||
|
include_directories: top_inc,
|
||||||
|
- dependencies: libpolkit_gobject_dep,
|
||||||
|
+ dependencies: deps,
|
||||||
|
c_args: c_flags,
|
||||||
|
link_with: libpolkit_backend,
|
||||||
|
install: true,
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
name: polkit
|
name: polkit
|
||||||
description: Start polkit daemon
|
description: Start polkit daemon
|
||||||
dependencies: ["dbus"]
|
|
||||||
type: background
|
type: background
|
||||||
start_cmd: /usr/lib/polkit-1/polkitd
|
start_cmd: /usr/lib/polkit-1/polkitd
|
||||||
exit_method: kill
|
exit_method: kill
|
||||||
|
|||||||
@@ -2,49 +2,38 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://github.com/polkit-org/polkit/archive/${BPM_PKG_VERSION}/polkit-${BPM_PKG_VERSION}.tar.gz"
|
|
||||||
# Removes systemd dependency when using elogind
|
|
||||||
DOWNLOAD_PATCH="https://github.com/polkit-org/polkit/commit/55ee1b70456eca8281dda9612c485c619122f202.patch"
|
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
|
||||||
FILENAME_PATCH="${DOWNLOAD_PATCH##*/}"
|
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# The prepare function is executed in the root of the temp directory
|
||||||
# This function is used for downloading files and putting them into the correct location
|
# This function is used for downloading files and putting them into the correct location
|
||||||
prepare() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
|
||||||
wget "$DOWNLOAD_PATCH"
|
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
|
||||||
|
|
||||||
cd "$BPM_SOURCE"
|
cd "$BPM_SOURCE"
|
||||||
git apply ../${FILENAME_PATCH}
|
patch -Np1 -i "$BPM_WORKDIR"/elogind-support.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
|
|
||||||
meson setup --prefix=/usr \
|
meson setup --prefix=/usr \
|
||||||
--libdir=/usr/lib \
|
--libdir=/usr/lib \
|
||||||
--buildtype=release \
|
--buildtype=release \
|
||||||
-Dman=true \
|
-Dman=true \
|
||||||
|
-Dgtk_doc=true \
|
||||||
-Dos_type=lfs \
|
-Dos_type=lfs \
|
||||||
-Dpolkitd_uid=9 \
|
-Dpolkitd_uid=9 \
|
||||||
-Dpolkitd_user=polkitd \
|
-Dpolkitd_user=polkitd \
|
||||||
-Dsession_tracking=elogind \
|
-Dsession_tracking=elogind \
|
||||||
-Dsystemdsystemunitdir=/tmp \
|
-Dsystemdsystemunitdir=/tmp \
|
||||||
-Dtests=false ..
|
-Dtests=false build
|
||||||
ninja
|
meson compile -C build
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
|
|
||||||
DESTDIR="$BPM_OUTPUT" ninja install
|
|
||||||
|
|
||||||
|
# Install esvm service
|
||||||
install -Dm644 "$BPM_WORKDIR"/polkitd.esv "$BPM_OUTPUT"/etc/esvm/services/polkitd.esv
|
install -Dm644 "$BPM_WORKDIR"/polkitd.esv "$BPM_OUTPUT"/etc/esvm/services/polkitd.esv
|
||||||
install -Dm644 ../COPYING "$BPM_OUTPUT"/usr/share/licenses/polkit/COPYING
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/polkit/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user