mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
ports: gnutls,libtasn1,libunistring,nettle,p11kit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
name=gnutls
|
||||
revision=1
|
||||
from_source=gnutls
|
||||
imagedeps="build-essential automake-1.16 autoconf"
|
||||
hostdeps="xgcc xbinutils libtool pkgconfig libstdc++-v3"
|
||||
deps="base nettle make-ca libunistring libtasn1 p11-kit zlib zstd"
|
||||
|
||||
configure() {
|
||||
cp -rp ${source_dir}/* .
|
||||
./configure --prefix=${prefix} --host=x86_64-astral --docdir=${prefix}/share/doc/gnutls-3.8.10 --with-default-trust-store-pkcs11="pkcs11:" --disable-static --enable-shared
|
||||
}
|
||||
|
||||
build() {
|
||||
make -j ${parallelism}
|
||||
}
|
||||
|
||||
package() {
|
||||
make install DESTDIR=${dest_dir}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
name=libtasn1
|
||||
revision=1
|
||||
from_source=libtasn1
|
||||
imagedeps="build-essential"
|
||||
hostdeps="xgcc xbinutils libtool pkgconfig"
|
||||
deps="base"
|
||||
|
||||
configure() {
|
||||
cp -rp ${source_dir}/* .
|
||||
./configure --prefix=${prefix} --host=x86_64-astral --disable-static --disable-doc
|
||||
}
|
||||
|
||||
build() {
|
||||
make -j ${parallelism}
|
||||
}
|
||||
|
||||
package() {
|
||||
make install DESTDIR=${dest_dir}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
name=libunistring
|
||||
revision=1
|
||||
from_source=libunistring
|
||||
imagedeps="build-essential"
|
||||
hostdeps="xgcc xbinutils libtool pkgconfig"
|
||||
deps="base"
|
||||
|
||||
configure() {
|
||||
${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --disable-static --docdir=/usr/share/doc/libunistring-1.3
|
||||
}
|
||||
|
||||
build() {
|
||||
make -j ${parallelism}
|
||||
}
|
||||
|
||||
package() {
|
||||
make install DESTDIR=${dest_dir}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
name=nettle
|
||||
revision=1
|
||||
from_source=nettle
|
||||
imagedeps="build-essential"
|
||||
hostdeps="xgcc xbinutils libstdc++-v3 libtool pkgconfig"
|
||||
deps="base gmp"
|
||||
|
||||
configure() {
|
||||
${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --disable-static
|
||||
}
|
||||
|
||||
build() {
|
||||
make -j ${parallelism}
|
||||
}
|
||||
|
||||
package() {
|
||||
make install DESTDIR=${dest_dir}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
name=p11-kit
|
||||
revision=1
|
||||
from_source=p11-kit
|
||||
imagedeps="build-essential"
|
||||
hostdeps="xgcc xbinutils libtool pkgconfig"
|
||||
deps="base libtasn1 make-ca"
|
||||
|
||||
configure() {
|
||||
cp -rp ${source_dir}/* .
|
||||
|
||||
sed '20,$ d' -i trust/trust-extract-compat && \
|
||||
cat >> trust/trust-extract-compat << "EOF"
|
||||
# Copy existing anchor modifications to /etc/ssl/local
|
||||
/usr/libexec/make-ca/copy-trust-modifications
|
||||
|
||||
# Update trust stores
|
||||
/usr/sbin/make-ca -r
|
||||
EOF
|
||||
|
||||
mkdir buildp11
|
||||
cd buildp11
|
||||
|
||||
meson setup --cross-file ${base_dir}/util/crossfile --prefix=${prefix} --buildtype=release -Dtrust_paths=/etc/pki/anchors ${source_dir}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd buildp11
|
||||
ninja
|
||||
}
|
||||
|
||||
package() {
|
||||
cd buildp11
|
||||
DESTDIR=${dest_dir} ninja install
|
||||
ln -sfv ../libexec/p11-kit/trust-extract-compat ${dest_dir}/usr/bin/update-ca-certificates
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
name=gnutls
|
||||
version=3.8.10
|
||||
source_method=tarball
|
||||
tarball_url="https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-${version}.tar.xz"
|
||||
tarball_sha512="d453bd4527af95cb3905ce8753ceafd969e3f442ad1d148544a233ebf13285b999930553a805a0511293cc25390bb6a040260df5544a7c55019640f920ad3d92"
|
||||
imagedeps="autoconf automake gtk-doc-tools"
|
||||
hostdeps="libtool pkgconfig automake"
|
||||
prepare() {
|
||||
autoreconf -fvi
|
||||
cp -v $(find /usr/local/share/automake* -name config.sub) build-aux
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
name=libtasn1
|
||||
version=4.20.0
|
||||
source_method=tarball
|
||||
tarball_url=https://ftp.gnu.org/gnu/libtasn1/libtasn1-${version}.tar.gz
|
||||
tarball_sha512="0c0660085f5e80537aa3d65197967029be6cc5e27d7029789713902989c1694fdb49421ae0415b79b953e11893bb4bdaada85f7aff847dd0bb4075c91887e7b4"
|
||||
hostdeps="automake autoconf libtool pkgconfig"
|
||||
prepare() {
|
||||
autoreconf -fvi
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
name=libunistring
|
||||
version=1.3
|
||||
source_method=tarball
|
||||
tarball_url=https://ftp.gnu.org/gnu/libunistring/libunistring-${version}.tar.xz
|
||||
tarball_sha512="864d42b1d4ae4941fe5c8327d6726ab8e3a35d2d5f9d25ce4859a72ab2f549a7b68f58638cf8767d863f58161d1a4053495d185860964a942d6750e42facf931"
|
||||
hostdeps="automake autoconf libtool pkgconfig"
|
||||
prepare() {
|
||||
autoreconf -fvi
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
name=nettle
|
||||
version=3.10.2
|
||||
source_method=tarball
|
||||
tarball_url=""https://ftp.gnu.org/gnu/nettle/nettle-${version}.tar.gz
|
||||
tarball_sha512="bf37ddd7dca8e78488da2a5286dcf16761d527d620572b42f2ad27bb8ee8c12999d92b0272e06f53766e7155a3f4a1ab7ad9c4b1c3caec47c031878b6b1772fb"
|
||||
hostdeps="automake autoconf libtool pkgconfig"
|
||||
prepare() {
|
||||
cp -v $(find /usr/local/share/automake* -name config.sub) .
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
name=p11-kit
|
||||
version=0.25.5
|
||||
source_method=tarball
|
||||
tarball_url=https://github.com/p11-glue/p11-kit/releases/download/${version}/p11-kit-${version}.tar.xz
|
||||
tarball_sha512="177ec6ff5eb891901078306dce2bf3f5c1a0e5c2a8c493bdf5a08ae1ff1240fdf6952961e973c373f80ac3d1d5a9927e07f4da49e4ff92269d992e744889fc94"
|
||||
Reference in New Issue
Block a user