summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2025-01-28 19:18:57 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2025-01-28 19:48:48 +0100
commit1be756222f2496ef3bac18650e296b21eb8442dc (patch)
tree4fdadd35cb165b6d999ec82b71af8c3a4521a8b3 /vendor
parent0cd9d67da3d9b0fef302afa76093f94ff8d90906 (diff)
Update debian, ubuntu example default sources to best practices
Diffstat (limited to 'vendor')
-rw-r--r--vendor/CMakeLists.txt13
-rw-r--r--vendor/debian/debian.sources.in36
-rw-r--r--vendor/debian/sources.list.in8
-rw-r--r--vendor/ubuntu/sources.list.in10
-rw-r--r--vendor/ubuntu/ubuntu.sources.in44
5 files changed, 90 insertions, 21 deletions
diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt
index 615d282da..987f7bab3 100644
--- a/vendor/CMakeLists.txt
+++ b/vendor/CMakeLists.txt
@@ -12,8 +12,15 @@ endif()
# Handle sources.list example
if (WITH_DOC OR WITH_DOC_EXAMPLES)
-add_vendor_file(OUTPUT sources.list
- INPUT "${CURRENT_VENDOR}/sources.list.in"
+if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${CURRENT_VENDOR}/${CURRENT_VENDOR}.sources.in")
+ set(sources_in "${CURRENT_VENDOR}/${CURRENT_VENDOR}.sources.in")
+ set(sources_out "${CURRENT_VENDOR}.sources")
+else()
+ set(sources_in "${CURRENT_VENDOR}/sources.list.in")
+ set(sources_out "sources.list")
+endif()
+add_vendor_file(OUTPUT ${sources_out}
+ INPUT "${sources_in}"
MODE 644
VARIABLES sourceslist-list-format
debian-stable-codename
@@ -21,7 +28,7 @@ add_vendor_file(OUTPUT sources.list
debian-testing-codename
ubuntu-codename
current-codename)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sources.list
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${sources_out}
DESTINATION ${CMAKE_INSTALL_DOCDIR}/examples)
endif()
diff --git a/vendor/debian/debian.sources.in b/vendor/debian/debian.sources.in
new file mode 100644
index 000000000..c7b8232fe
--- /dev/null
+++ b/vendor/debian/debian.sources.in
@@ -0,0 +1,36 @@
+## Debian distribution repository
+##
+## The following settings can be adjusted to configure which packages to use from Debian.
+## Mirror your choices (except for URIs and Suites) in the security section below to
+## ensure timely security updates.
+##
+## Types: Append deb-src to enable the fetching of source package.
+## URIs: A URL to the repository (you may add multiple URLs)
+## Suites: The following additional suites can be configured
+## <name>-updates - Urgent bug fix updates produced after the final release of the
+## distribution.
+## <name>-backports - software from this repository may not have been tested as
+## extensively as that contained in the main release, although it includes
+## newer versions of some applications which may provide useful features.
+## Also, please note that software in backports WILL NOT receive any review
+## or updates from the Debian security team.
+## Components: Aside from main, the following components can be added to the list
+## contrib - Free software that may require non-free software to run.
+## non-free-firmware - Firmware that is non-free
+## non-free - Software that is not under a free license. There may be restrictions
+## on use or modification.
+##
+## See the sources.list(5) manual page for further settings.
+Types: deb
+URIs: http://deb.debian.org/debian
+Suites: &debian-stable-codename; &debian-stable-codename;-updates
+Components: main contrib non-free non-free-firmware
+Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
+
+## Debian security updates. Aside from URIs and Suites,
+## this should mirror your choices in the previous section.
+Types: deb
+URIs: http://deb.debian.org/debian-security
+Suites: &debian-stable-codename;-security
+Components: main contrib non-free non-free-firmware
+Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
diff --git a/vendor/debian/sources.list.in b/vendor/debian/sources.list.in
deleted file mode 100644
index d006791ef..000000000
--- a/vendor/debian/sources.list.in
+++ /dev/null
@@ -1,8 +0,0 @@
-# See sources.list(5) manpage for more information
-# Remember that CD-ROMs, DVDs and such are managed through the apt-cdrom tool.
-&sourceslist-list-format;
-
-# Uncomment if you want the apt-get source function to work
-#deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian &debian-stable-codename; main contrib non-free
-#deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian &debian-stable-codename;-updates main contrib non-free
-#deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian-security &debian-stable-codename;-security main contrib non-free
diff --git a/vendor/ubuntu/sources.list.in b/vendor/ubuntu/sources.list.in
deleted file mode 100644
index 00db2f8cd..000000000
--- a/vendor/ubuntu/sources.list.in
+++ /dev/null
@@ -1,10 +0,0 @@
-# See sources.list(5) manpage for more information
-# Remember that CD-ROMs, DVDs and such are managed through the apt-cdrom tool.
-deb http://us.archive.ubuntu.com/ubuntu &ubuntu-codename; main restricted
-deb-src http://us.archive.ubuntu.com/ubuntu &ubuntu-codename; main restricted
-
-deb http://security.ubuntu.com/ubuntu &ubuntu-codename;-security main restricted
-deb-src http://security.ubuntu.com/ubuntu &ubuntu-codename;-security main restricted
-
-deb http://us.archive.ubuntu.com/ubuntu &ubuntu-codename;-updates main restricted
-deb-src http://us.archive.ubuntu.com/ubuntu &ubuntu-codename;-updates main restricted
diff --git a/vendor/ubuntu/ubuntu.sources.in b/vendor/ubuntu/ubuntu.sources.in
new file mode 100644
index 000000000..0bf527ea9
--- /dev/null
+++ b/vendor/ubuntu/ubuntu.sources.in
@@ -0,0 +1,44 @@
+# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
+# newer versions of the distribution.
+
+## Ubuntu distribution repository
+##
+## The following settings can be adjusted to configure which packages to use from Ubuntu.
+## Mirror your choices (except for URIs and Suites) in the security section below to
+## ensure timely security updates.
+##
+## Types: Append deb-src to enable the fetching of source package.
+## URIs: A URL to the repository (you may add multiple URLs)
+## Suites: The following additional suites can be configured
+## <name>-updates - Major bug fix updates produced after the final release of the
+## distribution.
+## <name>-backports - software from this repository may not have been tested as
+## extensively as that contained in the main release, although it includes
+## newer versions of some applications which may provide useful features.
+## Also, please note that software in backports WILL NOT receive any review
+## or updates from the Ubuntu security team.
+## Components: Aside from main, the following components can be added to the list
+## restricted - Software that may not be under a free license, or protected by patents.
+## universe - Community maintained packages. Software in this repository receives maintenance
+## from volunteers in the Ubuntu community, or a 10 year security maintenance
+## commitment from Canonical when an Ubuntu Pro subscription is attached.
+## multiverse - Community maintained of restricted. Software from this repository is
+## ENTIRELY UNSUPPORTED by the Ubuntu team, and may not be under a free
+## licence. Please satisfy yourself as to your rights to use the software.
+## Also, please note that software in multiverse WILL NOT receive any
+## review or updates from the Ubuntu security team.
+##
+## See the sources.list(5) manual page for further settings.
+Types: deb
+URIs: http://archive.ubuntu.com/ubuntu/
+Suites: &ubuntu-codename; &ubuntu-codename;-updates &ubuntu-codename;-backports
+Components: main universe restricted multiverse
+Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
+
+## Ubuntu security updates. Aside from URIs and Suites,
+## this should mirror your choices in the previous section.
+Types: deb
+URIs: http://security.ubuntu.com/ubuntu/
+Suites: &ubuntu-codename;-security
+Components: main universe restricted multiverse
+Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg