aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/gnutls/package.az
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-18 22:00:52 +0900
committerOphestra <cat@gensokyo.uk>2026-05-18 22:06:00 +0900
commit594221eb78fede12840121982782a470e6ed29d0 (patch)
tree84142dce80eb59e4b8b0a2babad2777de5c37c85 /internal/rosa/package/gnutls/package.az
parent34822925e18cb35e1815d3837a8b55169953d876 (diff)
internal/rosa/package: migrate gnutls
This is the first nontrivial package to be migrated to azalea. Validated to generate identical IR. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/gnutls/package.az')
-rw-r--r--internal/rosa/package/gnutls/package.az66
1 files changed, 66 insertions, 0 deletions
diff --git a/internal/rosa/package/gnutls/package.az b/internal/rosa/package/gnutls/package.az
new file mode 100644
index 00000000..bdc6d47f
--- /dev/null
+++ b/internal/rosa/package/gnutls/package.az
@@ -0,0 +1,66 @@
+package gnutls {
+ description = "a secure communications library implementing the SSL, TLS and DTLS protocols";
+ website = "https://gnutls.org";
+ anitya = 1221;
+
+ version* = "3.8.12";
+ source = remoteGit {
+ url = "https://gitlab.com/gnutls/gnutls.git";
+ tag = version;
+ checksum = "VPdP-nRydQQRJcnma-YA7CJYA_kzTJ2rb3QFeP6D27emSyInJ8sQ-Wzn518I38dl";
+ };
+ patches = [
+ "bootstrap-remove-gtk-doc.patch",
+ "alpine-tests-certtool.patch",
+ "test-kernel-version-ksh.patch",
+ ];
+
+ exec = make {
+ generate = "./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib";
+
+ configure = {
+ "disable-doc";
+ "disable-openssl-compatibility";
+
+ "with-default-trust-store-file": "/system/etc/ssl/certs/ca-bundle.crt";
+ "with-default-trust-store-pkcs11": "pkcs11:";
+
+ "with-zlib": "link";
+ "with-zstd": "link";
+
+ "": arch {
+ arm64 = "disable-hardware-acceleration";
+ };
+ };
+ };
+
+ inputs = [
+ gzip,
+ automake,
+ libtool,
+ bison,
+ gettext,
+ gperf,
+ pkg-config,
+
+ python,
+ texinfo,
+ diffutils,
+ nss-cacert,
+
+ libev,
+ zlib,
+ zstd,
+ p11-kit,
+ nettle3,
+ libunistring,
+ ];
+
+ runtime = [
+ zlib,
+ zstd,
+ p11-kit,
+ nettle3,
+ libunistring,
+ ];
+}