From 2bb6c15cbdfa1f54790030de8df4970a51422b98 Mon Sep 17 00:00:00 2001 From: Dylan Van Assche Date: Mon, 15 Aug 2022 20:39:10 +0200 Subject: [PATCH] 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 --- main/bootmac/APKBUILD | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 main/bootmac/APKBUILD diff --git a/main/bootmac/APKBUILD b/main/bootmac/APKBUILD new file mode 100644 index 000000000..ae6ba0dd1 --- /dev/null +++ b/main/bootmac/APKBUILD @@ -0,0 +1,22 @@ +# Maintainer: Dylan Van Assche +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 +"