babeld: Revise version string

As the originally used version string did not include
the daemons name, it is changed to versions like:

babeld-1.9.1+fff2

Signed-off-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
Fabian Bläse 2019-11-16 01:26:23 +01:00
parent 9fc263d093
commit 1ea9796074
1 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
From a5e29f8520ba2dc65af47153980ec3401e18757b Mon Sep 17 00:00:00 2001
From 6cc7f682ee04c6dab34e706b7fc2fbc701a257fb Mon Sep 17 00:00:00 2001
From: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Date: Mon, 30 Sep 2019 17:09:10 +0200
Subject: [PATCH 1/2] babeld: Include PKG_RELEASE in babeld version
@ -7,12 +7,14 @@ This will account for custom patches added, as otherwise version
would stay the same.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
[fabian@blaese.de: revise version string]
Signed-off-by: Fabian Bläse <fabian@blaese.de>
---
babeld/Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/babeld/Makefile b/babeld/Makefile
index 022d0b8..cc266ce 100644
index d113d54..bd9cdb0 100644
--- a/babeld/Makefile
+++ b/babeld/Makefile
@@ -48,6 +48,11 @@ MAKE_FLAGS+= \
@ -20,7 +22,7 @@ index 022d0b8..cc266ce 100644
LDLIBS="" \
+define Build/Configure
+ echo "openwrt-$(PKG_VERSION)-$(PKG_RELEASE)" > $(PKG_BUILD_DIR)/version
+ echo "babeld-$(PKG_VERSION)+fff$(PKG_RELEASE)" > $(PKG_BUILD_DIR)/version
+ $(Build/Configure/Default)
+endef
+
@ -28,5 +30,5 @@ index 022d0b8..cc266ce 100644
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/babeld $(1)/usr/sbin/
--
2.20.1
2.24.0