Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APK & 1.4.0 & 1.2.4 stuffs #164

Merged
merged 6 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 32 additions & 18 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ packageset="$(cat "packageset/$(echo "$fversion" | cut -d'-' -f1)/$variant.txt"
# let's get to work
cd "$ibdir"
mkdir -p "bin/targets/$target/faillogs"
mkdir -p embedded-files/etc

# device profile help text, late because we need the extracted imagebuilder for that
[ -n "$3" ] && profile="$3" || (
Expand All @@ -127,25 +128,38 @@ packageset="$(cat "packageset/$(echo "$fversion" | cut -d'-' -f1)/$variant.txt"

# falter feed for imagebuilder
arch="$(grep CONFIG_TARGET_ARCH_PACKAGES .config | cut -d'=' -f 2 | tr -d '"')"
if [ -n "$feed" ]; then
echo "src/gz falter $feed" >>repositories.conf
sed -i 's/option check_signature//g' repositories.conf
if [ "x$orelease" = "xsnapshot" ] ; then
# TODO falter feed available within the running image
# TODO disable signature check for custom feed url
adburl="$fmirror/feed/$frelease/packages/$arch/falter/packages.adb"
echo "$adburl" >> repositories
cat <<EOF1 > keys/falter.snapshot.pem
-----BEGIN PUBLIC KEY-----
MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEE1NSmLpdMjXJpDQki9ziqW3Ve0aIX99t
uAc1Yn5TexwhBhHsGxUxICHS63pDXYj9xg1AZHlvbEnFrBNrsdjJQQ==
-----END PUBLIC KEY-----
EOF1
else
feedurl="$fmirror/feed/$frelease/packages/$arch/falter"
echo "src/gz falter $feedurl" >>repositories.conf
{
echo "untrusted comment: Falter OPKG Key 2024"
echo "$fkey"
} >"keys/$fkeyfp"
fi
if [ -n "$feed" ]; then
echo "src/gz falter $feed" >>repositories.conf
sed -i 's/option check_signature//g' repositories.conf
else
feedurl="$fmirror/feed/$frelease/packages/$arch/falter"
echo "src/gz falter $feedurl" >>repositories.conf
{
echo "untrusted comment: Falter OPKG Key 2024"
echo "$fkey"
} >"keys/$fkeyfp"
fi

# falter feed for the running image
mkdir -p embedded-files/etc/opkg/keys
if [ -n "$feed" ]; then
echo "src/gz falter $feed" >>embedded-files/etc/opkg/customfeeds.conf
else
echo "src/gz falter $feedurl" >>embedded-files/etc/opkg/customfeeds.conf
cp "keys/$fkeyfp" embedded-files/etc/opkg/keys
# falter feed for the running image
mkdir -p embedded-files/etc/opkg/keys
if [ -n "$feed" ]; then
echo "src/gz falter $feed" >>embedded-files/etc/opkg/customfeeds.conf
else
echo "src/gz falter $feedurl" >>embedded-files/etc/opkg/customfeeds.conf
cp "keys/$fkeyfp" embedded-files/etc/opkg/keys
fi
fi

# /etc/freifunk_release
Expand Down Expand Up @@ -200,7 +214,7 @@ EOF
cp "$rootdir/store/favicon.png" "$d/"

# go over all devices and build them
profilelist=$(make info | sed -n 's/\(^[a-zA-Z0-9_-]*\)\:$/\1/p')
profilelist=$(make info | sed -n 's/\(^[a-zA-Z0-9_-]*\)\:$/\1/p' | grep -v Default)
echo -n "building profiles:"
echo "$profilelist" | xargs echo -n " "
echo
Expand Down
57 changes: 46 additions & 11 deletions packageset/1.4.0/backbone.txt → packageset/1.2.4/notunnel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,49 @@

# Defaults
falter-berlin-dhcp-defaults
falter-berlin-firewall-defaults
falter-berlin-freifunk-defaults
falter-berlin-migration
falter-berlin-network-defaults
falter-berlin-olsrd-defaults
falter-berlin-statistics-defaults
falter-berlin-system-defaults
falter-berlin-uhttpd-defaults

# Common
#dnsmasq is already provided via dnsmasq-full
-dnsmasq

# falter Common
falter-common
falter-common-olsr
falter-berlin-tunneldigger

# Utils
tcpdump-mini
mtr
ip
iperf3
tmux
vnstat
ethtool
#dnsmasq is already provided via dnsmasq-full
-dnsmasq
qos-scripts
firewall
iwinfo
libiwinfo-lua
tcpdump-mini

# falter Common
falter-common
falter-common-olsr
falter-policyrouting
falter-profiles
# allow upgrade from one type to another
falter-berlin-tunneldigger
falter-berlin-ssid-changer

# GUI-basics
uhttpd
uhttpd-mod-ubus
luci
luci-ssl
luci-app-ffwizard-falter
luci-mod-falter
luci-app-olsr
luci-app-opkg
luci-app-firewall
luci-app-olsr-services
luci-app-falter-owm
luci-app-falter-owm-ant
Expand All @@ -48,27 +56,54 @@ luci-theme-bootstrap

# GUI translation stuff
luci-i18n-base-de
luci-i18n-base-en
luci-i18n-firewall-de
luci-i18n-firewall-en
luci-i18n-olsr-de
luci-i18n-olsr-en
luci-i18n-opkg-de
luci-i18n-opkg-en
luci-i18n-statistics-de
luci-i18n-statistics-en
luci-i18n-falter-de
luci-i18n-falter-en
luci-i18n-ffwizard-falter-de
luci-i18n-ffwizard-falter-en
luci-i18n-falter-policyrouting-de
luci-i18n-falter-policyrouting-en

# autoupdate
falter-berlin-autoupdate
falter-berlin-autoupdate-keys
luci-app-falter-autoupdate
luci-i18n-falter-autoupdate-de

# service registrar
falter-berlin-service-registrar
luci-app-falter-service-registrar
luci-i18n-falter-service-registrar-de

# OLSR
olsrd
olsrd-utils
olsrd-mod-arprefresh
olsrd-mod-dyn-gw
olsrd-mod-jsoninfo
olsrd-mod-txtinfo
olsrd-mod-nameservice
olsrd-mod-watchdog
kmod-ipip

# Uplink
falter-berlin-uplink-notunnel

# Statistics
luci-app-statistics
collectd
collectd-mod-cpu
collectd-mod-dhcpleases
collectd-mod-interface
collectd-mod-iwinfo
collectd-mod-load
collectd-mod-network
collectd-mod-olsrd
collectd-mod-rrdtool
Expand Down
46 changes: 34 additions & 12 deletions packageset/1.3.0/backbone.txt → packageset/1.2.4/tunneldigger.txt
Original file line number Diff line number Diff line change
@@ -1,43 +1,49 @@
-wpad-mini
#-wpad-mini
#wpad

# Defaults
falter-berlin-dhcp-defaults
falter-berlin-firewall-defaults
falter-berlin-freifunk-defaults
falter-berlin-migration
falter-berlin-network-defaults
falter-berlin-olsrd-defaults
falter-berlin-statistics-defaults
falter-berlin-system-defaults
falter-berlin-uhttpd-defaults

# Common
#dnsmasq is already provided via dnsmasq-full
-dnsmasq

# falter Common
falter-common
falter-common-olsr
falter-berlin-tunneldigger

# Utils
tcpdump-mini
mtr
ip
iperf3
tmux
vnstat
ethtool
#dnsmasq is already provided via dnsmasq-full
-dnsmasq
qos-scripts
firewall
iwinfo
libiwinfo-lua
tcpdump-mini

# falter Common
falter-common
falter-common-olsr
falter-policyrouting
falter-profiles
falter-berlin-ssid-changer

# GUI-basics
uhttpd
uhttpd-mod-ubus
luci
luci-ssl
luci-app-ffwizard-falter
luci-mod-falter
luci-app-olsr
luci-app-opkg
luci-app-firewall
luci-app-olsr-services
luci-app-falter-owm
luci-app-falter-owm-ant
Expand All @@ -46,9 +52,11 @@ luci-app-falter-owm-gui
luci-proto-ppp
luci-theme-bootstrap

# GUI transalation stuff
# GUI translation stuff
luci-i18n-base-de
luci-i18n-base-en
luci-i18n-firewall-de
luci-i18n-firewall-en
luci-i18n-olsr-de
luci-i18n-olsr-en
luci-i18n-opkg-de
Expand All @@ -62,6 +70,17 @@ luci-i18n-ffwizard-falter-en
luci-i18n-falter-policyrouting-de
luci-i18n-falter-policyrouting-en

# autoupdate
falter-berlin-autoupdate
falter-berlin-autoupdate-keys
luci-app-falter-autoupdate
luci-i18n-falter-autoupdate-de

# service registrar
falter-berlin-service-registrar
luci-app-falter-service-registrar
luci-i18n-falter-service-registrar-de

# OLSR
olsrd
olsrd-utils
Expand All @@ -72,6 +91,9 @@ olsrd-mod-txtinfo
olsrd-mod-nameservice
kmod-ipip

# Uplink
falter-berlin-uplink-tunnelberlin

# Statistics
luci-app-statistics
collectd
Expand Down
5 changes: 1 addition & 4 deletions packageset/1.4.0/notunnel.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
-wpad-mini
#wpad

# Defaults
falter-berlin-dhcp-defaults
Expand All @@ -16,7 +14,6 @@ falter-berlin-uhttpd-defaults
mtr
ip
iperf3
tmux
vnstat
ethtool
#dnsmasq is already provided via dnsmasq-full
Expand Down Expand Up @@ -51,7 +48,7 @@ luci-app-falter-owm
luci-app-falter-owm-ant
luci-app-falter-owm-cmd
luci-app-falter-owm-gui
luci-proto-ppp
-luci-proto-ppp
luci-theme-bootstrap

# GUI translation stuff
Expand Down
5 changes: 1 addition & 4 deletions packageset/1.4.0/tunneldigger.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#-wpad-mini
#wpad

# Defaults
falter-berlin-dhcp-defaults
Expand All @@ -17,7 +15,6 @@ falter-profiles
mtr
ip
iperf3
tmux
vnstat
ethtool
#dnsmasq is already provided via dnsmasq-full
Expand Down Expand Up @@ -50,7 +47,7 @@ luci-app-falter-owm
luci-app-falter-owm-ant
luci-app-falter-owm-cmd
luci-app-falter-owm-gui
luci-proto-ppp
-luci-proto-ppp
luci-theme-bootstrap

# GUI translation stuff
Expand Down
1 change: 0 additions & 1 deletion packageset/1.5.0/backbone.txt

This file was deleted.

1 change: 0 additions & 1 deletion packageset/snapshot/backbone.txt

This file was deleted.

1 change: 0 additions & 1 deletion packageset/testbuildbot/backbone.txt

This file was deleted.

2 changes: 1 addition & 1 deletion test/vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ cat <<'EOF' >"$vmdir/vmconfig.json"
},
"boot-source": {
"kernel_image_path": "./vmlinux",
"boot_args": "ro console=ttyS0 noapic reboot=k panic=1 pci=off nomodules random.trust_cpu=on i8042.noaux"
"boot_args": "ro console=ttyS0 reboot=k panic=1 pci=off nomodules random.trust_cpu=on i8042.noaux"
},
"drives": [
{
Expand Down
Loading