Add repository priority configuration for DEB package repositories. (#19705)
* Add repository priority configuration for DEB package repositories. * Fix quoting.
Austin S. Hemmelgarn committed
Mar 5, 2025 at 08:17 UTC
bf340f96441ecf4b92cd62ddcbe0403be81d84b4
4 files changed
+22
-1
packaging/repoconfig/CMakeLists.txt
+11
-1
@@ -10,7 +10,7 @@ list(APPEND DEB_DISTROS debian ubuntu)
10
set(DEB_GPG_KEY_SOURCE "https://repo.netdata.cloud/netdatabot.gpg.key")
11
12
set(PACKAGE_VERSION 4)
13
-set(PACKAGE_RELEASE 1)
13
+set(PACKAGE_RELEASE 2)
14
15
set(CPACK_THREADS 0)
16
set(CPACK_STRIP_FILES NO)
@@ -149,6 +149,16 @@ if(${DISTRO} IN_LIST DEB_DISTROS)
149
COMMENT "Dearmor ${CMAKE_BINARY_DIR}/netdatabot.gpg.key"
150
DEPENDS ${CMAKE_BINARY_DIR}/netdata.gpg)
151
152
+ install(FILES ${CMAKE_SOURCE_DIR}/netdata-deb-repo-priority
153
+ DESTINATION etc/apt/preferences.d
154
+ RENAME 80netdata
155
+ COMPONENT netdata-repo)
156
+
157
+ install(FILES ${CMAKE_SOURCE_DIR}/netdata-deb-repo-priority
158
+ DESTINATION etc/apt/preferences.d
159
+ RENAME 80netdata
160
+ COMPONENT netdata-repo-edge)
161
+
162
install(FILES ${CMAKE_BINARY_DIR}/netdata.gpg
163
DESTINATION usr/share/keyrings
164
RENAME netdata-archive-keyring.gpg
packaging/repoconfig/deb.changelog
+6
@@ -1,3 +1,9 @@
1
+@PKG_NAME@ (4-2) unstable; urgency=medium
2
+
3
+ * Add priority configuration for repositories
4
+
5
+ -- Austin Hemmelgarn <austin@netdata.cloud> Mon, 24 Feb 2025 09:42:00 -0500
6
+
7
@PKG_NAME@ (4-1) unstable; urgency=medium
8
9
* Update repositories to new subdomain
packaging/repoconfig/netdata-deb-repo-priority
new
+3
@@ -0,0 +1,3 @@
1
+Package: *
2
+Pin: origin "repository.netdata.cloud"
3
+Priority: 1000
packaging/repoconfig/rpm.changelog
+2
@@ -1,3 +1,5 @@
1
+* Mon Feb 24 2025 Austin Hemmelgarn <austin@netdata.cloud> 4-2
2
+- Version bump to stay in sync with DEB packages.
3
* Thu Oct 31 2024 Austin Hemmelgarn <austin@netdata.cloud> 4-1
4
- Switch repos to new subdomain.
5
* Thu Sep 17 2024 Austin Hemmelgarn <austin@netdata.cloud> 3-5