2006-02-23 16:26:10 +01:00
|
|
|
# Description: Mozilla Network Security Services (NSS)
|
2014-10-28 00:06:15 +01:00
|
|
|
# URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS
|
2013-04-01 17:51:37 +02:00
|
|
|
# Maintainer: Fredrik Rinnestam, fredrik at rinnestam dot se
|
2008-06-24 19:40:48 +02:00
|
|
|
# Depends on: nspr sqlite3
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=nss
|
2018-06-22 22:57:50 +02:00
|
|
|
version=3.38
|
2017-09-14 21:12:42 +02:00
|
|
|
release=1
|
2018-05-24 19:35:26 +02:00
|
|
|
source=(https://ftp.mozilla.org/pub/security/nss/releases/NSS_${version//./_}_RTM/src/$name-$version.tar.gz \
|
2017-06-24 00:38:02 +02:00
|
|
|
nss-config.in nss.pc.in nss-util.pc.in nss-softokn.pc.in)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
2016-06-17 00:05:30 +02:00
|
|
|
cd $name-$version/
|
|
|
|
|
|
|
|
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/lib
|
|
|
|
export NSS_USE_SYSTEM_SQLITE=1
|
|
|
|
export NSS_ENABLE_ECC=1
|
2017-01-24 01:19:16 +01:00
|
|
|
export NSS_ENABLE_TLS_1_3=1
|
2016-06-17 00:05:30 +02:00
|
|
|
export BUILD_OPT=1
|
2016-12-15 22:42:03 +01:00
|
|
|
export XCFLAGS="-Wno-error ${CFLAGS}"
|
2016-06-17 00:05:30 +02:00
|
|
|
export NSS_DISABLE_GTESTS=1
|
|
|
|
export USE_64=1
|
|
|
|
|
|
|
|
make -j1 -C nss
|
|
|
|
|
2017-06-24 00:38:02 +02:00
|
|
|
install -d $PKG/usr/{bin,lib/pkgconfig,include/nss/private}
|
2016-06-17 00:05:30 +02:00
|
|
|
|
|
|
|
cd dist/*.OBJ/bin
|
|
|
|
install -t "$PKG/usr/bin" *util shlibsign signtool signver ssltap
|
|
|
|
cd ../lib
|
|
|
|
install -t "$PKG/usr/lib" *.so
|
2017-06-24 00:38:02 +02:00
|
|
|
install -t "$PKG/usr/lib" -m644 libcrmf.a libfreebl.a *.chk
|
2016-06-17 00:05:30 +02:00
|
|
|
cd ../../public/nss
|
|
|
|
install -t "$PKG/usr/include/nss" -m644 *.h
|
2017-06-24 00:38:02 +02:00
|
|
|
cd ../../private/nss
|
|
|
|
install -t "$PKG/usr/include/nss/private" -m644 blapi.h alghmac.h
|
2016-06-17 00:05:30 +02:00
|
|
|
install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
|
|
|
|
|
|
|
|
_version=$(printf "%i.%i.%i" ${version//./ })
|
|
|
|
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`
|
2017-06-24 00:38:02 +02:00
|
|
|
for module in nss nss-util nss-softokn; do
|
|
|
|
sed $SRC/$module.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/$module.pc
|
|
|
|
done
|
2010-04-10 16:00:19 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|