diff --git a/base/.buildlist.base b/base/.buildlist.base index e6a5ee1..f9d6ba9 100644 --- a/base/.buildlist.base +++ b/base/.buildlist.base @@ -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 diff --git a/base/argon2/smbuild b/base/argon2/smbuild index 9600668..9a15149 100644 --- a/base/argon2/smbuild +++ b/base/argon2/smbuild @@ -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/ diff --git a/base/mozilla-nss/smbuild b/base/mozilla-nss/smbuild new file mode 100644 index 0000000..6c089a0 --- /dev/null +++ b/base/mozilla-nss/smbuild @@ -0,0 +1,108 @@ +# Maintainer: PktSurf +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 < $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 < $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 +" diff --git a/base/rust/smbuild b/base/rust/smbuild index 7b4a7f9..aeafda9 100644 --- a/base/rust/smbuild +++ b/base/rust/smbuild @@ -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 @@ -89,4 +89,4 @@ f3051a7d67cf7937867d50a3169d391718d1d8a33f69066f08020df45e131076a811e9b9429e4484 c5a94cc3518f3dbefb2011d1c4267530062843262133332cff96db2e779d7f9b57bdab336c50b927b1c84855db4fa1ab8eb62098286746c8dcf50a779ce0202b need-ssp_nonshared.patch 0688d21b59aa47867cf2a307bf997a996f14435a2931cdbbddcfe52c899f00d2676cdc67aeff2c4fbbc220fdb21d8405ec206e96aece93904a6541ba7438f649 no-export-ld-library-path.patch 74c0d14a68c2d7355f15ec3704d387556ad337e4991831e94951906d17aeb60387d20586a63cf6cdc62b46c60e1874340a250196ec2b3e75c268af1c41fae7e9 revert-rustc_codegen_ssa-use-try_canonicalize-in-rpath.patch -" +" \ No newline at end of file