b34ead55c0
On Github, a large number of projects name their tag <some-prefix>-0.3-<some-suffix> (i.e release-3.0, poco-0.1-release, etc.). In fact majority of the cased adressed in this commit concerns prefixes. In most packages, we encode those prefix/suffix in the <pkg>_VERSION variable. The problem with this approach 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/suffix" and using that they drop the prefix/suffix to really get the version. For example on https://release-monitoring.org/project/5418/ the latest release of "poco" is "1.8.1", not "poco-1.8.1-release". Therefore, a number of packages in Buildroot have a version that doesn't match with release-monitoring.org. Since really the version number of 1.8.1, is makes sense to update our packages to drop these prefixes/suffixes. This commit addreses the case of github-fetched packages with non-conventional prefixes/suffixes. Note that these changes modify the name of the files stored in DL_DIR, which means that this will force a re-download of those package source code for all users, and requires a change to their .hash file. Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
34 lines
1.0 KiB
Makefile
34 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# xinetd
|
|
#
|
|
################################################################################
|
|
|
|
XINETD_VERSION = 2-3-15
|
|
XINETD_SITE = $(call github,xinetd-org,xinetd,xinetd-$(XINETD_VERSION))
|
|
XINETD_LICENSE = xinetd license
|
|
XINETD_LICENSE_FILES = COPYRIGHT
|
|
|
|
XINETD_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
# Three cases here:
|
|
# 1. We have libtirpc, use it by passing special flags
|
|
# 2. We have native RPC support, use it, no need to pass special
|
|
# flags (so this case 2 is implicit and not visible below)
|
|
# 3. We don't have RPC support, pass -DNO_RPC to disable it
|
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
|
XINETD_DEPENDENCIES += libtirpc host-pkgconf
|
|
XINETD_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
|
|
XINETD_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
|
|
else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),)
|
|
XINETD_CFLAGS += -DNO_RPC
|
|
endif
|
|
|
|
XINETD_CONF_ENV += \
|
|
CFLAGS="$(XINETD_CFLAGS)" \
|
|
LIBS="$(XINETD_LIBS)"
|
|
|
|
XINETD_MAKE_OPTS = AR="$(TARGET_AR)"
|
|
|
|
$(eval $(autotools-package))
|