summaryrefslogtreecommitdiffstats
path: root/mozilla-nss/build/mozilla-nss.SlackBuild
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2007-05-12 23:53:44 +0000
committer Eric Hameleers <alien@slackware.com>2007-05-12 23:53:44 +0000
commitd64a8f68cef3a938cef6f41a7c85d08e362d6f3e (patch)
tree24c464ccf5a55dbe9299ea26ce899d1e4440202c /mozilla-nss/build/mozilla-nss.SlackBuild
parentb85bd1b29ccfe57439d172f7dbf3396181afe542 (diff)
downloadasb-d64a8f68cef3a938cef6f41a7c85d08e362d6f3e.tar.gz
asb-d64a8f68cef3a938cef6f41a7c85d08e362d6f3e.tar.xz
Added a .pc file, included more include files
Diffstat (limited to 'mozilla-nss/build/mozilla-nss.SlackBuild')
-rwxr-xr-xmozilla-nss/build/mozilla-nss.SlackBuild33
1 files changed, 27 insertions, 6 deletions
diff --git a/mozilla-nss/build/mozilla-nss.SlackBuild b/mozilla-nss/build/mozilla-nss.SlackBuild
index 9180a922..c06ec8cc 100755
--- a/mozilla-nss/build/mozilla-nss.SlackBuild
+++ b/mozilla-nss/build/mozilla-nss.SlackBuild
@@ -15,6 +15,8 @@
# * Initial build.
# 3.9.2-2: 07/Nov/2006 by Eric Hameleers <alien@slackware.com>
# * Rewrote the SlackBuild for Slackware 11.0
+# 3.11.4-1: 12/May/2007 by Eric Hameleers <alien@slackware.com>
+# * Update to NSS 3.11.4 with NSPR 4.6.4
#
# Run 'sh mozilla-nss.SlackBuild --cleanup' to build a Slackware package.
# The package (.tgz) plus descriptive .txt file are created in /tmp .
@@ -27,10 +29,11 @@
PRGNAM=mozilla-nss
SRCNAM=nss
-VERSION=${VERSION:-3.9.2}
+VERSION=${VERSION:-3.11.4}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
+NSPR=4.6.4
UCDIR=$(echo ${SRCNAM}.${VERSION} | tr '.a-z' '_A-Z')
# Where do we look for sources?
@@ -46,8 +49,9 @@ OUTPUT=${OUTPUT:-/tmp}
DOCS="$SRCDIR/faq.html"
# Make sure you edit SRCURL when you change the program's VERSION
-SOURCE="$SRCDIR/${SRCNAM}-${VERSION}.tar.gz"
-SRCURL="http://ftp.mozilla.org/pub/mozilla.org/security/${SRCNAM}/releases/${UCDIR}_RTM/src/${SRCNAM}-${VERSION}.tar.gz"
+SOURCE="$SRCDIR/${SRCNAM}-${VERSION}-with-nspr-${NSPR}.tar.gz"
+#SRCURL="http://ftp.mozilla.org/pub/mozilla.org/security/${SRCNAM}/releases/${UCDIR}_RTM/src/${SRCNAM}-${VERSION}.tar.gz"
+SRCURL="http://ftp.mozilla.org/pub/mozilla.org/security/${SRCNAM}/releases/${UCDIR}_RTM/src/${SRCNAM}-${VERSION}-with-nspr-${NSPR}.tar.gz"
##
## --- with a little luck, you won't have to edit below this point --- ##
@@ -192,11 +196,13 @@ export CFLAGS="$SLKCFLAGS"
# Install all the needed stuff to the package dir
#
( pushd mozilla/dist/$(uname -s)*
- mkdir -p $PKG/usr/{bin,lib,include}
+ mkdir -p $PKG/usr/{bin,lib,include/nss}
cp -pL bin/* $PKG/usr/bin/
cp -pL lib/* $PKG/usr/lib/
- cp -pL include/* $PKG/usr/include/
+ cp -rpL include/* $PKG/usr/include/nss/
+ cp -rpL ../public/nss/*.h $PKG/usr/include/nss/
rm -f $PKG/usr/bin/*.so
+ rm -f $PKG/usr/lib/*.a
popd
pushd mozilla/security/nss/cmd/smimetools
@@ -205,6 +211,21 @@ export CFLAGS="$SLKCFLAGS"
popd
) 2>&1 |tee $OUTPUT/install-${PRGNAM}.log
+# Provide a pkg-config file:
+mkdir -p $PKG/usr/lib/pkgconfig
+cat <<-EOT > $PKG/usr/lib/pkgconfig/$PRGNAM.pc
+ prefix=/usr
+ exec_prefix=\${prefix}
+ libdir=/usr/lib
+ includedir=\${prefix}/include/nss
+
+ Name: NSS
+ Description: Network Security Services
+ Version: $VERSION
+ Libs: -Wl,-rpath-link,/usr/lib -L/usr/lib -lssl3 -lsmime3 -lnss3 -lnspr4
+ Cflags: -I/usr/include/nss
+ EOT
+
# --- DOCUMENTATION ---