nss.guncellendi
This commit is contained in:
parent
d412e925c1
commit
411d0264f0
|
@ -0,0 +1,11 @@
|
||||||
|
prefix=%prefix%
|
||||||
|
exec_prefix=%exec_prefix%
|
||||||
|
libdir=%libdir%
|
||||||
|
includedir=%includedir%
|
||||||
|
|
||||||
|
Name: NSS-SOFTOKN
|
||||||
|
Description: Network Security Services Softoken PKCS #11 Module
|
||||||
|
Version: %NSS_VERSION%
|
||||||
|
Requires: nspr >= %NSPR_VERSION%, nss-util >= %NSSUTIL_VERSION%
|
||||||
|
Libs: -lfreebl3 -lnssdbm3 -lsoftokn3
|
||||||
|
Cflags: -I${includedir}/private
|
|
@ -0,0 +1,11 @@
|
||||||
|
prefix=%prefix%
|
||||||
|
exec_prefix=%exec_prefix%
|
||||||
|
libdir=%libdir%
|
||||||
|
includedir=%includedir%
|
||||||
|
|
||||||
|
Name: NSS-UTIL
|
||||||
|
Description: Network Security Services Utility Library
|
||||||
|
Version: %NSS_VERSION%
|
||||||
|
Requires: nspr >= %NSPR_VERSION%
|
||||||
|
Libs: -L${libdir} -lnssutil3
|
||||||
|
Cflags: -I${includedir}
|
|
@ -4,10 +4,10 @@
|
||||||
# Depends on: nspr sqlite
|
# Depends on: nspr sqlite
|
||||||
|
|
||||||
name=nss
|
name=nss
|
||||||
version=3.30.2
|
version=3.31
|
||||||
release=2
|
release=1
|
||||||
source=(http://ftp.mozilla.org/pub/security/nss/releases/NSS_${version//./_}_RTM/src/$name-$version.tar.gz \
|
source=(http://ftp.mozilla.org/pub/security/nss/releases/NSS_${version//./_}_RTM/src/$name-$version.tar.gz \
|
||||||
nss-config.in nss.pc.in)
|
nss-config.in nss.pc.in nss-util.pc.in nss-softokn.pc.in)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $name-$version/
|
cd $name-$version/
|
||||||
|
@ -28,15 +28,17 @@ build() {
|
||||||
|
|
||||||
make -j1 -C nss
|
make -j1 -C nss
|
||||||
|
|
||||||
install -d $PKG/usr/{bin,lib/pkgconfig,include/nss}
|
install -d $PKG/usr/{bin,lib/pkgconfig,include/nss/private}
|
||||||
|
|
||||||
cd dist/*.OBJ/bin
|
cd dist/*.OBJ/bin
|
||||||
install -t "$PKG/usr/bin" *util shlibsign signtool signver ssltap
|
install -t "$PKG/usr/bin" *util shlibsign signtool signver ssltap
|
||||||
cd ../lib
|
cd ../lib
|
||||||
install -t "$PKG/usr/lib" *.so
|
install -t "$PKG/usr/lib" *.so
|
||||||
install -t "$PKG/usr/lib" -m644 libcrmf.a *.chk
|
install -t "$PKG/usr/lib" -m644 libcrmf.a libfreebl.a *.chk
|
||||||
cd ../../public/nss
|
cd ../../public/nss
|
||||||
install -t "$PKG/usr/include/nss" -m644 *.h
|
install -t "$PKG/usr/include/nss" -m644 *.h
|
||||||
|
cd ../../private/nss
|
||||||
|
install -t "$PKG/usr/include/nss/private" -m644 blapi.h alghmac.h
|
||||||
install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
|
install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
|
||||||
|
|
||||||
_version=$(printf "%i.%i.%i" ${version//./ })
|
_version=$(printf "%i.%i.%i" ${version//./ })
|
||||||
|
@ -45,15 +47,17 @@ build() {
|
||||||
NSS_LIBS=`$PKG/usr/bin/nss-config --libs`
|
NSS_LIBS=`$PKG/usr/bin/nss-config --libs`
|
||||||
NSS_CFLAGS=`$PKG/usr/bin/nss-config --cflags`
|
NSS_CFLAGS=`$PKG/usr/bin/nss-config --cflags`
|
||||||
NSPR_VERSION=`pkg-config --modversion nspr`
|
NSPR_VERSION=`pkg-config --modversion nspr`
|
||||||
sed $SRC/nss.pc.in \
|
for module in nss nss-util nss-softokn; do
|
||||||
-e "s,%libdir%,/usr/lib," \
|
sed $SRC/$module.pc.in \
|
||||||
-e "s,%prefix%,/usr," \
|
-e "s,%libdir%,/usr/lib," \
|
||||||
-e "s,%exec_prefix%,/usr/bin," \
|
-e "s,%prefix%,/usr," \
|
||||||
-e "s,%includedir%,/usr/include/nss," \
|
-e "s,%exec_prefix%,/usr/bin," \
|
||||||
-e "s,%NSS_VERSION%,$version," \
|
-e "s,%includedir%,/usr/include/nss," \
|
||||||
-e "s,%NSPR_VERSION%,$NSPR_VERSION," \
|
-e "s,%NSS_VERSION%,$version," \
|
||||||
-e "s,%FULL_NSS_LIBS%,$NSS_LIBS," \
|
-e "s,%NSPR_VERSION%,$NSPR_VERSION," \
|
||||||
-e "s,%FULL_NSS_CFLAGS%,$NSS_CFLAGS," > \
|
-e "s,%FULL_NSS_LIBS%,$NSS_LIBS," \
|
||||||
$PKG/usr/lib/pkgconfig/nss.pc
|
-e "s,%FULL_NSS_CFLAGS%,$NSS_CFLAGS," > \
|
||||||
|
$PKG/usr/lib/pkgconfig/$module.pc
|
||||||
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue