summaryrefslogtreecommitdiffstats
path: root/packaging/repoconfig/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
commitbe1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch)
tree9754ff1ca740f6346cf8483ec915d4054bc5da2d /packaging/repoconfig/Makefile
parentInitial commit. (diff)
downloadnetdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.tar.xz
netdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.zip
Adding upstream version 1.44.3.upstream/1.44.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/repoconfig/Makefile')
-rw-r--r--packaging/repoconfig/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/packaging/repoconfig/Makefile b/packaging/repoconfig/Makefile
new file mode 100644
index 00000000..18b9887f
--- /dev/null
+++ b/packaging/repoconfig/Makefile
@@ -0,0 +1,35 @@
+FILES = netdata.list netdata-edge.list netdata-archive-keyring.gpg netdata-edge-archive-keyring.gpg netdata-repoconfig-archive-keyring.gpg
+
+all: $(FILES)
+
+netdata.list: netdata.list.in
+ cp netdata.list.in netdata.list
+ set -a && . /etc/os-release && sed -i -e "s/__DISTRO__/$${ID}/" -e "s/__SUITE__/$${VERSION_CODENAME}/" -e "s/__VARIANT__/stable/" netdata.list
+
+netdata-edge.list: netdata.list.in
+ cp netdata.list.in netdata-edge.list
+ set -a && . /etc/os-release && sed -i -e "s/__DISTRO__/$${ID}/" -e "s/__SUITE__/$${VERSION_CODENAME}/" -e "s/__VARIANT__/edge/" netdata-edge.list
+
+netdata.gpg.key:
+ curl -L https://repo.netdata.cloud/netdatabot.gpg.key > $@
+
+netdata-archive-keyring.gpg: netdata.gpg.key
+ gpg --dearmor > $@ < $<
+
+netdata-edge-archive-keyring.gpg: netdata.gpg.key
+ gpg --dearmor > $@ < $<
+
+netdata-repoconfig-archive-keyring.gpg: netdata.gpg.key
+ gpg --dearmor > $@ < $<
+
+debian/tmp:
+ mkdir -p $@
+
+install: $(FILES) debian/tmp
+ cp $(FILES) debian/tmp/
+
+clean:
+ rm -f $(FILES)
+
+.PHONY: clean
+.INTERMEDIATE: netdatabot.gpg.key