From fce06e2ad7f27474ce35764370c7130591b7a82e Mon Sep 17 00:00:00 2001 From: bdobe Date: Thu, 23 Apr 2015 09:04:38 +0200 Subject: [PATCH] Initial configuration for v0.6 --- .gitignore | 1 + README.md | 15 ++++++ modules | 4 ++ site.conf | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++ site.mk | 33 +++++++++++++ 5 files changed, 196 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 modules create mode 100644 site.conf create mode 100644 site.mk diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/README.md b/README.md new file mode 100644 index 0000000..8ecb984 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +#### How to build the Freifunk Helgoland Firmware + + git clone https://github.com/freifunk-gluon/gluon.git # Get the official Gluon repository + cd gluon + git clone https://github.com/freifunk-helgoland/site-helgo.git site # Get the Freifunk Helgoland site repository + make update # Get other repositories used by Gluon + make # Build Gluon + +Please see [the official Gluon repository](https://github.com/freifunk-gluon/gluon) for an in-depth explanation of the build process. + + +#### Gluon versions used for specific Helgoland Freifunk Firmware builds + +- 0.6: v2014.4 + diff --git a/modules b/modules new file mode 100644 index 0000000..ca86c4a --- /dev/null +++ b/modules @@ -0,0 +1,4 @@ +GLUON_SITE_FEEDS='ffhh_packages' + +PACKAGES_FFHH_PACKAGES_REPO=git://github.com/freifunkhamburg/ffhh-packages.git +PACKAGES_FFHH_PACKAGES_COMMIT=918d892f15aaf82417b642dc8cd87993bde9d7d6 diff --git a/site.conf b/site.conf new file mode 100644 index 0000000..6d1ca7e --- /dev/null +++ b/site.conf @@ -0,0 +1,143 @@ +{ + hostname_prefix = 'GibMirEinenNamen', + site_name = 'Freifunk Helgoland', + site_code = 'helgo', + opkg_repo = 'http://opkg.services.helgo/barrier_breaker/14.07/%S/packages', + + prefix4 = '10.189.0.0/18', + prefix6 = '2a03:2267:4e16:01ad::/64', + + timezone = 'CET-1CEST,M3.5.0,M10.5.0/3', -- Europe/Berlin + ntp_servers = {'1.ntp.services.helgo','2.ntp.services.helgo'}, + regdom = 'DE', + + wifi24 = { + ssid = 'helgoland.freifunk.net', + channel = 1, + htmode = 'HT20', + mesh_ssid = '14:cc:20:92:0f:e9', + mesh_bssid = '14:cc:20:92:0f:e9', + mesh_mcast_rate = 12000, + }, + wifi5 = { + ssid = 'helgoland.freifunk.net', + channel = 44, + htmode = 'HT40+', + mesh_ssid = '14:cc:20:92:0f:e9', + mesh_bssid = '14:cc:20:92:0f:e9', + mesh_mcast_rate = 12000, + }, + + next_node = { + ip4 = '10.189.0.1', + ip6 = '2a03:2267:4e16:01ad::1', + mac = '16:41:95:40:f7:dc', + }, + + fastd_mesh_vpn = { + enabled = true, + methods = {'salsa2012+umac'}, + mtu = 1406, + backbone = { + limit = 2, + peers = { + gateway01 = { + key = '2fa171346f800313145064d5e760af52069a3f3c6d1805c0393c747843b0eb8e', + remotes = {'"gw01.helgoland.freifunk.net" port 10100'}, + }, + gateway02 = { + key = 'f162c28d1f8f08cc9a6673126fd2d89e29c906c2901a9d8a39ade5ca85a32542', + remotes = {'"gw02.helgoland.freifunk.net" port 10100'}, + }, + gateway03 = { + key = '164b49d6897633e32cf93feb0249072a4315a32f08444309e0f524f0e55c1250', + remotes = {'"gw03.helgoland.freifunk.net" port 10100'}, + }, + gateway04 = { + key = '4966066b42bf72c175a381118f47806ccc57e75a0a61bba03043e617076b8b05', + remotes = {'"gw04.helgoland.freifunk.net" port 10100'}, + }, + }, + }, + }, + + autoupdater = { + branch = 'experimental', + branches = { + stable = { + name = 'stable', + mirrors = {'http://1.updates.services.helgo/stable/sysupgrade','http://2.updates.services.helgo/stable/sysupgrade'}, + good_signatures = 2, + pubkeys = { + 'aee22cdc38b5d792cfc360d11030953ddaea65ad52e7a9a3879e2aa7e2bf9e8b', -- A.Bernhardt + '874a73fab024e3dea99ef4b843ace2b97910fddde9911ce308b1d52add236270', -- bdobe + '76911ba14827d95bf4721297f2f421a697824cc14026e42316f18b392bacc11c', -- Entil\'Zha + }, + }, + beta = { + name = 'beta', + mirrors = {'http://1.updates.services.helgo/beta/sysupgrade','http://2.updates.services.helgo/beta/sysupgrade'}, + good_signatures = 2, + pubkeys = { + 'aee22cdc38b5d792cfc360d11030953ddaea65ad52e7a9a3879e2aa7e2bf9e8b', -- A.Bernhardt + '874a73fab024e3dea99ef4b843ace2b97910fddde9911ce308b1d52add236270', -- bdobe + '76911ba14827d95bf4721297f2f421a697824cc14026e42316f18b392bacc11c', -- Entil\'Zha + }, + }, + experimental = { + name = 'experimental', + mirrors = {'http://1.updates.services.helgo/experimental/sysupgrade','http://2.updates.services.helgo/experimental/sysupgrade'}, + good_signatures = 1, + pubkeys = { + 'fcd387541ae051eb02f18fd7883e6abb1b7f4c0bcf6ef1ae641a80be49e23d84', -- 1.builder + }, + }, + }, + }, + + simple_tc = { + mesh_vpn = { + ifname = 'mesh-vpn', + enabled = false, + limit_egress = 500, + limit_ingress = 8000, + }, + }, + + config_mode = { + msg_welcome = [[ +Willkommen zum Einrichtungsassistenten für deinen neuen Helgoländer +Freifunk-Knoten. Fülle das folgende Formular deinen Vorstellungen +entsprechend aus und sende es ab. +Den unten anzugebenden Knotennamen kannst du beliebig wählen. Denke Dir also etwas schönes aus. Er ist der Name des Knotens im Netzwerk und hat nichts mit dem ausgestrahlten Netzwerknamen (SSID) zu tun. Letzterer ist immer helgoland.freifunk.net. +]], + msg_nopubkey = [[ +Bitte trage nun den Namen deines Knotens +(<%=hostname%>) und ein paar andere Informationen unter +http://formular.helgoland.freifunk.net/ +ein. +]], + msg_pubkey = [[ +Dies ist der öffentliche Schlüssel deines Freifunkknotens. Erst nachdem +er auf den Servern des Helgoländer Freifunk-Projektes eingetragen wurde, +kann sich dein Knoten mit dem Helgoländer Mesh-VPN verbinden. Bitte +trage dazu diesen Schlüssel, den Namen deines Knotens +(<%=hostname%>) und ein paar andere Informationen unter +http://formular.helgoland.freifunk.net/ +ein. +]], + msg_reboot = [[ +

+Dein Knoten startet gerade neu und wird anschließend versuchen, +sich mit anderen Freifunkknoten in seiner Nähe zu +verbinden. Weitere Informationen zur +Helgoländer Freifunk-Community findest du auf +unserer Webseite. +

+

+Viel Spaß mit deinem Knoten und der Erkundung von Freifunk! +

+]], + }, + +} diff --git a/site.mk b/site.mk new file mode 100644 index 0000000..f064b04 --- /dev/null +++ b/site.mk @@ -0,0 +1,33 @@ +GLUON_SITE_PACKAGES := \ + gluon-mesh-batman-adv-14 \ + gluon-alfred \ + gluon-announced \ + gluon-autoupdater \ + gluon-config-mode-autoupdater \ + gluon-config-mode-hostname \ + gluon-config-mode-mesh-vpn \ + gluon-config-mode-reboot-ffhh \ + gluon-ebtables-filter-multicast \ + gluon-ebtables-filter-ra-dhcp \ + gluon-luci-admin \ + gluon-luci-autoupdater \ + gluon-luci-portconfig \ + gluon-luci-private-wifi \ + gluon-next-node \ + gluon-mesh-vpn-fastd \ + gluon-radvd \ + gluon-status-page \ + iwinfo \ + iptables \ + haveged + + + +DEFAULT_GLUON_RELEASE := 0.6 +# for experimental firmware: +# DEFAULT_GLUON_RELEASE := 0.6+exp$(shell date '+%Y%m%d') + +# Allow overriding the release number from the command line +GLUON_RELEASE ?= $(DEFAULT_GLUON_RELEASE) + +GLUON_PRIORITY ?= 0