Skip to content

Commit

Permalink
Merge branch 'ubuntu-24.04' into ROCKS-1262/add-spread-tests-24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro authored Jul 12, 2024
2 parents 1cdc01b + 06b5631 commit a437594
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion slices/ca-certificates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,56 @@ essential:
- ca-certificates_copyright

slices:
# This slice offers a standard chunk of the ca-certificates package.
# It contains the default certificates at /usr/share/ca-certificates/mozilla,
# a certificates bundle at /etc/ssl/certs/ca-certificates.crt and a config
# file at /etc/ca-certificates.conf.
data:
essential:
- ca-certificates_data-no-certs
contents:
# This config file is generated by the deb's maintainer scripts.
/etc/ca-certificates.conf: {text: FIXME, mutable: true}
/usr/share/ca-certificates/mozilla/**:
mutate: |
certs_dir = "/usr/share/ca-certificates/mozilla/"
names = [
"mozilla/{}".format(name) for name in content.list(certs_dir)
]
content.write("/etc/ca-certificates.conf", "\n".join(names))
# This slice only contains the certificates bundle at /etc/ssl/certs/ca-certificates.crt.
# To keep the individual certificates at /usr/share/ca-certificates/mozilla/ or the
# configuration file at /etc/ca-certificates.conf, please use the "data" slice.
# Please note that the mutation script (partially) mimics the deb's maintainer
# scripts to generate the certificates bundle.
data-no-certs:
essential:
# This adds the symlink at `etc/ssl/certs.pem` for OpenSSL to look up the
# bundled certificate file. See `openssl_data` for details.
- openssl_data
contents:
/etc/ssl/certs/ca-certificates.crt: {text: FIXME, mutable: true}
/usr/share/ca-certificates/mozilla/: {until: mutate}
/usr/share/ca-certificates/mozilla/*: {until: mutate}
/usr/share/ca-certificates/mozilla/**: {until: mutate}
mutate: |
certs_dir = "/usr/share/ca-certificates/mozilla/"
certs = [
content.read(certs_dir + path) for path in content.list(certs_dir)
]
content.write("/etc/ssl/certs/ca-certificates.crt", "".join(certs))
bins:
essential:
- openssl_bins
# The `/usr/sbin/update-ca-certificates` script requires sed to run.
- sed_bins
contents:
# To run update-ca-certificates without breaking the default certificates
# at /etc/ssl/certs/ca-certificates.crt, the `_data-with-certs` slice should
# also be included. For details, see the `update-ca-certificates` script.
/usr/sbin/update-ca-certificates:

copyright:
contents:
/usr/share/doc/ca-certificates/copyright:

0 comments on commit a437594

Please sign in to comment.