forked from ports/compat-32
nss-32: initial import
This commit is contained in:
parent
d2e6347f06
commit
1991f8e372
0
nss-32/.32bit
Normal file
0
nss-32/.32bit
Normal file
19
nss-32/.footprint
Normal file
19
nss-32/.footprint
Normal file
@ -0,0 +1,19 @@
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/nss-config-32
|
||||
drwxr-xr-x root/root usr/lib32/
|
||||
-rw-r--r-- root/root usr/lib32/libcrmf.a
|
||||
-rw-r--r-- root/root usr/lib32/libfreebl3.chk
|
||||
-rwxr-xr-x root/root usr/lib32/libfreebl3.so
|
||||
-rwxr-xr-x root/root usr/lib32/libnss3.so
|
||||
-rw-r--r-- root/root usr/lib32/libnssb.a
|
||||
-rwxr-xr-x root/root usr/lib32/libnssckbi.so
|
||||
-rw-r--r-- root/root usr/lib32/libnssckfw.a
|
||||
-rwxr-xr-x root/root usr/lib32/libnssdbm3.so
|
||||
-rwxr-xr-x root/root usr/lib32/libnssutil3.so
|
||||
-rwxr-xr-x root/root usr/lib32/libsmime3.so
|
||||
-rw-r--r-- root/root usr/lib32/libsoftokn3.chk
|
||||
-rwxr-xr-x root/root usr/lib32/libsoftokn3.so
|
||||
-rwxr-xr-x root/root usr/lib32/libssl3.so
|
||||
drwxr-xr-x root/root usr/lib32/pkgconfig/
|
||||
-rw-r--r-- root/root usr/lib32/pkgconfig/nss.pc
|
3
nss-32/.md5sum
Normal file
3
nss-32/.md5sum
Normal file
@ -0,0 +1,3 @@
|
||||
21c3fed84441b2ab4c50ac626f6517e7 nss-3.23.tar.gz
|
||||
17226659298a9d9bb3f323186d220f6f nss-config.in
|
||||
a796e6ab6c87573ffb649ce8769bc07a nss.pc.in
|
61
nss-32/Pkgfile
Normal file
61
nss-32/Pkgfile
Normal file
@ -0,0 +1,61 @@
|
||||
# Description: Mozilla Network Security Services (NSS)
|
||||
# URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS
|
||||
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
||||
# Depends on: nss nspr-32 sqlite3-32
|
||||
|
||||
name=nss-32
|
||||
version=3.23
|
||||
release=1
|
||||
source=(http://ftp.mozilla.org/pub/security/nss/releases/NSS_3_23_RTM/src/nss-$version.tar.gz \
|
||||
nss-config.in nss.pc.in)
|
||||
|
||||
build() {
|
||||
cd nss-$version
|
||||
|
||||
local file
|
||||
|
||||
sed -i nss/coreconf/Linux.mk \
|
||||
-e 's|^CC.*=.*gcc$|#&|' \
|
||||
-e 's|^CCC.*=.*g++$|#&|'
|
||||
|
||||
export NSPR_INCLUDE_DIR=/usr/include/nspr
|
||||
export NSPR_LIB_DIR=/usr/lib32
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSS_ENABLE_ECC=1
|
||||
export BUILD_OPT=1
|
||||
export XCFLAGS="${CFLAGS}"
|
||||
export NSS_DISABLE_GTESTS=1
|
||||
|
||||
make -j1 -C nss all
|
||||
|
||||
install -d $PKG/usr/{bin,lib32/pkgconfig}
|
||||
|
||||
for file in \
|
||||
libnss3.so libssl3.so libsmime3.so libsoftokn3.so \
|
||||
libsoftokn3.chk libnssckbi.so libfreebl3.so libfreebl3.chk \
|
||||
libcrmf.a libnssb.a libnssckfw.a libnssutil3.so libnssdbm3.so
|
||||
do
|
||||
cp -L dist/*.OBJ/lib/$file $PKG/usr/lib32
|
||||
done
|
||||
|
||||
chmod +x $PKG/usr/lib32/*.so
|
||||
|
||||
install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config-32
|
||||
|
||||
_version=$(printf "%i.%i.%i" ${version//./ })
|
||||
sed -i "s/@VERSION@/$_version/" $PKG/usr/bin/nss-config-32
|
||||
|
||||
NSS_LIBS=`$PKG/usr/bin/nss-config-32 --libs`
|
||||
NSS_CFLAGS=`$PKG/usr/bin/nss-config-32 --cflags`
|
||||
NSPR_VERSION=`pkg-config --modversion nspr`
|
||||
sed $SRC/nss.pc.in \
|
||||
-e "s,%libdir%,/usr/lib32," \
|
||||
-e "s,%prefix%,/usr," \
|
||||
-e "s,%exec_prefix%,/usr/bin," \
|
||||
-e "s,%includedir%,/usr/include/nss," \
|
||||
-e "s,%NSS_VERSION%,$version," \
|
||||
-e "s,%NSPR_VERSION%,$NSPR_VERSION," \
|
||||
-e "s,%FULL_NSS_LIBS%,$NSS_LIBS," \
|
||||
-e "s,%FULL_NSS_CFLAGS%,$NSS_CFLAGS," > \
|
||||
$PKG/usr/lib32/pkgconfig/nss.pc
|
||||
}
|
142
nss-32/nss-config.in
Normal file
142
nss-32/nss-config.in
Normal file
@ -0,0 +1,142 @@
|
||||
#!/bin/sh
|
||||
|
||||
prefix=/usr
|
||||
version=@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 $1
|
||||
}
|
||||
|
||||
if test $# -eq 0; then
|
||||
usage 1 1>&2
|
||||
fi
|
||||
|
||||
lib_ssl=yes
|
||||
lib_smime=yes
|
||||
lib_nss=yes
|
||||
lib_nssutil=yes
|
||||
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
||||
*) 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)
|
||||
echo $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 1 1>&2
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# Set variables that may be dependent upon other variables
|
||||
if test -z "$exec_prefix"; then
|
||||
exec_prefix=${prefix}
|
||||
fi
|
||||
if test -z "$includedir"; then
|
||||
includedir=${prefix}/include/nss
|
||||
fi
|
||||
if test -z "$libdir"; then
|
||||
libdir=${exec_prefix}/lib
|
||||
fi
|
||||
|
||||
if test "$echo_prefix" = "yes"; then
|
||||
echo $prefix
|
||||
fi
|
||||
|
||||
if test "$echo_exec_prefix" = "yes"; then
|
||||
echo $exec_prefix
|
||||
fi
|
||||
|
||||
if test "$echo_includedir" = "yes"; then
|
||||
echo $includedir
|
||||
fi
|
||||
|
||||
if test "$echo_libdir" = "yes"; then
|
||||
echo $libdir
|
||||
fi
|
||||
|
||||
if test "$echo_cflags" = "yes"; then
|
||||
echo -I$includedir
|
||||
fi
|
||||
|
||||
if test "$echo_libs" = "yes"; then
|
||||
libdirs="-L$libdir"
|
||||
if test -n "$lib_ssl"; then
|
||||
libdirs="$libdirs -lssl3"
|
||||
fi
|
||||
if test -n "$lib_smime"; then
|
||||
libdirs="$libdirs -lsmime3"
|
||||
fi
|
||||
if test -n "$lib_nss"; then
|
||||
libdirs="$libdirs -lnss3"
|
||||
fi
|
||||
if test -n "$lib_nssutil"; then
|
||||
libdirs="$libdirs -lnssutil3"
|
||||
fi
|
||||
echo $libdirs
|
||||
fi
|
||||
|
11
nss-32/nss.pc.in
Normal file
11
nss-32/nss.pc.in
Normal file
@ -0,0 +1,11 @@
|
||||
prefix=%prefix%
|
||||
exec_prefix=%exec_prefix%
|
||||
libdir=%libdir%
|
||||
includedir=%includedir%
|
||||
|
||||
Name: NSS
|
||||
Description: Network Security Services
|
||||
Version: %NSS_VERSION%
|
||||
Requires: nspr >= %NSPR_VERSION%
|
||||
Libs: %FULL_NSS_LIBS%
|
||||
Cflags: %FULL_NSS_CFLAGS%
|
Loading…
x
Reference in New Issue
Block a user