0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-08 07:10:12 +00:00
netdata_netdata/packaging/repoconfig/debian/rules
Austin S. Hemmelgarn a219940521
Fix edge repository configuration DEB packages. ()
Due to a naming issue in the debian/rules file, they were being built
without the actual repository configuration data.
2021-08-26 09:52:21 -04:00

21 lines
809 B
Makefile
Executable file

#!/usr/bin/make -f
TOP = $(CURDIR)/debian/netdata-repo
TOP_EDGE = $(CURDIR)/debian/netdata-repo-edge
TEMPTOP = $(CURDIR)/debian/tmp
%:
dh $@
override_dh_configure:
true
override_dh_install:
mkdir -p $(TOP)/etc/apt/sources.list.d $(TOP)/etc/apt/trusted.gpg.d/
mv -f $(TEMPTOP)/netdata.list $(TOP)/etc/apt/sources.list.d
mv -f $(TEMPTOP)/netdata-archive-keyring.gpg $(TOP)/etc/apt/trusted.gpg.d
cp $(TEMPTOP)/netdata-repoconfig-archive-keyring.gpg $(TOP)/etc/apt/trusted.gpg.d
mkdir -p $(TOP_EDGE)/etc/apt/sources.list.d $(TOP_EDGE)/etc/apt/trusted.gpg.d/
mv -f $(TEMPTOP)/netdata-edge.list $(TOP_EDGE)/etc/apt/sources.list.d
mv -f $(TEMPTOP)/netdata-edge-archive-keyring.gpg $(TOP_EDGE)/etc/apt/trusted.gpg.d
cp $(TEMPTOP)/netdata-repoconfig-archive-keyring.gpg $(TOP_EDGE)/etc/apt/trusted.gpg.d