main/postmarketos-base-ui: split out openrc specifics into subpackages (MR 5364)
Also renames subpackage bluez to bluez-openrc
This commit is contained in:
parent
dc81fbcd23
commit
c3dfa1cdb4
7 changed files with 31 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
||||||
pkgname=postmarketos-base-ui
|
pkgname=postmarketos-base-ui
|
||||||
pkgver=25
|
pkgver=25
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Meta package for minimal postmarketOS UI base"
|
pkgdesc="Meta package for minimal postmarketOS UI base"
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
|
@ -25,7 +25,7 @@ subpackages="
|
||||||
$pkgname-audio-none:_audio_none
|
$pkgname-audio-none:_audio_none
|
||||||
$pkgname-audio-pipewire:_audio_pipewire
|
$pkgname-audio-pipewire:_audio_pipewire
|
||||||
$pkgname-audio-pulseaudio:_audio_pulseaudio
|
$pkgname-audio-pulseaudio:_audio_pulseaudio
|
||||||
$pkgname-bluez
|
$pkgname-bluez-openrc:_bluez_openrc
|
||||||
$pkgname-bluez-obexd:_obexd
|
$pkgname-bluez-obexd:_obexd
|
||||||
$pkgname-elogind
|
$pkgname-elogind
|
||||||
$pkgname-flatpak
|
$pkgname-flatpak
|
||||||
|
@ -37,6 +37,8 @@ subpackages="
|
||||||
$pkgname-tinydm
|
$pkgname-tinydm
|
||||||
$pkgname-wayland
|
$pkgname-wayland
|
||||||
$pkgname-wifi-iwd:iwd
|
$pkgname-wifi-iwd:iwd
|
||||||
|
$pkgname-wifi-iwd-openrc:iwd_openrc
|
||||||
|
$pkgname-wifi-wpa_supplicant-openrc:wpa_supplicant_openrc
|
||||||
$pkgname-wifi-wpa_supplicant:wpa_supplicant
|
$pkgname-wifi-wpa_supplicant:wpa_supplicant
|
||||||
$pkgname-x11
|
$pkgname-x11
|
||||||
postmarketos-default-camera:_default_camera
|
postmarketos-default-camera:_default_camera
|
||||||
|
@ -125,7 +127,7 @@ x11() {
|
||||||
amove etc/X11/Xwrapper.config
|
amove etc/X11/Xwrapper.config
|
||||||
}
|
}
|
||||||
|
|
||||||
bluez() {
|
_bluez_openrc() {
|
||||||
install_if="$pkgname=$pkgver-r$pkgrel bluez-openrc"
|
install_if="$pkgname=$pkgver-r$pkgrel bluez-openrc"
|
||||||
|
|
||||||
amove etc/conf.d/bluetooth
|
amove etc/conf.d/bluetooth
|
||||||
|
@ -210,27 +212,46 @@ qt_wayland() {
|
||||||
|
|
||||||
wpa_supplicant() {
|
wpa_supplicant() {
|
||||||
pkgdesc="Use wpa_supplicant as the WiFi backend."
|
pkgdesc="Use wpa_supplicant as the WiFi backend."
|
||||||
depends="wpa_supplicant"
|
|
||||||
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
|
||||||
replaces="wpa_supplicant-openrc"
|
|
||||||
provides="postmarketos-base-ui-wifi=$pkgver-r$pkgrel"
|
provides="postmarketos-base-ui-wifi=$pkgver-r$pkgrel"
|
||||||
provider_priority=100
|
provider_priority=100
|
||||||
|
|
||||||
|
depends="wpa_supplicant"
|
||||||
|
|
||||||
|
mkdir -p "$subpkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
wpa_supplicant_openrc() {
|
||||||
|
install_if="$pkgname-wpa_supplicant=$pkgver-r$pkgrel openrc"
|
||||||
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
||||||
|
|
||||||
|
depends="wpa_supplicant-openrc openrc"
|
||||||
|
replaces="wpa_supplicant-openrc"
|
||||||
|
replaces_priority=100
|
||||||
|
|
||||||
amove etc/conf.d/wpa_supplicant
|
amove etc/conf.d/wpa_supplicant
|
||||||
}
|
}
|
||||||
|
|
||||||
iwd() {
|
iwd() {
|
||||||
pkgdesc="Use iwd as the WiFi backend (but may not work with all devices)"
|
pkgdesc="Use iwd as the WiFi backend (but may not work with all devices)"
|
||||||
depends="iwd"
|
|
||||||
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
|
||||||
provides="postmarketos-base-ui-wifi=$pkgver-r$pkgrel"
|
provides="postmarketos-base-ui-wifi=$pkgver-r$pkgrel"
|
||||||
# Lower than wpa_supplicant for now, see:
|
# Lower than wpa_supplicant for now, see:
|
||||||
# https://gitlab.com/postmarketOS/pmaports/-/issues/1379
|
# https://gitlab.com/postmarketOS/pmaports/-/issues/1379
|
||||||
provider_priority=90
|
provider_priority=90
|
||||||
|
|
||||||
|
depends="iwd"
|
||||||
|
|
||||||
amove usr/lib/NetworkManager/conf.d/50-iwd.conf
|
amove usr/lib/NetworkManager/conf.d/50-iwd.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iwd_openrc() {
|
||||||
|
install_if="$pkgname-iwd=$pkgver-r$pkgrel openrc"
|
||||||
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
||||||
|
|
||||||
|
depends="iwd-openrc openrc"
|
||||||
|
|
||||||
|
mkdir -p "$subpkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
_audio_none() {
|
_audio_none() {
|
||||||
pkgdesc="Do not install any audio backend."
|
pkgdesc="Do not install any audio backend."
|
||||||
provides="postmarketos-base-ui-audio=$pkgver-r$pkgrel"
|
provides="postmarketos-base-ui-audio=$pkgver-r$pkgrel"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
postmarketos-base-ui-wifi-iwd-openrc.post-install
|
|
@ -1 +0,0 @@
|
||||||
postmarketos-base-ui-wifi-iwd.post-install
|
|
|
@ -0,0 +1 @@
|
||||||
|
postmarketos-base-ui-wifi-wpa_supplicant-openrc.post-install
|
|
@ -1 +0,0 @@
|
||||||
postmarketos-base-ui-wifi-wpa_supplicant.post-install
|
|
Loading…
Reference in a new issue