5 stage go bootstrap, clamav

This commit is contained in:
2026-02-19 15:55:10 +01:00
parent 2f35f407c6
commit e9b5a0084c
13 changed files with 125 additions and 4 deletions

12
packages/clamav.shrap Normal file
View File

@@ -0,0 +1,12 @@
(package
(name "clamav")
(version "1.5.1")
(homepage "https://www.clamav.net/")
(dependencies cmake rust-bin zlib bzip2 libxml2 libpcre2 libjson-c curl libncurses libmilter)
(src (tar
(url "https://www.clamav.net/downloads/production/clamav-1.5.1.tar.gz")
(dir "clamav-1.5.1")
(blake3 "2a4e0eb9e443761d7157a76cdaef573d2741e6b14215be397cefe6f299efaf21")))
(build
(cmake
(configure_flags "-DENABLE_TESTS=OFF"))))

13
packages/go-1.19.shrap Normal file
View File

@@ -0,0 +1,13 @@
(package
(name "go-1.19")
(version "1.19")
(homepage "https://go.dev/")
(dependencies go-1.4)
(src (tar
(url "https://go.dev/dl/go1.19.src.tar.gz")
(dir "go/src")
(blake3 "4eb334d36c9fb17148b17f0a83cde8bc1eb425c0c2c83a7a1c9f4f09ce201b7f")))
(build
(shell "GOROOT_FINAL=/opt/go ./make.bash")
(shell "rm -rf /opt/go || true")
(shell "cd ../.. && mv go /opt/ && ln -sf /opt/go/bin/go /usr/bin/go || true")))

13
packages/go-1.21.shrap Normal file
View File

@@ -0,0 +1,13 @@
(package
(name "go-1.21")
(version "1.21.0")
(homepage "https://go.dev/")
(dependencies go-1.19)
(src (tar
(url "https://go.dev/dl/go1.21.0.src.tar.gz")
(dir "go/src")
(blake3 "b02da235344752481444c021b445840e2859043c2cd9c13026be7ac0bcf69e7e")))
(build
(shell "GOROOT_BOOTSTRAP=/opt/go GOROOT_FINAL=/opt/go ./make.bash")
(shell "rm -rf /opt/go || true")
(shell "cd ../.. && mv go /opt/ && ln -sf /opt/go/bin/go /usr/bin/go || true")))

13
packages/go-1.23.shrap Normal file
View File

@@ -0,0 +1,13 @@
(package
(name "go-1.23")
(version "1.23.0")
(homepage "https://go.dev/")
(dependencies go-1.21)
(src (tar
(url "https://go.dev/dl/go1.23.0.src.tar.gz")
(dir "go/src")
(blake3 "8bfbcfc1a552e949d5562514c2eed8ca65029c3745d92d204d55db87147dc172")))
(build
(shell "GOROOT_BOOTSTRAP=/opt/go GOROOT_FINAL=/opt/go ./make.bash")
(shell "rm -rf /opt/go || true")
(shell "cd ../.. && mv go /opt/ && ln -sf /opt/go/bin/go /usr/bin/go || true")))

12
packages/go-1.4.shrap Normal file
View File

@@ -0,0 +1,12 @@
(package
(name "go-1.4")
(version "1.4-bootstrap-20171003")
(homepage "https://go.dev/")
(src (tar
(url "https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz")
(dir "go/src")
(blake3 "e38b036986f4969980664342af2e0b14c503bf4222b980f2bfdcb32fd62fde14")))
(build
(shell "CGO_ENABLED=0 GOROOT_FINAL=/opt/go ./make.bash")
(shell "rm -rf /opt/go || true")
(shell "cd ../.. && mv go /opt/ && ln -sf /opt/go/bin/go /usr/bin/go || true")))

13
packages/go.shrap Normal file
View File

@@ -0,0 +1,13 @@
(package
(name "go")
(version "1.25.7")
(homepage "https://go.dev/")
(dependencies go-1.23)
(src (tar
(url "https://go.dev/dl/go1.25.7.src.tar.gz")
(dir "go/src")
(blake3 "281e7a2761668766c6cbafbf2937f71fa489e3160eeb6a124d7df367c8226631")))
(build
(shell "GOROOT_BOOTSTRAP=/opt/go GOROOT_FINAL=/opt/go ./make.bash")
(shell "rm -rf /opt/go || true")
(shell "cd ../.. && mv go /opt/ && ln -sf /opt/go/bin/go /usr/bin/go || true")))

View File

@@ -9,5 +9,5 @@
(blake3 "fbcee6fae3d00fd550af865bec1af4d363f5e1feeaf85b60247ca6db1908b10e")))
(build
(cmake)
(shell "ln -sf /usr/lib/x86_64-linux-gnu/libjpeg.a /usr/lib/")
(shell "ln -sf /usr/lib/x86_64-linux-gnu/pkgconfig/libjpeg.pc /usr/lib/pkgconfig/")))
(shell "ln -sf /usr/lib/x86_64-linux-gnu/libjpeg.a /usr/lib/ || true")
(shell "ln -sf /usr/lib/x86_64-linux-gnu/pkgconfig/libjpeg.pc /usr/lib/pkgconfig/ || true")))

12
packages/libjson-c.shrap Normal file
View File

@@ -0,0 +1,12 @@
(package
(name "libjson-c")
(version "0.18")
(homepage "https://github.com/json-c/json-c")
(dependencies cmake)
(src (tar
(url "https://github.com/json-c/json-c/archive/refs/tags/json-c-0.18-20240915.tar.gz")
(dir "json-c-json-c-0.18-20240915")
(blake3 "69e553b048bc4a3f32ad10ff6372a35a8e599142d7634651baa9490461c7beb3")))
(build
(cmake
(configure_flags "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"))))

11
packages/libmilter.shrap Normal file
View File

@@ -0,0 +1,11 @@
(package
(name "libmilter")
(version "8.18.2")
(homepage "https://www.proofpoint.com/us/sendmail-open-source")
(dependencies m4 make)
(src (tar
(url "https://ftp.sendmail.org/sendmail.8.18.2.tar.gz")
(dir "sendmail-8.18.2/libmilter")
(blake3 "74c8212a3c808227860cfb619a1658ca8c9c70f1f168c7a18920672b0661209b")))
(build
(make)))

11
packages/libpcre2.shrap Normal file
View File

@@ -0,0 +1,11 @@
(package
(name "libpcre2")
(version "10.47")
(homepage "https://pcre2project.github.io/pcre2/")
(dependencies make)
(src (tar
(url "https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.47/pcre2-10.47.tar.gz")
(dir "pcre2-10.47")
(blake3 "e80086b5f6da0896be2bb6d0d94ba976a6b21a43fddb831a189d2c8c9747d962")))
(build
(configure_make)))

View File

@@ -9,4 +9,4 @@
(blake3 "c524d73c938e7382d3c12c9cfba16ed32ee092ab21b3e9659a095b5628ea2e88")))
(build
(configure_make)
(shell "ln -sf /usr/bin/pkgconf /usr/bin/pkg-config")))
(shell "ln -sf /usr/bin/pkgconf /usr/bin/pkg-config || true")))

View File

@@ -9,6 +9,6 @@
(blake3 "24c87671a9bf9d1b5543093c1f76b7540bbcfc430217ee1faa34ad3a856d43c3")))
(build
(configure_make)
(shell "ln -sf /usr/bin/python3 /usr/bin/python")
(shell "ln -sf /usr/bin/python3 /usr/bin/python || true")
(shell "python -m ensurepip --upgrade")
(shell "python -m pip install --upgrade setuptools wheel truststore")))

11
packages/rust-bin.shrap Normal file
View File

@@ -0,0 +1,11 @@
(package
(name "rust-bin")
(version "1.93.1")
(homepage "https://rust-lang.org/")
(dependencies xz)
(src (tar
(url "https://static.rust-lang.org/dist/rust-1.93.1-x86_64-unknown-linux-gnu.tar.xz")
(dir "rust-1.93.1-x86_64-unknown-linux-gnu")
(blake3 "1de14a92da1b8a2ddeddef6c744db0b46fc413bc67db6bd20bd6233b79fa2fd9")))
(build
(shell "./install.sh --prefix=/usr")))