2017-05-26 20:26:25 +00:00
|
|
|
pkgname=postmarketos-base
|
2017-09-20 18:32:19 +00:00
|
|
|
pkgver=3
|
main/postmarketos-base: fix wpa_supplicant config (!365)
Fix wifi on htc-ace by properly setting nl80211 before wext.
/etc/conf.d/wpa_supplicant is supposed to get modified twice with the
current code in the post-install file. The first one was patched
recently to set nl80211 before wext, but that change does not work in
practice, for two reasons:
1. The code block does not even get executed, because apk reports that
/etc/conf.d/wpa_supplicant was already modified (by a package that
was installed before, in its post-install script? I could not find
out which one does that though).
2. Even if it worked, the second code block would revert the change and
put wext before nl80211 again.
Fix this by removing the first code block, and changing the order in the
second one. Make it easier to catch such errors in the future, by
printing, which files get modified, or get skipped. Set "#!/bin/sh -e",
so the script can not fail silently.
When doing pmbootstrap -y zap and then pmbootstrap install, the output
looks like this:
(141/151) Installing postmarketos-base (3-r26)
Executing postmarketos-base-3-r26.post-install
- Modifying: /etc/fstab
- Modifying: /etc/issue
- Modifying: /etc/motd
- Modifying: /etc/conf.d/syslog
- Modifying: /etc/conf.d/wpa_supplicant
- Modifying: /etc/sudoers
- Modifying: /etc/chrony/chrony.conf
2019-05-14 19:00:15 +00:00
|
|
|
pkgrel=27
|
2017-09-29 16:10:09 +00:00
|
|
|
pkgdesc="Meta package for minimal postmarketOS base"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2017-05-26 20:26:25 +00:00
|
|
|
arch="noarch"
|
|
|
|
license="GPL3+"
|
2017-09-29 16:10:09 +00:00
|
|
|
depends="
|
|
|
|
alpine-base
|
2017-10-18 19:02:28 +00:00
|
|
|
dbus
|
2017-10-13 19:18:24 +00:00
|
|
|
chrony
|
2017-09-29 16:10:09 +00:00
|
|
|
cryptsetup
|
|
|
|
eudev
|
|
|
|
haveged
|
|
|
|
htop
|
|
|
|
iw
|
|
|
|
nano
|
|
|
|
openssh
|
|
|
|
postmarketos-mkinitfs
|
|
|
|
sudo
|
|
|
|
tmux
|
|
|
|
util-linux
|
2017-10-07 16:14:49 +00:00
|
|
|
wpa_supplicant
|
2018-03-04 11:07:21 +00:00
|
|
|
shadow
|
|
|
|
networkmanager"
|
2017-05-26 20:26:25 +00:00
|
|
|
makedepends=""
|
|
|
|
install="$pkgname.post-install"
|
2017-10-06 18:19:47 +00:00
|
|
|
subpackages="$pkgname-x11"
|
2017-09-20 18:32:19 +00:00
|
|
|
source="
|
|
|
|
firmwareload.sh
|
|
|
|
50-firmware.rules
|
2018-03-04 11:07:21 +00:00
|
|
|
networkmanager.conf
|
2017-09-20 18:32:19 +00:00
|
|
|
swapfile/swapfile
|
|
|
|
swapfile/swapfile.init
|
2018-12-24 20:45:58 +00:00
|
|
|
swapfile/swapfile.conf
|
|
|
|
devmappings.initd
|
2019-05-02 21:07:31 +00:00
|
|
|
deferred-initcalls.init
|
2018-12-24 20:45:58 +00:00
|
|
|
"
|
2017-05-26 20:26:25 +00:00
|
|
|
options="!check"
|
|
|
|
|
|
|
|
package() {
|
2017-08-20 12:49:55 +00:00
|
|
|
install -D -m644 "$srcdir"/50-firmware.rules \
|
|
|
|
"$pkgdir"/etc/udev/rules.d/50-firmware.rules
|
|
|
|
install -D -m755 "$srcdir"/firmwareload.sh \
|
|
|
|
"$pkgdir"/usr/lib/firmwareload.sh
|
|
|
|
|
2017-10-03 18:10:28 +00:00
|
|
|
install -d -m755 "$pkgdir"/etc/skel
|
|
|
|
|
2017-09-20 18:32:19 +00:00
|
|
|
# Install swapfile
|
|
|
|
install -Dm755 "$srcdir"/swapfile \
|
|
|
|
"$pkgdir"/sbin/swapfile
|
|
|
|
install -Dm644 "$srcdir"/swapfile.conf \
|
|
|
|
"$pkgdir"/etc/conf.d/swapfile
|
|
|
|
install -Dm755 "$srcdir"/swapfile.init \
|
|
|
|
"$pkgdir"/etc/init.d/swapfile
|
|
|
|
|
2018-03-04 11:07:21 +00:00
|
|
|
install -D -m644 "$srcdir"/networkmanager.conf \
|
2019-03-07 16:03:02 +00:00
|
|
|
"$pkgdir"/etc/NetworkManager/conf.d/00-postmarketos.conf
|
2018-03-04 11:07:21 +00:00
|
|
|
|
2018-12-24 20:45:58 +00:00
|
|
|
install -Dm755 "$srcdir"/devmappings.initd \
|
|
|
|
"$pkgdir"/etc/init.d/devmappings
|
2019-05-02 21:07:31 +00:00
|
|
|
|
|
|
|
install -Dm755 "$srcdir"/deferred-initcalls.init \
|
|
|
|
"$pkgdir"/etc/init.d/deferred-initcalls
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
2017-10-06 18:19:47 +00:00
|
|
|
|
|
|
|
x11() {
|
|
|
|
install_if="$pkgname xorg-server"
|
|
|
|
depends="
|
|
|
|
libinput
|
|
|
|
xf86-input-libinput
|
|
|
|
xf86-video-fbdev"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2017-10-12 20:08:10 +00:00
|
|
|
sha512sums="38dc75c0ed32b76dccd3d8e7e8173e8b7d91847cf2b07123f376b95af46b4f89798b24f45302a0726fdc1cf253aecaac140f431735ac5c6511553f790badd0af firmwareload.sh
|
2017-08-20 12:49:55 +00:00
|
|
|
0b098828080055d3646ea54891cb0e1b578cbc30f5e16f7284f2814c08192f18079a38fb686d192715ae6a3d2cd6625d9e3cf99f234a6f0d94088bb0cb2ce43d 50-firmware.rules
|
2019-05-04 21:17:35 +00:00
|
|
|
67a031f309a3232ac1e8abc3fedeaee912c035f9c81b4f709248895905a27ab5844ec92c65e55b79af3894450ba3883549d4004f11efebb47114d41f730e4a5f networkmanager.conf
|
2017-09-20 18:32:19 +00:00
|
|
|
3ceeee37f558e7c95ad973692b6a437f997e6b46c3d1c2257ddfb1529a5633477373aa123c7f08164e818daae50acb203d151379f27ca11bd458809e6a0d4de7 swapfile
|
|
|
|
f5cc0f1265955d2646e5f099dd4b5d4c287945bfc18c16044db57670d456f55c678fc11cc59e6dab3fa340832ce869d516302a3a35c13518539ed0cedca51819 swapfile.init
|
2018-12-24 20:45:58 +00:00
|
|
|
e0d2d48b82a03239a4c0a00acaf83e00d397c23a8d7c71053d4e2a383357c22dcedef9e81b0e12a1d7514e1fdbe0bb3eb82613d18b29034a7ce5447f13c84a53 swapfile.conf
|
2019-05-02 21:07:31 +00:00
|
|
|
dadd251229eb5759e3cba77c39a4afc6f28bcbe0f272cd3ab41b7ff4fe6a3d2b9ee765e1a0b8f9241274e757ed3b2ce035ee5abe91843e55fb4188a3c401ca78 devmappings.initd
|
|
|
|
5fd6dd7f9941e975a6ce559924eb252606943276dc09455bbeb05ff718ecd28f20a08eee8e04ca580e5af71d4c944c256ec04f07b07286394f5dfedfa59273e7 deferred-initcalls.init"
|