![Victor Huesca](/assets/img/avatar_default.png)
On Github, a large number of projects name their tag vXYZ (i.e v3.0, v0.1, etc.). In some packages we do: <pkg>_VERSION = v0.3 <pkg>_SITE = $(call github foo,bar,$(<pkg>_VERSION)) And in some other packages we do: <pkg>_VERSION = 0.3 <pkg>_SITE = $(call github foo,bar,v$(<pkg>_VERSION)) I.e in one case we consider the version to be v0.3, in the other case we consider 0.3 to be the version. The problem with v0.3 is that when used in conjunction with release-monitoring.org, it doesn't work very well, because release-monitoring.org has the concept of "version prefix" and using that they drop the "v" prefix for the version. Therefore, a number of packages in Buildroot have a version that doesn't match with release-monitoring.org because Buildroot has 'v0.3' and release-monitoring.org has '0.3'. Since really the version number of 0.3, is makes sense to update our packages to drop this 'v'. This commit only addresses the (common) case of github packages where the prefix is simply 'v'. Other cases will be handled by separate commits. Also, there are a few cases that couldn't be handled mechanically that aren't covered by this commit. Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> [Arnout: don't change flatbuffers, json-for-modern-cpp, libpagekite, python-scapy3k, softether] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# targetcli-fb
|
|
#
|
|
################################################################################
|
|
|
|
# When upgrading the version, be sure to also upgrade python-rtslib-fb
|
|
# and python-configshell-fb at the same time.
|
|
TARGETCLI_FB_VERSION = 2.1.fb41
|
|
TARGETCLI_FB_SITE = $(call github,open-iscsi,targetcli-fb,v$(TARGETCLI_FB_VERSION))
|
|
TARGETCLI_FB_LICENSE = Apache-2.0
|
|
TARGETCLI_FB_LICENSE_FILES = COPYING
|
|
TARGETCLI_FB_SETUP_TYPE = setuptools
|
|
TARGETCLI_FB_DEPENDENCIES = python-configshell-fb python-rtslib-fb python-six
|
|
|
|
define TARGETCLI_FB_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 0755 -D package/targetcli-fb/S50target \
|
|
$(TARGET_DIR)/etc/init.d/S50target
|
|
endef
|
|
|
|
define TARGETCLI_FB_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -m 0644 -D package/targetcli-fb/target.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/target.service
|
|
endef
|
|
|
|
# Targetcli stores its configuration in /etc/target/saveconfig.json
|
|
# and complains if the /etc/target/ directory does not exist.
|
|
define TARGETCLI_FB_INSTALL_CONF_DIR
|
|
$(INSTALL) -m 0755 -d $(TARGET_DIR)/etc/target
|
|
endef
|
|
|
|
TARGETCLI_FB_POST_INSTALL_TARGET_HOOKS += TARGETCLI_FB_INSTALL_CONF_DIR
|
|
|
|
$(eval $(python-package))
|