Files
pmaports-rtwo/main/bootmac/APKBUILD
T
Clayton Craft d067e117d8 main/bootmac: upgrade to 0.6, support systemd (MR 6050)
This new version includes initial support for systemd (for bluetooth
only atm). udev rules are only installed for openrc systems, bt config
on systemd was replaced by a unit file and using bootmac for wifi has
issues (https://gitlab.postmarketos.org/postmarketOS/bootmac/-/issues/7)

[ci:skip-build]: already built successfully in CI
2025-01-24 08:11:34 -08:00

40 lines
1.2 KiB
Bash

# Maintainer: Dylan Van Assche <me@dylanvanassche.be>
pkgname=bootmac
pkgver=0.6.0
pkgrel=0
pkgdesc="Configure MAC addresses at boot"
url="https://gitlab.postmarketos.org/postmarketOS/bootmac"
arch="all"
license="GPLv3-or-later"
source="https://gitlab.postmarketos.org/postmarketOS/bootmac/-/archive/v$pkgver/bootmac-v$pkgver.tar.gz"
depends="bluez-btmgmt bluez-deprecated"
options="!check"
subpackages="$pkgname-openrc $pkgname-systemd"
builddir="$srcdir/$pkgname-v$pkgver"
package() {
install -Dm644 "$builddir"/bootmac-wifi.rules \
"$pkgdir"/usr/lib/udev/rules.d/90-bootmac-wifi.rules
install -Dm644 "$builddir"/bootmac-bluetooth.rules \
"$pkgdir"/usr/lib/udev/rules.d/90-bootmac-bluetooth.rules
install -Dm755 "$builddir"/bootmac \
"$pkgdir"/usr/bin/bootmac
install -Dm644 "$builddir"/bootmac-bluetooth.service \
-t "$pkgdir"/usr/lib/systemd/system/
}
openrc() {
default_openrc
amove usr/lib/udev/rules.d/90-bootmac-bluetooth.rules
amove usr/lib/udev/rules.d/90-bootmac-wifi.rules
}
systemd() {
install="$subpkgname.post-install $subpkgname.pre-deinstall"
default_systemd
}
sha512sums="
164f35b2e008aa0f7b7ad42338e46d8fdac1ec2d4403123b390706437603b1d2060659130a477823734fbda56fa45e9987fb9a2c08cf1e87adebea979e634bbb bootmac-v0.6.0.tar.gz
"