main: bootmac: new pmaport (MR 3360)

Bootmac configures the MAC addresses of WLAN and Bluetooth interfaces at boot.
Bootmac can be invoked in various ways at boot, but currently only udev rules are tested.
Bootmac generates MAC addresses from the `serialno` provided by Android bootloaders
through /proc/cmdline or from /etc/machine-id. The Organizationally Unique Identifier (OUI)
is retrieved from a lookup database macdb by matching deviceinfo_manufacturer
from /etc/deviceinfo with the entries in the database.

See https://gitlab.com/postmarketOS/bootmac
This commit is contained in:
Dylan Van Assche 2022-08-15 20:39:10 +02:00 committed by Oliver Smith
parent ce053e7179
commit 2bb6c15cbd
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

22
main/bootmac/APKBUILD Normal file
View file

@ -0,0 +1,22 @@
# Maintainer: Dylan Van Assche <me@dylanvanassche.be>
pkgname=bootmac
pkgver=0.2.0
pkgrel=0
pkgdesc="Configure MAC addresses at boot"
url="https://gitlab.com/postmarketOS/bootmac"
arch="all"
license="GPLv3-or-later"
source="https://gitlab.com/postmarketOS/bootmac/-/archive/v$pkgver/bootmac-v$pkgver.tar.gz"
options="!check"
builddir="$srcdir/$pkgname-v$pkgver"
package() {
install -Dm644 "$builddir"/bootmac.rules \
"$pkgdir"/usr/lib/udev/rules.d/90-bootmac.rules
install -Dm755 "$builddir"/bootmac \
"$pkgdir"/usr/bin/bootmac
}
sha512sums="
13147ceace03ec2739acc837b3b1426b099fe738e82d6d050535ebd51c70c3ced6770946c2e1d50af15dc9261251a221ec269cdd8089fc6ee5cdae3276f94aae bootmac-v0.2.0.tar.gz
"