Merge pull request #2316 from freifunk-gluon/gluon-version
Clean up Gluon version number handling, allow .scmversion override
This commit is contained in:
commit
f910cab618
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,3 +7,4 @@
|
|||||||
.bash_history
|
.bash_history
|
||||||
.subversion
|
.subversion
|
||||||
.wget-hsts
|
.wget-hsts
|
||||||
|
/.scmversion
|
||||||
|
4
Makefile
4
Makefile
@ -52,6 +52,9 @@ $(eval $(call mkabspath,GLUON_PACKAGEDIR))
|
|||||||
$(eval $(call mkabspath,GLUON_TARGETSDIR))
|
$(eval $(call mkabspath,GLUON_TARGETSDIR))
|
||||||
$(eval $(call mkabspath,GLUON_PATCHESDIR))
|
$(eval $(call mkabspath,GLUON_PATCHESDIR))
|
||||||
|
|
||||||
|
GLUON_VERSION := $(shell scripts/getversion.sh '.')
|
||||||
|
GLUON_SITE_VERSION := $(shell scripts/getversion.sh '$(GLUON_SITEDIR)')
|
||||||
|
|
||||||
GLUON_MULTIDOMAIN ?= 0
|
GLUON_MULTIDOMAIN ?= 0
|
||||||
GLUON_AUTOREMOVE ?= 0
|
GLUON_AUTOREMOVE ?= 0
|
||||||
GLUON_DEBUG ?= 0
|
GLUON_DEBUG ?= 0
|
||||||
@ -64,6 +67,7 @@ src-link gluon_base ../../package
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
GLUON_VARS = \
|
GLUON_VARS = \
|
||||||
|
GLUON_VERSION GLUON_SITE_VERSION \
|
||||||
GLUON_RELEASE GLUON_REGION GLUON_MULTIDOMAIN GLUON_AUTOREMOVE GLUON_DEBUG GLUON_MINIFY GLUON_DEPRECATED \
|
GLUON_RELEASE GLUON_REGION GLUON_MULTIDOMAIN GLUON_AUTOREMOVE GLUON_DEBUG GLUON_MINIFY GLUON_DEPRECATED \
|
||||||
GLUON_DEVICES GLUON_TARGETSDIR GLUON_PATCHESDIR GLUON_TMPDIR GLUON_IMAGEDIR GLUON_PACKAGEDIR GLUON_DEBUGDIR \
|
GLUON_DEVICES GLUON_TARGETSDIR GLUON_PATCHESDIR GLUON_TMPDIR GLUON_IMAGEDIR GLUON_PACKAGEDIR GLUON_DEBUGDIR \
|
||||||
GLUON_SITEDIR GLUON_RELEASE GLUON_AUTOUPDATER_BRANCH GLUON_AUTOUPDATER_ENABLED GLUON_LANGS GLUON_BASE_FEEDS \
|
GLUON_SITEDIR GLUON_RELEASE GLUON_AUTOUPDATER_BRANCH GLUON_AUTOUPDATER_ENABLED GLUON_LANGS GLUON_BASE_FEEDS \
|
||||||
|
@ -88,3 +88,17 @@ update.sh
|
|||||||
source and installs it into *packages/* directory. It simply tries to set the *base*
|
source and installs it into *packages/* directory. It simply tries to set the *base*
|
||||||
branch of the cloned repo to the correct commit. If this fails it fetches the
|
branch of the cloned repo to the correct commit. If this fails it fetches the
|
||||||
upstream branch and tries again to set the local *base* branch.
|
upstream branch and tries again to set the local *base* branch.
|
||||||
|
|
||||||
|
getversion.sh
|
||||||
|
Used to determine the version numbers of the repositories of Gluon and the
|
||||||
|
site configuraiton, to be included in the built firmware images as
|
||||||
|
*/lib/gluon/gluon-version* and */lib/gluon/site-version*.
|
||||||
|
|
||||||
|
By default, this uses ``git describe`` to generate a version number based
|
||||||
|
on the last git tag. This can be overridden by putting a file called
|
||||||
|
*.scmversion* into the root of the respective repositories.
|
||||||
|
|
||||||
|
A command like ``rm -f .scmversion; echo "$(./scripts/getversion.sh .)" > .scmversion``
|
||||||
|
can be used before applying local patches to ensure that the reported
|
||||||
|
version numbers refer to an upstream commit ID rather than an arbitrary
|
||||||
|
local one after ``git am``.
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-alfred
|
PKG_NAME:=gluon-alfred
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-authorized-keys
|
PKG_NAME:=gluon-authorized-keys
|
||||||
PKG_VERSION:=2
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-autoupdater
|
PKG_NAME:=gluon-autoupdater
|
||||||
PKG_VERSION:=4
|
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS := CONFIG_GLUON_AUTOUPDATER_BRANCH CONFIG_GLUON_AUTOUPDATER_ENABLED
|
PKG_CONFIG_DEPENDS := CONFIG_GLUON_AUTOUPDATER_BRANCH CONFIG_GLUON_AUTOUPDATER_ENABLED
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-client-bridge
|
PKG_NAME:=gluon-client-bridge
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-config-mode-autoupdater
|
PKG_NAME:=gluon-config-mode-autoupdater
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-config-mode-contact-info
|
PKG_NAME:=gluon-config-mode-contact-info
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-config-mode-core
|
PKG_NAME:=gluon-config-mode-core
|
||||||
PKG_VERSION:=2
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-config-mode-domain-select
|
PKG_NAME:=gluon-config-mode-domain-select
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-config-mode-geo-location-osm
|
PKG_NAME:=gluon-config-mode-geo-location-osm
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-config-mode-geo-location
|
PKG_NAME:=gluon-config-mode-geo-location
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-config-mode-hostname
|
PKG_NAME:=gluon-config-mode-hostname
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-config-mode-mesh-vpn
|
PKG_NAME:=gluon-config-mode-mesh-vpn
|
||||||
PKG_VERSION:=2
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-config-mode-outdoor
|
PKG_NAME:=gluon-config-mode-outdoor
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-config-mode-theme
|
PKG_NAME:=gluon-config-mode-theme
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -2,10 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=gluon-core
|
PKG_NAME:=gluon-core
|
||||||
|
|
||||||
GLUON_VERSION = $(shell git describe --always --dirty=+ 2>/dev/null || echo unknown)
|
PKG_CONFIG_DEPENDS := CONFIG_GLUON_VERSION
|
||||||
PKG_VERSION:=$(if $(DUMP),x,$(GLUON_VERSION))
|
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
include $(INCLUDE_DIR)/cmake.mk
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
@ -22,6 +19,11 @@ define Package/gluon-core/description
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-core/config
|
define Package/gluon-core/config
|
||||||
|
config GLUON_VERSION
|
||||||
|
string "Gluon version number"
|
||||||
|
depends on PACKAGE_gluon-core
|
||||||
|
default ""
|
||||||
|
|
||||||
config GLUON_MINIFY
|
config GLUON_MINIFY
|
||||||
bool "Minify Gluon scripts"
|
bool "Minify Gluon scripts"
|
||||||
default y
|
default y
|
||||||
@ -36,7 +38,7 @@ define Package/gluon-core/install
|
|||||||
$(Gluon/Build/Install)
|
$(Gluon/Build/Install)
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/lib/gluon
|
$(INSTALL_DIR) $(1)/lib/gluon
|
||||||
echo '$(GLUON_VERSION)' > $(1)/lib/gluon/gluon-version
|
echo '$(call qstrip,$(CONFIG_GLUON_VERSION))' > $(1)/lib/gluon/gluon-version
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackageGluon,gluon-core))
|
$(eval $(call BuildPackageGluon,gluon-core))
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-ebtables-filter-multicast
|
PKG_NAME:=gluon-ebtables-filter-multicast
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-ebtables-filter-ra-dhcp
|
PKG_NAME:=gluon-ebtables-filter-ra-dhcp
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-ebtables-limit-arp
|
PKG_NAME:=gluon-ebtables-limit-arp
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-ebtables-source-filter
|
PKG_NAME:=gluon-ebtables-source-filter
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-ebtables
|
PKG_NAME:=gluon-ebtables
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -2,9 +2,6 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=gluon-hoodselector
|
PKG_NAME:=gluon-hoodselector
|
||||||
|
|
||||||
GLUON_VERSION:=3
|
|
||||||
PKG_VERSION:=2
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
define Package/gluon-hoodselector
|
define Package/gluon-hoodselector
|
||||||
|
@ -2,9 +2,6 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=gluon-iptables-clamp-mss-to-pmtu
|
PKG_NAME:=gluon-iptables-clamp-mss-to-pmtu
|
||||||
|
|
||||||
GLUON_VERSION = $(shell git describe --always --dirty=+ 2>/dev/null || echo unknown)
|
|
||||||
PKG_VERSION:=$(if $(DUMP),x,$(GLUON_VERSION))
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
define Package/$(PKG_NAME)
|
define Package/$(PKG_NAME)
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-l3roamd
|
PKG_NAME:=gluon-l3roamd
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-lock-password
|
PKG_NAME:=gluon-lock-password
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-logging
|
PKG_NAME:=gluon-logging
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-mesh-babel
|
PKG_NAME:=gluon-mesh-babel
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
PKG_BUILD_DEPENDS := libbabelhelper
|
PKG_BUILD_DEPENDS := libbabelhelper
|
||||||
PKG_BUILD_DEPENDS += libjson-c
|
PKG_BUILD_DEPENDS += libjson-c
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-mesh-batman-adv
|
PKG_NAME:=gluon-mesh-batman-adv
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-mesh-vpn-core
|
PKG_NAME:=gluon-mesh-vpn-core
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-mesh-vpn-fastd
|
PKG_NAME:=gluon-mesh-vpn-fastd
|
||||||
PKG_VERSION:=3
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-mesh-vpn-tunneldigger
|
PKG_NAME:=gluon-mesh-vpn-tunneldigger
|
||||||
PKG_VERSION:=3
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-mesh-vpn-wireguard
|
PKG_NAME:=gluon-mesh-vpn-wireguard
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-mesh-wireless-sae
|
PKG_NAME:=gluon-mesh-wireless-sae
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-mmfd
|
PKG_NAME:=gluon-mmfd
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-neighbour-info
|
PKG_NAME:=gluon-neighbour-info
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-node-info
|
PKG_NAME:=gluon-node-info
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-private-wifi
|
PKG_NAME:=gluon-private-wifi
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-radv-filterd
|
PKG_NAME:=gluon-radv-filterd
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-radvd
|
PKG_NAME:=gluon-radvd
|
||||||
PKG_VERSION:=3
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-respondd
|
PKG_NAME:=gluon-respondd
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-scheduled-domain-switch
|
PKG_NAME:=gluon-scheduled-domain-switch
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-setup-mode
|
PKG_NAME:=gluon-setup-mode
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -3,15 +3,11 @@ include $(TOPDIR)/rules.mk
|
|||||||
PKG_NAME:=gluon-site
|
PKG_NAME:=gluon-site
|
||||||
|
|
||||||
GLUON_SITEDIR = $(call qstrip,$(CONFIG_GLUON_SITEDIR))
|
GLUON_SITEDIR = $(call qstrip,$(CONFIG_GLUON_SITEDIR))
|
||||||
GLUON_SITE_VERSION = $(shell ( cd '$(GLUON_SITEDIR)' && git --git-dir=.git describe --always --dirty=+ ) 2>/dev/null || echo unknown)
|
|
||||||
PKG_VERSION:=$(if $(DUMP),x,$(GLUON_SITE_VERSION))
|
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS := CONFIG_GLUON_RELEASE CONFIG_GLUON_SITEDIR CONFIG_GLUON_MULTIDOMAIN
|
PKG_CONFIG_DEPENDS := CONFIG_GLUON_SITE_VERSION CONFIG_GLUON_RELEASE CONFIG_GLUON_SITEDIR CONFIG_GLUON_MULTIDOMAIN
|
||||||
PKG_FILE_DEPENDS := $(GLUON_SITEDIR)/site.conf $(GLUON_SITEDIR)/domains/ $(GLUON_SITEDIR)/i18n/
|
PKG_FILE_DEPENDS := $(GLUON_SITEDIR)/site.conf $(GLUON_SITEDIR)/domains/ $(GLUON_SITEDIR)/i18n/
|
||||||
PKG_BUILD_DEPENDS := lua-jsonc/host gluon-web/host
|
PKG_BUILD_DEPENDS := lua-jsonc/host gluon-web/host
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
|
PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
|
||||||
@ -21,6 +17,11 @@ define Package/gluon-site
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-site/config
|
define Package/gluon-site/config
|
||||||
|
config GLUON_SITE_VERSION
|
||||||
|
string "Gluon site version number"
|
||||||
|
depends on PACKAGE_gluon-site
|
||||||
|
default ""
|
||||||
|
|
||||||
config GLUON_RELEASE
|
config GLUON_RELEASE
|
||||||
string "Gluon release number"
|
string "Gluon release number"
|
||||||
depends on PACKAGE_gluon-site
|
depends on PACKAGE_gluon-site
|
||||||
@ -83,7 +84,7 @@ define Package/gluon-site/install
|
|||||||
$(CP) $(PKG_BUILD_DIR)/domains $(1)/lib/gluon/
|
$(CP) $(PKG_BUILD_DIR)/domains $(1)/lib/gluon/
|
||||||
endif
|
endif
|
||||||
|
|
||||||
echo '$(GLUON_SITE_VERSION)' > $(1)/lib/gluon/site-version
|
echo '$(call qstrip,$(CONFIG_GLUON_SITE_VERSION))' > $(1)/lib/gluon/site-version
|
||||||
echo '$(call qstrip,$(CONFIG_GLUON_RELEASE))' > $(1)/lib/gluon/release
|
echo '$(call qstrip,$(CONFIG_GLUON_RELEASE))' > $(1)/lib/gluon/release
|
||||||
|
|
||||||
$(GluonInstallI18N)
|
$(GluonInstallI18N)
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-state-check
|
PKG_NAME:=gluon-state-check
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-status-page-mesh-batman-adv
|
PKG_NAME:=gluon-status-page-mesh-batman-adv
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-status-page
|
PKG_NAME:=gluon-status-page
|
||||||
PKG_VERSION:=3
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-wan-dnsmasq
|
PKG_NAME:=gluon-wan-dnsmasq
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-web-admin
|
PKG_NAME:=gluon-web-admin
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-web-autoupdater
|
PKG_NAME:=gluon-web-autoupdater
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-web-logging
|
PKG_NAME:=gluon-web-logging
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-web-mesh-vpn-fastd
|
PKG_NAME:=gluon-web-mesh-vpn-fastd
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-web-model
|
PKG_NAME:=gluon-web-model
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-web-network
|
PKG_NAME:=gluon-web-network
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-web-node-role
|
PKG_NAME:=gluon-web-node-role
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-web-osm
|
PKG_NAME:=gluon-web-osm
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-web-private-wifi
|
PKG_NAME:=gluon-web-private-wifi
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-web-wifi-config
|
PKG_NAME:=gluon-web-wifi-config
|
||||||
PKG_VERSION:=1
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-web
|
PKG_NAME:=gluon-web
|
||||||
PKG_VERSION:=1
|
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-wireless-encryption
|
PKG_NAME:=gluon-wireless-encryption
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
GLUON_MK := $(abspath $(lastword $(MAKEFILE_LIST)))
|
GLUON_MK := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||||
PKG_FILE_DEPENDS += $(GLUON_MK)
|
PKG_FILE_DEPENDS += $(GLUON_MK)
|
||||||
|
|
||||||
|
PKG_VERSION ?= 1
|
||||||
|
|
||||||
PKG_BUILD_DEPENDS += luasrcdiet/host
|
PKG_BUILD_DEPENDS += luasrcdiet/host
|
||||||
|
|
||||||
ifneq ($(wildcard ./luasrc/.),)
|
ifneq ($(wildcard ./luasrc/.),)
|
||||||
|
13
scripts/getversion.sh
Executable file
13
scripts/getversion.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
echo >&2 "Usage: getversion.sh <directory>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "$1" || exit 1
|
||||||
|
|
||||||
|
cat .scmversion 2>/dev/null && exit 0
|
||||||
|
git --git-dir=.git describe --always --abbrev=7 --dirty=+ 2>/dev/null && exit 0
|
||||||
|
|
||||||
|
echo unknown
|
@ -2,6 +2,8 @@ assert(env.GLUON_LANGS)
|
|||||||
|
|
||||||
|
|
||||||
config('GLUON_SITEDIR', env.GLUON_SITEDIR)
|
config('GLUON_SITEDIR', env.GLUON_SITEDIR)
|
||||||
|
config('GLUON_VERSION', env.GLUON_VERSION)
|
||||||
|
config('GLUON_SITE_VERSION', env.GLUON_SITE_VERSION)
|
||||||
config('GLUON_RELEASE', env.GLUON_RELEASE)
|
config('GLUON_RELEASE', env.GLUON_RELEASE)
|
||||||
|
|
||||||
try_config('GLUON_AUTOUPDATER_BRANCH', env.GLUON_AUTOUPDATER_BRANCH)
|
try_config('GLUON_AUTOUPDATER_BRANCH', env.GLUON_AUTOUPDATER_BRANCH)
|
||||||
|
Loading…
Reference in New Issue
Block a user