mirror of
https://codeberg.org/kiss-community/repo
synced 2025-03-24 14:54:46 -06:00
nss: remove from repositories, nspr: remove from repositories.
This commit is contained in:
parent
fc83dc1956
commit
f6dd2075d0
@ -1,23 +0,0 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
export CFLAGS="$CFLAGS -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO -D_PR_INET6_PROBE"
|
||||
|
||||
cd nspr
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib \
|
||||
--includedir=/usr/include/nspr \
|
||||
--enable-optimize \
|
||||
--enable-ipv6 \
|
||||
--enable-64bit
|
||||
|
||||
make
|
||||
make DESTDIR="$1" install
|
||||
|
||||
install -Dm755 config/nspr-config "$1/usr/bin/nspr-config"
|
||||
install -Dm644 config/nspr.pc "$1/usr/lib/pkgconfig/nspr.pc"
|
||||
rm -rf "$1/usr/bin/prerr.properties" \
|
||||
"$1/usr/bin/compile-et.pl" \
|
||||
"$1/usr/share/aclocal/nspr.m4" \
|
||||
"$1/usr/include/nspr/md"
|
@ -1 +0,0 @@
|
||||
15ea32c7b100217b6e3193bc03e77f485d9bf7504051443ba9ce86d1c17c6b5a nspr-4.21.tar.gz
|
@ -1 +0,0 @@
|
||||
https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.21/src/nspr-4.21.tar.gz
|
@ -1 +0,0 @@
|
||||
4.21 1
|
@ -1,53 +0,0 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
export BUILD_OPT=1
|
||||
export NSPR_INCLUDE_DIR=/usr/include/nspr
|
||||
export NSS_ENABLE_WERROR=0
|
||||
export USE_64=1
|
||||
|
||||
make -j 1 -C nss/coreconf
|
||||
make -j 1 -C nss/lib/dbm
|
||||
make -j 1 -C nss
|
||||
|
||||
mkdir -p "$1/usr/lib/pkgconfig" "$1/usr/bin" "$1/usr/include/nss"
|
||||
|
||||
NSS_VMAJOR="$(awk '/#define.*NSS_VMAJOR/ {print $3}' nss/lib/nss/nss.h)"
|
||||
NSS_VMINOR="$(awk '/#define.*NSS_VMINOR/ {print $3}' nss/lib/nss/nss.h)"
|
||||
NSS_VPATCH="$(awk '/#define.*NSS_VPATCH/ {print $3}' nss/lib/nss/nss.h)"
|
||||
|
||||
read -r NSPR_VER _ < /var/db/kiss/installed/nspr/version
|
||||
|
||||
sed nss.pc.in \
|
||||
-e "s,%libdir%,/usr/lib,g" \
|
||||
-e "s,%prefix%,/usr,g" \
|
||||
-e "s,%exec_prefix%,/usr/bin,g" \
|
||||
-e "s,%includedir%,/usr/include/nss,g" \
|
||||
-e "s,%NSPR_VERSION%,${NSPR_VER},g" \
|
||||
-e "s,%NSS_VERSION%,3.45,g" > \
|
||||
"$1/usr/lib/pkgconfig/nss.pc"
|
||||
ln -sf nss.pc "$1/usr/lib/pkgconfig/mozilla-nss.pc"
|
||||
chmod 644 "$1"/usr/lib/pkgconfig/*.pc
|
||||
|
||||
sed nss-config.in \
|
||||
-e "s,@libdir@,/usr/lib,g" \
|
||||
-e "s,@prefix@,/usr/bin,g" \
|
||||
-e "s,@exec_prefix@,/usr/bin,g" \
|
||||
-e "s,@includedir@,/usr/include/nss,g" \
|
||||
-e "s,@MOD_MAJOR_VERSION@,${NSS_VMAJOR},g" \
|
||||
-e "s,@MOD_MINOR_VERSION@,${NSS_VMINOR},g" \
|
||||
-e "s,@MOD_PATCH_VERSION@,${NSS_VPATCH},g" \
|
||||
> "$1/usr/bin/nss-config"
|
||||
chmod 755 "$1/usr/bin/nss-config"
|
||||
|
||||
for f in libsoftokn3.so libfreebl3.so libnss3.so libnssutil3.so \
|
||||
libssl3.so libsmime3.so libnssckbi.so libnssdbm3.so; do
|
||||
install -m755 dist/*.OBJ/lib/"$f" "$1/usr/lib"
|
||||
done
|
||||
install -m644 dist/*OBJ/lib/libcrmf.a "$1/usr/lib"
|
||||
|
||||
for f in certutil cmsutil crlutil modutil pk12util shlibsign \
|
||||
signtool signver ssltap; do
|
||||
install -m755 dist/*.OBJ/bin/"$f" "$1/usr/bin"
|
||||
done
|
||||
|
||||
install -m644 dist/public/nss/*.h "$1/usr/include/nss"
|
@ -1,3 +0,0 @@
|
||||
112f05223d1fde902c170966bfc6f011b24a838be16969b110ecf2bb7bc24e8b nss-3.45.tar.gz
|
||||
f2208c4f70373ff9b60f53d733f8071d4e390c384b776dfc04bf26c306882faf nss.pc.in
|
||||
24b983f534f90e3b64494915214ec448b027d4fd93c7516c68d1c6c50aa3c20b nss-config.in
|
@ -1,2 +0,0 @@
|
||||
perl make
|
||||
nspr
|
@ -1,139 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
prefix=@prefix@
|
||||
|
||||
major_version=@MOD_MAJOR_VERSION@
|
||||
minor_version=@MOD_MINOR_VERSION@
|
||||
patch_version=@MOD_PATCH_VERSION@
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
Usage: nss-config [OPTIONS] [LIBRARIES]
|
||||
Options:
|
||||
[--prefix[=DIR]]
|
||||
[--exec-prefix[=DIR]]
|
||||
[--includedir[=DIR]]
|
||||
[--libdir[=DIR]]
|
||||
[--version]
|
||||
[--libs]
|
||||
[--cflags]
|
||||
Dynamic Libraries:
|
||||
nss
|
||||
nssutil
|
||||
ssl
|
||||
smime
|
||||
EOF
|
||||
exit
|
||||
}
|
||||
|
||||
[ $# = 0 ] && usage
|
||||
|
||||
lib_ssl=yes
|
||||
lib_smime=yes
|
||||
lib_nss=yes
|
||||
lib_nssutil=yes
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
-*=*) optarg=${1##*=} ;;
|
||||
*) optarg= ;;
|
||||
esac
|
||||
|
||||
case $1 in
|
||||
--prefix=*)
|
||||
prefix=$optarg
|
||||
;;
|
||||
|
||||
--prefix)
|
||||
echo_prefix=yes
|
||||
;;
|
||||
|
||||
--exec-prefix=*)
|
||||
exec_prefix=$optarg
|
||||
;;
|
||||
|
||||
--exec-prefix)
|
||||
echo_exec_prefix=yes
|
||||
;;
|
||||
|
||||
--includedir=*)
|
||||
includedir=$optarg
|
||||
;;
|
||||
|
||||
--includedir)
|
||||
echo_includedir=yes
|
||||
;;
|
||||
|
||||
--libdir=*)
|
||||
libdir=$optarg
|
||||
;;
|
||||
|
||||
--libdir)
|
||||
echo_libdir=yes
|
||||
;;
|
||||
|
||||
--version)
|
||||
printf '%s\n' "${major_version}.${minor_version}.${patch_version}"
|
||||
;;
|
||||
|
||||
--cflags)
|
||||
echo_cflags=yes
|
||||
;;
|
||||
|
||||
--libs)
|
||||
echo_libs=yes
|
||||
;;
|
||||
|
||||
ssl)
|
||||
lib_ssl=yes
|
||||
;;
|
||||
|
||||
smime)
|
||||
lib_smime=yes
|
||||
;;
|
||||
|
||||
nss)
|
||||
lib_nss=yes
|
||||
;;
|
||||
|
||||
nssutil)
|
||||
lib_nssutil=yes
|
||||
;;
|
||||
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# Set variables that may be dependent upon other variables
|
||||
[ "$exec_prefix" ] || exec_prefix=$(pkg-config --variable=exec_prefix nss)
|
||||
[ "$includedir" ] || includedir=$(pkg-config --variable=includedir nss)
|
||||
[ "$libdir" ] || libdir=$(pkg-config --variable=libdir nss)
|
||||
|
||||
[ "$echo_prefix" = yes ] &&
|
||||
printf '%s\n' "$prefix"
|
||||
|
||||
[ "$echo_exec_prefix" = yes ] &&
|
||||
printf '%s\n' "$exec_prefix"
|
||||
|
||||
[ "$echo_includedir" = yes ] &&
|
||||
printf '%s\n' "$includedir"
|
||||
|
||||
[ "$echo_libdir" = yes ] &&
|
||||
printf '%s\n' "$libdir"
|
||||
|
||||
[ "$echo_cflags" = yes ] &&
|
||||
printf '%s\n' "-I$includedir"
|
||||
|
||||
[ "$echo_libs" = yes ] && {
|
||||
libdirs="-Wl,-rpath-link,$libdir -L$libdir"
|
||||
|
||||
[ "$lib_ssl" ] && libdirs="$libdirs -lssl$major_version"
|
||||
[ "$lib_smime" ] && libdirs="$libdirs -lsmime$major_version"
|
||||
[ "$lib_nss" ] && libdirs="$libdirs -lnss$major_version"
|
||||
[ "$lib_nssutil" ] && libdirs="$libdirs -lnssutil$major_version"
|
||||
|
||||
printf '%s\n' "$libdirs"
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
prefix=%prefix%
|
||||
exec_prefix=%exec_prefix%
|
||||
libdir=%libdir%
|
||||
includedir=%includedir%
|
||||
|
||||
Name: NSS
|
||||
Description: Network Security Services
|
||||
Version: %NSS_VERSION%
|
||||
Requires: nspr >= %NSPR_VERSION%
|
||||
Libs: -L${libdir} -lssl3 -lsmime3 -lnss3 -lnssutil3
|
||||
Cflags: -I${includedir}
|
@ -1,3 +0,0 @@
|
||||
https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_45_RTM/src/nss-3.45.tar.gz
|
||||
files/nss.pc.in
|
||||
files/nss-config.in
|
@ -1 +0,0 @@
|
||||
3.45 1
|
Loading…
Reference in New Issue
Block a user