nss: fixed port
This commit is contained in:
parent
fdc6d146e8
commit
1a07543ff4
@ -6,9 +6,11 @@ drwxr-xr-x root/root usr/bin/
|
|||||||
-rwxr-xr-x root/root usr/bin/modutil
|
-rwxr-xr-x root/root usr/bin/modutil
|
||||||
-rwxr-xr-x root/root usr/bin/nss-config
|
-rwxr-xr-x root/root usr/bin/nss-config
|
||||||
-rwxr-xr-x root/root usr/bin/pk12util
|
-rwxr-xr-x root/root usr/bin/pk12util
|
||||||
|
-rwxr-xr-x root/root usr/bin/shlibsign
|
||||||
-rwxr-xr-x root/root usr/bin/signtool
|
-rwxr-xr-x root/root usr/bin/signtool
|
||||||
-rwxr-xr-x root/root usr/bin/signver
|
-rwxr-xr-x root/root usr/bin/signver
|
||||||
-rwxr-xr-x root/root usr/bin/ssltap
|
-rwxr-xr-x root/root usr/bin/ssltap
|
||||||
|
-rwxr-xr-x root/root usr/bin/symkeyutil
|
||||||
drwxr-xr-x root/root usr/include/
|
drwxr-xr-x root/root usr/include/
|
||||||
drwxr-xr-x root/root usr/include/nss/
|
drwxr-xr-x root/root usr/include/nss/
|
||||||
-rw-r--r-- root/root usr/include/nss/base64.h
|
-rw-r--r-- root/root usr/include/nss/base64.h
|
||||||
@ -112,11 +114,13 @@ drwxr-xr-x root/root usr/lib/
|
|||||||
-rw-r--r-- root/root usr/lib/libcrmf.a
|
-rw-r--r-- root/root usr/lib/libcrmf.a
|
||||||
-rw-r--r-- root/root usr/lib/libfreebl3.chk
|
-rw-r--r-- root/root usr/lib/libfreebl3.chk
|
||||||
-rwxr-xr-x root/root usr/lib/libfreebl3.so
|
-rwxr-xr-x root/root usr/lib/libfreebl3.so
|
||||||
|
-rw-r--r-- root/root usr/lib/libfreeblpriv3.chk
|
||||||
|
-rwxr-xr-x root/root usr/lib/libfreeblpriv3.so
|
||||||
-rwxr-xr-x root/root usr/lib/libnss3.so
|
-rwxr-xr-x root/root usr/lib/libnss3.so
|
||||||
-rw-r--r-- root/root usr/lib/libnssb.a
|
|
||||||
-rwxr-xr-x root/root usr/lib/libnssckbi.so
|
-rwxr-xr-x root/root usr/lib/libnssckbi.so
|
||||||
-rw-r--r-- root/root usr/lib/libnssckfw.a
|
-rw-r--r-- root/root usr/lib/libnssdbm3.chk
|
||||||
-rwxr-xr-x root/root usr/lib/libnssdbm3.so
|
-rwxr-xr-x root/root usr/lib/libnssdbm3.so
|
||||||
|
-rwxr-xr-x root/root usr/lib/libnsssysinit.so
|
||||||
-rwxr-xr-x root/root usr/lib/libnssutil3.so
|
-rwxr-xr-x root/root usr/lib/libnssutil3.so
|
||||||
-rwxr-xr-x root/root usr/lib/libsmime3.so
|
-rwxr-xr-x root/root usr/lib/libsmime3.so
|
||||||
-rw-r--r-- root/root usr/lib/libsoftokn3.chk
|
-rw-r--r-- root/root usr/lib/libsoftokn3.chk
|
||||||
|
87
nss/Pkgfile
87
nss/Pkgfile
@ -10,61 +10,50 @@ source=(http://ftp.mozilla.org/pub/security/nss/releases/NSS_3_24_RTM/src/$name-
|
|||||||
nss-config.in nss.pc.in)
|
nss-config.in nss.pc.in)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $name-$version/
|
cd $name-$version/
|
||||||
|
|
||||||
local file
|
sed -i nss/coreconf/Linux.mk \
|
||||||
|
-e 's|^CC.*=.*gcc$|#&|' \
|
||||||
|
-e 's|^CCC.*=.*g++$|#&|'
|
||||||
|
|
||||||
sed -i nss/coreconf/Linux.mk \
|
export NSPR_INCLUDE_DIR=/usr/include/nspr
|
||||||
-e 's|^CC.*=.*gcc$|#&|' \
|
export NSPR_LIB_DIR=/usr/lib
|
||||||
-e 's|^CCC.*=.*g++$|#&|'
|
export NSS_USE_SYSTEM_SQLITE=1
|
||||||
|
export NSS_ENABLE_ECC=1
|
||||||
|
export NSS_ENABLE_TLS_1_3=1
|
||||||
|
export BUILD_OPT=1
|
||||||
|
export XCFLAGS="${CFLAGS}"
|
||||||
|
export NSS_DISABLE_GTESTS=1
|
||||||
|
export USE_64=1
|
||||||
|
|
||||||
export NSPR_INCLUDE_DIR=/usr/include/nspr
|
make -j1 -C nss
|
||||||
export NSPR_LIB_DIR=/usr/lib
|
|
||||||
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 USE_64=1 -C nss all
|
install -d $PKG/usr/{bin,lib/pkgconfig,include/nss}
|
||||||
|
|
||||||
install -d $PKG/usr/{bin,lib/pkgconfig,include/nss}
|
cd dist/*.OBJ/bin
|
||||||
|
install -t "$PKG/usr/bin" *util shlibsign signtool signver ssltap
|
||||||
|
cd ../lib
|
||||||
|
install -t "$PKG/usr/lib" *.so
|
||||||
|
install -t "$PKG/usr/lib" -m644 libcrmf.a *.chk
|
||||||
|
cd ../../public/nss
|
||||||
|
install -t "$PKG/usr/include/nss" -m644 *.h
|
||||||
|
install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
|
||||||
|
|
||||||
for file in \
|
_version=$(printf "%i.%i.%i" ${version//./ })
|
||||||
libnss3.so libssl3.so libsmime3.so libsoftokn3.so \
|
sed -i "s/@VERSION@/$_version/" $PKG/usr/bin/nss-config
|
||||||
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/lib
|
|
||||||
done
|
|
||||||
|
|
||||||
chmod +x $PKG/usr/lib/*.so
|
NSS_LIBS=`$PKG/usr/bin/nss-config --libs`
|
||||||
|
NSS_CFLAGS=`$PKG/usr/bin/nss-config --cflags`
|
||||||
for file in \
|
NSPR_VERSION=`pkg-config --modversion nspr`
|
||||||
certutil cmsutil crlutil modutil pk12util signtool signver ssltap
|
sed $SRC/nss.pc.in \
|
||||||
do
|
-e "s,%libdir%,/usr/lib," \
|
||||||
cp -L dist/*.OBJ/bin/$file $PKG/usr/bin
|
-e "s,%prefix%,/usr," \
|
||||||
done
|
-e "s,%exec_prefix%,/usr/bin," \
|
||||||
|
-e "s,%includedir%,/usr/include/nss," \
|
||||||
cp -L dist/public/nss/*.h $PKG/usr/include/nss
|
-e "s,%NSS_VERSION%,$version," \
|
||||||
|
-e "s,%NSPR_VERSION%,$NSPR_VERSION," \
|
||||||
install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
|
-e "s,%FULL_NSS_LIBS%,$NSS_LIBS," \
|
||||||
|
-e "s,%FULL_NSS_CFLAGS%,$NSS_CFLAGS," > \
|
||||||
_version=$(printf "%i.%i.%i" ${version//./ })
|
$PKG/usr/lib/pkgconfig/nss.pc
|
||||||
sed -i "s/@VERSION@/$_version/" $PKG/usr/bin/nss-config
|
|
||||||
|
|
||||||
NSS_LIBS=`$PKG/usr/bin/nss-config --libs`
|
|
||||||
NSS_CFLAGS=`$PKG/usr/bin/nss-config --cflags`
|
|
||||||
NSPR_VERSION=`pkg-config --modversion nspr`
|
|
||||||
sed $SRC/nss.pc.in \
|
|
||||||
-e "s,%libdir%,/usr/lib," \
|
|
||||||
-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/lib/pkgconfig/nss.pc
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user