mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 21:04:46 +02:00
This drops the /etc/conf.d/* config from the openrc subpkg. Upstream states that the dir specified here is only for testing and that distros/admins should install config for device-specific paths. By having this default config in /etc/conf.d, it's more difficult for downstream (pmOS) to do this, we have to use `replaces=` everywhere we need to change this conf for the many different devices that need it. This also adds support for loading the fw path from /usr/share/hexagonrpc. pmOS can use this to install device-specific config into (and this will make it nicer to re-use this config on non-openrc init systems). The openrc init scripts for hexagonrpcd will use the path in /etc/conf.d if a sys admin/user installed it, then it'll try to load the path from /usr/share, and finally use the default value for that fw path if it fails to find any in those config files. Functionally there should be no impact over what path is used today. This change is done primarily to support downstream packaging of config for this service.
52 lines
2 KiB
Text
52 lines
2 KiB
Text
# Maintainer: Dylan Van Assche <me@dylanvanassche.be>
|
|
pkgname=hexagonrpcd
|
|
pkgver=0.3.2
|
|
pkgrel=3
|
|
pkgdesc="Qualcomm HexagonFS daemon"
|
|
url="https://github.com/linux-msm/hexagonrpc"
|
|
# s390x: fails on 1 test. Hexagonrpcd is specific to Qualcomm ARM SoCs, so let's ignore it for now.
|
|
arch="all !s390x"
|
|
license="GPL-3.0-or-later"
|
|
makedepends="linux-headers meson"
|
|
install="$pkgname.pre-install"
|
|
subpackages="$pkgname-openrc"
|
|
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/linux-msm/hexagonrpc/archive/refs/tags/v$pkgver.tar.gz
|
|
10-fastrpc.rules
|
|
$pkgname-adsp-rootpd.initd
|
|
$pkgname-adsp-sensorspd.initd
|
|
$pkgname-sdsp.initd
|
|
"
|
|
builddir="$srcdir/hexagonrpc-$pkgver"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Dhexagonrpcd_verbose=false \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
|
|
# Allow access for FastRPC node for FastRPC user/group
|
|
install -Dm644 "$srcdir"/10-fastrpc.rules -t "$pkgdir"/usr/lib/udev/rules.d/
|
|
|
|
install -Dm755 "$srcdir"/$pkgname-adsp-rootpd.initd "$pkgdir"/etc/init.d/$pkgname-adsp-rootpd
|
|
install -Dm755 "$srcdir"/$pkgname-adsp-sensorspd.initd "$pkgdir"/etc/init.d/$pkgname-adsp-sensorspd
|
|
install -Dm755 "$srcdir"/$pkgname-sdsp.initd "$pkgdir"/etc/init.d/$pkgname-sdsp
|
|
}
|
|
|
|
|
|
sha512sums="
|
|
ae97a78fad238ab3bc452a5282cc2a78e6fb385934f0c595ae4b746699cc38cee1c24a612860f21fbaa2edaaca4b41dd0993b255d86df79f1d9871411c489c84 hexagonrpcd-0.3.2.tar.gz
|
|
f931cf5f901a7c17ffb0eb194b5de2c532fd238692898bf264c484b13b93119c9727bd8f8daf6a7d1668cc9108a9a0662231d300c6f1376e3e4edd3ce41d235d 10-fastrpc.rules
|
|
758bc0d1b1f8c843247ba11bc1aa797914894bc78b97f440cabd08f16ce138b2251c0475e80d7b43841c6ef8528549c6fc8ab0fd67a9e9d8988bef692ddf6fb7 hexagonrpcd-adsp-rootpd.initd
|
|
3514e3d06d4e318bab623d49d3122b2c3ccb83b62958d53fad04d0f906ae7af143eebb2e3f82dc914f5f4a5256a79b60b7d2f8dda3d628729bbb760cb8f7dd88 hexagonrpcd-adsp-sensorspd.initd
|
|
c78e4c02904d359433b2d1c5c6daa9379fcf6afb1cb78bc04451b483e8e2060a2d29b186edb4346b6d61780faba8aa0e94247ece5f31d410ec76434ee5fa006d hexagonrpcd-sdsp.initd
|
|
"
|