Added /usr prefix to base/argon2

Repacked rust toolchain and source in lzip file format
Added mozilla-nss to base
Updated base section build list
This commit is contained in:
PktSurf 2024-11-05 13:11:47 +05:30
parent 506c5912cd
commit e10666c40c
4 changed files with 116 additions and 6 deletions

View file

@ -15,6 +15,7 @@ pkgconf
make
m4
ccache
musl
musl-fts
musl-obstack
libsodium
@ -129,13 +130,13 @@ gptfdisk
gmp
mpfr
mpc
gcc
libcroco
libexif
fribidi
lzo
libidn2
libpsl
libnl
libmnl
libnfnetlink
libtasn1
@ -299,6 +300,7 @@ rust
cbindgen
libplist
nodejs
mozilla-nss
fmt
argon2
qrencode

View file

@ -17,8 +17,8 @@ prepbuilddir() {
}
build() {
make OPTTARGET="none" LIBRARY_REL="lib" PREFIX=
make OPTTARGET="none" LIBRARY_REL="lib" PREFIX= install DESTDIR=$pkg
make OPTTARGET="none" LIBRARY_REL="lib" PREFIX=/usr
make OPTTARGET="none" LIBRARY_REL="lib" PREFIX=/usr install DESTDIR=$pkg
cp LICENSE $pkgdocs/

108
base/mozilla-nss/smbuild Normal file
View file

@ -0,0 +1,108 @@
# Maintainer: PktSurf <smlinux@pktsurf.in>
app=mozilla-nss
version=3.106
nsprversion=4.36
build=1sml
homepage="https://mozilla.org"
desc="set of cryptographic libraries from Mozilla for use in security-focused applications"
requires="gyp"
NJOBS="(echo $MAKEFLAGS | sed 's/-j//')"
prepbuilddir() {
mkandenterbuilddir
rm -rf nss-$version
rm -rf nspr-*
tar xf $srcdir/nss-$version.tar.?z*
cd nss-$version
tar xf $srcdir/nspr-$nsprversion.tar.?z*
mv nspr*/nspr .
fixbuilddirpermissions
}
build() {
# Disable Werror
export NSS_ENABLE_WERROR=0
# Disable deprecated ciphers
export NSS_DISABLE_DEPRECATED_SEED=1
export NSS_DISABLE_DEPRECATED_RC2=1
cd nss
./build.sh -v -j 4 --opt --system-sqlite --enable-libpkix --disable-tests
cd -
# Install all the needed stuff to the package directory
mkdir -p $pkg/usr/{bin,lib,include/{nss,nspr}}
cd dist/Release
cp -pL bin/{certutil,cmsutil,crlutil,modutil,pk12util,shlibsign,signtool,signver,ssltap} $pkg/usr/bin/
cp -pL lib/*.{so,a} $pkg/usr/lib/
chmod 755 $pkg/usr/lib/*.so*
cp -rL include/* $pkg/usr/include/
cp -rpL ../public/nss/*.h $pkg/usr/include/nss/
cd -
cd nss/cmd/smimetools
install -m 755 smime $pkg/usr/bin/smime
sed -i -e 's#/usr/local/bin#/bin#g' $pkg/usr/bin/smime
cd -
# Install nspr-config
cat nspr/Release/config/nspr-config | sed -e "s,^prefix=.*$,prefix=,g" > $pkg/usr/bin/nspr-config
chmod 755 $pkg/usr/bin/nspr-config
# Install nss-config
sed -e "s,@prefix@,,g" \
-e "s,@MOD_MAJOR_VERSION@,$(printf $version | cut -d. -f1),g" \
-e "s,@MOD_MAJOR_VERSION@,$(printf $version | cut -d. -f2),g" \
-e "s,@MOD_MAJOR_VERSION@,$(printf $version | cut -d. -f3),g" \
$srcdir/nss-config.in > $pkg/usr/bin/nss-config
chmod 755 $pkg/usr/bin/nss-config
# Provide pkg-config files
mkdir -p $pkg/usr/lib/pkgconfig
cat <<EOT > $pkg/usr/lib/pkgconfig/mozilla-nss.pc
prefix=/usr
exec_prefix=\${prefix}
libdir=\${prefix}/lib
includedir=\${prefix}/include/nss
Name: NSS
Description: Network Security Services
Version: $version
Requires: nspr >= $nsprversion sqlite3
Libs: -L\${libdir} -lnss3 -lsmime3 -lssl3 -lsoftokn3 -lnssutil3
Cflags: -I\${includedir}
EOT
cat <<EOT > $pkg/usr/lib/pkgconfig/mozilla-nspr.pc
prefix=/usr
exec_prefix=\${prefix}
libdir=\${prefix}/lib
includedir=\${prefix}/include/nspr
Name: NSPR
Description: The Netscape Portable Runtime
Version: $nsprversion
Libs: -L\${libdir} -lplds4 -lplc4 -lnspr4
Cflags: -I\${includedir}
EOT
# Create pkgconfig symlinks
(
cd $pkg/usr/lib/pkgconfig
ln -s mozilla-nspr.pc nspr.pc
ln -s mozilla-nss.pc nss.pc
)
cp -a $srcdir/{MPL-1.1.txt,gpl-2.0.txt,lgpl-2.1.txt} $pkgdocs/
mkfinalpkg
}
sha512sums="
f19fa9c343df1530f7fe9266b28f1bd71f9b477da76381a58f024f34ecd7210adaa5e4c33314b4d315092d683f6c37b7f4d105b151b66947618157e829bf3f02 nspr-4.36.tar.lz
d687b1d52c50c56fb42a712913ea4f862b1cc547a47da6f05b3a499f2048bcac71442e3c848775a63d2ca403367629619bcdc49c9a1c9ecbfc09d55c0fe17781 nss-3.106.tar.lz
"

View file

@ -79,8 +79,8 @@ build() {
}
sha512sums="
02e5c2a67f5470f3320b04e7c4f0a6f5dbd361d5a97aee7e5860d04224683166b21375794c94ae040a2cc6fc119380be9d3465b8c5e1798abd4142d621cf9f99 rust-1.79.0-x86_64-unknown-linux-musl.tar.xz
99d7f276292e5c270648473ff73e9888413a3325ef3a4d7a45f8ce77a42ac87996905f1d875888ce084b621f642017bc9e31a00da1439108dbe19b85d0eab085 rustc-1.79.0-src.tar.xz
d7751c9a6cd55fcec75249d725fffd9d010bce1d80fd141afbeb8d01e080efdc2c1dfc8bc84f5df41e02dcb109e23dce11f8e7e5f701d4bc988ea879c6b06942 rust-1.79.0-x86_64-unknown-linux-musl.tar.lz
83e6bfc1874f70f6b228e606ef1c02e0feb933c206e4b270f3c35f33eb26052037a4eb842850f574890bce8250ed5b3cfaa00c0b7f3aa055616f47509f893b03 rustc-1.79.0-src.tar.lz
9de9d7ad05584e3cafddedcac409a4605a1d67e82260220deb3efd965603ee3148062b081c0cd736e50d82daad3a723fb6a7493fdf4dddfe36288645425a7946 alpine-move-py-scripts-to-share.patch
0d9e5ee4ebf647d3c44dc59b8991d330f2eb0cfa788768c5c9c5f5b57327c3a46b26e93641753a32335d0e3e76a0ab95bb6ad8279913b0c76c752624b139c5c1 do-not-install-libunwind-source.patch
cfdb3499fa6b3dea5ff7d3fd266ab0e34571fd48fa17c5e0f1467b8896087979555209dd256c50d357fdca1859feade9bf4c8f7b5cf003a16891350d0a34d00b gcc-eh-libunwind.patch