gluon/package
lemoer 7347adb875 gluon-core: allow overriding gluon-version by .scmversion
Usually gluon calls "git describe" inside the gluon directory to determine
the gluon-version. While this is sufficient in most cases, it becomes
insufficient if you have a meta build system, which patches gluon before
building gluon.

It is actually insufficient, because if you patch gluon before building
it, the the output of "git describe" would then describe the patched
revision and not the base revision (before patching gluon).

After this commit, you can use .scmversion to avoid this problem. By
writing to .scmversion inside the gluon directory before calling make,
gluon will now use the contents of .scmversion instead of "git describe"
to define the gluon-version. So you can write to .scmversion to define
gluon-version before patching gluon in your meta build system.

To do this, you can do something like this in your meta build system:

    cd gluon
    make show-describe > .scmversion
    # apply your own patches to gluon
    git am < ...
    # make gluon
    make GLUON_TARGET=...

Instead of using the output of "make show-describe" as .scmversion, you
can also use any other useful version description. E.g. you may append
the number of additional patches on top of the base commit of gluon (or
so).

As a side note, inside gluon, you can obtain the version (as before) via:

    root@platzhalter-525400123457:/# cat /lib/gluon/gluon-version
    v2021.1-150-gb39ea759+

    root@platzhalter-525400123457:/# gluon-neighbour-info -r nodeinfo
    {
      ...
      "software": {
        "firmware": {
          "base": "gluon-v2021.1-150-gb39ea759+",
          ...
        }
      }
    }

    root@platzhalter-525400123457:/# opkg info gluon-core | grep ^Version:
    Version: v2021.1-150-gb39ea759+
2021-09-20 23:01:29 +02:00
..
gluon-alfred gluon-reload: add missing service restarts on domain switching 2020-05-28 23:30:25 +02:00
gluon-authorized-keys gluon-authorized-keys: Force installation of gluon-lock-password 2019-07-02 12:34:55 +02:00
gluon-autoupdater gluon-autoupdater: make site.conf branch setting optional 2020-08-15 16:36:27 +02:00
gluon-client-bridge treewide: remove GLUON_SPECIALIZE_KERNEL 2021-07-13 21:37:39 +02:00
gluon-config-mode-autoupdater treewide: update i18n files via i18n-scan.pl and msgmerge (#1784) 2019-11-09 01:25:33 +01:00
gluon-config-mode-contact-info gluon-config-mode-core: unconditionally run gluon-reconfigure 2021-05-15 00:03:02 +02:00
gluon-config-mode-core gluon-config-mode-core: add missing uci save 2021-05-18 19:16:18 +02:00
gluon-config-mode-domain-select gluon-config-mode-core: unconditionally run gluon-reconfigure 2021-05-15 00:03:02 +02:00
gluon-config-mode-geo-location treewide: remove duplicate i18n translations (#2309) 2021-09-11 22:47:11 +02:00
gluon-config-mode-geo-location-osm gluon-config-mode-geo-location-osm, gluon-web-osm: add support for custom tile layers (#2072) 2020-07-05 17:06:59 +02:00
gluon-config-mode-hostname gluon-config-mode-core: unconditionally run gluon-reconfigure 2021-05-15 00:03:02 +02:00
gluon-config-mode-mesh-vpn mesh-vpn: fully abstract VPN methods 2021-05-22 06:54:23 +02:00
gluon-config-mode-outdoor gluon-config-mode-core: unconditionally run gluon-reconfigure 2021-05-15 00:03:02 +02:00
gluon-config-mode-theme gluon-config-mode-theme: add cross-browser styling for <select> elements 2020-07-03 21:53:51 +02:00
gluon-core gluon-core: allow overriding gluon-version by .scmversion 2021-09-20 23:01:29 +02:00
gluon-ebtables treewide: remove GLUON_SPECIALIZE_KERNEL 2021-07-13 21:37:39 +02:00
gluon-ebtables-filter-multicast gluon-ebtables-filter-multicast: relax IPv6 multicast firewall rules 2021-05-01 22:36:14 +02:00
gluon-ebtables-filter-ra-dhcp treewide: move ebtables filter definitions from files to luasrc 2019-06-18 19:52:33 +02:00
gluon-ebtables-limit-arp treewide: remove GLUON_SPECIALIZE_KERNEL 2021-07-13 21:37:39 +02:00
gluon-ebtables-source-filter treewide: clean up site checks for prefix[46] and extra_prefixes6 2021-09-04 21:17:29 +02:00
gluon-hoodselector packages: introduce syslog function in gluon.util 2020-12-29 01:33:29 +01:00
gluon-iptables-clamp-mss-to-pmtu gluon-iptables-clamp-mss-to-pmtu: clamp mss on all mesh interfaces for all destinations to pmtu 2018-11-21 20:47:39 +01:00
gluon-l3roamd treewide: clean up site checks for prefix[46] and extra_prefixes6 2021-09-04 21:17:29 +02:00
gluon-lock-password treewide: automatically set SECTION and CATEGORY for Gluon packages 2018-04-14 00:01:04 +02:00
gluon-logging add gluon-logging package 2020-04-30 01:54:35 +02:00
gluon-mesh-babel treewide: rename local_client zone (#2115) 2020-09-13 05:24:33 +02:00
gluon-mesh-batman-adv gluon-mesh-batman-adv: implement neighbour and default_gw4 check (#2274) 2021-08-12 21:02:58 +02:00
gluon-mesh-vpn-core gluon-mesh-vpn-wireguard: add package (#2168) 2021-09-15 01:25:59 +02:00
gluon-mesh-vpn-fastd treewide: remove GLUON_SPECIALIZE_KERNEL 2021-07-13 21:37:39 +02:00
gluon-mesh-vpn-tunneldigger treewide: remove GLUON_SPECIALIZE_KERNEL 2021-07-13 21:37:39 +02:00
gluon-mesh-vpn-wireguard gluon-mesh-vpn-wireguard: add package (#2168) 2021-09-15 01:25:59 +02:00
gluon-mesh-wireless-sae mesh-wireless-sae: drop unused function parameters 2021-05-02 02:20:00 +02:00
gluon-mmfd gluon-mmfd: add package (#1802) 2019-09-23 21:34:53 +02:00
gluon-neighbour-info gluon-neighbour-info: end before timeout (#2185) 2021-03-15 17:52:34 +01:00
gluon-node-info treewide: correctly specify conffiles (#2276) 2021-07-23 19:48:58 +02:00
gluon-private-wifi gluon-private-wifi: add package 2021-05-02 23:25:32 +02:00
gluon-radv-filterd gluon-radv-filterd: add string.h and guard to mac.h 2020-07-02 00:17:50 +02:00
gluon-radvd gluon-reload: add missing service restarts on domain switching 2020-05-28 23:30:25 +02:00
gluon-respondd gluon-respondd: fix count_stations() arguments 2021-01-12 04:32:23 +01:00
gluon-scheduled-domain-switch gluon-scheduled-domain-switch: use gluon-switch-domain 2020-07-02 22:35:05 +02:00
gluon-setup-mode treewide: correctly specify conffiles (#2276) 2021-07-23 19:48:58 +02:00
gluon-site treewide: use lua-jsonc instead of lua-cjson for JSON handling during build 2021-06-12 23:30:47 +02:00
gluon-state-check gluon-state-check: implement state checker (#2245) 2021-08-10 16:22:34 +02:00
gluon-status-page Merge pull request #2289 from freifunk-gluon/status-page-improvements 2021-09-04 21:11:05 +02:00
gluon-status-page-mesh-batman-adv gluon-status-page-mesh-batman-adv: Save if metrics chose neighbor as own best nexthop 2019-04-09 01:31:51 +02:00
gluon-wan-dnsmasq treewide: correctly specify conffiles (#2276) 2021-07-23 19:48:58 +02:00
gluon-web packages: fix missing argument to posix.glob 2021-06-21 16:28:15 +02:00
gluon-web-admin gluon-web-admin: use util.popen3 in remote.lua 2021-07-15 17:55:08 +02:00
gluon-web-autoupdater gluon-web-autoupdater: use human-readable names as branch labels, sort by label 2020-04-26 15:31:59 +02:00
gluon-web-logging treewide: update i18n files via i18n-scan.pl and msgmerge (#1784) 2019-11-09 01:25:33 +01:00
gluon-web-mesh-vpn-fastd gluon-web-*: remove non-existing CSS classes 2020-07-02 23:43:23 +02:00
gluon-web-model gluon-web-model: add state tracking to sections 2021-05-15 00:02:44 +02:00
gluon-web-network gluon-web-network: fix variable shadowing 2019-08-13 17:49:02 +02:00
gluon-web-node-role gluon-web-node-role: fix node role list 2019-11-05 20:05:16 +01:00
gluon-web-osm gluon-config-mode-geo-location-osm, gluon-web-osm: add support for custom tile layers (#2072) 2020-07-05 17:06:59 +02:00
gluon-web-private-wifi gluon-private-wifi: add package 2021-05-02 23:25:32 +02:00
gluon-web-wifi-config treewide: remove duplicate i18n translations (#2309) 2021-09-11 22:47:11 +02:00
gluon-wireless-encryption wireless-encryption mesh-wireless-sae: depend on OpenSSL daemons 2020-12-16 00:52:27 +01:00
libbatadv treewide: remove redundant definitions from package Makefiles 2018-03-07 21:23:41 +01:00
libgluonutil libgluonutil: free getline 2021-05-08 20:35:24 +02:00
features gluon-mesh-vpn-wireguard: add package (#2168) 2021-09-15 01:25:59 +02:00
gluon.mk build: run site checks for manual package installations 2021-07-12 17:07:40 +02:00