milis/talimatname/genel/nss/talimat

36 lines
1.3 KiB
Plaintext
Raw Normal View History

2017-04-05 14:15:44 +02:00
# Description: Güvenlik özellikli istemci ve sunucu uygulamalarının çapraz platform geliştirmesi desteği
2016-02-24 01:27:23 +01:00
# URL: http://www.mozilla.org
2016-07-24 04:40:37 +02:00
# Packager: alihan-ozturk28@hotmail.com
2016-02-24 01:27:23 +01:00
# Depends on: nspr sqlite
name=nss
2016-07-22 00:14:18 +02:00
version=3.25
2016-07-22 08:46:07 +02:00
release=1
2016-02-24 01:27:23 +01:00
source=( http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_${version//./_}_RTM/src/nss-$version.tar.gz \
2016-03-14 17:11:40 +01:00
http://www.linuxfromscratch.org/patches/downloads/nss/nss-$version-standalone-1.patch )
2016-02-24 01:27:23 +01:00
build () {
cd $name-$version
patch -Np1 -i ../nss-$version-standalone-1.patch
cd nss
# Compilation
make -j1 nss_build_all BUILD_OPT=1 \
NSPR_INCLUDE_DIR=/usr/include/nspr \
USE_SYSTEM_ZLIB=1 \
ZLIB_LIBS=-lz \
$([ $(uname -m) = x86_64 ] && echo USE_64=1) \
$([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1)
# Installation
mkdir -p $PKG/usr/{bin,lib{,/pkgconfig},include}
cd ../dist
install -v -m755 Linux*/lib/*.so $PKG/usr/lib
install -v -m644 Linux*/lib/{*.chk,libcrmf.a} $PKG/usr/lib
install -v -m755 -d $PKG/usr/include/nss
cp -v -RL {public,private}/nss/* $PKG/usr/include/nss
chmod 644 $PKG/usr/include/nss/*
install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} $PKG/usr/bin
install -v -m644 Linux*/lib/pkgconfig/nss.pc $PKG/usr/lib/pkgconfig
}