2009-10-12 22:56:40 +00:00
|
|
|
# Template file for 'nss'
|
|
|
|
pkgname=nss
|
2011-08-24 07:08:16 +00:00
|
|
|
version=3.12.11
|
2011-10-08 11:00:22 +00:00
|
|
|
revision=1
|
2011-01-16 00:01:13 +00:00
|
|
|
_distver=$(echo $version|sed -e "s|\.|_|g")
|
|
|
|
distfiles="${MOZILLA_SITE}/security/nss/releases/NSS_${_distver}_RTM/src/${pkgname}-${version}.tar.gz"
|
2009-10-12 22:56:40 +00:00
|
|
|
build_style=custom-install
|
|
|
|
short_desc="Mozilla Network Security Services"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-28 11:39:42 +00:00
|
|
|
homepage="http://www.mozilla.org/projects/security/pki/nss/"
|
|
|
|
license="GPL-2, MPL-1.1"
|
2011-08-24 07:08:16 +00:00
|
|
|
checksum=d043f8d44212bc9418b6a954ca88e05b8ab2a71f8c59e6829a9a36d8a28e9f16
|
2009-10-12 22:56:40 +00:00
|
|
|
long_desc="
|
|
|
|
Network Security Services (NSS) is a set of libraries designed to support
|
|
|
|
cross-platform development of security-enabled server applications.
|
2011-07-13 23:21:02 +00:00
|
|
|
Applications built with NSS can support SSL v2 and v3, TLS, PKCS 5,
|
|
|
|
PKCS 7, PKCS 11, PKCS 12, S/MIME, X.509 v3 certificates, and other
|
2009-10-12 22:56:40 +00:00
|
|
|
security standards."
|
|
|
|
|
2009-11-22 07:31:44 +00:00
|
|
|
subpackages="$pkgname-devel"
|
2009-10-12 22:56:40 +00:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run zlib
|
2009-12-21 18:11:22 +00:00
|
|
|
Add_dependency run nspr
|
2010-01-11 15:37:42 +00:00
|
|
|
Add_dependency run sqlite
|
2011-07-02 19:22:08 +00:00
|
|
|
Add_dependency build perl ">=0"
|
2009-12-21 18:11:22 +00:00
|
|
|
Add_dependency build zlib-devel
|
|
|
|
Add_dependency build nspr-devel
|
|
|
|
Add_dependency build sqlite-devel
|
2009-10-12 22:56:40 +00:00
|
|
|
|
2010-01-16 02:38:39 +00:00
|
|
|
do_build()
|
2009-10-12 22:56:40 +00:00
|
|
|
{
|
|
|
|
if [ "$xbps_machine" = "x86_64" ]; then
|
|
|
|
_use64="USE_64=1"
|
|
|
|
fi
|
|
|
|
for dir in coreconf dbm nss; do
|
|
|
|
make -C mozilla/security/${dir} \
|
|
|
|
LIBRUNPATH= BUILD_OPT=1 \
|
|
|
|
NSS_USE_SYSTEM_SQLITE=1 \
|
|
|
|
NSPR_INCLUDE_DIR=/usr/include/nspr \
|
2011-01-16 00:01:13 +00:00
|
|
|
NSPR_LIB_DIR=/usr/lib ${_use64}
|
2009-10-12 22:56:40 +00:00
|
|
|
done
|
2010-01-16 02:38:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
install -d ${DESTDIR}/usr/include/nss \
|
|
|
|
${DESTDIR}/usr/lib/pkgconfig
|
2009-12-21 18:11:22 +00:00
|
|
|
install -m644 mozilla/dist/public/nss/*.h \
|
2011-01-16 00:01:13 +00:00
|
|
|
${DESTDIR}/usr/include/nss
|
2009-12-21 18:11:22 +00:00
|
|
|
install -m755 mozilla/dist/*.OBJ/lib/*.so \
|
2011-01-16 00:01:13 +00:00
|
|
|
${DESTDIR}/usr/lib
|
2009-12-21 21:48:38 +00:00
|
|
|
for f in libcrmf.a libnssb.a libnssckfw.a; do
|
|
|
|
install -m644 mozilla/dist/*.OBJ/lib/${f} \
|
2011-01-16 00:01:13 +00:00
|
|
|
${DESTDIR}/usr/lib
|
2009-12-21 21:48:38 +00:00
|
|
|
done
|
2009-10-12 22:56:40 +00:00
|
|
|
|
2009-12-21 21:48:38 +00:00
|
|
|
( \
|
|
|
|
echo "prefix=/usr"; \
|
|
|
|
echo "exec_prefix=/usr/bin"; \
|
|
|
|
echo "libdir=/usr/lib"; \
|
|
|
|
echo "includedir=/usr/include/nss"; \
|
|
|
|
echo; \
|
|
|
|
echo "Name: NSS"; \
|
2009-10-12 22:56:40 +00:00
|
|
|
echo "Description: Mozilla Network Security Services"; \
|
|
|
|
echo "Version: ${version}"; \
|
2009-12-21 21:48:38 +00:00
|
|
|
echo "Requires: nspr >= ${version}"; \
|
2010-10-24 17:02:51 +00:00
|
|
|
echo "Cflags: -I/usr/include/nss"; \
|
2011-10-08 11:00:22 +00:00
|
|
|
echo "Libs: -lnss3 -lsmime3 -lssl3 -lnssutil3"; \
|
2009-10-12 22:56:40 +00:00
|
|
|
) >${DESTDIR}/usr/lib/pkgconfig/nss.pc
|
2011-01-16 00:01:13 +00:00
|
|
|
chmod 644 ${DESTDIR}/usr/lib/pkgconfig/nss.pc
|
|
|
|
cd ${DESTDIR}/usr/lib/pkgconfig && ln -s nss.pc mozilla-nss.pc
|
2009-12-21 21:48:38 +00:00
|
|
|
|
2011-01-16 00:01:13 +00:00
|
|
|
cd ${wrksrc}
|
|
|
|
mkdir -p ${DESTDIR}/usr/bin
|
2009-12-21 21:48:38 +00:00
|
|
|
|
|
|
|
NSS_VMAJOR=$(grep "#define.*NSS_VMAJOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}')
|
|
|
|
NSS_VMINOR=$(grep "#define.*NSS_VMINOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}')
|
|
|
|
NSS_VPATCH=$(grep "#define.*NSS_VPATCH" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}')
|
|
|
|
sed "${FILESDIR}/nss-config.in" \
|
|
|
|
-e "s,@MOD_MAJOR_VERSION@,${NSS_VMAJOR},g" \
|
|
|
|
-e "s,@MOD_MINOR_VERSION@,${NSS_VMINOR},g" \
|
|
|
|
-e "s,@MOD_PATCH_VERSION@,${NSS_VPATCH},g" \
|
2011-01-16 00:01:13 +00:00
|
|
|
> "${DESTDIR}/usr/bin/nss-config"
|
|
|
|
chmod 755 "${DESTDIR}/usr/bin/nss-config"
|
2009-10-12 22:56:40 +00:00
|
|
|
}
|