mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 06:58: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
|
||||
}
|
||||
Reference in New Issue
Block a user