Compare commits
8
Commits
a159a6edb5
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
15746e45cc
|
||
|
|
9a2aee599d
|
||
|
|
5a37aaa78a
|
||
|
|
b273e3fb3d
|
||
|
|
9403384a49
|
||
|
|
29837f4c0a
|
||
|
|
6ec59e7ade
|
||
|
|
bb50c94012
|
+2
-2
@@ -4,9 +4,9 @@
|
||||
REPO="elogind/elogind"
|
||||
|
||||
# Get tag name using Github Rest API
|
||||
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases | jq -r '.[].tag_name' | sort -V | tail -n1)
|
||||
|
||||
# Trim 'v' character in TAG_NAME variable
|
||||
VERSION=$(echo "$TAG_NAME" | tr -d 'V')
|
||||
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||
|
||||
echo "$VERSION"
|
||||
|
||||
+8
-4
@@ -1,15 +1,18 @@
|
||||
name: elogind
|
||||
description: The systemd project's 'logind', extracted to a standalone package
|
||||
version: "255.22"
|
||||
revision: 2
|
||||
version: "257.16"
|
||||
revision: 3
|
||||
url: https://github.com/elogind/elogind
|
||||
license: GPL2-only,LGPL2.1-only
|
||||
maintainers:
|
||||
- [email protected]
|
||||
architecture: any
|
||||
type: source
|
||||
optional_depends:
|
||||
- polkit
|
||||
make_depends:
|
||||
- acl
|
||||
- audit
|
||||
- dbus
|
||||
- docbook-xsl-nons
|
||||
- gperf
|
||||
@@ -21,10 +24,10 @@ make_depends:
|
||||
- udev
|
||||
- util-linux
|
||||
downloads:
|
||||
- url: https://github.com/elogind/elogind/archive/refs/tags/V${BPM_PKG_VERSION}.tar.gz
|
||||
- url: https://github.com/elogind/elogind/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: 79b5eb96bccf3a6101b35e62d0f80b2d0a47077a1507a6edc705f8cb7bdb0619
|
||||
checksum: 3c8146409bfb9daa77f272212c2b0bf0ae727c782ec87ece0d2d25e0e5bf5f4c
|
||||
split_packages:
|
||||
- name: elogind
|
||||
keep:
|
||||
@@ -34,6 +37,7 @@ split_packages:
|
||||
- etc/elogind/sleep.conf.d/10-elogind.conf
|
||||
depends:
|
||||
- acl
|
||||
- audit
|
||||
- dbus
|
||||
- libelogind
|
||||
- pam
|
||||
@@ -1,4 +1,4 @@
|
||||
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||
# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||
# 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
|
||||
|
||||
@@ -9,11 +9,11 @@ build() {
|
||||
--libdir=/usr/lib \
|
||||
--buildtype=release \
|
||||
-Dman=auto \
|
||||
-Daudit=disabled \
|
||||
-Daudit=enabled \
|
||||
-Ddocdir=/usr/share/doc/elogind \
|
||||
-Dcgroup-controller=elogind \
|
||||
-Ddev-kvm-mode=0660 \
|
||||
-Ddbuspolicydir=/etc/dbus-1/system.d build
|
||||
-Ddbuspolicydir=/usr/share/dbus-1/system.d build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ package_elogind() {
|
||||
|
||||
# Move client library files into split package
|
||||
_pick libelogind usr/lib/libelogind*.so*
|
||||
_pick libelogind usr/lib/libnss_elogind*.so*
|
||||
_pick libelogind usr/lib/pkgconfig
|
||||
_pick libelogind usr/include
|
||||
_pick libelogind usr/share/man/man3
|
||||
@@ -50,6 +51,10 @@ package_elogind() {
|
||||
# Install pam module
|
||||
install -Dm644 "$BPM_WORKDIR"/elogind-user "$BPM_OUTPUT"/etc/pam.d/elogind-user
|
||||
|
||||
# Install missing dbus service
|
||||
sed 's|{{LIBEXECDIR}}|/usr/libexec|g' "$BPM_SOURCE"/src/login/org.freedesktop.login1.service.in | \
|
||||
install -Dm644 /dev/stdin "$BPM_OUTPUT"/usr/share/dbus-1/system-services/org.freedesktop.login1.service
|
||||
|
||||
# Install esvm service
|
||||
install -Dm644 "$BPM_WORKDIR"/elogind.esv "$BPM_OUTPUT"/etc/esvm/services/elogind.esv
|
||||
|
||||
Reference in New Issue
Block a user