Commit 3d2b76a
0
plików
+0
dodanych
-0
usuniętych
@@ -0,0 +1,61 @@
1
+pkgname: ca-certificates
2
+pkgver: '20241223'
3
+pkgrel: '1'
4
+pkgdesc: Common CA certificates provided by Mozilla
5
+url: 'https://tracker.debian.org/pkg/ca-certificates'
6
+arch: noarch
7
+license:
8
+- GPL-2.0-or-later
9
+- MPL-2.0
10
+depends:
11
+- bash
12
+- coreutils
13
+- openssl
14
+- python3
15
+makedepends:
16
+- python3
17
+- openssl
18
+source:
19
+- 'https://deb.debian.org/debian/pool/main/c/ca-certificates/ca-certificates_20241223.tar.xz'
20
+sha256sums:
21
+- SKIP
22
+
23
+build: |
24
+ cd ca-certificates*/
25
+ make
26
+
27
+package: |
28
+ cd ca-certificates*/
29
+
30
+ # Przygotowanie struktury katalogów w PKGDIR
31
+ install -d -m0755 "${PKGDIR}"/usr/share/ca-certificates
32
+ install -d -m0755 "${PKGDIR}"/usr/sbin
33
+ install -d -m0755 "${PKGDIR}"/etc/ssl/certs
34
+ install -d -m0755 "${PKGDIR}"/etc/ca-certificates/update.d
35
+
36
+ # Instalacja certyfikatów i skryptów
37
+ make install DESTDIR="${PKGDIR}"
38
+
39
+ # Wygenerowanie domyślnego pliku konfiguracyjnego z listą wszystkich zainstalowanych certyfikatów
40
+ (
41
+ cd "${PKGDIR}"/usr/share/ca-certificates
42
+ find . -name '*.crt' | sed 's/^\.\///' | sort
43
+ ) > "${PKGDIR}"/etc/ca-certificates.conf
44
+
45
+postinstall: |
46
+ # Wyzwalacz regenerujący dowiązania w /etc/ssl/certs po zainstalowaniu pakietu w rootfs
47
+ /usr/sbin/update-ca-certificates --fresh >/dev/null 2>&1 || true
48
+
49
+footprint: |
50
+ etc/
51
+ etc/ca-certificates.conf
52
+ etc/ca-certificates/
53
+ etc/ca-certificates/update.d/
54
+ etc/ssl/
55
+ etc/ssl/certs/
56
+ usr/
57
+ usr/sbin/
58
+ usr/sbin/update-ca-certificates
59
+ usr/share/
60
+ usr/share/ca-certificates/
61
+ usr/share/ca-certificates/mozilla/