From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- .../nss/nss-3.14.3-buildsupportfiles.patch.xz | Bin 0 -> 1128 bytes libs_security/nss/nss-3.14.3-extracerts.patch.xz | Bin 0 -> 7300 bytes .../nss-3.14.3-sslrenegotiatetransitional.patch.xz | Bin 0 -> 500 bytes libs_security/nss/nss.build | 117 +++++++++++++++++++++ 4 files changed, 117 insertions(+) create mode 100644 libs_security/nss/nss-3.14.3-buildsupportfiles.patch.xz create mode 100644 libs_security/nss/nss-3.14.3-extracerts.patch.xz create mode 100644 libs_security/nss/nss-3.14.3-sslrenegotiatetransitional.patch.xz create mode 100755 libs_security/nss/nss.build (limited to 'libs_security/nss') diff --git a/libs_security/nss/nss-3.14.3-buildsupportfiles.patch.xz b/libs_security/nss/nss-3.14.3-buildsupportfiles.patch.xz new file mode 100644 index 0000000..5c0a4fb Binary files /dev/null and b/libs_security/nss/nss-3.14.3-buildsupportfiles.patch.xz differ diff --git a/libs_security/nss/nss-3.14.3-extracerts.patch.xz b/libs_security/nss/nss-3.14.3-extracerts.patch.xz new file mode 100644 index 0000000..ae0afd2 Binary files /dev/null and b/libs_security/nss/nss-3.14.3-extracerts.patch.xz differ diff --git a/libs_security/nss/nss-3.14.3-sslrenegotiatetransitional.patch.xz b/libs_security/nss/nss-3.14.3-sslrenegotiatetransitional.patch.xz new file mode 100644 index 0000000..bdbbe26 Binary files /dev/null and b/libs_security/nss/nss-3.14.3-sslrenegotiatetransitional.patch.xz differ diff --git a/libs_security/nss/nss.build b/libs_security/nss/nss.build new file mode 100755 index 0000000..3a2f21e --- /dev/null +++ b/libs_security/nss/nss.build @@ -0,0 +1,117 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate + +source /usr/src/ports/Build/build.sh + +NAME=nss +VERSION=3.14.3 +NSPRVER=4.9.6 +BUILD=1 +DEPENDS=('libnspr >= 4.9.6-1' 'sqlite >= 3.7.16.1-1') +OPTIONS="nostrip" + +# Description + +cat > ${PKG}/install/slack-desc < ${PKG}${SYS_DIR[share]}/pkgconfig/nss.pc +( + cd ${PKG}${SYS_DIR[share]}/pkgconfig + ln -sf nss.pc mozilla-nss.pc +) +VERSFILE="mozilla/security/nss/lib/nss/nss.h" +LIBMAJOR="$(grep "#define.*NSS_VMAJOR" ${VERSFILE} | awk '{print $3}')" +LIBMINOR="$(grep "#define.*NSS_VMINOR" ${VERSFILE} | awk '{print $3}')" +LIBPATCH="$(grep "#define.*NSS_VPATCH" ${VERSFILE} | awk '{print $3}')" +sed nss-config.in \ + -e "s|@prefix@|${SYS_DIR[usr]}|g" \ + -e "s|@MOD_MAJOR_VERSION@|${LIBMAJOR}|g" \ + -e "s|@MOD_MINOR_VERSION@|${LIBMINOR}|g" \ + -e "s|@MOD_PATCH_VERSION@|${LIBPATCH}|g" \ + > ${PKG}${SYS_DIR[bin]}/nss-config +chmod 0755 ${PKG}${SYS_DIR[bin]}/nss-config +strip ${PKG}${SYS_DIR[bin]}/* +( + cd ${PKG}${SYS_DIR[lib]} + install.dir nostrip + for file in *.chk; do + library="${file%.chk}.so" + mv ${library} nostrip + done + strip --strip-unneeded ${PKG}${SYS_DIR[lib]}/*.so* + mv nostrip/*.so . + rm -rf nostrip +) +} -- cgit v1.2.3-70-g09d2