-# there are 2 collectd flavors:
-# -"collectd" - based on stable collect release
-# -"collectd-master" - development version, based on master branch
-ifdef COLLECTD_USE_MASTER
- COLLECTD_TAG ?= master
-else
- COLLECTD_TAG ?= collectd-5.8
+
+# there are 4 collectd flavors:
+# -"stable" - based on stable collectd release
+# -"latest" - development version, based on main branch
+# -"experimental" - it is based on main branch as above and includes
+# set pull requests with experimental features
+# -"collectd-6" - based on the collectd 6.0 branch
+ifeq ($(COLLECTD_FLAVOR), stable)
+# using the most recent stable release
+ COLLECTD_TAG ?= collectd-5.12
+ SAMPLE_CONF_VARIANT_NAME = collectd_sample_configs
+endif
+ifeq ($(COLLECTD_FLAVOR), latest)
+# collectd code from main branch
+ COLLECTD_TAG ?= main
+ SAMPLE_CONF_VARIANT_NAME = collectd_sample_configs-latest