diff --git a/actions.py b/actions.py deleted file mode 100644 --- a/actions.py +++ /dev/null @@ -1,51 +0,0 @@ - -#!/usr/bin/python - - -from pisi.actionsapi import shelltools, get, autotools, pisitools - -BuildDir = "nss" -InstallDir = "dist" - -WorkDir="%s-%s/" % (get.srcNAME().replace("lib",""), get.srcVERSION()) - -def build(): - if get.buildTYPE() == "emul32": - shelltools.export("CC", "gcc -m32") - shelltools.export("CXX", "g++ -m32") - else: - shelltools.export ("USE_64", "1") - - shelltools.cd (BuildDir) - shelltools.export ("BUILD_OPT", "1") - shelltools.export ("NSPR_INCLUDE_DIR", "/usr/include/nspr") - shelltools.export ("USE_SYSTEM_ZLIB", "1") - shelltools.export ("NSS_USE_SYSTEM_SQLITE", "1") - - autotools.make ("nss_build_all -j1") - -def install(): - libdir = "/usr/lib" - if get.buildTYPE() != "emul32": - for binary in ["certutil", "modutil", "pk12util", "signtool", "ssltap", "nss-config"]: - pisitools.insinto("/usr/bin","dist/Linux*/bin/%s" % binary, sym=False) - - # Headers - for header in ["dist/private/nss/*.h","dist/public/nss/*.h"]: - pisitools.insinto("/usr/include/nss", header, sym=False) - - # Drop executable bits from headers - shelltools.chmod("%s/usr/include/nss/*.h" % get.installDIR(), mode=0644) - else: - libdir = "/usr/lib32" - - for lib in ["*.a","*.chk","*.so"]: - pisitools.insinto("%s/nss" % libdir,"dist/Linux*/lib/%s" % lib, sym=False) - - # Install nss-config and nss.pc - pisitools.insinto("%s/pkgconfig" % libdir, "dist/Linux*/lib/pkgconfig/nss.pc", sym=False) - - for lib in ["libcrmf.a", "libfreebl3.so", "libnssutil3.so", "libnss3.so", "libsmime3.so", "libnssckbi.so", \ - "libsoftokn3.so", "libnssdbm3.so", "libssl3.so", "libnsssysinit.so"]: - pisitools.dosym ("%s/nss/%s" % (libdir, lib), "%s/%s" % (libdir, lib)) - diff --git a/component.xml b/component.xml deleted file mode 100644 --- a/component.xml +++ /dev/null @@ -1,4 +0,0 @@ - - system.base - - diff --git a/files/nss-3.33-standalone-1.patch b/files/nss-3.34.1-standalone-1.patch rename from files/nss-3.33-standalone-1.patch rename to files/nss-3.34.1-standalone-1.patch diff --git a/package.yml b/package.yml new file mode 100644 --- /dev/null +++ b/package.yml @@ -0,0 +1,67 @@ +name : libnss +version : 3.34.1 +release : 21 +source : + - https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_34_1_RTM/src/nss-3.34.1.tar.gz : a3c15d367caf784f33d96dbafbdffc16a8e42fb8c8aedfce97bf92a9f918dda0 +license : + - GPL-2.0 + - LGPL-2.1 + - MPL-2.0 +component : system.base +emul32 : yes +libsplit : no +summary : Network Security Services +description: | + The Network Security Services (NSS) package is a set of libraries designed to support cross-platform development of security-enabled client and server applications. 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 security standards. This is useful for implementing SSL and S/MIME or other Internet security standards into an application. +builddeps : + - pkgconfig32(nspr) + - pkgconfig32(sqlite3) + - pkgconfig32(zlib) +patterns : + - 32bit-devel: + - /usr/lib32/nss/lib*.a + - /usr/lib32/*.a + - devel: + - /usr/lib64/nss/lib*.a + - /usr/lib64/*.a +setup : | + %patch -p1 < $pkgfiles/nss-3.34.1-standalone-1.patch +build : | + export BUILD_OPT=1 + export NSPR_INCLUDE_DIR="/usr/include/nspr" + export USE_SYSTEM_ZLIB=1 + export NSS_USE_SYSTEM_SQLITE=1 + + if [[ -z "${EMUL32BUILD}" ]]; then + export USE_64=1 + fi + + pushd nss + make nss_build_all -j1 + popd +install : | + if [[ -z "${EMUL32BUILD}" ]]; then + mkdir -p $installdir/usr/bin + for f in certutil modutil pk12util signtool ssltap nss-config; do + install -m00755 dist/Linux*/bin/${f} $installdir/usr/bin + done + fi + + # Headers + install -d -m00755 $installdir/usr/include/nss + for f in dist/public/nss/*.h dist/private/nss/*.h; do + install -m00644 ${f} $installdir/usr/include/nss + done + + install -d -m00755 $installdir/%libdir%/nss + for f in *.a *.chk *.so; do + install dist/Linux*/lib/${f} $installdir/%libdir%/nss + done + + # Install nss.pc + install -D -m00644 dist/Linux*/lib/pkgconfig/nss.pc $installdir/%libdir%/pkgconfig/nss.pc + + for f in libcrmf.a libfreebl3.so libnssutil3.so libnss3.so libsmime3.so libnssckbi.so \ + libsoftokn3.so libnssdbm3.so libssl3.so libnsssysinit.so; do + ln -s %libdir%/nss/${f} $installdir/%libdir%/${f} + done diff --git a/pspec.xml b/pspec.xml deleted file mode 100644 --- a/pspec.xml +++ /dev/null @@ -1,253 +0,0 @@ - - - - - libnss - http://www.mozilla.org/projects/security/pki/nss/ - - Ikey Doherty - ikey@evolve-os.com - - Network Security Services - The Network Security Services (NSS) package is a set of libraries designed to support cross-platform development of security-enabled client and server applications. 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 security standards. This is useful for implementing SSL and S/MIME or other Internet security standards into an application. - GPLv2+ - https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_34_RTM/src/nss-3.34.tar.gz - - - nss-3.33-standalone-1.patch - - - nspr - nspr - sqlite3 - sqlite3 - zlib - glibc-32bit-devel - libgcc-32bit - libstdc++-32bit - - - - - libnss - system.base - - /usr/bin - /usr/lib/nss/lib*.so* - /usr/lib/*.so* - /usr/lib/nss/*.chk - - - - - libnss-32bit - 32-bit files for libnss - 32-bit files for libnss - emul32 - emul32 - - /usr/lib32/nss/lib*.so* - /usr/lib32/*.so* - /usr/lib32/nss/*.chk - - - libnss - - - - - libnss-devel - programming.library - Development files for libnss - Development files for libnss - - /usr/lib/nss/lib*.a - /usr/lib/*.a - /usr/include - /usr/lib/pkgconfig - - - libnss - - - - - libnss-32bit-devel - programming.library - emul32 - 32-bit Development files for libnss - 32b-bit Development files for libnss - - /usr/lib32/nss/lib*.a - /usr/lib32/*.a - /usr/lib32/pkgconfig - - - libnss-32bit - libnss-devel - - - - - - 11-14-2017 - 3.34 - Update to 3.34 - Ikey Doherty - ikey@solus-project.com - - - - 09-28-2017 - 3.33 - Update to 3.33 - Pierre-Yves - pyu@riseup.net - - - - 06-14-2017 - 3.31 - Update to 3.31 - Ikey Doherty - ikey@solus-project.com - - - - 04-22-2017 - 3.30.2 - Update to 3.30.2 - Ikey Doherty - ikey@solus-project.com - - - - 04-13-2017 - 3.30.1 - Update to 3.30.1 - Ikey Doherty - ikey@solus-project.com - - - - 03-10-2017 - 3.28.3 - Update to 3.28.3 - Joshua Strobl - joshua@stroblindustries.com - - - - 01-28-2017 - 3.28.1 - Update to 3.28.1 - Ikey Doherty - ikey@solus-project.com - - - - 10-20-2016 - 3.27.1 - Update to 3.27.1 - Ikey Doherty - ikey@solus-project.com - - - - 10-11-2016 - 3.16.2.1 - Package bump - Ikey Doherty - ikey@solus-project.com - - - - 06-04-2016 - 3.16.2.1 - Package bump - Ikey Doherty - ikey@solus-project.com - - - - 10-18-2014 - 3.16.2.1 - CVE-2014-1568: -Mozilla Network Security Services (NSS) before 3.16.2.1, 3.16.x before 3.16.5, and 3.17.x before 3.17.1, as used in Mozilla Firefox before 32.0.3, Mozilla Firefox ESR 24.x before 24.8.1 and 31.x before 31.1.1, Mozilla Thunderbird before 24.8.1 and 31.x before 31.1.2, Mozilla SeaMonkey before 2.29.1, Google Chrome before 37.0.2062.124 on Windows and OS X, and Google Chrome OS before 37.0.2062.120, does not properly parse ASN.1 values in X.509 certificates, which makes it easier for remote attackers to spoof RSA signatures via a crafted certificate, aka a "signature malleability" issue. - Ikey Doherty - ikey@evolve-os.com - - - - 09-19-2014 - 3.16.2 - Update to enable Netflix - Ikey Doherty - ikey.doherty@gmail.com - - - - 07-22-2014 - 3.16.1 - Fix ridiculous error with symlink - Ikey Doherty - ikey.doherty@gmail.com - - - - 07-05-2014 - 3.16.1 - Fix splitting, update to 3.16.1 for Firefox - Ikey Doherty - ikey.doherty@gmail.com - - - - 03-23-2014 - 3.14.3 - Explicitly enable 64-bit - Ikey Doherty - ikey.doherty@gmail.com - - - - 05-25-2013 - 3.14.3 - Correct dependencies - Ikey Doherty - ikey@solusos.com - - - - 04-22-2013 - 3.14.3 - Fix dependency for libnss-devel - Ikey Doherty - ikey@solusos.com - - - - 03-19-2013 - 3.14.3 - Add compat symlinks in /usr/lib - Ikey Doherty - ikey@solusos.com - - - - 03-19-2013 - 3.14.3 - Split -devel package - Ikey Doherty - ikey@solusos.com - - - - 03-19-2013 - 3.14.3 - Add libnss to repositories - Ikey Doherty - ikey@solusos.com - - - diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml new file mode 100644 --- /dev/null +++ b/pspec_x86_64.xml @@ -0,0 +1,99 @@ + + + libnss + + Pierre-Yves + pyu@riseup.net + + GPL-2.0 + LGPL-2.1 + MPL-2.0 + system.base + Network Security Services + The Network Security Services (NSS) package is a set of libraries designed to support cross-platform development of security-enabled client and server applications. 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 security standards. This is useful for implementing SSL and S/MIME or other Internet security standards into an application. + + https://solus-project.com/sources/README.Solus + + + libnss + Network Security Services + The Network Security Services (NSS) package is a set of libraries designed to support cross-platform development of security-enabled client and server applications. 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 security standards. This is useful for implementing SSL and S/MIME or other Internet security standards into an application. + + system.base + + /usr/bin + /usr/lib64/lib*.so + /usr/lib64/nss/libfreebl3.chk + /usr/lib64/nss/libfreebl3.so + /usr/lib64/nss/libfreeblpriv3.chk + /usr/lib64/nss/libfreeblpriv3.so + /usr/lib64/nss/libgtest1.so + /usr/lib64/nss/libgtestutil.so + /usr/lib64/nss/libnss3.so + /usr/lib64/nss/libnssckbi.so + /usr/lib64/nss/libnssdbm3.chk + /usr/lib64/nss/libnssdbm3.so + /usr/lib64/nss/libnsssysinit.so + /usr/lib64/nss/libnssutil3.so + /usr/lib64/nss/libsmime3.so + /usr/lib64/nss/libsoftokn3.chk + /usr/lib64/nss/libsoftokn3.so + /usr/lib64/nss/libssl3.so + + + + libnss-32bit + 32-bit libraries for libnss + The Network Security Services (NSS) package is a set of libraries designed to support cross-platform development of security-enabled client and server applications. 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 security standards. This is useful for implementing SSL and S/MIME or other Internet security standards into an application. + + emul32 + + libnss + + + /usr/lib32/ + /usr/lib32/lib*.so + + + + libnss-32bit-devel + Development files for 32-bit libnss + The Network Security Services (NSS) package is a set of libraries designed to support cross-platform development of security-enabled client and server applications. 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 security standards. This is useful for implementing SSL and S/MIME or other Internet security standards into an application. + + programming.devel + + libnss-devel + libnss-32bit + + + /usr/lib32/*.a + /usr/lib32/nss/lib*.a + /usr/lib32/pkgconfig/*.pc + + + + libnss-devel + Development files for libnss + The Network Security Services (NSS) package is a set of libraries designed to support cross-platform development of security-enabled client and server applications. 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 security standards. This is useful for implementing SSL and S/MIME or other Internet security standards into an application. + + programming.devel + + libnss + + + /usr/include/ + /usr/lib64/*.a + /usr/lib64/nss/lib*.a + /usr/lib64/pkgconfig/*.pc + + + + + 2017-12-13 + 3.34.1 + Packaging update + Pierre-Yves + pyu@riseup.net + + + \ No newline at end of file