Skip to content

Commit

Permalink
feat(20.04): add 'copyright' slice to all SDFs (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro authored May 3, 2024
1 parent a14b514 commit 9d74558
Show file tree
Hide file tree
Showing 60 changed files with 423 additions and 0 deletions.
7 changes: 7 additions & 0 deletions slices/base-files.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: base-files

essential:
- base-files_copyright

slices:
base:
essential:
Expand Down Expand Up @@ -59,3 +62,7 @@ slices:
/etc/lsb-release:
/etc/os-release:
/usr/lib/os-release:

copyright:
contents:
/usr/share/doc/base-files/copyright:
7 changes: 7 additions & 0 deletions slices/base-passwd.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: base-passwd

essential:
- base-passwd_copyright

slices:
data:
contents:
Expand All @@ -12,3 +15,7 @@ slices:
content.write("/etc/group", gr)
pw = content.read("/usr/share/base-passwd/passwd.master")
content.write("/etc/passwd", pw)
copyright:
contents:
/usr/share/doc/base-passwd/copyright:
7 changes: 7 additions & 0 deletions slices/bash.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: bash

essential:
- bash_copyright

slices:
config:
contents:
Expand All @@ -19,3 +22,7 @@ slices:
/bin/rbash:
/usr/bin/bashbug:
/usr/bin/clear_console:

copyright:
contents:
/usr/share/doc/bash/copyright:
7 changes: 7 additions & 0 deletions slices/busybox.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package: busybox

essential:
- busybox_copyright

slices:
bins:
essential:
- libc6_libs
contents:
/bin/busybox:

copyright:
contents:
/usr/share/doc/busybox/copyright:
7 changes: 7 additions & 0 deletions slices/ca-certificates-java.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: ca-certificates-java

essential:
- ca-certificates-java_copyright

slices:
data:
essential:
Expand All @@ -10,3 +13,7 @@ slices:
/etc/ssl/certs/java/:
# we need to run `keytool` in postinst, but we can't yet do
# this from a mutation script

copyright:
contents:
/usr/share/doc/ca-certificates-java/copyright:
7 changes: 7 additions & 0 deletions slices/ca-certificates.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: ca-certificates

essential:
- ca-certificates_copyright

slices:
data:
contents:
Expand All @@ -12,3 +15,7 @@ slices:
content.read(certs_dir + path) for path in content.list(certs_dir)
]
content.write("/etc/ssl/certs/ca-certificates.crt", "".join(certs))
copyright:
contents:
/usr/share/doc/ca-certificates/copyright:
7 changes: 7 additions & 0 deletions slices/coreutils.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: coreutils

essential:
- coreutils_copyright

slices:
libs:
essential:
Expand Down Expand Up @@ -120,3 +123,7 @@ slices:
/usr/bin/whoami:
/usr/bin/yes:
/usr/sbin/chroot:

copyright:
contents:
/usr/share/doc/coreutils/copyright:
7 changes: 7 additions & 0 deletions slices/dash.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
package: dash

essential:
- dash_copyright

slices:
bins:
essential:
- libc6_libs
contents:
/bin/dash:
/bin/sh:

copyright:
contents:
/usr/share/doc/dash/copyright:
7 changes: 7 additions & 0 deletions slices/fontconfig-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: fontconfig-config

essential:
- fontconfig-config_copyright

slices:
config:
essential:
Expand Down Expand Up @@ -65,3 +68,7 @@ slices:
/etc/fonts/conf.d/90-synthetic.conf:
/etc/fonts/fonts.conf:
/usr/share/xml/fontconfig/fonts.dtd:

copyright:
contents:
/usr/share/doc/fontconfig-config/copyright:
7 changes: 7 additions & 0 deletions slices/fonts-dejavu-core.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: fonts-dejavu-core

essential:
- fonts-dejavu-core_copyright

slices:
fonts:
contents:
Expand Down Expand Up @@ -36,3 +39,7 @@ slices:
/etc/fonts/conf.d/58-dejavu-lgc-sans-mono.conf:
/etc/fonts/conf.d/58-dejavu-lgc-sans.conf:
/etc/fonts/conf.d/58-dejavu-lgc-serif.conf:

copyright:
contents:
/usr/share/doc/fonts-dejavu-core/copyright:
7 changes: 7 additions & 0 deletions slices/hello.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package: hello

essential:
- hello_copyright

slices:
bins:
essential:
- libc6_libs
contents:
/usr/bin/hello:

copyright:
contents:
/usr/share/doc/hello/copyright:
7 changes: 7 additions & 0 deletions slices/libacl1.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package: libacl1

essential:
- libacl1_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libacl.so.1*:

copyright:
contents:
/usr/share/doc/libacl1/copyright:
7 changes: 7 additions & 0 deletions slices/libapr1.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
package: libapr1

essential:
- libapr1_copyright

slices:
libs:
essential:
- libc6_libs
- libuuid1_libs
contents:
/usr/lib/*-linux-*/libapr-1.so.0*:

copyright:
contents:
/usr/share/doc/libapr1/copyright:
7 changes: 7 additions & 0 deletions slices/libattr1.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: libattr1

essential:
- libattr1_copyright

slices:
config:
contents:
Expand All @@ -11,3 +14,7 @@ slices:
- libc6_libs
contents:
/usr/lib/*-linux-*/libattr.so.1*:

copyright:
contents:
/usr/share/doc/libattr1/copyright:
7 changes: 7 additions & 0 deletions slices/libblkid1.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package: libblkid1

essential:
- libblkid1_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/lib/*-linux-*/libblkid.so.1*:

copyright:
contents:
/usr/share/doc/libblkid1/copyright:
7 changes: 7 additions & 0 deletions slices/libbrotli1.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: libbrotli1

essential:
- libbrotli1_copyright

slices:
libs:
essential:
Expand All @@ -8,3 +11,7 @@ slices:
/usr/lib/*-linux-*/libbrotlicommon.so.1*:
/usr/lib/*-linux-*/libbrotlidec.so.1*:
/usr/lib/*-linux-*/libbrotlienc.so.1*:

copyright:
contents:
/usr/share/doc/libbrotli1/copyright:
7 changes: 7 additions & 0 deletions slices/libbz2-1.0.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package: libbz2-1.0

essential:
- libbz2-1.0_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/lib/*-linux-*/libbz2.so.1*:

copyright:
contents:
/usr/share/doc/libbz2-1.0/copyright:
7 changes: 7 additions & 0 deletions slices/libc-bin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: libc-bin

essential:
- libc-bin_copyright

slices:
nsswitch:
contents:
Expand All @@ -19,3 +22,7 @@ slices:
/usr/lib/locale/C.UTF-8/LC_PAPER:
/usr/lib/locale/C.UTF-8/LC_TELEPHONE:
/usr/lib/locale/C.UTF-8/LC_TIME:

copyright:
contents:
/usr/share/doc/libc-bin/copyright:
7 changes: 7 additions & 0 deletions slices/libc6.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package: libc6

essential:
- libc6_copyright

slices:
config:
contents:
Expand Down Expand Up @@ -49,3 +52,7 @@ slices:
/lib/*-linux-*/libthread_db-*.*.so:
/lib/*-linux-*/libutil-*.*.so:
/lib/*-linux-*/libutil.so.*:

copyright:
contents:
/usr/share/doc/libc6/copyright:
7 changes: 7 additions & 0 deletions slices/libcom-err2.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package: libcom-err2

essential:
- libcom-err2_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/lib/*-linux-*/libcom_err.so.*:

copyright:
contents:
/usr/share/doc/libcom-err2/copyright:
7 changes: 7 additions & 0 deletions slices/libcrypt1.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package: libcrypt1

essential:
- libcrypt1_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/lib/*-linux-*/libcrypt.so.*:

copyright:
contents:
/usr/share/doc/libcrypt1/copyright:
7 changes: 7 additions & 0 deletions slices/libdb5.3.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package: libdb5.3

essential:
- libdb5.3_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libdb-5.3.so:

copyright:
contents:
/usr/share/doc/libdb5.3/copyright:
7 changes: 7 additions & 0 deletions slices/libexpat1.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
package: libexpat1

essential:
- libexpat1_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/lib/*-linux-*/libexpat.so.1*:
/usr/lib/*-linux-*/libexpatw.so.1*:

copyright:
contents:
/usr/share/doc/libexpat1/copyright:
7 changes: 7 additions & 0 deletions slices/libffi7.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package: libffi7

essential:
- libffi7_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libffi.so.7*:

copyright:
contents:
/usr/share/doc/libffi7/copyright:
Loading

0 comments on commit 9d74558

Please sign in to comment.