parent
46d0c85e09
commit
f15db7bca2
@ -0,0 +1,22 @@
|
|||||||
|
fix for mc/mcedit segfault when mc's tempdir doesn't belong to the correct user
|
||||||
|
|
||||||
|
https://bugs.gentoo.org/show_bug.cgi?id=473244
|
||||||
|
https://www.midnight-commander.org/ticket/3021
|
||||||
|
--- src/main.c
|
||||||
|
+++ src/main.c
|
||||||
|
@@ -154,7 +154,4 @@
|
||||||
|
|
||||||
|
mc_global.share_data_dir = g_strdup (DATADIR);
|
||||||
|
-
|
||||||
|
- /* Set up temporary directory */
|
||||||
|
- mc_tmpdir ();
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -299,4 +296,7 @@
|
||||||
|
vfs_setup_work_dir ();
|
||||||
|
|
||||||
|
+ /* Set up temporary directory after VFS initialization */
|
||||||
|
+ mc_tmpdir ();
|
||||||
|
+
|
||||||
|
/* do this after vfs initialization due to mc_setctl() call in mc_setup_by_args() */
|
||||||
|
if (!mc_setup_by_args (argc, argv, &error))
|
@ -0,0 +1,100 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.8.8-r1.ebuild,v 1.1 2013/06/19 13:35:32 wired Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
inherit eutils flag-o-matic
|
||||||
|
|
||||||
|
MY_P=${P/_/-}
|
||||||
|
|
||||||
|
DESCRIPTION="GNU Midnight Commander is a text based file manager"
|
||||||
|
HOMEPAGE="http://www.midnight-commander.org"
|
||||||
|
SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
|
||||||
|
IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg"
|
||||||
|
|
||||||
|
REQUIRED_USE="spell? ( edit )"
|
||||||
|
|
||||||
|
RDEPEND=">=dev-libs/glib-2.8:2
|
||||||
|
gpm? ( sys-libs/gpm )
|
||||||
|
kernel_linux? ( sys-fs/e2fsprogs )
|
||||||
|
samba? ( net-fs/samba )
|
||||||
|
sftp? ( net-libs/libssh2 )
|
||||||
|
slang? ( >=sys-libs/slang-2 )
|
||||||
|
!slang? ( sys-libs/ncurses )
|
||||||
|
spell? ( app-text/aspell )
|
||||||
|
X? ( x11-libs/libX11
|
||||||
|
x11-libs/libICE
|
||||||
|
x11-libs/libXau
|
||||||
|
x11-libs/libXdmcp
|
||||||
|
x11-libs/libSM )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
app-arch/xz-utils
|
||||||
|
virtual/pkgconfig
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
test? ( dev-libs/check )
|
||||||
|
"
|
||||||
|
|
||||||
|
[[ -n ${LIVE_EBUILD} ]] && DEPEND="${DEPEND} dev-vcs/cvs" # needed only for SCM source tree (autopoint uses cvs)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
[[ -n ${LIVE_EBUILD} ]] && ./autogen.sh
|
||||||
|
|
||||||
|
# bug #473244
|
||||||
|
epatch "${FILESDIR}/${P}-segfault-unowned-temp-dir.patch"
|
||||||
|
}
|
||||||
|
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myscreen=ncurses
|
||||||
|
use slang && myscreen=slang
|
||||||
|
[[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket"
|
||||||
|
|
||||||
|
local homedir=".mc"
|
||||||
|
use xdg && homedir="XDG"
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--disable-silent-rules \
|
||||||
|
--disable-dependency-tracking \
|
||||||
|
$(use_enable nls) \
|
||||||
|
--enable-vfs \
|
||||||
|
$(use_enable kernel_linux vfs-undelfs) \
|
||||||
|
--enable-charset \
|
||||||
|
$(use_with X x) \
|
||||||
|
$(use_enable samba vfs-smb) \
|
||||||
|
$(use_enable sftp vfs-sftp) \
|
||||||
|
$(use_enable spell aspell) \
|
||||||
|
$(use_with gpm gpm-mouse) \
|
||||||
|
--with-screen=${myscreen} \
|
||||||
|
$(use_with edit) \
|
||||||
|
$(use_enable mclib) \
|
||||||
|
$(use_enable test tests) \
|
||||||
|
--with-homedir=${homedir}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" install
|
||||||
|
dodoc AUTHORS README NEWS
|
||||||
|
|
||||||
|
# fix bug #334383
|
||||||
|
if use kernel_linux && [[ ${EUID} == 0 ]] ; then
|
||||||
|
fowners root:tty /usr/libexec/mc/cons.saver
|
||||||
|
fperms g+s /usr/libexec/mc/cons.saver
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use xdg ; then
|
||||||
|
sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \
|
||||||
|
-i "${ED}"/usr/libexec/mc/ext.d/*.sh || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "To enable exiting to latest working directory,"
|
||||||
|
elog "put this into your ~/.bashrc:"
|
||||||
|
elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
DIST libclc-0.0.1_pre20130524.tar.xz 19892 SHA256 bee14b0ab07d681df77130242cea177fc451d5feea0abe7e5ccaa27b6ef98b4c SHA512 035086b2eda58b7de131b532ad3e03b6a1f47e24155d60027e286bd49b7e18f0e8cbe554cce98986d41f88fddee0c33befd445c2c7085d455857da398ea11ddd WHIRLPOOL 4b80255fc5d4b22f09c16b700e2e9fe43b5ed23fde7829bed5653430a1c597612b214da801ca407d94b3bd7b38d285f8ced493f8b3299c9cc6ba93cddaa1492c
|
@ -0,0 +1,49 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libclc/libclc-0.0.1_pre20130524.ebuild,v 1.1 2013/06/19 15:22:29 chithanh Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
|
||||||
|
|
||||||
|
EGIT_REPO_URI="git://people.freedesktop.org/~tstellar/${PN}"
|
||||||
|
|
||||||
|
if [[ ${PV} = 9999* ]]; then
|
||||||
|
GIT_ECLASS="git-2"
|
||||||
|
EXPERIMENTAL="true"
|
||||||
|
fi
|
||||||
|
|
||||||
|
inherit base python-any-r1 $GIT_ECLASS
|
||||||
|
|
||||||
|
DESCRIPTION="OpenCL C library"
|
||||||
|
HOMEPAGE="http://libclc.llvm.org/ http://cgit.freedesktop.org/~tstellar/libclc/"
|
||||||
|
|
||||||
|
if [[ $PV = 9999* ]]; then
|
||||||
|
SRC_URI="${SRC_PATCHES}"
|
||||||
|
else
|
||||||
|
SRC_URI="mirror://gentoo/${P}.tar.xz ${SRC_PATCHES}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="|| ( MIT BSD )"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=sys-devel/clang-3.2
|
||||||
|
>=sys-devel/llvm-3.2"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ $PV = 9999* ]]; then
|
||||||
|
git-2_src_unpack
|
||||||
|
else
|
||||||
|
default
|
||||||
|
mv ${PN}-*/ ${P} || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
./configure.py \
|
||||||
|
--with-llvm-config="${EPREFIX}/usr/bin/llvm-config" \
|
||||||
|
--prefix="${EPREFIX}/usr"
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<herd>x11</herd>
|
||||||
|
</pkgmetadata>
|
@ -1,89 +0,0 @@
|
|||||||
--- mozilla/nsprpub/lib/libc/src/Makefile.in.orig 2005-06-01 14:28:26.000000000 +0000
|
|
||||||
+++ mozilla/nsprpub/lib/libc/src/Makefile.in 2006-01-15 02:50:39.000000000 +0000
|
|
||||||
@@ -112,6 +112,10 @@
|
|
||||||
MKSHLIB += -R '$$ORIGIN'
|
|
||||||
endif
|
|
||||||
|
|
||||||
+ifeq ($(OS_ARCH), Linux)
|
|
||||||
+DSO_LDOPTS +=-Wl,-R,'$$ORIGIN'
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
ifeq ($(OS_ARCH),OS2)
|
|
||||||
MAPFILE = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).def
|
|
||||||
GARBAGE += $(MAPFILE)
|
|
||||||
--- mozilla/nsprpub/lib/ds/Makefile.in.orig 2005-06-01 14:28:25.000000000 +0000
|
|
||||||
+++ mozilla/nsprpub/lib/ds/Makefile.in 2006-01-15 02:52:30.000000000 +0000
|
|
||||||
@@ -102,6 +102,10 @@
|
|
||||||
MKSHLIB += -R '$$ORIGIN'
|
|
||||||
endif
|
|
||||||
|
|
||||||
+ifeq ($(OS_ARCH), Linux)
|
|
||||||
+DSO_LDOPTS += -Wl,-R,'$$ORIGIN'
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
ifeq ($(OS_ARCH),OS2)
|
|
||||||
MAPFILE = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).def
|
|
||||||
GARBAGE += $(MAPFILE)
|
|
||||||
--- mozilla/nsprpub/pr/src/Makefile.in.orig 2005-06-01 14:28:27.000000000 +0000
|
|
||||||
+++ mozilla/nsprpub/pr/src/Makefile.in 2006-01-15 03:29:36.000000000 +0000
|
|
||||||
@@ -168,6 +168,7 @@
|
|
||||||
else
|
|
||||||
OS_LIBS = -ldl
|
|
||||||
endif
|
|
||||||
+DSO_LDOPTS +=-Wl,-R,'$$ORIGIN'
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(OS_ARCH),HP-UX)
|
|
||||||
--- mozilla/nsprpub/config/Makefile.in.orig 2005-06-01 14:28:23.000000000 +0000
|
|
||||||
+++ mozilla/nsprpub/config/Makefile.in 2006-01-15 04:13:42.000000000 +0000
|
|
||||||
@@ -54,7 +54,7 @@
|
|
||||||
# because it is included by every makefile.
|
|
||||||
DIST_GARBAGE = nsprincl.mk nsprincl.sh nspr-config
|
|
||||||
|
|
||||||
-RELEASE_BINS = nspr-config
|
|
||||||
+RELEASE_BINS = nspr-config nspr.pc
|
|
||||||
|
|
||||||
include $(topsrcdir)/config/config.mk
|
|
||||||
|
|
||||||
@@ -139,6 +139,7 @@
|
|
||||||
|
|
||||||
export:: $(TARGETS)
|
|
||||||
rm -f $(dist_bindir)/nspr-config
|
|
||||||
+ rm -f $(dist_bindir)/nspr.pc
|
|
||||||
|
|
||||||
ifdef WRAP_SYSTEM_INCLUDES
|
|
||||||
export::
|
|
||||||
--- mozilla/nsprpub/config/nspr.pc.in.orig 1970-01-01 00:00:00.000000000 +0000
|
|
||||||
+++ mozilla/nsprpub/config/nspr.pc.in 2006-01-15 04:12:23.000000000 +0000
|
|
||||||
@@ -0,0 +1,10 @@
|
|
||||||
+prefix=@prefix@
|
|
||||||
+exec_prefix=@exec_prefix@
|
|
||||||
+libdir=@libdir@
|
|
||||||
+includedir=@includedir@
|
|
||||||
+
|
|
||||||
+Name: NSPR
|
|
||||||
+Description: The Netscape Portable Runtime
|
|
||||||
+Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@
|
|
||||||
+Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 @OS_LIBS@ -Wl,-R${libdir}
|
|
||||||
+Cflags: -I${includedir}
|
|
||||||
--- mozilla/nsprpub/configure.orig 2006-01-15 04:17:59.000000000 +0000
|
|
||||||
+++ mozilla/nsprpub/configure 2006-01-15 04:21:35.000000000 +0000
|
|
||||||
@@ -5899,6 +5899,7 @@
|
|
||||||
config/nsprincl.mk
|
|
||||||
config/nsprincl.sh
|
|
||||||
config/nspr-config
|
|
||||||
+config/nspr.pc
|
|
||||||
lib/Makefile
|
|
||||||
lib/ds/Makefile
|
|
||||||
lib/libc/Makefile
|
|
||||||
--- mozilla/nsprpub/config/nspr-config.in.orig 2005-05-11 00:53:41.000000000 +0000
|
|
||||||
+++ mozilla/nsprpub/config/nspr-config.in 2006-01-15 06:37:58.000000000 +0000
|
|
||||||
@@ -122,7 +122,7 @@
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$echo_libs" = "yes"; then
|
|
||||||
- libdirs=-L$libdir
|
|
||||||
+ libdirs="-Wl,-R$libdir -L$libdir"
|
|
||||||
if test -n "$lib_plds"; then
|
|
||||||
libdirs="$libdirs -lplds${major_version}"
|
|
||||||
fi
|
|
@ -1,126 +0,0 @@
|
|||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/config/config.mk nspr-4.8/mozilla/nsprpub/config/config.mk
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/config/config.mk 2009-09-12 00:43:47.678357452 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/config/config.mk 2009-09-12 00:44:19.383381757 -0500
|
|
||||||
@@ -162,3 +162,4 @@
|
|
||||||
RELEASE_INCLUDE_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/include
|
|
||||||
RELEASE_BIN_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/bin
|
|
||||||
RELEASE_LIB_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/lib
|
|
||||||
+RELEASE_PC_DIR = $(RELEASE_LIB_DIR)/pkgconfig
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/config/Makefile.in nspr-4.8/mozilla/nsprpub/config/Makefile.in
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/config/Makefile.in 2009-09-12 00:43:47.678357452 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/config/Makefile.in 2009-09-12 00:44:19.384379661 -0500
|
|
||||||
@@ -52,9 +52,10 @@
|
|
||||||
|
|
||||||
# autoconf.mk must be deleted last (from the top-level directory)
|
|
||||||
# because it is included by every makefile.
|
|
||||||
-DIST_GARBAGE = nsprincl.mk nsprincl.sh nspr-config
|
|
||||||
+DIST_GARBAGE = nsprincl.mk nsprincl.sh nspr-config nspr.pc
|
|
||||||
|
|
||||||
RELEASE_BINS = nspr-config
|
|
||||||
+RELEASE_PC = nspr.pc
|
|
||||||
|
|
||||||
include $(topsrcdir)/config/config.mk
|
|
||||||
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/config/nspr-config.in nspr-4.8/mozilla/nsprpub/config/nspr-config.in
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/config/nspr-config.in 2009-09-12 00:43:47.677356194 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/config/nspr-config.in 2009-09-12 00:45:53.723359547 -0500
|
|
||||||
@@ -92,13 +92,13 @@
|
|
||||||
|
|
||||||
# Set variables that may be dependent upon other variables
|
|
||||||
if test -z "$exec_prefix"; then
|
|
||||||
- exec_prefix=@exec_prefix@
|
|
||||||
+ exec_prefix=`pkg-config --variable=exec_prefix nspr`
|
|
||||||
fi
|
|
||||||
if test -z "$includedir"; then
|
|
||||||
- includedir=@includedir@
|
|
||||||
+ includedir=`pkg-config --variable=includedir nspr`
|
|
||||||
fi
|
|
||||||
if test -z "$libdir"; then
|
|
||||||
- libdir=@libdir@
|
|
||||||
+ libdir=`pkg-config --variable=libdir nspr`
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$echo_prefix" = "yes"; then
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/config/nspr.pc.in nspr-4.8/mozilla/nsprpub/config/nspr.pc.in
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/config/nspr.pc.in 1969-12-31 18:00:00.000000000 -0600
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/config/nspr.pc.in 2009-09-12 00:44:19.410432811 -0500
|
|
||||||
@@ -0,0 +1,11 @@
|
|
||||||
+prefix=@prefix@
|
|
||||||
+exec_prefix=@exec_prefix@
|
|
||||||
+libdir=@libdir@
|
|
||||||
+includedir=@includedir@
|
|
||||||
+
|
|
||||||
+Name: NSPR
|
|
||||||
+Description: The Netscape Portable Runtime
|
|
||||||
+Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@
|
|
||||||
+Libs: -L${libdir} -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ -lpthread
|
|
||||||
+Cflags: -I${includedir}
|
|
||||||
+
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/config/rules.mk nspr-4.8/mozilla/nsprpub/config/rules.mk
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/config/rules.mk 2009-09-12 00:43:47.677356194 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/config/rules.mk 2009-09-12 00:44:19.435517111 -0500
|
|
||||||
@@ -211,7 +211,7 @@
|
|
||||||
rm -rf $(wildcard *.OBJ *.OBJD) dist $(ALL_TRASH) $(DIST_GARBAGE)
|
|
||||||
+$(LOOP_OVER_DIRS)
|
|
||||||
|
|
||||||
-install:: $(RELEASE_BINS) $(RELEASE_HEADERS) $(RELEASE_LIBS)
|
|
||||||
+install:: $(RELEASE_BINS) $(RELEASE_HEADERS) $(RELEASE_LIBS) $(RELEASE_PC)
|
|
||||||
ifdef RELEASE_BINS
|
|
||||||
$(NSINSTALL) -t -m 0755 $(RELEASE_BINS) $(DESTDIR)$(bindir)
|
|
||||||
endif
|
|
||||||
@@ -221,6 +221,9 @@
|
|
||||||
ifdef RELEASE_LIBS
|
|
||||||
$(NSINSTALL) -t -m 0755 $(RELEASE_LIBS) $(DESTDIR)$(libdir)/$(lib_subdir)
|
|
||||||
endif
|
|
||||||
+ifdef RELEASE_PC
|
|
||||||
+ $(NSINSTALL) -t -m 0644 $(RELEASE_PC) $(DESTDIR)$(libdir)/pkgconfig/
|
|
||||||
+endif
|
|
||||||
+$(LOOP_OVER_DIRS)
|
|
||||||
|
|
||||||
release:: export
|
|
||||||
@@ -272,6 +275,23 @@
|
|
||||||
fi
|
|
||||||
cp $(RELEASE_HEADERS) $(RELEASE_HEADERS_DEST)
|
|
||||||
endif
|
|
||||||
+ifdef RELEASE_PC
|
|
||||||
+ @echo "Copying pkg-config files to release directory"
|
|
||||||
+ @if test -z "$(BUILD_NUMBER)"; then \
|
|
||||||
+ echo "BUILD_NUMBER must be defined"; \
|
|
||||||
+ false; \
|
|
||||||
+ else \
|
|
||||||
+ true; \
|
|
||||||
+ fi
|
|
||||||
+ @if test ! -d $(RELEASE_PC_DEST); then \
|
|
||||||
+ rm -rf $(RELEASE_PC_DEST); \
|
|
||||||
+ $(NSINSTALL) -D $(RELEASE_PC_DEST);\
|
|
||||||
+ else \
|
|
||||||
+ true; \
|
|
||||||
+ fi
|
|
||||||
+ cp $(RELEASE_PC) $(RELEASE_PC_DEST)
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
+$(LOOP_OVER_DIRS)
|
|
||||||
|
|
||||||
alltags:
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/configure nspr-4.8/mozilla/nsprpub/configure
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/configure 2009-09-12 00:43:47.600359058 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/configure 2009-09-12 00:44:19.444380569 -0500
|
|
||||||
@@ -6037,6 +6037,7 @@
|
|
||||||
config/nsprincl.mk
|
|
||||||
config/nsprincl.sh
|
|
||||||
config/nspr-config
|
|
||||||
+config/nspr.pc
|
|
||||||
lib/Makefile
|
|
||||||
lib/ds/Makefile
|
|
||||||
lib/libc/Makefile
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/configure.in nspr-4.8/mozilla/nsprpub/configure.in
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/configure.in 2009-09-12 00:43:47.678357452 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/configure.in 2009-09-12 00:44:19.451396074 -0500
|
|
||||||
@@ -2871,6 +2871,7 @@
|
|
||||||
config/nsprincl.mk
|
|
||||||
config/nsprincl.sh
|
|
||||||
config/nspr-config
|
|
||||||
+config/nspr.pc
|
|
||||||
lib/Makefile
|
|
||||||
lib/ds/Makefile
|
|
||||||
lib/libc/Makefile
|
|
@ -1,126 +0,0 @@
|
|||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/config/config.mk nspr-4.8/mozilla/nsprpub/config/config.mk
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/config/config.mk 2009-09-12 00:43:47.678357452 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/config/config.mk 2009-09-12 00:44:19.383381757 -0500
|
|
||||||
@@ -162,3 +162,4 @@
|
|
||||||
RELEASE_INCLUDE_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/include
|
|
||||||
RELEASE_BIN_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/bin
|
|
||||||
RELEASE_LIB_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/lib
|
|
||||||
+RELEASE_PC_DIR = $(RELEASE_LIB_DIR)/pkgconfig
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/config/Makefile.in nspr-4.8/mozilla/nsprpub/config/Makefile.in
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/config/Makefile.in 2009-09-12 00:43:47.678357452 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/config/Makefile.in 2009-09-12 00:44:19.384379661 -0500
|
|
||||||
@@ -52,9 +52,10 @@
|
|
||||||
|
|
||||||
# autoconf.mk must be deleted last (from the top-level directory)
|
|
||||||
# because it is included by every makefile.
|
|
||||||
-DIST_GARBAGE = nsprincl.mk nsprincl.sh nspr-config
|
|
||||||
+DIST_GARBAGE = nsprincl.mk nsprincl.sh nspr-config nspr.pc
|
|
||||||
|
|
||||||
RELEASE_BINS = nspr-config
|
|
||||||
+RELEASE_PC = nspr.pc
|
|
||||||
|
|
||||||
include $(topsrcdir)/config/config.mk
|
|
||||||
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/config/nspr-config.in nspr-4.8/mozilla/nsprpub/config/nspr-config.in
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/config/nspr-config.in 2009-09-12 00:43:47.677356194 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/config/nspr-config.in 2009-09-12 00:45:53.723359547 -0500
|
|
||||||
@@ -92,13 +92,13 @@
|
|
||||||
|
|
||||||
# Set variables that may be dependent upon other variables
|
|
||||||
if test -z "$exec_prefix"; then
|
|
||||||
- exec_prefix=@exec_prefix@
|
|
||||||
+ exec_prefix=`pkg-config --variable=exec_prefix nspr`
|
|
||||||
fi
|
|
||||||
if test -z "$includedir"; then
|
|
||||||
- includedir=@includedir@
|
|
||||||
+ includedir=`pkg-config --variable=includedir nspr`
|
|
||||||
fi
|
|
||||||
if test -z "$libdir"; then
|
|
||||||
- libdir=@libdir@
|
|
||||||
+ libdir=`pkg-config --variable=libdir nspr`
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$echo_prefix" = "yes"; then
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/config/nspr.pc.in nspr-4.8/mozilla/nsprpub/config/nspr.pc.in
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/config/nspr.pc.in 1969-12-31 18:00:00.000000000 -0600
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/config/nspr.pc.in 2009-09-12 00:44:19.410432811 -0500
|
|
||||||
@@ -0,0 +1,11 @@
|
|
||||||
+prefix=@prefix@
|
|
||||||
+exec_prefix=@exec_prefix@
|
|
||||||
+libdir=@libdir@
|
|
||||||
+includedir=@includedir@
|
|
||||||
+
|
|
||||||
+Name: NSPR
|
|
||||||
+Description: The Netscape Portable Runtime
|
|
||||||
+Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@
|
|
||||||
+Libs: -L${libdir} -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ -lpthread -Wl,-R${libdir}
|
|
||||||
+Cflags: -I${includedir}
|
|
||||||
+
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/config/rules.mk nspr-4.8/mozilla/nsprpub/config/rules.mk
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/config/rules.mk 2009-09-12 00:43:47.677356194 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/config/rules.mk 2009-09-12 00:44:19.435517111 -0500
|
|
||||||
@@ -211,7 +211,7 @@
|
|
||||||
rm -rf $(wildcard *.OBJ *.OBJD) dist $(ALL_TRASH) $(DIST_GARBAGE)
|
|
||||||
+$(LOOP_OVER_DIRS)
|
|
||||||
|
|
||||||
-install:: $(RELEASE_BINS) $(RELEASE_HEADERS) $(RELEASE_LIBS)
|
|
||||||
+install:: $(RELEASE_BINS) $(RELEASE_HEADERS) $(RELEASE_LIBS) $(RELEASE_PC)
|
|
||||||
ifdef RELEASE_BINS
|
|
||||||
$(NSINSTALL) -t -m 0755 $(RELEASE_BINS) $(DESTDIR)$(bindir)
|
|
||||||
endif
|
|
||||||
@@ -221,6 +221,9 @@
|
|
||||||
ifdef RELEASE_LIBS
|
|
||||||
$(NSINSTALL) -t -m 0755 $(RELEASE_LIBS) $(DESTDIR)$(libdir)/$(lib_subdir)
|
|
||||||
endif
|
|
||||||
+ifdef RELEASE_PC
|
|
||||||
+ $(NSINSTALL) -t -m 0644 $(RELEASE_PC) $(DESTDIR)$(libdir)/pkgconfig/
|
|
||||||
+endif
|
|
||||||
+$(LOOP_OVER_DIRS)
|
|
||||||
|
|
||||||
release:: export
|
|
||||||
@@ -272,6 +275,23 @@
|
|
||||||
fi
|
|
||||||
cp $(RELEASE_HEADERS) $(RELEASE_HEADERS_DEST)
|
|
||||||
endif
|
|
||||||
+ifdef RELEASE_PC
|
|
||||||
+ @echo "Copying pkg-config files to release directory"
|
|
||||||
+ @if test -z "$(BUILD_NUMBER)"; then \
|
|
||||||
+ echo "BUILD_NUMBER must be defined"; \
|
|
||||||
+ false; \
|
|
||||||
+ else \
|
|
||||||
+ true; \
|
|
||||||
+ fi
|
|
||||||
+ @if test ! -d $(RELEASE_PC_DEST); then \
|
|
||||||
+ rm -rf $(RELEASE_PC_DEST); \
|
|
||||||
+ $(NSINSTALL) -D $(RELEASE_PC_DEST);\
|
|
||||||
+ else \
|
|
||||||
+ true; \
|
|
||||||
+ fi
|
|
||||||
+ cp $(RELEASE_PC) $(RELEASE_PC_DEST)
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
+$(LOOP_OVER_DIRS)
|
|
||||||
|
|
||||||
alltags:
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/configure nspr-4.8/mozilla/nsprpub/configure
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/configure 2009-09-12 00:43:47.600359058 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/configure 2009-09-12 00:44:19.444380569 -0500
|
|
||||||
@@ -6037,6 +6037,7 @@
|
|
||||||
config/nsprincl.mk
|
|
||||||
config/nsprincl.sh
|
|
||||||
config/nspr-config
|
|
||||||
+config/nspr.pc
|
|
||||||
lib/Makefile
|
|
||||||
lib/ds/Makefile
|
|
||||||
lib/libc/Makefile
|
|
||||||
diff -urN nspr-4.8-orig/mozilla/nsprpub/configure.in nspr-4.8/mozilla/nsprpub/configure.in
|
|
||||||
--- nspr-4.8-orig/mozilla/nsprpub/configure.in 2009-09-12 00:43:47.678357452 -0500
|
|
||||||
+++ nspr-4.8/mozilla/nsprpub/configure.in 2009-09-12 00:44:19.451396074 -0500
|
|
||||||
@@ -2871,6 +2871,7 @@
|
|
||||||
config/nsprincl.mk
|
|
||||||
config/nsprincl.sh
|
|
||||||
config/nspr-config
|
|
||||||
+config/nspr.pc
|
|
||||||
lib/Makefile
|
|
||||||
lib/ds/Makefile
|
|
||||||
lib/libc/Makefile
|
|
@ -1,43 +0,0 @@
|
|||||||
NSPR does not set the soname on any platform yet:
|
|
||||||
https://bugzilla.mozilla.org/show_bug.cgi?id=452873
|
|
||||||
|
|
||||||
Supporting something like "soname" on AIX is tricky:
|
|
||||||
http://bugs.gentoo.org/show_bug.cgi?id=213277
|
|
||||||
|
|
||||||
--- mozilla/nsprpub/config/rules.mk.orig 2010-02-23 15:55:00 +0100
|
|
||||||
+++ mozilla/nsprpub/config/rules.mk 2010-02-23 16:04:31 +0100
|
|
||||||
@@ -132,14 +132,17 @@
|
|
||||||
else
|
|
||||||
ifdef MKSHLIB
|
|
||||||
SHARED_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
|
|
||||||
+ifeq ($(OS_ARCH), AIX)
|
|
||||||
+IMPORT_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME).$(DLL_SUFFIX)
|
|
||||||
+endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef TARGETS
|
|
||||||
-ifeq (,$(filter-out WINNT WINCE OS2,$(OS_ARCH)))
|
|
||||||
+ifeq (,$(filter-out WINNT WINCE OS2 AIX,$(OS_ARCH)))
|
|
||||||
TARGETS = $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY)
|
|
||||||
ifndef BUILD_OPT
|
|
||||||
ifdef MSC_VER
|
|
||||||
@@ -327,6 +330,15 @@
|
|
||||||
else
|
|
||||||
ifeq (,$(filter-out WIN95 WINCE,$(OS_TARGET)))
|
|
||||||
$(IMPORT_LIBRARY): $(SHARED_LIBRARY)
|
|
||||||
+else
|
|
||||||
+ifdef IMPORT_LIBRARY
|
|
||||||
+$(IMPORT_LIBRARY): $(SHARED_LIBRARY)
|
|
||||||
+ ( echo '#! $(notdir $(SHARED_LIBRARY))' \
|
|
||||||
+ ; dump -Tv $(SHARED_LIBRARY) \
|
|
||||||
+ | awk '{ if ($$4 == "EXP" && $$6 != "SECdef") { print $$8 } }' \
|
|
||||||
+ | sort -u \
|
|
||||||
+ ) > $@
|
|
||||||
+endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
@ -1,91 +0,0 @@
|
|||||||
# HG changeset patch
|
|
||||||
# Parent 6b1ef31834235cde5153f91a7443b29398b541d9
|
|
||||||
# User Jory A. Pratt <anarchy@gentoo.org>
|
|
||||||
Add initial support for x32 abi
|
|
||||||
|
|
||||||
diff --git a/mozilla/nsprpub/pr/include/md/_linux.cfg b/mozilla/nsprpub/pr/include/md/_linux.cfg
|
|
||||||
--- a/mozilla/nsprpub/pr/include/md/_linux.cfg
|
|
||||||
+++ b/mozilla/nsprpub/pr/include/md/_linux.cfg
|
|
||||||
@@ -207,16 +207,63 @@
|
|
||||||
#define PR_ALIGN_OF_POINTER 8
|
|
||||||
#define PR_ALIGN_OF_WORD 8
|
|
||||||
|
|
||||||
#define PR_BYTES_PER_WORD_LOG2 3
|
|
||||||
#define PR_BYTES_PER_DWORD_LOG2 3
|
|
||||||
|
|
||||||
#elif defined(__x86_64__)
|
|
||||||
|
|
||||||
+#ifdef __ILP32__
|
|
||||||
+
|
|
||||||
+#define IS_LITTLE_ENDIAN 1
|
|
||||||
+#undef IS_BIG_ENDIAN
|
|
||||||
+
|
|
||||||
+#define PR_BYTES_PER_BYTE 1
|
|
||||||
+#define PR_BYTES_PER_SHORT 2
|
|
||||||
+#define PR_BYTES_PER_INT 4
|
|
||||||
+#define PR_BYTES_PER_INT64 8
|
|
||||||
+#define PR_BYTES_PER_LONG 4
|
|
||||||
+#define PR_BYTES_PER_FLOAT 4
|
|
||||||
+#define PR_BYTES_PER_DOUBLE 8
|
|
||||||
+#define PR_BYTES_PER_WORD 4
|
|
||||||
+#define PR_BYTES_PER_DWORD 8
|
|
||||||
+
|
|
||||||
+#define PR_BITS_PER_BYTE 8
|
|
||||||
+#define PR_BITS_PER_SHORT 16
|
|
||||||
+#define PR_BITS_PER_INT 32
|
|
||||||
+#define PR_BITS_PER_INT64 64
|
|
||||||
+#define PR_BITS_PER_LONG 32
|
|
||||||
+#define PR_BITS_PER_FLOAT 32
|
|
||||||
+#define PR_BITS_PER_DOUBLE 64
|
|
||||||
+#define PR_BITS_PER_WORD 32
|
|
||||||
+
|
|
||||||
+#define PR_BITS_PER_BYTE_LOG2 3
|
|
||||||
+#define PR_BITS_PER_SHORT_LOG2 4
|
|
||||||
+#define PR_BITS_PER_INT_LOG2 5
|
|
||||||
+#define PR_BITS_PER_INT64_LOG2 6
|
|
||||||
+#define PR_BITS_PER_LONG_LOG2 5
|
|
||||||
+#define PR_BITS_PER_FLOAT_LOG2 5
|
|
||||||
+#define PR_BITS_PER_DOUBLE_LOG2 6
|
|
||||||
+#define PR_BITS_PER_WORD_LOG2 5
|
|
||||||
+
|
|
||||||
+#define PR_ALIGN_OF_SHORT 2
|
|
||||||
+#define PR_ALIGN_OF_INT 4
|
|
||||||
+#define PR_ALIGN_OF_LONG 4
|
|
||||||
+#define PR_ALIGN_OF_INT64 4
|
|
||||||
+#define PR_ALIGN_OF_FLOAT 4
|
|
||||||
+#define PR_ALIGN_OF_DOUBLE 4
|
|
||||||
+#define PR_ALIGN_OF_POINTER 4
|
|
||||||
+#define PR_ALIGN_OF_WORD 4
|
|
||||||
+
|
|
||||||
+#define PR_BYTES_PER_WORD_LOG2 2
|
|
||||||
+#define PR_BYTES_PER_DWORD_LOG2 3
|
|
||||||
+
|
|
||||||
+#else
|
|
||||||
+
|
|
||||||
#define IS_LITTLE_ENDIAN 1
|
|
||||||
#undef IS_BIG_ENDIAN
|
|
||||||
#define IS_64
|
|
||||||
|
|
||||||
#define PR_BYTES_PER_BYTE 1
|
|
||||||
#define PR_BYTES_PER_SHORT 2
|
|
||||||
#define PR_BYTES_PER_INT 4
|
|
||||||
#define PR_BYTES_PER_INT64 8
|
|
||||||
@@ -251,16 +298,18 @@
|
|
||||||
#define PR_ALIGN_OF_FLOAT 4
|
|
||||||
#define PR_ALIGN_OF_DOUBLE 8
|
|
||||||
#define PR_ALIGN_OF_POINTER 8
|
|
||||||
#define PR_ALIGN_OF_WORD 8
|
|
||||||
|
|
||||||
#define PR_BYTES_PER_WORD_LOG2 3
|
|
||||||
#define PR_BYTES_PER_DWORD_LOG2 3
|
|
||||||
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#elif defined(__mc68000__)
|
|
||||||
|
|
||||||
#undef IS_LITTLE_ENDIAN
|
|
||||||
#define IS_BIG_ENDIAN 1
|
|
||||||
|
|
||||||
#define PR_BYTES_PER_BYTE 1
|
|
||||||
#define PR_BYTES_PER_SHORT 2
|
|
||||||
#define PR_BYTES_PER_INT 4
|
|
@ -1,105 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.8.8.ebuild,v 1.5 2011/09/04 10:13:30 maekke Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
|
|
||||||
inherit eutils multilib toolchain-funcs versionator
|
|
||||||
|
|
||||||
MIN_PV="$(get_version_component_range 2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Netscape Portable Runtime"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mkdir build inst
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8-config.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8-pkgconfig-gentoo-3.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
|
||||||
# Patch needs updating
|
|
||||||
#epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
|
||||||
# make sure it won't find Perl out of Prefix
|
|
||||||
sed -i -e "s/perl5//g" mozilla/nsprpub/configure || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
|
||||||
mozilla/nsprpub/config/rules.mk
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
cd "${S}"/build
|
|
||||||
|
|
||||||
echo > "${T}"/test.c
|
|
||||||
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
|
|
||||||
case $(scanelf -BF'%M' "${T}"/test.o)$(scanmacho -BF'%M' "${T}"/test.o) in
|
|
||||||
ELFCLASS64*|POWERPC64*|X86_64*) myconf="${myconf} --enable-64bit";;
|
|
||||||
ELFCLASS32*|POWERPC*|I386*|ARM*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)"
|
|
||||||
|
|
||||||
ECONF_SOURCE="../mozilla/nsprpub" econf \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable !debug optimize) \
|
|
||||||
${myconf} || die "econf failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "${S}"/build
|
|
||||||
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "failed to build"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install () {
|
|
||||||
# Their build system is royally confusing, as usual
|
|
||||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
|
||||||
cd "${S}"/build
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
|
|
||||||
cd "${ED}"/usr/$(get_libdir)
|
|
||||||
for file in *.a; do
|
|
||||||
einfo "removing static libraries as upstream has requested!"
|
|
||||||
rm -f ${file} || die "failed to remove static libraries."
|
|
||||||
done
|
|
||||||
|
|
||||||
local n=
|
|
||||||
# aix-soname.patch does this already
|
|
||||||
[[ ${CHOST} == *-aix* ]] ||
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die "failed to mv files around"
|
|
||||||
ln -s ${n} ${file} || die "failed to symlink files."
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# install nspr-config
|
|
||||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
|
||||||
|
|
||||||
# create pkg-config file
|
|
||||||
insinto /usr/$(get_libdir)/pkgconfig/
|
|
||||||
doins "${S}"/build/config/nspr.pc || die "failed to insall nspr pkg-config file"
|
|
||||||
|
|
||||||
# Remove stupid files in /usr/bin
|
|
||||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
ewarn
|
|
||||||
ewarn "Please make sure you run revdep-rebuild after upgrade."
|
|
||||||
ewarn "This is *extremely* important to ensure your system nspr works properly."
|
|
||||||
ewarn
|
|
||||||
}
|
|
@ -1,112 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.8.9.ebuild,v 1.9 2011/11/25 17:25:27 xarthisius Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
|
|
||||||
inherit eutils multilib toolchain-funcs versionator
|
|
||||||
|
|
||||||
MIN_PV="$(get_version_component_range 2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Netscape Portable Runtime"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mkdir build inst
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8-config.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8-pkgconfig-gentoo-3.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
|
||||||
# Patch needs updating
|
|
||||||
#epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
|
||||||
# make sure it won't find Perl out of Prefix
|
|
||||||
sed -i -e "s/perl5//g" mozilla/nsprpub/configure || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
|
||||||
mozilla/nsprpub/config/rules.mk
|
|
||||||
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
# Fix pkgconfig for Darwin (no RPATH stuff)
|
|
||||||
sed -i -e 's/-Wl,-R${\?libdir}\?//' \
|
|
||||||
"${S}"/mozilla/nsprpub/config/nspr-config.in \
|
|
||||||
"${S}"/mozilla/nsprpub/config/nspr.pc.in || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
cd "${S}"/build
|
|
||||||
|
|
||||||
echo > "${T}"/test.c
|
|
||||||
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
|
|
||||||
case $(scanelf -BF'%M' "${T}"/test.o)$(scanmacho -BF'%M' "${T}"/test.o) in
|
|
||||||
ELFCLASS64*|POWERPC64*|X86_64*) myconf="${myconf} --enable-64bit";;
|
|
||||||
ELFCLASS32*|POWERPC*|I386*|ARM*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)"
|
|
||||||
|
|
||||||
ECONF_SOURCE="../mozilla/nsprpub" econf \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable !debug optimize) \
|
|
||||||
${myconf} || die "econf failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "${S}"/build
|
|
||||||
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "failed to build"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install () {
|
|
||||||
# Their build system is royally confusing, as usual
|
|
||||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
|
||||||
cd "${S}"/build
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
|
|
||||||
cd "${ED}"/usr/$(get_libdir)
|
|
||||||
for file in *.a; do
|
|
||||||
einfo "removing static libraries as upstream has requested!"
|
|
||||||
rm -f ${file} || die "failed to remove static libraries."
|
|
||||||
done
|
|
||||||
|
|
||||||
local n=
|
|
||||||
# aix-soname.patch does this already
|
|
||||||
[[ ${CHOST} == *-aix* ]] ||
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die "failed to mv files around"
|
|
||||||
ln -s ${n} ${file} || die "failed to symlink files."
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# install nspr-config
|
|
||||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
|
||||||
|
|
||||||
# create pkg-config file
|
|
||||||
insinto /usr/$(get_libdir)/pkgconfig/
|
|
||||||
doins "${S}"/build/config/nspr.pc || die "failed to insall nspr pkg-config file"
|
|
||||||
|
|
||||||
# Remove stupid files in /usr/bin
|
|
||||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
ewarn
|
|
||||||
ewarn "Please make sure you run revdep-rebuild after upgrade."
|
|
||||||
ewarn "This is *extremely* important to ensure your system nspr works properly."
|
|
||||||
ewarn
|
|
||||||
}
|
|
@ -1,107 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.9.1.ebuild,v 1.8 2013/01/16 21:09:30 polynomial-c Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
WANT_AUTOCONF="2.1"
|
|
||||||
|
|
||||||
inherit autotools eutils multilib toolchain-funcs versionator
|
|
||||||
|
|
||||||
MIN_PV="$(get_version_component_range 2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Netscape Portable Runtime"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ~ppc64 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mkdir build inst
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8-config.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
|
||||||
# Patch needs updating
|
|
||||||
#epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
|
|
||||||
|
|
||||||
# We must run eautoconf to regenerate configure
|
|
||||||
cd "${S}"/mozilla/nsprpub
|
|
||||||
eautoconf
|
|
||||||
|
|
||||||
# make sure it won't find Perl out of Prefix
|
|
||||||
sed -i -e "s/perl5//g" "${S}"/mozilla/nsprpub/configure || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
|
||||||
"${S}"/mozilla/nsprpub/config/rules.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
cd "${S}"/build
|
|
||||||
|
|
||||||
echo > "${T}"/test.c
|
|
||||||
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
|
|
||||||
case $(scanelf -BF'%M' "${T}"/test.o)$(scanmacho -BF'%M' "${T}"/test.o) in
|
|
||||||
ELFCLASS64*|POWERPC64*|X86_64*) myconf="${myconf} --enable-64bit";;
|
|
||||||
ELFCLASS32*|POWERPC*|I386*|ARM*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)"
|
|
||||||
|
|
||||||
LC_ALL="C" ECONF_SOURCE="../mozilla/nsprpub" econf \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable !debug optimize) \
|
|
||||||
${myconf} || die "econf failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "${S}"/build
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
emake CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" \
|
|
||||||
-C config nsinstall || die "failed to build"
|
|
||||||
mv config/{,native-}nsinstall
|
|
||||||
sed -s 's#/nsinstall$#/native-nsinstall#' -i config/autoconf.mk
|
|
||||||
rm config/nsinstall.o
|
|
||||||
fi
|
|
||||||
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "failed to build"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install () {
|
|
||||||
# Their build system is royally confusing, as usual
|
|
||||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
|
||||||
cd "${S}"/build
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
|
|
||||||
cd "${ED}"/usr/$(get_libdir)
|
|
||||||
for file in *.a; do
|
|
||||||
einfo "removing static libraries as upstream has requested!"
|
|
||||||
rm -f ${file} || die "failed to remove static libraries."
|
|
||||||
done
|
|
||||||
|
|
||||||
local n=
|
|
||||||
# aix-soname.patch does this already
|
|
||||||
[[ ${CHOST} == *-aix* ]] ||
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die "failed to mv files around"
|
|
||||||
ln -s ${n} ${file} || die "failed to symlink files."
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# install nspr-config
|
|
||||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
|
||||||
|
|
||||||
# Remove stupid files in /usr/bin
|
|
||||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
|
||||||
}
|
|
@ -1,109 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.9.2-r1.ebuild,v 1.3 2013/01/16 21:09:30 polynomial-c Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
WANT_AUTOCONF="2.1"
|
|
||||||
|
|
||||||
inherit autotools eutils multilib toolchain-funcs versionator
|
|
||||||
|
|
||||||
MIN_PV="$(get_version_component_range 2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Netscape Portable Runtime"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mkdir build inst
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8-config.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
|
||||||
# Patch needs updating
|
|
||||||
#epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.9.1-x32_v0.2.patch
|
|
||||||
|
|
||||||
# We must run eautoconf to regenerate configure
|
|
||||||
cd "${S}"/mozilla/nsprpub
|
|
||||||
eautoconf
|
|
||||||
|
|
||||||
# make sure it won't find Perl out of Prefix
|
|
||||||
sed -i -e "s/perl5//g" "${S}"/mozilla/nsprpub/configure || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
|
||||||
"${S}"/mozilla/nsprpub/config/rules.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
cd "${S}"/build
|
|
||||||
|
|
||||||
echo > "${T}"/test.c
|
|
||||||
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*32-bit*x86-64*|*64-bit*|*ppc64*|*x86_64*) myconf="${myconf} --enable-64bit";;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)"
|
|
||||||
|
|
||||||
LC_ALL="C" ECONF_SOURCE="../mozilla/nsprpub" econf \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable !debug optimize) \
|
|
||||||
${myconf} || die "econf failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "${S}"/build
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
emake CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" \
|
|
||||||
AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
|
|
||||||
-C config nsinstall || die "failed to build"
|
|
||||||
mv config/{,native-}nsinstall
|
|
||||||
sed -s 's#/nsinstall$#/native-nsinstall#' -i config/autoconf.mk
|
|
||||||
rm config/nsinstall.o
|
|
||||||
fi
|
|
||||||
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
|
|
||||||
AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "failed to build"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install () {
|
|
||||||
# Their build system is royally confusing, as usual
|
|
||||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
|
||||||
cd "${S}"/build
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
|
|
||||||
cd "${ED}"/usr/$(get_libdir)
|
|
||||||
for file in *.a; do
|
|
||||||
einfo "removing static libraries as upstream has requested!"
|
|
||||||
rm -f ${file} || die "failed to remove static libraries."
|
|
||||||
done
|
|
||||||
|
|
||||||
local n=
|
|
||||||
# aix-soname.patch does this already
|
|
||||||
[[ ${CHOST} == *-aix* ]] ||
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die "failed to mv files around"
|
|
||||||
ln -s ${n} ${file} || die "failed to symlink files."
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# install nspr-config
|
|
||||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
|
||||||
|
|
||||||
# Remove stupid files in /usr/bin
|
|
||||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
|
||||||
}
|
|
@ -1,107 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.9.2.ebuild,v 1.10 2013/01/16 21:09:30 polynomial-c Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
WANT_AUTOCONF="2.1"
|
|
||||||
|
|
||||||
inherit autotools eutils multilib toolchain-funcs versionator
|
|
||||||
|
|
||||||
MIN_PV="$(get_version_component_range 2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Netscape Portable Runtime"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mkdir build inst
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8-config.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
|
||||||
# Patch needs updating
|
|
||||||
#epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.9.1-x32_v0.2.patch
|
|
||||||
|
|
||||||
# We must run eautoconf to regenerate configure
|
|
||||||
cd "${S}"/mozilla/nsprpub
|
|
||||||
eautoconf
|
|
||||||
|
|
||||||
# make sure it won't find Perl out of Prefix
|
|
||||||
sed -i -e "s/perl5//g" "${S}"/mozilla/nsprpub/configure || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
|
||||||
"${S}"/mozilla/nsprpub/config/rules.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
cd "${S}"/build
|
|
||||||
|
|
||||||
echo > "${T}"/test.c
|
|
||||||
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*32-bit*x86-64*|*64-bit*|*ppc64*|*x86_64*) myconf="${myconf} --enable-64bit";;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)"
|
|
||||||
|
|
||||||
LC_ALL="C" ECONF_SOURCE="../mozilla/nsprpub" econf \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable !debug optimize) \
|
|
||||||
${myconf} || die "econf failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "${S}"/build
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
emake CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" \
|
|
||||||
-C config nsinstall || die "failed to build"
|
|
||||||
mv config/{,native-}nsinstall
|
|
||||||
sed -s 's#/nsinstall$#/native-nsinstall#' -i config/autoconf.mk
|
|
||||||
rm config/nsinstall.o
|
|
||||||
fi
|
|
||||||
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "failed to build"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install () {
|
|
||||||
# Their build system is royally confusing, as usual
|
|
||||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
|
||||||
cd "${S}"/build
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
|
|
||||||
cd "${ED}"/usr/$(get_libdir)
|
|
||||||
for file in *.a; do
|
|
||||||
einfo "removing static libraries as upstream has requested!"
|
|
||||||
rm -f ${file} || die "failed to remove static libraries."
|
|
||||||
done
|
|
||||||
|
|
||||||
local n=
|
|
||||||
# aix-soname.patch does this already
|
|
||||||
[[ ${CHOST} == *-aix* ]] ||
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die "failed to mv files around"
|
|
||||||
ln -s ${n} ${file} || die "failed to symlink files."
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# install nspr-config
|
|
||||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
|
||||||
|
|
||||||
# Remove stupid files in /usr/bin
|
|
||||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
|
||||||
}
|
|
@ -1,109 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.9.4.ebuild,v 1.13 2013/02/08 14:47:21 ago Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
WANT_AUTOCONF="2.1"
|
|
||||||
|
|
||||||
inherit autotools eutils multilib toolchain-funcs versionator
|
|
||||||
|
|
||||||
MIN_PV="$(get_version_component_range 2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Netscape Portable Runtime"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mkdir build inst
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8-config.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
|
||||||
# Patch needs updating
|
|
||||||
#epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
|
|
||||||
|
|
||||||
# We must run eautoconf to regenerate configure
|
|
||||||
cd "${S}"/mozilla/nsprpub
|
|
||||||
eautoconf
|
|
||||||
|
|
||||||
# make sure it won't find Perl out of Prefix
|
|
||||||
sed -i -e "s/perl5//g" "${S}"/mozilla/nsprpub/configure || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
|
||||||
"${S}"/mozilla/nsprpub/config/rules.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
cd "${S}"/build
|
|
||||||
|
|
||||||
# We use the standard BUILD_xxx but nspr uses HOST_xxx
|
|
||||||
tc-export_build_env BUILD_CC
|
|
||||||
export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS}
|
|
||||||
tc-export AR CC CXX RANLIB
|
|
||||||
[[ ${CBUILD} != ${CHOST} ]] \
|
|
||||||
&& export CROSS_COMPILE=1 \
|
|
||||||
|| unset CROSS_COMPILE
|
|
||||||
|
|
||||||
local myconf
|
|
||||||
echo > "${T}"/test.c
|
|
||||||
${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*32-bit*x86-64*|*64-bit*|*ppc64*|*x86_64*) myconf+=" --enable-64bit";;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Ancient autoconf needs help finding the right tools.
|
|
||||||
LC_ALL="C" ECONF_SOURCE="../mozilla/nsprpub" \
|
|
||||||
ac_cv_path_AR="${AR}" \
|
|
||||||
econf \
|
|
||||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable !debug optimize) \
|
|
||||||
${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "${S}"/build
|
|
||||||
emake || die "failed to build"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install () {
|
|
||||||
# Their build system is royally confusing, as usual
|
|
||||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
|
||||||
cd "${S}"/build
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
|
|
||||||
cd "${ED}"/usr/$(get_libdir)
|
|
||||||
einfo "removing static libraries as upstream has requested!"
|
|
||||||
rm -f *.a || die "failed to remove static libraries."
|
|
||||||
|
|
||||||
local n=
|
|
||||||
# aix-soname.patch does this already
|
|
||||||
[[ ${CHOST} == *-aix* ]] ||
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die "failed to mv files around"
|
|
||||||
ln -s ${n} ${file} || die "failed to symlink files."
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# install nspr-config
|
|
||||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
|
||||||
|
|
||||||
# Remove stupid files in /usr/bin
|
|
||||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
|
||||||
}
|
|
@ -1,109 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.9.5-r1.ebuild,v 1.1 2013/03/12 01:53:37 anarchy Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
WANT_AUTOCONF="2.1"
|
|
||||||
|
|
||||||
inherit autotools eutils multilib toolchain-funcs versionator
|
|
||||||
|
|
||||||
MIN_PV="$(get_version_component_range 2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Netscape Portable Runtime"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mkdir build inst
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
|
||||||
# Patch needs updating
|
|
||||||
#epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
|
|
||||||
# We do not need to pass -L$libdir via nspr-config --libs
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch
|
|
||||||
|
|
||||||
# We must run eautoconf to regenerate configure
|
|
||||||
cd "${S}"/mozilla/nsprpub
|
|
||||||
eautoconf
|
|
||||||
|
|
||||||
# make sure it won't find Perl out of Prefix
|
|
||||||
sed -i -e "s/perl5//g" "${S}"/mozilla/nsprpub/configure || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
|
||||||
"${S}"/mozilla/nsprpub/config/rules.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
cd "${S}"/build
|
|
||||||
|
|
||||||
# We use the standard BUILD_xxx but nspr uses HOST_xxx
|
|
||||||
tc-export_build_env BUILD_CC
|
|
||||||
export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS}
|
|
||||||
tc-export AR CC CXX RANLIB
|
|
||||||
[[ ${CBUILD} != ${CHOST} ]] \
|
|
||||||
&& export CROSS_COMPILE=1 \
|
|
||||||
|| unset CROSS_COMPILE
|
|
||||||
|
|
||||||
local myconf
|
|
||||||
echo > "${T}"/test.c
|
|
||||||
${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*32-bit*x86-64*|*64-bit*|*ppc64*|*x86_64*) myconf+=" --enable-64bit";;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Ancient autoconf needs help finding the right tools.
|
|
||||||
LC_ALL="C" ECONF_SOURCE="../mozilla/nsprpub" \
|
|
||||||
ac_cv_path_AR="${AR}" \
|
|
||||||
econf \
|
|
||||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable !debug optimize) \
|
|
||||||
${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "${S}"/build
|
|
||||||
emake || die "failed to build"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Their build system is royally confusing, as usual
|
|
||||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
|
||||||
cd "${S}"/build
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
|
|
||||||
cd "${ED}"/usr/$(get_libdir)
|
|
||||||
einfo "removing static libraries as upstream has requested!"
|
|
||||||
rm -f *.a || die "failed to remove static libraries."
|
|
||||||
|
|
||||||
local n=
|
|
||||||
# aix-soname.patch does this already
|
|
||||||
[[ ${CHOST} == *-aix* ]] ||
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die "failed to mv files around"
|
|
||||||
ln -s ${n} ${file} || die "failed to symlink files."
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# install nspr-config
|
|
||||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
|
||||||
|
|
||||||
# Remove stupid files in /usr/bin
|
|
||||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
|
||||||
}
|
|
@ -1,95 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.9.5-r2.ebuild,v 1.1 2013/03/12 15:16:23 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
WANT_AUTOCONF="2.1"
|
|
||||||
|
|
||||||
inherit autotools eutils multilib toolchain-funcs versionator
|
|
||||||
|
|
||||||
MIN_PV="$(get_version_component_range 2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Netscape Portable Runtime"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mkdir build inst
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
|
|
||||||
# We do not need to pass -L$libdir via nspr-config --libs
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch
|
|
||||||
|
|
||||||
# We must run eautoconf to regenerate configure
|
|
||||||
cd "${S}"/mozilla/nsprpub
|
|
||||||
eautoconf
|
|
||||||
|
|
||||||
# make sure it won't find Perl out of Prefix
|
|
||||||
sed -i -e "s/perl5//g" "${S}"/mozilla/nsprpub/configure || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
|
||||||
"${S}"/mozilla/nsprpub/config/rules.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
cd "${S}"/build
|
|
||||||
|
|
||||||
# We use the standard BUILD_xxx but nspr uses HOST_xxx
|
|
||||||
tc-export_build_env BUILD_CC
|
|
||||||
export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS}
|
|
||||||
tc-export AR CC CXX RANLIB
|
|
||||||
[[ ${CBUILD} != ${CHOST} ]] \
|
|
||||||
&& export CROSS_COMPILE=1 \
|
|
||||||
|| unset CROSS_COMPILE
|
|
||||||
|
|
||||||
local myconf
|
|
||||||
echo > "${T}"/test.c
|
|
||||||
${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*32-bit*x86-64*|*64-bit*|*ppc64*|*x86_64*) myconf+=" --enable-64bit";;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Ancient autoconf needs help finding the right tools.
|
|
||||||
LC_ALL="C" ECONF_SOURCE="../mozilla/nsprpub" \
|
|
||||||
ac_cv_path_AR="${AR}" \
|
|
||||||
econf \
|
|
||||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable !debug optimize) \
|
|
||||||
${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "${S}"/build
|
|
||||||
emake || die "failed to build"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Their build system is royally confusing, as usual
|
|
||||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
|
||||||
cd "${S}"/build
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
|
|
||||||
cd "${ED}"/usr/$(get_libdir)
|
|
||||||
einfo "removing static libraries as upstream has requested!"
|
|
||||||
rm -f *.a || die "failed to remove static libraries."
|
|
||||||
|
|
||||||
# install nspr-config
|
|
||||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
|
||||||
|
|
||||||
# Remove stupid files in /usr/bin
|
|
||||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
|
||||||
}
|
|
@ -1,95 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.9.6.ebuild,v 1.1 2013/03/29 01:24:59 anarchy Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
WANT_AUTOCONF="2.1"
|
|
||||||
|
|
||||||
inherit autotools eutils multilib toolchain-funcs versionator
|
|
||||||
|
|
||||||
MIN_PV="$(get_version_component_range 2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Netscape Portable Runtime"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mkdir build inst
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
|
|
||||||
# We do not need to pass -L$libdir via nspr-config --libs
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch
|
|
||||||
|
|
||||||
# We must run eautoconf to regenerate configure
|
|
||||||
cd "${S}"/mozilla/nsprpub
|
|
||||||
eautoconf
|
|
||||||
|
|
||||||
# make sure it won't find Perl out of Prefix
|
|
||||||
sed -i -e "s/perl5//g" "${S}"/mozilla/nsprpub/configure || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
|
||||||
"${S}"/mozilla/nsprpub/config/rules.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
cd "${S}"/build
|
|
||||||
|
|
||||||
# We use the standard BUILD_xxx but nspr uses HOST_xxx
|
|
||||||
tc-export_build_env BUILD_CC
|
|
||||||
export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS}
|
|
||||||
tc-export AR CC CXX RANLIB
|
|
||||||
[[ ${CBUILD} != ${CHOST} ]] \
|
|
||||||
&& export CROSS_COMPILE=1 \
|
|
||||||
|| unset CROSS_COMPILE
|
|
||||||
|
|
||||||
local myconf
|
|
||||||
echo > "${T}"/test.c
|
|
||||||
${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*32-bit*x86-64*|*64-bit*|*ppc64*|*x86_64*) myconf+=" --enable-64bit";;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Ancient autoconf needs help finding the right tools.
|
|
||||||
LC_ALL="C" ECONF_SOURCE="../mozilla/nsprpub" \
|
|
||||||
ac_cv_path_AR="${AR}" \
|
|
||||||
econf \
|
|
||||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable !debug optimize) \
|
|
||||||
${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "${S}"/build
|
|
||||||
emake || die "failed to build"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Their build system is royally confusing, as usual
|
|
||||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
|
||||||
cd "${S}"/build
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
|
|
||||||
cd "${ED}"/usr/$(get_libdir)
|
|
||||||
einfo "removing static libraries as upstream has requested!"
|
|
||||||
rm -f *.a || die "failed to remove static libraries."
|
|
||||||
|
|
||||||
# install nspr-config
|
|
||||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
|
||||||
|
|
||||||
# Remove stupid files in /usr/bin
|
|
||||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
|
||||||
}
|
|
@ -1,108 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.9.ebuild,v 1.11 2013/01/06 18:14:51 armin76 Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
WANT_AUTOCONF="2.1"
|
|
||||||
|
|
||||||
inherit autotools eutils multilib toolchain-funcs versionator
|
|
||||||
|
|
||||||
MIN_PV="$(get_version_component_range 2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Netscape Portable Runtime"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ~ppc64 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mkdir build inst
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8-config.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.9-pkgconfig-gentoo.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
|
||||||
# Patch needs updating
|
|
||||||
#epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
|
|
||||||
|
|
||||||
# We must run eautoconf to regenerate configure
|
|
||||||
cd "${S}"/mozilla/nsprpub
|
|
||||||
eautoconf
|
|
||||||
|
|
||||||
# make sure it won't find Perl out of Prefix
|
|
||||||
sed -i -e "s/perl5//g" "${S}"/mozilla/nsprpub/configure || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
|
||||||
"${S}"/mozilla/nsprpub/config/rules.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
cd "${S}"/build
|
|
||||||
|
|
||||||
echo > "${T}"/test.c
|
|
||||||
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
|
|
||||||
case $(scanelf -BF'%M' "${T}"/test.o)$(scanmacho -BF'%M' "${T}"/test.o) in
|
|
||||||
ELFCLASS64*|POWERPC64*|X86_64*) myconf="${myconf} --enable-64bit";;
|
|
||||||
ELFCLASS32*|POWERPC*|I386*|ARM*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)"
|
|
||||||
|
|
||||||
LC_ALL="C" ECONF_SOURCE="../mozilla/nsprpub" econf \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable !debug optimize) \
|
|
||||||
${myconf} || die "econf failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cd "${S}"/build
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
emake CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" \
|
|
||||||
-C config nsinstall || die "failed to build"
|
|
||||||
mv config/{,native-}nsinstall
|
|
||||||
sed -s 's#/nsinstall$#/native-nsinstall#' -i config/autoconf.mk
|
|
||||||
rm config/nsinstall.o
|
|
||||||
fi
|
|
||||||
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "failed to build"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install () {
|
|
||||||
# Their build system is royally confusing, as usual
|
|
||||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
|
||||||
cd "${S}"/build
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
|
|
||||||
cd "${ED}"/usr/$(get_libdir)
|
|
||||||
for file in *.a; do
|
|
||||||
einfo "removing static libraries as upstream has requested!"
|
|
||||||
rm -f ${file} || die "failed to remove static libraries."
|
|
||||||
done
|
|
||||||
|
|
||||||
local n=
|
|
||||||
# aix-soname.patch does this already
|
|
||||||
[[ ${CHOST} == *-aix* ]] ||
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die "failed to mv files around"
|
|
||||||
ln -s ${n} ${file} || die "failed to symlink files."
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# install nspr-config
|
|
||||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
|
||||||
|
|
||||||
# Remove stupid files in /usr/bin
|
|
||||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
|
||||||
}
|
|
@ -1,18 +1,5 @@
|
|||||||
DIST nss-3.12.11.tar.gz 5944840 SHA256 d043f8d44212bc9418b6a954ca88e05b8ab2a71f8c59e6829a9a36d8a28e9f16 SHA512 3ed1134c972cee9ac23a77adc4c38eeb0597d0734b13b561ec74480560eb77b259ebc9708e4ecd8cc1565bfb6ae9e471c7131dd26ca48e6b427284c3c005ec6a WHIRLPOOL e4cc92496e62c49dd89e2263848154aeadcaea22b51d227e4f8dc41c1e8f9e7922f8e0ff7b99dffde845780a6277696b83339c49eff903885e0cf0ba5f283443
|
|
||||||
DIST nss-3.13.2-add_cacert_ca_certs-ported.patch 70938 SHA256 bd3e14436695c903279c2cf8982c8df0f20ab34cbe1a7f955aaf861f19a3bf25 SHA512 0b68f54fd5b7239cd05dd217b9fe0d64cb5942c2058f86990ddb65d4ea0c141bd750b79ebaa735c44bdea2798ce014228b6c9cc797d9c2cfd768c09ebe62e3e8 WHIRLPOOL 10b8756c211e6411a6483466518fe994c5732ae331d8b4f1bf0f4612496ee3072dcbb6c3b9f98d9744b01ed1ee681415eb3a8f83cb364926d6353a20fdb36e3f
|
|
||||||
DIST nss-3.13.2.tar.gz 6082528 SHA256 92eafdbb62e3071afe71beeaca94c9f33b0b8d11654cbf1797c84aa9f7c1c8e5 SHA512 017bb994257452304e6c42ecb7320221a41b2c83fe183e3172b4df93f65289c90083d361f417d9167981e9f6553a5fd59144a24b9cd72370747e371363243f49 WHIRLPOOL 84c0487f1fa99709db8991a7d24c78f1eaf2820909e789c24546b552a76dd665e9d5123e28b857e56bc5cf57d005dd0f8afbeda9aaede37cb25850259b13d9c6
|
|
||||||
DIST nss-3.13.3-add_spi+cacerts_ca_certs.patch 69983 SHA256 aa3e4ac057865b6c90718d1c815686867ff96540bb500b9191a632c029d2ad9e SHA512 4b1e76326d8924a24189836c504c743954783d7cc4a60a55d5daf6d173a501e232f8e470bd64a92f9b0864c1d0bf7155107e161204e1082f33e1f6527a8d4d39 WHIRLPOOL 1a94f025a1bfdb9d0afce1f8d78c3a17a732384eb04e555c1752ad6a8dd185f334b77130ffce356d164028c9b54ff787d0fd3149b8622eb53084c298c0c0829c
|
|
||||||
DIST nss-3.13.3.tar.gz 6083507 SHA256 efa10f2c70da4bddabf1a6081964969bb23359b93d6eadbf4739274a77bc3587 SHA512 b4f963f97801bd03e98840e06fd448b3107a04c4cd62bcf03178b33d33c30337ffd7818535af745c254282b52d4b7a6a4b5b04b17da9ed0b170cdf72a165841c WHIRLPOOL 4351c87345466009949b53094550804b5889c94c7690408782acf91f179fe1872b1ba4b79661c4a481f0f2545246d6024c2b423648b69b79a133dce64eb9a93a
|
|
||||||
DIST nss-3.13.3_pem.support 191571 SHA256 cb6cf7955203514b3c1210c9b32504b0d2f1c158fa9b5d2509ef0bb34b68374c SHA512 223026adbacf2f325f808210cc050f95cb65cb0fe8c6022109a42bd991fd576e2e96beb5ec8e185dbbd649f4bd4516bc0f7fc10401f47eda806ab2d63f0c23a3 WHIRLPOOL 78345665e54fe67f57bc09311567ad525f9a8dae7d17e600a9639fac820fcf9c64e9f4bacc5df3f90b90a224e374ac44e938962c5248189fe76dad7143bf3476
|
DIST nss-3.13.3_pem.support 191571 SHA256 cb6cf7955203514b3c1210c9b32504b0d2f1c158fa9b5d2509ef0bb34b68374c SHA512 223026adbacf2f325f808210cc050f95cb65cb0fe8c6022109a42bd991fd576e2e96beb5ec8e185dbbd649f4bd4516bc0f7fc10401f47eda806ab2d63f0c23a3 WHIRLPOOL 78345665e54fe67f57bc09311567ad525f9a8dae7d17e600a9639fac820fcf9c64e9f4bacc5df3f90b90a224e374ac44e938962c5248189fe76dad7143bf3476
|
||||||
DIST nss-3.13.4.tar.gz 6087584 SHA256 a552f56b03c0c716ba950c7eef971d87f717c02a4d9a75ee2fe84bd036830de5 SHA512 d39117239030b93e4e644ffaec6788f6b2d4ef604cb6232ca0146882e6d9315834e73804c1b67bf90e79c533104c856cc141a4153f7d946beb122ced0ce49173 WHIRLPOOL 67d5f4468543f4afe9734036acbfbde4c6dc21f7e2ef7c634001587d7f066af5db9cc544953fdfd500aa94ca89ec65ef117aa8b923a189dbbf80247e2b088bd1
|
|
||||||
DIST nss-3.13.5.tar.gz 6087983 SHA256 ee8b995ebc971308a5bc8b50eb391cd925d6ee7c5e139d25018ee993e71b012a SHA512 8096390bbb8544ef1c3d5b8e3245b5bb618b4fa718e2fb8ab4c134f3e8b386c07146bbd60a16edd261b4c5014d29b6cf85118ad0e7e43b53ba3fd7c25a7c79b5 WHIRLPOOL 7aeae5506bbf7f118ea6139cde6444fbc2c3152ef41a606d690d04956692c88303779a52147c7bece5a4f943b271b887e9008e3802a8e367edbfb7a353246960
|
|
||||||
DIST nss-3.13.6-add_spi+cacerts_ca_certs.patch 70095 SHA256 66779b7c64f0f71662f29f8127f78eac086b1415778872cdbfdf3017bacbca9f SHA512 3aaf7671a179e28f2bb80a9d9f753337e15ed46df97724a9517c58f436b4e835815b974de9344bb422326b0625de52e6444523b37f36d4bdcda0a05e9839ce4c WHIRLPOOL 48bd80ffef3ca7f007f02f654cb33e7887bd4b5ce91e5ef2b9c88ca888aeda5ce8d02f41c4ed38b553ade572256fbf84a42de87814c5e6b4252950bd2555a74a
|
|
||||||
DIST nss-3.13.6.tar.gz 6109538 SHA256 f7e90727e0ecc1c29de10da39a79bc9c53b814ccfbf40720e053b29c683d43a0 SHA512 45bc254eb238ea23fdd8d2c9128a22cebe15fda9ed5c9c1d112b5756d4d2b76e7f3a99d3600254bdcd6eeb18bda224d52e676e169207193798200f0d41baa29d WHIRLPOOL 8172b4a29a513ed931d8b9c5b72270e448282ff7454ea8aea9fba23e667f8c76417861f3f716857ba05e38f0ee940fc21d86d7343e1ffc780a849c37929b94aa
|
|
||||||
DIST nss-3.14-add_spi+cacerts_ca_certs.patch 52742 SHA256 15ed527acdf49922fcfab624c8d796d908e65217f40887963bb2457c7e1585cd SHA512 60f1123d98ebd0f6f5d03f5f9accd77e4a2e287be576a1d339902ee5f6b5e3ddfb6e4c96260c4a1902e5b89fed5865c8f5fa721105868ef11c204e845f591a8c WHIRLPOOL 2dfa0738ab7b15493c3935a9d8297dc9734b8f12895373e58853c84c2257d4f0145a5600081da4d63e0f59341a8756d366fe1b5ce6214c54e91aabe2ef76f3e5
|
|
||||||
DIST nss-3.14.1-add_spi+cacerts_ca_certs.patch 25018 SHA256 82ca25982828fd7153ad15fc6e81408c115476eeeb4045d3a71469380b56824b SHA512 2aafbd972b073061bfd66a66a4b50060691957f2910f716f7a69d22d655c499f186f05db2101bea5248a00949f339327ba8bfffec024c61c8ee908766201ae00 WHIRLPOOL c9fe397e316dac7983b187acf7227078ebd8f8da5df53f77f2564489e85f123c4d2afb88d56e8dc14b9ebfffe8a71ade4724b3c1ea683c5c4c487cb3a64eda43
|
DIST nss-3.14.1-add_spi+cacerts_ca_certs.patch 25018 SHA256 82ca25982828fd7153ad15fc6e81408c115476eeeb4045d3a71469380b56824b SHA512 2aafbd972b073061bfd66a66a4b50060691957f2910f716f7a69d22d655c499f186f05db2101bea5248a00949f339327ba8bfffec024c61c8ee908766201ae00 WHIRLPOOL c9fe397e316dac7983b187acf7227078ebd8f8da5df53f77f2564489e85f123c4d2afb88d56e8dc14b9ebfffe8a71ade4724b3c1ea683c5c4c487cb3a64eda43
|
||||||
DIST nss-3.14.1.tar.gz 5814063 SHA256 80a5d4872da13d0272636ad04e1beddcf8d4572bcc0d47dbea1d12fb592fb7e5 SHA512 f62a7ebcdade8815379f80929c63de1284c3ca3f5c87214cb5b327f6689635118d301969d4ef0e1940c7a426253b13ce54acd68a91abc23ab32626341217580e WHIRLPOOL 8b292433ec764cfe857bd7cb25c216905b785c536176ece14571c9e7017a93c7a8562502645d71eed7da9f5cc52c65564c294a8a2b75ea43bda19049d6c393bb
|
|
||||||
DIST nss-3.14.2.tar.gz 6178419 SHA256 a22691209f4c4989812939c7e38c48a1df09f4b80e7ce4c66b66c9a59235ae95 SHA512 65303f09ef09900512da8d19f7f35f50ef07926256bc5b548a665b5f2ea82bf02548bc8464e0f3723014f3f0f3d2e908faf9ef82b564be21adb7da7f5295e137 WHIRLPOOL 71063478b5083e7cad64e06e84fc8a713c45b85ce9d6f0ad1af16c38b5cbb89779fd35c93813644a8d0c0c1e729805b957c44b6b0f7acf60c8032ed0eb98b4a9
|
|
||||||
DIST nss-3.14.3.tar.gz 6189790 SHA256 d9d366be94d33395597ebf82363fcdedfa693a6d627cf7f6bec025f609d54cc0 SHA512 4e8d8517ffb6d03da274afe9a7c50e2f0a15ffdd83e63f29a445e7aee829a8b7e2fbc772695322bd6acee81c052811735b542978044996156cb52dd7e4c001ec WHIRLPOOL 1c1c341303c8c1a13a10b732ac27d5ac8f3245b220436848bdf3877fb1487dba71654908f58810d49869e5af2a86842c4638415b283114bae0f4fbfaee3c4b29
|
DIST nss-3.14.3.tar.gz 6189790 SHA256 d9d366be94d33395597ebf82363fcdedfa693a6d627cf7f6bec025f609d54cc0 SHA512 4e8d8517ffb6d03da274afe9a7c50e2f0a15ffdd83e63f29a445e7aee829a8b7e2fbc772695322bd6acee81c052811735b542978044996156cb52dd7e4c001ec WHIRLPOOL 1c1c341303c8c1a13a10b732ac27d5ac8f3245b220436848bdf3877fb1487dba71654908f58810d49869e5af2a86842c4638415b283114bae0f4fbfaee3c4b29
|
||||||
DIST nss-3.14.tar.gz 6068755 SHA256 b01868959d50263265aacc5a09f9a9eefbbde5f35604c2977f9714696f1d3e2b SHA512 c5aba091fddcdd57a8cda879a90cf05eeacedf5d734be8eaaec9051aaa6c468b0c8b9816db3cb864859702f90f49fd37971eca98754763b778dcd5fb3d1f7358 WHIRLPOOL b795c55c4dcb7878c4e887b6dc52213d1c31e09ea969df0d8b642b1010b5900c8734de70287141be2ca93a77631b312e68e9e781689f158bb104c501882046ae
|
|
||||||
DIST nss-3.15-pem-support-20130617.patch.xz 27800 SHA256 01885877f12b0460798760617c9b0a1f8ed05ad0130e924211bd73fc344535cc SHA512 ebf0633e1683b3b9efe340d1117e02f1ced7e8381c7e867fff77efc3c41df1a32f017b18816ae6a04b35b5006c83e557c47a13ae576f50a84f9770c321dfa34b WHIRLPOOL 88f5edc621ca7862dc2e433836e11caa60752dc8f95bc7f49bcf07cdd0b3d8f2d7642ee02b018b8429a3e358e252ecdf3de40a1b12fab1f0fa13ca360e02a53c
|
DIST nss-3.15-pem-support-20130617.patch.xz 27800 SHA256 01885877f12b0460798760617c9b0a1f8ed05ad0130e924211bd73fc344535cc SHA512 ebf0633e1683b3b9efe340d1117e02f1ced7e8381c7e867fff77efc3c41df1a32f017b18816ae6a04b35b5006c83e557c47a13ae576f50a84f9770c321dfa34b WHIRLPOOL 88f5edc621ca7862dc2e433836e11caa60752dc8f95bc7f49bcf07cdd0b3d8f2d7642ee02b018b8429a3e358e252ecdf3de40a1b12fab1f0fa13ca360e02a53c
|
||||||
DIST nss-3.15.tar.gz 6276213 SHA256 c139f331ddcff4d5485590ee1b4489d3731aa520d4f5d942e2e40bba1e23a3cd SHA512 a703bb6fb466bfdde84f112eabe44f2db0b938b9e34ff32143ad913cd7a8891748579eca8cdd10b2a6e5eaa062a0522af8f767ec4de706178efd172d3c5875a9 WHIRLPOOL 80e76f6e36b814f7338d695220250aa68bd5757a5f3294609d3812708c30f2a77c9bdfcd6eeace34473afe22e0b0bd75eb848c168ea4e3a6327203dd323b66bf
|
DIST nss-3.15.tar.gz 6276213 SHA256 c139f331ddcff4d5485590ee1b4489d3731aa520d4f5d942e2e40bba1e23a3cd SHA512 a703bb6fb466bfdde84f112eabe44f2db0b938b9e34ff32143ad913cd7a8891748579eca8cdd10b2a6e5eaa062a0522af8f767ec4de706178efd172d3c5875a9 WHIRLPOOL 80e76f6e36b814f7338d695220250aa68bd5757a5f3294609d3812708c30f2a77c9bdfcd6eeace34473afe22e0b0bd75eb848c168ea4e3a6327203dd323b66bf
|
||||||
|
@ -1,137 +0,0 @@
|
|||||||
Index: mozilla/security/nss/lib/softoken/sftkmod.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvsroot/mozilla/security/nss/lib/softoken/sftkmod.c,v
|
|
||||||
--- mozilla/security/nss/lib/softoken/sftkmod.c 15 Jan 2011 20:59:11 -0000 1.8
|
|
||||||
+++ mozilla/security/nss/lib/softoken/sftkmod.c 2 Oct 2011 14:45:28 -0000
|
|
||||||
@@ -179,15 +179,18 @@ char *sftk_getOldSecmodName(const char *
|
|
||||||
char *sep;
|
|
||||||
|
|
||||||
sep = PORT_Strrchr(dirPath,*PATH_SEPARATOR);
|
|
||||||
-#ifdef WINDOWS
|
|
||||||
+#ifdef _WIN32
|
|
||||||
if (!sep) {
|
|
||||||
- sep = PORT_Strrchr(dirPath,'/');
|
|
||||||
+ /* pkcs11i.h defines PATH_SEPARATOR as "/" for all platforms. */
|
|
||||||
+ sep = PORT_Strrchr(dirPath,'\\');
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
if (sep) {
|
|
||||||
- *(sep)=0;
|
|
||||||
+ *sep = 0;
|
|
||||||
+ file = PR_smprintf("%s"PATH_SEPARATOR"%s", dirPath, filename);
|
|
||||||
+ } else {
|
|
||||||
+ file = PR_smprintf("%s", filename);
|
|
||||||
}
|
|
||||||
- file= PR_smprintf("%s"PATH_SEPARATOR"%s", dirPath, filename);
|
|
||||||
PORT_Free(dirPath);
|
|
||||||
return file;
|
|
||||||
}
|
|
||||||
@@ -242,13 +245,18 @@ sftkdb_ReadSecmodDB(SDBType dbType, cons
|
|
||||||
char *paramsValue=NULL;
|
|
||||||
PRBool failed = PR_TRUE;
|
|
||||||
|
|
||||||
- if ((dbType == SDB_LEGACY) || (dbType == SDB_MULTIACCESS)) {
|
|
||||||
+ if ((dbname != NULL) &&
|
|
||||||
+ ((dbType == SDB_LEGACY) || (dbType == SDB_MULTIACCESS))) {
|
|
||||||
return sftkdbCall_ReadSecmodDB(appName, filename, dbname, params, rw);
|
|
||||||
}
|
|
||||||
|
|
||||||
moduleList = (char **) PORT_ZAlloc(useCount*sizeof(char **));
|
|
||||||
if (moduleList == NULL) return NULL;
|
|
||||||
|
|
||||||
+ if (dbname == NULL) {
|
|
||||||
+ goto return_default;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
/* do we really want to use streams here */
|
|
||||||
fd = fopen(dbname, "r");
|
|
||||||
if (fd == NULL) goto done;
|
|
||||||
@@ -405,7 +413,11 @@ sftkdb_ReadSecmodDB(SDBType dbType, cons
|
|
||||||
moduleString = NULL;
|
|
||||||
}
|
|
||||||
done:
|
|
||||||
- /* if we couldn't open a pkcs11 database, look for the old one */
|
|
||||||
+ /* If we couldn't open a pkcs11 database, look for the old one.
|
|
||||||
+ * This is necessary to maintain the semantics of the transition from
|
|
||||||
+ * old to new DB's. If there is an old DB and not new DB, we will
|
|
||||||
+ * automatically use the old DB. If the DB was opened read/write, we
|
|
||||||
+ * create a new db and upgrade it from the old one. */
|
|
||||||
if (fd == NULL) {
|
|
||||||
char *olddbname = sftk_getOldSecmodName(dbname,filename);
|
|
||||||
PRStatus status;
|
|
||||||
@@ -462,6 +474,8 @@ bail:
|
|
||||||
PR_smprintf_free(olddbname);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+return_default:
|
|
||||||
|
|
||||||
if (!moduleList[0]) {
|
|
||||||
char * newParams;
|
|
||||||
@@ -515,7 +529,8 @@ sftkdb_ReleaseSecmodDBData(SDBType dbTyp
|
|
||||||
const char *filename, const char *dbname,
|
|
||||||
char **moduleSpecList, PRBool rw)
|
|
||||||
{
|
|
||||||
- if ((dbType == SDB_LEGACY) || (dbType == SDB_MULTIACCESS)) {
|
|
||||||
+ if ((dbname != NULL) &&
|
|
||||||
+ ((dbType == SDB_LEGACY) || (dbType == SDB_MULTIACCESS))) {
|
|
||||||
return sftkdbCall_ReleaseSecmodDBData(appName, filename, dbname,
|
|
||||||
moduleSpecList, rw);
|
|
||||||
}
|
|
||||||
@@ -546,6 +561,10 @@ sftkdb_DeleteSecmodDB(SDBType dbType, co
|
|
||||||
PRBool skip = PR_FALSE;
|
|
||||||
PRBool found = PR_FALSE;
|
|
||||||
|
|
||||||
+ if (dbname == NULL) {
|
|
||||||
+ return SECFailure;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
if ((dbType == SDB_LEGACY) || (dbType == SDB_MULTIACCESS)) {
|
|
||||||
return sftkdbCall_DeleteSecmodDB(appName, filename, dbname, args, rw);
|
|
||||||
}
|
|
||||||
@@ -669,6 +688,10 @@ sftkdb_AddSecmodDB(SDBType dbType, const
|
|
||||||
char *block = NULL;
|
|
||||||
PRBool libFound = PR_FALSE;
|
|
||||||
|
|
||||||
+ if (dbname == NULL) {
|
|
||||||
+ return SECFailure;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
if ((dbType == SDB_LEGACY) || (dbType == SDB_MULTIACCESS)) {
|
|
||||||
return sftkdbCall_AddSecmodDB(appName, filename, dbname, module, rw);
|
|
||||||
}
|
|
||||||
Index: mozilla/security/nss/lib/softoken/sftkpars.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvsroot/mozilla/security/nss/lib/softoken/sftkpars.c,v
|
|
||||||
--- mozilla/security/nss/lib/softoken/sftkpars.c 18 Jun 2010 04:09:27 -0000 1.11
|
|
||||||
+++ mozilla/security/nss/lib/softoken/sftkpars.c 2 Oct 2011 14:45:29 -0000
|
|
||||||
@@ -607,6 +607,7 @@ sftk_getSecmodName(char *param, SDBType
|
|
||||||
char *value = NULL;
|
|
||||||
char *save_params = param;
|
|
||||||
const char *lconfigdir;
|
|
||||||
+ PRBool noModDB = PR_FALSE;
|
|
||||||
param = sftk_argStrip(param);
|
|
||||||
|
|
||||||
|
|
||||||
@@ -631,7 +632,10 @@ sftk_getSecmodName(char *param, SDBType
|
|
||||||
|
|
||||||
if (sftk_argHasFlag("flags","noModDB",save_params)) {
|
|
||||||
/* there isn't a module db, don't load the legacy support */
|
|
||||||
+ noModDB = PR_TRUE;
|
|
||||||
*dbType = SDB_SQL;
|
|
||||||
+ PORT_Free(*filename);
|
|
||||||
+ *filename = NULL;
|
|
||||||
*rw = PR_FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -640,7 +644,9 @@ sftk_getSecmodName(char *param, SDBType
|
|
||||||
secmodName="pkcs11.txt";
|
|
||||||
}
|
|
||||||
|
|
||||||
- if (lconfigdir) {
|
|
||||||
+ if (noModDB) {
|
|
||||||
+ value = NULL;
|
|
||||||
+ } else if (lconfigdir && lconfigdir[0] != '\0') {
|
|
||||||
value = PR_smprintf("%s" PATH_SEPARATOR "%s",lconfigdir,secmodName);
|
|
||||||
} else {
|
|
||||||
value = PR_smprintf("%s",secmodName);
|
|
@ -1,33 +0,0 @@
|
|||||||
--- mozilla/security/coreconf/SunOS5.mk.orig 2009-10-02 10:51:26.617090950 +0200
|
|
||||||
+++ mozilla/security/coreconf/SunOS5.mk 2009-10-02 10:53:39.756260510 +0200
|
|
||||||
@@ -37,6 +37,9 @@
|
|
||||||
|
|
||||||
include $(CORE_DEPTH)/coreconf/UNIX.mk
|
|
||||||
|
|
||||||
+NS_USE_GCC = 1
|
|
||||||
+GCC_USE_GNU_LD = 1
|
|
||||||
+
|
|
||||||
#
|
|
||||||
# Temporary define for the Client; to be removed when binary release is used
|
|
||||||
#
|
|
||||||
@@ -104,7 +107,7 @@
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
-INCLUDES += -I/usr/dt/include -I/usr/openwin/include
|
|
||||||
+#INCLUDES += -I/usr/dt/include -I/usr/openwin/include
|
|
||||||
|
|
||||||
RANLIB = echo
|
|
||||||
CPU_ARCH = sparc
|
|
||||||
@@ -114,11 +117,6 @@
|
|
||||||
NOMD_OS_CFLAGS += $(DSO_CFLAGS) $(OS_DEFINES) $(SOL_CFLAGS)
|
|
||||||
|
|
||||||
MKSHLIB = $(CC) $(DSO_LDOPTS) $(RPATH)
|
|
||||||
-ifdef NS_USE_GCC
|
|
||||||
-ifeq (GNU,$(findstring GNU,$(shell `$(CC) -print-prog-name=ld` -v 2>&1)))
|
|
||||||
- GCC_USE_GNU_LD = 1
|
|
||||||
-endif
|
|
||||||
-endif
|
|
||||||
ifdef MAPFILE
|
|
||||||
ifdef NS_USE_GCC
|
|
||||||
ifdef GCC_USE_GNU_LD
|
|
@ -1,245 +0,0 @@
|
|||||||
diff -urN nss-3.12.5-orig/mozilla/security/nss/config/Makefile nss-3.12.5/mozilla/security/nss/config/Makefile
|
|
||||||
--- nss-3.12.5-orig/mozilla/security/nss/config/Makefile 1969-12-31 18:00:00.000000000 -0600
|
|
||||||
+++ nss-3.12.5/mozilla/security/nss/config/Makefile 2009-09-14 21:45:45.619639265 -0500
|
|
||||||
@@ -0,0 +1,40 @@
|
|
||||||
+CORE_DEPTH = ../..
|
|
||||||
+DEPTH = ../..
|
|
||||||
+
|
|
||||||
+include $(CORE_DEPTH)/coreconf/config.mk
|
|
||||||
+
|
|
||||||
+NSS_MAJOR_VERSION = `grep "NSS_VMAJOR" ../lib/nss/nss.h | awk '{print $$3}'`
|
|
||||||
+NSS_MINOR_VERSION = `grep "NSS_VMINOR" ../lib/nss/nss.h | awk '{print $$3}'`
|
|
||||||
+NSS_PATCH_VERSION = `grep "NSS_VPATCH" ../lib/nss/nss.h | awk '{print $$3}'`
|
|
||||||
+PREFIX = /usr
|
|
||||||
+
|
|
||||||
+all: export libs
|
|
||||||
+
|
|
||||||
+export:
|
|
||||||
+ # Create the nss.pc file
|
|
||||||
+ mkdir -p $(DIST)/lib/pkgconfig
|
|
||||||
+ sed -e "s,@prefix@,$(PREFIX)," \
|
|
||||||
+ -e "s,@exec_prefix@,\$${prefix}," \
|
|
||||||
+ -e "s,@libdir@,\$${prefix}/gentoo/nss," \
|
|
||||||
+ -e "s,@includedir@,\$${prefix}/include/nss," \
|
|
||||||
+ -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION),g" \
|
|
||||||
+ -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
|
|
||||||
+ -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
|
|
||||||
+ nss.pc.in > nss.pc
|
|
||||||
+ chmod 0644 nss.pc
|
|
||||||
+ ln -sf ../../../../../security/nss/config/nss.pc $(DIST)/lib/pkgconfig
|
|
||||||
+
|
|
||||||
+ # Create the nss-config script
|
|
||||||
+ mkdir -p $(DIST)/bin
|
|
||||||
+ sed -e "s,@prefix@,$(PREFIX)," \
|
|
||||||
+ -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION)," \
|
|
||||||
+ -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
|
|
||||||
+ -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
|
|
||||||
+ nss-config.in > nss-config
|
|
||||||
+ chmod 0755 nss-config
|
|
||||||
+ ln -sf ../../../../security/nss/config/nss-config $(DIST)/bin
|
|
||||||
+
|
|
||||||
+libs:
|
|
||||||
+
|
|
||||||
+dummy: all export libs
|
|
||||||
+
|
|
||||||
diff -urN nss-3.12.5-orig/mozilla/security/nss/config/nss-config.in nss-3.12.5/mozilla/security/nss/config/nss-config.in
|
|
||||||
--- nss-3.12.5-orig/mozilla/security/nss/config/nss-config.in 1969-12-31 18:00:00.000000000 -0600
|
|
||||||
+++ nss-3.12.5/mozilla/security/nss/config/nss-config.in 2009-09-14 21:47:45.190638078 -0500
|
|
||||||
@@ -0,0 +1,145 @@
|
|
||||||
+#!/bin/sh
|
|
||||||
+
|
|
||||||
+prefix=@prefix@
|
|
||||||
+
|
|
||||||
+major_version=@NSS_MAJOR_VERSION@
|
|
||||||
+minor_version=@NSS_MINOR_VERSION@
|
|
||||||
+patch_version=@NSS_PATCH_VERSION@
|
|
||||||
+
|
|
||||||
+usage()
|
|
||||||
+{
|
|
||||||
+ cat <<EOF
|
|
||||||
+Usage: nss-config [OPTIONS] [LIBRARIES]
|
|
||||||
+Options:
|
|
||||||
+ [--prefix[=DIR]]
|
|
||||||
+ [--exec-prefix[=DIR]]
|
|
||||||
+ [--includedir[=DIR]]
|
|
||||||
+ [--libdir[=DIR]]
|
|
||||||
+ [--version]
|
|
||||||
+ [--libs]
|
|
||||||
+ [--cflags]
|
|
||||||
+Dynamic Libraries:
|
|
||||||
+ nss
|
|
||||||
+ ssl
|
|
||||||
+ smime
|
|
||||||
+ nssutil
|
|
||||||
+EOF
|
|
||||||
+ exit $1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+if test $# -eq 0; then
|
|
||||||
+ usage 1 1>&2
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+lib_ssl=yes
|
|
||||||
+lib_smime=yes
|
|
||||||
+lib_nss=yes
|
|
||||||
+lib_nssutil=yes
|
|
||||||
+
|
|
||||||
+while test $# -gt 0; do
|
|
||||||
+ case "$1" in
|
|
||||||
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
||||||
+ *) optarg= ;;
|
|
||||||
+ esac
|
|
||||||
+
|
|
||||||
+ case $1 in
|
|
||||||
+ --prefix=*)
|
|
||||||
+ prefix=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --prefix)
|
|
||||||
+ echo_prefix=yes
|
|
||||||
+ ;;
|
|
||||||
+ --exec-prefix=*)
|
|
||||||
+ exec_prefix=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --exec-prefix)
|
|
||||||
+ echo_exec_prefix=yes
|
|
||||||
+ ;;
|
|
||||||
+ --includedir=*)
|
|
||||||
+ includedir=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --includedir)
|
|
||||||
+ echo_includedir=yes
|
|
||||||
+ ;;
|
|
||||||
+ --libdir=*)
|
|
||||||
+ libdir=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --libdir)
|
|
||||||
+ echo_libdir=yes
|
|
||||||
+ ;;
|
|
||||||
+ --version)
|
|
||||||
+ echo ${major_version}.${minor_version}.${patch_version}
|
|
||||||
+ ;;
|
|
||||||
+ --cflags)
|
|
||||||
+ echo_cflags=yes
|
|
||||||
+ ;;
|
|
||||||
+ --libs)
|
|
||||||
+ echo_libs=yes
|
|
||||||
+ ;;
|
|
||||||
+ ssl)
|
|
||||||
+ lib_ssl=yes
|
|
||||||
+ ;;
|
|
||||||
+ smime)
|
|
||||||
+ lib_smime=yes
|
|
||||||
+ ;;
|
|
||||||
+ nss)
|
|
||||||
+ lib_nss=yes
|
|
||||||
+ ;;
|
|
||||||
+ nssutil)
|
|
||||||
+ lib_nssutil=yes
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ usage 1 1>&2
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+ shift
|
|
||||||
+done
|
|
||||||
+
|
|
||||||
+# Set variables that may be dependent upon other variables
|
|
||||||
+if test -z "$exec_prefix"; then
|
|
||||||
+ exec_prefix=`pkg-config --variable=exec_prefix nss`
|
|
||||||
+fi
|
|
||||||
+if test -z "$includedir"; then
|
|
||||||
+ includedir=`pkg-config --variable=includedir nss`
|
|
||||||
+fi
|
|
||||||
+if test -z "$libdir"; then
|
|
||||||
+ libdir=`pkg-config --variable=libdir nss`
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_prefix" = "yes"; then
|
|
||||||
+ echo $prefix
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_exec_prefix" = "yes"; then
|
|
||||||
+ echo $exec_prefix
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_includedir" = "yes"; then
|
|
||||||
+ echo $includedir
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_libdir" = "yes"; then
|
|
||||||
+ echo $libdir
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_cflags" = "yes"; then
|
|
||||||
+ echo -I$includedir
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_libs" = "yes"; then
|
|
||||||
+ libdirs="-Wl,-R$libdir -L$libdir"
|
|
||||||
+ if test -n "$lib_ssl"; then
|
|
||||||
+ libdirs="$libdirs -lssl${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ if test -n "$lib_smime"; then
|
|
||||||
+ libdirs="$libdirs -lsmime${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ if test -n "$lib_nss"; then
|
|
||||||
+ libdirs="$libdirs -lnss${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ if test -n "$lib_nssutil"; then
|
|
||||||
+ libdirs="$libdirs -lnssutil${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ echo $libdirs
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
diff -urN nss-3.12.5-orig/mozilla/security/nss/config/nss.pc.in nss-3.12.5/mozilla/security/nss/config/nss.pc.in
|
|
||||||
--- nss-3.12.5-orig/mozilla/security/nss/config/nss.pc.in 1969-12-31 18:00:00.000000000 -0600
|
|
||||||
+++ nss-3.12.5/mozilla/security/nss/config/nss.pc.in 2009-09-14 21:45:45.653637310 -0500
|
|
||||||
@@ -0,0 +1,12 @@
|
|
||||||
+prefix=@prefix@
|
|
||||||
+exec_prefix=@exec_prefix@
|
|
||||||
+libdir=@libdir@
|
|
||||||
+includedir=@includedir@
|
|
||||||
+
|
|
||||||
+Name: NSS
|
|
||||||
+Description: Network Security Services
|
|
||||||
+Version: @NSS_MAJOR_VERSION@.@NSS_MINOR_VERSION@.@NSS_PATCH_VERSION@
|
|
||||||
+Requires: nspr >= 4.8
|
|
||||||
+Libs: -L${libdir} -lssl3 -lsmime3 -lnssutil3 -lnss3 -Wl,-R${libdir}
|
|
||||||
+Cflags: -I${includedir}
|
|
||||||
+
|
|
||||||
diff -urN nss-3.12.5-orig/mozilla/security/nss/Makefile nss-3.12.5/mozilla/security/nss/Makefile
|
|
||||||
--- nss-3.12.5-orig/mozilla/security/nss/Makefile 2008-12-02 17:24:39.000000000 -0600
|
|
||||||
+++ nss-3.12.5/mozilla/security/nss/Makefile 2009-09-14 21:45:45.678657145 -0500
|
|
||||||
@@ -78,7 +78,7 @@
|
|
||||||
# (7) Execute "local" rules. (OPTIONAL). #
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
-nss_build_all: build_coreconf build_nspr build_dbm all
|
|
||||||
+nss_build_all: build_coreconf build_dbm all
|
|
||||||
|
|
||||||
nss_clean_all: clobber_coreconf clobber_nspr clobber_dbm clobber
|
|
||||||
|
|
||||||
@@ -140,12 +140,6 @@
|
|
||||||
--with-dist-prefix='$(NSPR_PREFIX)' \
|
|
||||||
--with-dist-includedir='$(NSPR_PREFIX)/include'
|
|
||||||
|
|
||||||
-build_nspr: $(NSPR_CONFIG_STATUS)
|
|
||||||
- cd $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME) ; $(MAKE)
|
|
||||||
-
|
|
||||||
-clobber_nspr: $(NSPR_CONFIG_STATUS)
|
|
||||||
- cd $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME) ; $(MAKE) clobber
|
|
||||||
-
|
|
||||||
build_dbm:
|
|
||||||
ifndef NSS_DISABLE_DBM
|
|
||||||
cd $(CORE_DEPTH)/dbm ; $(MAKE) export libs
|
|
||||||
diff -urN nss-3.12.5-orig/mozilla/security/nss/manifest.mn nss-3.12.5/mozilla/security/nss/manifest.mn
|
|
||||||
--- nss-3.12.5-orig/mozilla/security/nss/manifest.mn 2008-04-04 15:36:59.000000000 -0500
|
|
||||||
+++ nss-3.12.5/mozilla/security/nss/manifest.mn 2009-09-14 21:45:45.703656167 -0500
|
|
||||||
@@ -42,6 +42,6 @@
|
|
||||||
|
|
||||||
RELEASE = nss
|
|
||||||
|
|
||||||
-DIRS = lib cmd
|
|
||||||
+DIRS = lib cmd config
|
|
||||||
|
|
||||||
|
|
@ -1,245 +0,0 @@
|
|||||||
diff -urN a/mozilla/security/nss/config/Makefile b/mozilla/security/nss/config/Makefile
|
|
||||||
--- a/mozilla/security/nss/config/Makefile 1969-12-31 18:00:00.000000000 -0600
|
|
||||||
+++ b/mozilla/security/nss/config/Makefile 2009-09-14 21:45:45.619639265 -0500
|
|
||||||
@@ -0,0 +1,40 @@
|
|
||||||
+CORE_DEPTH = ../..
|
|
||||||
+DEPTH = ../..
|
|
||||||
+
|
|
||||||
+include $(CORE_DEPTH)/coreconf/config.mk
|
|
||||||
+
|
|
||||||
+NSS_MAJOR_VERSION = `grep "NSS_VMAJOR" ../lib/nss/nss.h | awk '{print $$3}'`
|
|
||||||
+NSS_MINOR_VERSION = `grep "NSS_VMINOR" ../lib/nss/nss.h | awk '{print $$3}'`
|
|
||||||
+NSS_PATCH_VERSION = `grep "NSS_VPATCH" ../lib/nss/nss.h | awk '{print $$3}'`
|
|
||||||
+PREFIX = /usr
|
|
||||||
+
|
|
||||||
+all: export libs
|
|
||||||
+
|
|
||||||
+export:
|
|
||||||
+ # Create the nss.pc file
|
|
||||||
+ mkdir -p $(DIST)/lib/pkgconfig
|
|
||||||
+ sed -e "s,@prefix@,$(PREFIX)," \
|
|
||||||
+ -e "s,@exec_prefix@,\$${prefix}," \
|
|
||||||
+ -e "s,@libdir@,\$${prefix}/gentoo/nss," \
|
|
||||||
+ -e "s,@includedir@,\$${prefix}/include/nss," \
|
|
||||||
+ -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION),g" \
|
|
||||||
+ -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
|
|
||||||
+ -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
|
|
||||||
+ nss.pc.in > nss.pc
|
|
||||||
+ chmod 0644 nss.pc
|
|
||||||
+ ln -sf ../../../../../security/nss/config/nss.pc $(DIST)/lib/pkgconfig
|
|
||||||
+
|
|
||||||
+ # Create the nss-config script
|
|
||||||
+ mkdir -p $(DIST)/bin
|
|
||||||
+ sed -e "s,@prefix@,$(PREFIX)," \
|
|
||||||
+ -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION)," \
|
|
||||||
+ -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
|
|
||||||
+ -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
|
|
||||||
+ nss-config.in > nss-config
|
|
||||||
+ chmod 0755 nss-config
|
|
||||||
+ ln -sf ../../../../security/nss/config/nss-config $(DIST)/bin
|
|
||||||
+
|
|
||||||
+libs:
|
|
||||||
+
|
|
||||||
+dummy: all export libs
|
|
||||||
+
|
|
||||||
diff -urN a/mozilla/security/nss/config/nss-config.in b/mozilla/security/nss/config/nss-config.in
|
|
||||||
--- a/mozilla/security/nss/config/nss-config.in 1969-12-31 18:00:00.000000000 -0600
|
|
||||||
+++ b/mozilla/security/nss/config/nss-config.in 2009-09-14 21:47:45.190638078 -0500
|
|
||||||
@@ -0,0 +1,145 @@
|
|
||||||
+#!/bin/sh
|
|
||||||
+
|
|
||||||
+prefix=@prefix@
|
|
||||||
+
|
|
||||||
+major_version=@NSS_MAJOR_VERSION@
|
|
||||||
+minor_version=@NSS_MINOR_VERSION@
|
|
||||||
+patch_version=@NSS_PATCH_VERSION@
|
|
||||||
+
|
|
||||||
+usage()
|
|
||||||
+{
|
|
||||||
+ cat <<EOF
|
|
||||||
+Usage: nss-config [OPTIONS] [LIBRARIES]
|
|
||||||
+Options:
|
|
||||||
+ [--prefix[=DIR]]
|
|
||||||
+ [--exec-prefix[=DIR]]
|
|
||||||
+ [--includedir[=DIR]]
|
|
||||||
+ [--libdir[=DIR]]
|
|
||||||
+ [--version]
|
|
||||||
+ [--libs]
|
|
||||||
+ [--cflags]
|
|
||||||
+Dynamic Libraries:
|
|
||||||
+ nss
|
|
||||||
+ ssl
|
|
||||||
+ smime
|
|
||||||
+ nssutil
|
|
||||||
+EOF
|
|
||||||
+ exit $1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+if test $# -eq 0; then
|
|
||||||
+ usage 1 1>&2
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+lib_ssl=yes
|
|
||||||
+lib_smime=yes
|
|
||||||
+lib_nss=yes
|
|
||||||
+lib_nssutil=yes
|
|
||||||
+
|
|
||||||
+while test $# -gt 0; do
|
|
||||||
+ case "$1" in
|
|
||||||
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
||||||
+ *) optarg= ;;
|
|
||||||
+ esac
|
|
||||||
+
|
|
||||||
+ case $1 in
|
|
||||||
+ --prefix=*)
|
|
||||||
+ prefix=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --prefix)
|
|
||||||
+ echo_prefix=yes
|
|
||||||
+ ;;
|
|
||||||
+ --exec-prefix=*)
|
|
||||||
+ exec_prefix=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --exec-prefix)
|
|
||||||
+ echo_exec_prefix=yes
|
|
||||||
+ ;;
|
|
||||||
+ --includedir=*)
|
|
||||||
+ includedir=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --includedir)
|
|
||||||
+ echo_includedir=yes
|
|
||||||
+ ;;
|
|
||||||
+ --libdir=*)
|
|
||||||
+ libdir=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --libdir)
|
|
||||||
+ echo_libdir=yes
|
|
||||||
+ ;;
|
|
||||||
+ --version)
|
|
||||||
+ echo ${major_version}.${minor_version}.${patch_version}
|
|
||||||
+ ;;
|
|
||||||
+ --cflags)
|
|
||||||
+ echo_cflags=yes
|
|
||||||
+ ;;
|
|
||||||
+ --libs)
|
|
||||||
+ echo_libs=yes
|
|
||||||
+ ;;
|
|
||||||
+ ssl)
|
|
||||||
+ lib_ssl=yes
|
|
||||||
+ ;;
|
|
||||||
+ smime)
|
|
||||||
+ lib_smime=yes
|
|
||||||
+ ;;
|
|
||||||
+ nss)
|
|
||||||
+ lib_nss=yes
|
|
||||||
+ ;;
|
|
||||||
+ nssutil)
|
|
||||||
+ lib_nssutil=yes
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ usage 1 1>&2
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+ shift
|
|
||||||
+done
|
|
||||||
+
|
|
||||||
+# Set variables that may be dependent upon other variables
|
|
||||||
+if test -z "$exec_prefix"; then
|
|
||||||
+ exec_prefix=`pkg-config --variable=exec_prefix nss`
|
|
||||||
+fi
|
|
||||||
+if test -z "$includedir"; then
|
|
||||||
+ includedir=`pkg-config --variable=includedir nss`
|
|
||||||
+fi
|
|
||||||
+if test -z "$libdir"; then
|
|
||||||
+ libdir=`pkg-config --variable=libdir nss`
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_prefix" = "yes"; then
|
|
||||||
+ echo $prefix
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_exec_prefix" = "yes"; then
|
|
||||||
+ echo $exec_prefix
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_includedir" = "yes"; then
|
|
||||||
+ echo $includedir
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_libdir" = "yes"; then
|
|
||||||
+ echo $libdir
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_cflags" = "yes"; then
|
|
||||||
+ echo -I$includedir
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_libs" = "yes"; then
|
|
||||||
+ libdirs="-Wl,-R$libdir -L$libdir"
|
|
||||||
+ if test -n "$lib_ssl"; then
|
|
||||||
+ libdirs="$libdirs -lssl${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ if test -n "$lib_smime"; then
|
|
||||||
+ libdirs="$libdirs -lsmime${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ if test -n "$lib_nss"; then
|
|
||||||
+ libdirs="$libdirs -lnss${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ if test -n "$lib_nssutil"; then
|
|
||||||
+ libdirs="$libdirs -lnssutil${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ echo $libdirs
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
diff -urN a/mozilla/security/nss/config/nss.pc.in b/mozilla/security/nss/config/nss.pc.in
|
|
||||||
--- a/mozilla/security/nss/config/nss.pc.in 1969-12-31 18:00:00.000000000 -0600
|
|
||||||
+++ b/mozilla/security/nss/config/nss.pc.in 2009-09-14 21:45:45.653637310 -0500
|
|
||||||
@@ -0,0 +1,12 @@
|
|
||||||
+prefix=@prefix@
|
|
||||||
+exec_prefix=@exec_prefix@
|
|
||||||
+libdir=@libdir@
|
|
||||||
+includedir=@includedir@
|
|
||||||
+
|
|
||||||
+Name: NSS
|
|
||||||
+Description: Network Security Services
|
|
||||||
+Version: @NSS_MAJOR_VERSION@.@NSS_MINOR_VERSION@.@NSS_PATCH_VERSION@
|
|
||||||
+Requires: nspr >= 4.8
|
|
||||||
+Libs: -L${libdir} -lssl3 -lsmime3 -lnssutil3 -lnss3
|
|
||||||
+Cflags: -I${includedir}
|
|
||||||
+
|
|
||||||
diff -urN a/mozilla/security/nss/Makefile b/mozilla/security/nss/Makefile
|
|
||||||
--- a/mozilla/security/nss/Makefile 2008-12-02 17:24:39.000000000 -0600
|
|
||||||
+++ b/mozilla/security/nss/Makefile 2009-09-14 21:45:45.678657145 -0500
|
|
||||||
@@ -78,7 +78,7 @@
|
|
||||||
# (7) Execute "local" rules. (OPTIONAL). #
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
-nss_build_all: build_coreconf build_nspr build_dbm all
|
|
||||||
+nss_build_all: build_coreconf build_dbm all
|
|
||||||
|
|
||||||
nss_clean_all: clobber_coreconf clobber_nspr clobber_dbm clobber
|
|
||||||
|
|
||||||
@@ -140,12 +140,6 @@
|
|
||||||
--with-dist-prefix='$(NSPR_PREFIX)' \
|
|
||||||
--with-dist-includedir='$(NSPR_PREFIX)/include'
|
|
||||||
|
|
||||||
-build_nspr: $(NSPR_CONFIG_STATUS)
|
|
||||||
- cd $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME) ; $(MAKE)
|
|
||||||
-
|
|
||||||
-clobber_nspr: $(NSPR_CONFIG_STATUS)
|
|
||||||
- cd $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME) ; $(MAKE) clobber
|
|
||||||
-
|
|
||||||
build_dbm:
|
|
||||||
ifndef NSS_DISABLE_DBM
|
|
||||||
cd $(CORE_DEPTH)/dbm ; $(MAKE) export libs
|
|
||||||
diff -urN a/mozilla/security/nss/manifest.mn b/mozilla/security/nss/manifest.mn
|
|
||||||
--- a/mozilla/security/nss/manifest.mn 2008-04-04 15:36:59.000000000 -0500
|
|
||||||
+++ b/mozilla/security/nss/manifest.mn 2009-09-14 21:45:45.703656167 -0500
|
|
||||||
@@ -42,6 +42,6 @@
|
|
||||||
|
|
||||||
RELEASE = nss
|
|
||||||
|
|
||||||
-DIRS = lib cmd
|
|
||||||
+DIRS = lib cmd config
|
|
||||||
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
|||||||
--- nss-3.13.1/mozilla/security/coreconf/SunOS5.mk
|
|
||||||
+++ nss-3.13.1/mozilla/security/coreconf/SunOS5.mk
|
|
||||||
@@ -37,6 +37,9 @@
|
|
||||||
|
|
||||||
include $(CORE_DEPTH)/coreconf/UNIX.mk
|
|
||||||
|
|
||||||
+NS_USE_GCC = 1
|
|
||||||
+GCC_USE_GNU_LD = 1
|
|
||||||
+
|
|
||||||
# Sun's WorkShop defines v8, v8plus and v9 architectures.
|
|
||||||
# gcc on Solaris defines v8 and v9 "cpus".
|
|
||||||
# gcc's v9 is equivalent to Workshop's v8plus.
|
|
||||||
@@ -95,7 +98,7 @@
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
-INCLUDES += -I/usr/dt/include -I/usr/openwin/include
|
|
||||||
+#INCLUDES += -I/usr/dt/include -I/usr/openwin/include
|
|
||||||
|
|
||||||
RANLIB = echo
|
|
||||||
CPU_ARCH = sparc
|
|
||||||
@@ -105,11 +108,6 @@
|
|
||||||
NOMD_OS_CFLAGS += $(DSO_CFLAGS) $(OS_DEFINES) $(SOL_CFLAGS)
|
|
||||||
|
|
||||||
MKSHLIB = $(CC) $(DSO_LDOPTS) $(RPATH)
|
|
||||||
-ifdef NS_USE_GCC
|
|
||||||
-ifeq (GNU,$(findstring GNU,$(shell `$(CC) -print-prog-name=ld` -v 2>&1)))
|
|
||||||
- GCC_USE_GNU_LD = 1
|
|
||||||
-endif
|
|
||||||
-endif
|
|
||||||
ifdef MAPFILE
|
|
||||||
ifdef NS_USE_GCC
|
|
||||||
ifdef GCC_USE_GNU_LD
|
|
@ -1,68 +0,0 @@
|
|||||||
diff -8urN a/mozilla/security/coreconf/Linux.mk b/mozilla/security/coreconf/Linux.mk
|
|
||||||
--- a/mozilla/security/coreconf/Linux.mk 2012-06-22 07:55:45.228234872 -0500
|
|
||||||
+++ b/mozilla/security/coreconf/Linux.mk 2012-06-22 07:56:30.171231815 -0500
|
|
||||||
@@ -60,21 +60,28 @@
|
|
||||||
else
|
|
||||||
ifeq ($(OS_TEST),alpha)
|
|
||||||
OS_REL_CFLAGS = -D_ALPHA_
|
|
||||||
CPU_ARCH = alpha
|
|
||||||
else
|
|
||||||
ifeq ($(OS_TEST),x86_64)
|
|
||||||
ifeq ($(USE_64),1)
|
|
||||||
CPU_ARCH = x86_64
|
|
||||||
+ ARCHFLAG = -m64
|
|
||||||
+else
|
|
||||||
+ifeq ($(USE_x32),1)
|
|
||||||
+ OS_REL_CFLAGS = -Di386
|
|
||||||
+ CPU_ARCH = x86
|
|
||||||
+ ARCHFLAG = -mx32
|
|
||||||
else
|
|
||||||
OS_REL_CFLAGS = -Di386
|
|
||||||
CPU_ARCH = x86
|
|
||||||
ARCHFLAG = -m32
|
|
||||||
endif
|
|
||||||
+endif
|
|
||||||
else
|
|
||||||
ifeq ($(OS_TEST),sparc64)
|
|
||||||
CPU_ARCH = sparc
|
|
||||||
else
|
|
||||||
ifeq (,$(filter-out arm% sa110,$(OS_TEST)))
|
|
||||||
CPU_ARCH = arm
|
|
||||||
else
|
|
||||||
ifeq (,$(filter-out parisc%,$(OS_TEST)))
|
|
||||||
diff -8urN a/mozilla/security/nss/lib/freebl/Makefile b/mozilla/security/nss/lib/freebl/Makefile
|
|
||||||
--- a/mozilla/security/nss/lib/freebl/Makefile 2012-06-22 07:55:45.441234854 -0500
|
|
||||||
+++ b/mozilla/security/nss/lib/freebl/Makefile 2012-06-22 07:56:30.172231808 -0500
|
|
||||||
@@ -210,22 +210,26 @@
|
|
||||||
DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
|
|
||||||
# DEFINES += -DMPI_AMD64_ADD
|
|
||||||
# comment the next two lines to turn off intel HW accelleration
|
|
||||||
DEFINES += -DUSE_HW_AES
|
|
||||||
ASFILES += intel-aes.s
|
|
||||||
MPI_SRCS += mpi_amd64.c mp_comba.c
|
|
||||||
endif
|
|
||||||
ifeq ($(CPU_ARCH),x86)
|
|
||||||
- ASFILES = mpi_x86.s
|
|
||||||
- DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
|
|
||||||
- DEFINES += -DMP_ASSEMBLY_DIV_2DX1D
|
|
||||||
- DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
|
|
||||||
- # The floating point ECC code doesn't work on Linux x86 (bug 311432).
|
|
||||||
- #ECL_USE_FP = 1
|
|
||||||
+ ifeq ($(USE_x32),1)
|
|
||||||
+ DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
|
|
||||||
+ else
|
|
||||||
+ ASFILES = mpi_x86.s
|
|
||||||
+ DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
|
|
||||||
+ DEFINES += -DMP_ASSEMBLY_DIV_2DX1D
|
|
||||||
+ DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
|
|
||||||
+ # The floating point ECC code doesn't work on Linux x86 (bug 311432).
|
|
||||||
+ #ECL_USE_FP = 1
|
|
||||||
+ endif
|
|
||||||
endif
|
|
||||||
ifeq ($(CPU_ARCH),arm)
|
|
||||||
DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
|
|
||||||
DEFINES += -DMP_USE_UINT_DIGIT
|
|
||||||
DEFINES += -DSHA_NO_LONG_LONG # avoid 64-bit arithmetic in SHA512
|
|
||||||
MPI_SRCS += mpi_arm.c
|
|
||||||
endif
|
|
||||||
endif # Linux
|
|
@ -1,243 +0,0 @@
|
|||||||
diff -urN a/mozilla/security/nss/config/Makefile b/mozilla/security/nss/config/Makefile
|
|
||||||
--- a/mozilla/security/nss/config/Makefile 1969-12-31 18:00:00.000000000 -0600
|
|
||||||
+++ b/mozilla/security/nss/config/Makefile 2012-12-15 07:27:20.650148987 -0600
|
|
||||||
@@ -0,0 +1,40 @@
|
|
||||||
+CORE_DEPTH = ../..
|
|
||||||
+DEPTH = ../..
|
|
||||||
+
|
|
||||||
+include $(CORE_DEPTH)/coreconf/config.mk
|
|
||||||
+
|
|
||||||
+NSS_MAJOR_VERSION = `grep "NSS_VMAJOR" ../lib/nss/nss.h | awk '{print $$3}'`
|
|
||||||
+NSS_MINOR_VERSION = `grep "NSS_VMINOR" ../lib/nss/nss.h | awk '{print $$3}'`
|
|
||||||
+NSS_PATCH_VERSION = `grep "NSS_VPATCH" ../lib/nss/nss.h | awk '{print $$3}'`
|
|
||||||
+PREFIX = /usr
|
|
||||||
+
|
|
||||||
+all: export libs
|
|
||||||
+
|
|
||||||
+export:
|
|
||||||
+ # Create the nss.pc file
|
|
||||||
+ mkdir -p $(DIST)/lib/pkgconfig
|
|
||||||
+ sed -e "s,@prefix@,$(PREFIX)," \
|
|
||||||
+ -e "s,@exec_prefix@,\$${prefix}," \
|
|
||||||
+ -e "s,@libdir@,\$${prefix}/gentoo/nss," \
|
|
||||||
+ -e "s,@includedir@,\$${prefix}/include/nss," \
|
|
||||||
+ -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION),g" \
|
|
||||||
+ -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
|
|
||||||
+ -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
|
|
||||||
+ nss.pc.in > nss.pc
|
|
||||||
+ chmod 0644 nss.pc
|
|
||||||
+ ln -sf ../../../../../security/nss/config/nss.pc $(DIST)/lib/pkgconfig
|
|
||||||
+
|
|
||||||
+ # Create the nss-config script
|
|
||||||
+ mkdir -p $(DIST)/bin
|
|
||||||
+ sed -e "s,@prefix@,$(PREFIX)," \
|
|
||||||
+ -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION)," \
|
|
||||||
+ -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
|
|
||||||
+ -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
|
|
||||||
+ nss-config.in > nss-config
|
|
||||||
+ chmod 0755 nss-config
|
|
||||||
+ ln -sf ../../../../security/nss/config/nss-config $(DIST)/bin
|
|
||||||
+
|
|
||||||
+libs:
|
|
||||||
+
|
|
||||||
+dummy: all export libs
|
|
||||||
+
|
|
||||||
diff -urN a/mozilla/security/nss/config/nss-config.in b/mozilla/security/nss/config/nss-config.in
|
|
||||||
--- a/mozilla/security/nss/config/nss-config.in 1969-12-31 18:00:00.000000000 -0600
|
|
||||||
+++ b/mozilla/security/nss/config/nss-config.in 2012-12-15 07:27:20.651148959 -0600
|
|
||||||
@@ -0,0 +1,145 @@
|
|
||||||
+#!/bin/sh
|
|
||||||
+
|
|
||||||
+prefix=@prefix@
|
|
||||||
+
|
|
||||||
+major_version=@NSS_MAJOR_VERSION@
|
|
||||||
+minor_version=@NSS_MINOR_VERSION@
|
|
||||||
+patch_version=@NSS_PATCH_VERSION@
|
|
||||||
+
|
|
||||||
+usage()
|
|
||||||
+{
|
|
||||||
+ cat <<EOF
|
|
||||||
+Usage: nss-config [OPTIONS] [LIBRARIES]
|
|
||||||
+Options:
|
|
||||||
+ [--prefix[=DIR]]
|
|
||||||
+ [--exec-prefix[=DIR]]
|
|
||||||
+ [--includedir[=DIR]]
|
|
||||||
+ [--libdir[=DIR]]
|
|
||||||
+ [--version]
|
|
||||||
+ [--libs]
|
|
||||||
+ [--cflags]
|
|
||||||
+Dynamic Libraries:
|
|
||||||
+ nss
|
|
||||||
+ ssl
|
|
||||||
+ smime
|
|
||||||
+ nssutil
|
|
||||||
+EOF
|
|
||||||
+ exit $1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+if test $# -eq 0; then
|
|
||||||
+ usage 1 1>&2
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+lib_ssl=yes
|
|
||||||
+lib_smime=yes
|
|
||||||
+lib_nss=yes
|
|
||||||
+lib_nssutil=yes
|
|
||||||
+
|
|
||||||
+while test $# -gt 0; do
|
|
||||||
+ case "$1" in
|
|
||||||
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
||||||
+ *) optarg= ;;
|
|
||||||
+ esac
|
|
||||||
+
|
|
||||||
+ case $1 in
|
|
||||||
+ --prefix=*)
|
|
||||||
+ prefix=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --prefix)
|
|
||||||
+ echo_prefix=yes
|
|
||||||
+ ;;
|
|
||||||
+ --exec-prefix=*)
|
|
||||||
+ exec_prefix=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --exec-prefix)
|
|
||||||
+ echo_exec_prefix=yes
|
|
||||||
+ ;;
|
|
||||||
+ --includedir=*)
|
|
||||||
+ includedir=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --includedir)
|
|
||||||
+ echo_includedir=yes
|
|
||||||
+ ;;
|
|
||||||
+ --libdir=*)
|
|
||||||
+ libdir=$optarg
|
|
||||||
+ ;;
|
|
||||||
+ --libdir)
|
|
||||||
+ echo_libdir=yes
|
|
||||||
+ ;;
|
|
||||||
+ --version)
|
|
||||||
+ echo ${major_version}.${minor_version}.${patch_version}
|
|
||||||
+ ;;
|
|
||||||
+ --cflags)
|
|
||||||
+ echo_cflags=yes
|
|
||||||
+ ;;
|
|
||||||
+ --libs)
|
|
||||||
+ echo_libs=yes
|
|
||||||
+ ;;
|
|
||||||
+ ssl)
|
|
||||||
+ lib_ssl=yes
|
|
||||||
+ ;;
|
|
||||||
+ smime)
|
|
||||||
+ lib_smime=yes
|
|
||||||
+ ;;
|
|
||||||
+ nss)
|
|
||||||
+ lib_nss=yes
|
|
||||||
+ ;;
|
|
||||||
+ nssutil)
|
|
||||||
+ lib_nssutil=yes
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ usage 1 1>&2
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+ shift
|
|
||||||
+done
|
|
||||||
+
|
|
||||||
+# Set variables that may be dependent upon other variables
|
|
||||||
+if test -z "$exec_prefix"; then
|
|
||||||
+ exec_prefix=`pkg-config --variable=exec_prefix nss`
|
|
||||||
+fi
|
|
||||||
+if test -z "$includedir"; then
|
|
||||||
+ includedir=`pkg-config --variable=includedir nss`
|
|
||||||
+fi
|
|
||||||
+if test -z "$libdir"; then
|
|
||||||
+ libdir=`pkg-config --variable=libdir nss`
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_prefix" = "yes"; then
|
|
||||||
+ echo $prefix
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_exec_prefix" = "yes"; then
|
|
||||||
+ echo $exec_prefix
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_includedir" = "yes"; then
|
|
||||||
+ echo $includedir
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_libdir" = "yes"; then
|
|
||||||
+ echo $libdir
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_cflags" = "yes"; then
|
|
||||||
+ echo -I$includedir
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if test "$echo_libs" = "yes"; then
|
|
||||||
+ libdirs="-Wl,-R$libdir -L$libdir"
|
|
||||||
+ if test -n "$lib_ssl"; then
|
|
||||||
+ libdirs="$libdirs -lssl${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ if test -n "$lib_smime"; then
|
|
||||||
+ libdirs="$libdirs -lsmime${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ if test -n "$lib_nss"; then
|
|
||||||
+ libdirs="$libdirs -lnss${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ if test -n "$lib_nssutil"; then
|
|
||||||
+ libdirs="$libdirs -lnssutil${major_version}"
|
|
||||||
+ fi
|
|
||||||
+ echo $libdirs
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
diff -urN a/mozilla/security/nss/config/nss.pc.in b/mozilla/security/nss/config/nss.pc.in
|
|
||||||
--- a/mozilla/security/nss/config/nss.pc.in 1969-12-31 18:00:00.000000000 -0600
|
|
||||||
+++ b/mozilla/security/nss/config/nss.pc.in 2012-12-15 07:27:20.651148959 -0600
|
|
||||||
@@ -0,0 +1,12 @@
|
|
||||||
+prefix=@prefix@
|
|
||||||
+exec_prefix=@exec_prefix@
|
|
||||||
+libdir=@libdir@
|
|
||||||
+includedir=@includedir@
|
|
||||||
+
|
|
||||||
+Name: NSS
|
|
||||||
+Description: Network Security Services
|
|
||||||
+Version: @NSS_MAJOR_VERSION@.@NSS_MINOR_VERSION@.@NSS_PATCH_VERSION@
|
|
||||||
+Requires: nspr >= 4.8
|
|
||||||
+Libs: -L${libdir} -lssl3 -lsmime3 -lnssutil3 -lnss3
|
|
||||||
+Cflags: -I${includedir}
|
|
||||||
+
|
|
||||||
diff -urN a/mozilla/security/nss/Makefile b/mozilla/security/nss/Makefile
|
|
||||||
--- a/mozilla/security/nss/Makefile 2012-11-13 19:14:07.000000000 -0600
|
|
||||||
+++ b/mozilla/security/nss/Makefile 2012-12-15 07:27:57.235162137 -0600
|
|
||||||
@@ -44,7 +44,7 @@
|
|
||||||
# (7) Execute "local" rules. (OPTIONAL). #
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
-nss_build_all: build_coreconf build_nspr build_dbm all
|
|
||||||
+nss_build_all: build_coreconf build_dbm all
|
|
||||||
|
|
||||||
nss_clean_all: clobber_coreconf clobber_nspr clobber_dbm clobber
|
|
||||||
|
|
||||||
@@ -106,12 +106,6 @@
|
|
||||||
--with-dist-prefix='$(NSPR_PREFIX)' \
|
|
||||||
--with-dist-includedir='$(NSPR_PREFIX)/include'
|
|
||||||
|
|
||||||
-build_nspr: $(NSPR_CONFIG_STATUS)
|
|
||||||
- $(MAKE) -C $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME)
|
|
||||||
-
|
|
||||||
-clobber_nspr: $(NSPR_CONFIG_STATUS)
|
|
||||||
- $(MAKE) -C $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME) clobber
|
|
||||||
-
|
|
||||||
build_dbm:
|
|
||||||
ifdef NSS_DISABLE_DBM
|
|
||||||
@echo "skipping the build of DBM"
|
|
||||||
diff -urN a/mozilla/security/nss/manifest.mn b/mozilla/security/nss/manifest.mn
|
|
||||||
--- a/mozilla/security/nss/manifest.mn 2012-03-20 09:46:49.000000000 -0500
|
|
||||||
+++ b/mozilla/security/nss/manifest.mn 2012-12-15 07:27:20.652148933 -0600
|
|
||||||
@@ -10,6 +10,6 @@
|
|
||||||
|
|
||||||
RELEASE = nss
|
|
||||||
|
|
||||||
-DIRS = lib cmd
|
|
||||||
+DIRS = lib cmd config
|
|
@ -1,21 +0,0 @@
|
|||||||
https://bugzilla.mozilla.org/show_bug.cgi?id=837799
|
|
||||||
|
|
||||||
Index: mozilla/security/nss/lib/softoken/sdb.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvsroot/mozilla/security/nss/lib/softoken/sdb.c,v
|
|
||||||
retrieving revision 1.30
|
|
||||||
diff -u -u -r1.30 sdb.c
|
|
||||||
--- mozilla/security/nss/lib/softoken/sdb.c 16 Jan 2013 18:13:25 -0000 1.30
|
|
||||||
+++ mozilla/security/nss/lib/softoken/sdb.c 4 Feb 2013 19:15:58 -0000
|
|
||||||
@@ -254,6 +254,10 @@
|
|
||||||
#error "sdb_getFallbackTempDir not implemented"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#ifndef SQLITE_FCNTL_TEMPFILENAME
|
|
||||||
+#define SQLITE_FCNTL_TEMPFILENAME 16
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
static char *
|
|
||||||
sdb_getTempDir(sqlite3 *sqlDB)
|
|
||||||
{
|
|
||||||
|
|
@ -1,214 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.12.11-r1.ebuild,v 1.10 2013/03/29 22:45:18 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
NSPR_VER="4.8.9"
|
|
||||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
|
||||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="utils"
|
|
||||||
|
|
||||||
DEPEND="virtual/pkgconfig"
|
|
||||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
|
||||||
>=dev-db/sqlite-3.5"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Custom changes for gentoo
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.5-gentoo-fixups.diff"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
|
||||||
|
|
||||||
# Fix for bug #388045
|
|
||||||
epatch "${FILESDIR}/${P}-CVE-2011-3640.patch"
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf
|
|
||||||
# hack nspr paths
|
|
||||||
echo 'INCLUDES += -I'"${EPREFIX}"'/usr/include/nspr -I$(DIST)/include/dbm' \
|
|
||||||
>> headers.mk || die "failed to append include"
|
|
||||||
|
|
||||||
# modify install path
|
|
||||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
|
||||||
-i source.mk
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
|
||||||
|
|
||||||
# Ensure we stay multilib aware
|
|
||||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
|
||||||
|
|
||||||
# Fix pkgconfig file for Prefix
|
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
|
||||||
"${S}"/mozilla/security/nss/config/Makefile || die
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
# Fix pkgconfig for Darwin (no RPATH stuff)
|
|
||||||
sed -i -e 's/-Wl,-R${\?libdir}\?//' \
|
|
||||||
"${S}"/mozilla/security/nss/config/nss-config.in \
|
|
||||||
"${S}"/mozilla/security/nss/config/nss.pc.in || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Avoid install_name_tooling post install
|
|
||||||
sed -i -e "s:@executable_path:${EPREFIX}/usr/$(get_libdir):" \
|
|
||||||
"${S}"/mozilla/security/coreconf/Darwin.mk \
|
|
||||||
"${S}"/mozilla/security/nss/lib/freebl/config.mk || die
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/${PN}-3.12.4-solaris-gcc.patch # breaks non-gnu tools
|
|
||||||
# dirty hack
|
|
||||||
cd "${S}"/mozilla/security/nss
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
|
||||||
lib/ssl/config.mk || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
|
||||||
cmd/platlibs.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
strip-flags
|
|
||||||
|
|
||||||
echo > "${T}"/test.c
|
|
||||||
$(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*64-bit*|*ppc64*|*x86_64*) export USE_64=1;;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
export NSPR_INCLUDE_DIR=`nspr-config --includedir`
|
|
||||||
export NSPR_LIB_DIR=`nspr-config --libdir`
|
|
||||||
export BUILD_OPT=1
|
|
||||||
export NSS_USE_SYSTEM_SQLITE=1
|
|
||||||
export NSDISTMODE=copy
|
|
||||||
export NSS_ENABLE_ECC=1
|
|
||||||
export XCFLAGS="${CFLAGS}"
|
|
||||||
export FREEBL_NO_DEPEND=1
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "coreconf make failed"
|
|
||||||
cd "${S}"/mozilla/security/dbm
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "dbm make failed"
|
|
||||||
cd "${S}"/mozilla/security/nss
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "nss make failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Altering these 3 libraries breaks the CHK verification.
|
|
||||||
# All of the following cause it to break:
|
|
||||||
# - stripping
|
|
||||||
# - prelink
|
|
||||||
# - ELF signing
|
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
|
||||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
|
||||||
# stripping.
|
|
||||||
#local_libdir="$(get_libdir)"
|
|
||||||
#export STRIP_MASK="
|
|
||||||
# */${local_libdir}/libfreebl3.so*
|
|
||||||
# */${local_libdir}/libnssdbm3.so*
|
|
||||||
# */${local_libdir}/libsoftokn3.so*"
|
|
||||||
|
|
||||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
|
||||||
|
|
||||||
generate_chk() {
|
|
||||||
local shlibsign="$1"
|
|
||||||
local libdir="$2"
|
|
||||||
einfo "Resigning core NSS libraries for FIPS validation"
|
|
||||||
shift 2
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libname=lib${i}$(get_libname)
|
|
||||||
local chkname=lib${i}.chk
|
|
||||||
"${shlibsign}" \
|
|
||||||
-i "${libdir}"/${libname} \
|
|
||||||
-o "${libdir}"/${chkname}.tmp \
|
|
||||||
&& mv -f \
|
|
||||||
"${libdir}"/${chkname}.tmp \
|
|
||||||
"${libdir}"/${chkname} \
|
|
||||||
|| die "Failed to sign ${libname}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_chk() {
|
|
||||||
local libdir="$1"
|
|
||||||
shift 1
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libfname="${libdir}/lib${i}$(get_libname)"
|
|
||||||
# If the major version has changed, then we have old chk files.
|
|
||||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
|
||||||
&& rm -f "${libfname}.chk"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
MINOR_VERSION=12
|
|
||||||
cd "${S}"/mozilla/security/dist
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir)
|
|
||||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
|
||||||
# We generate these after stripping the libraries, else they don't match.
|
|
||||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
|
||||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
|
||||||
|
|
||||||
# Install nss-config and pkgconfig file
|
|
||||||
dodir /usr/bin
|
|
||||||
cp -L */bin/nss-config "${ED}"/usr/bin
|
|
||||||
dodir /usr/$(get_libdir)/pkgconfig
|
|
||||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig
|
|
||||||
|
|
||||||
# all the include files
|
|
||||||
insinto /usr/include/nss
|
|
||||||
doins public/nss/*.h
|
|
||||||
cd "${ED}"/usr/$(get_libdir)
|
|
||||||
local n=
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n}
|
|
||||||
ln -s ${n} ${file}
|
|
||||||
done
|
|
||||||
|
|
||||||
local nssutils
|
|
||||||
# Always enabled because we need it for chk generation.
|
|
||||||
nssutils="shlibsign"
|
|
||||||
if use utils; then
|
|
||||||
# The tests we do not need to install.
|
|
||||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
|
||||||
#fipstest remtest sdrtest"
|
|
||||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
|
||||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
|
||||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
|
||||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
|
||||||
symkeyutil tstclnt vfychain vfyserv"
|
|
||||||
fi
|
|
||||||
cd "${S}"/mozilla/security/dist/*/bin/
|
|
||||||
for f in ${nssutils}; do
|
|
||||||
dobin ${f}
|
|
||||||
done
|
|
||||||
|
|
||||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
|
||||||
# shlibsign after prelink.
|
|
||||||
declare -a libs
|
|
||||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}$(get_libname)")
|
|
||||||
done
|
|
||||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
|
||||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss"
|
|
||||||
unset libs liblist
|
|
||||||
doenvd "${T}/90nss"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "We have reverted back to using upstreams soname."
|
|
||||||
elog "Please run revdep-rebuild --library libnss3$(get_libname 12) , this"
|
|
||||||
elog "will correct most issues. If you find a binary that does"
|
|
||||||
elog "not run please re-emerge package to ensure it properly"
|
|
||||||
elog "links after upgrade."
|
|
||||||
elog
|
|
||||||
# We must re-sign the ELF libraries AFTER they are stripped.
|
|
||||||
[[ ${CHOST} != *-darwin* ]] && \
|
|
||||||
generate_chk "${EROOT}"/usr/bin/shlibsign "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
@ -1,202 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.13.2.ebuild,v 1.3 2013/03/29 22:45:18 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
NSPR_VER="4.9"
|
|
||||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
|
||||||
|
|
||||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/nss-3.13.2-add_cacert_ca_certs-ported.patch"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="utils"
|
|
||||||
|
|
||||||
DEPEND="virtual/pkgconfig"
|
|
||||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
|
||||||
>=dev-db/sqlite-3.5
|
|
||||||
sys-libs/zlib"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Custom changes for gentoo
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.5-gentoo-fixups.diff"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
|
||||||
epatch "${DISTDIR}/nss-3.13.2-add_cacert_ca_certs-ported.patch"
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
# hack nspr paths
|
|
||||||
echo 'INCLUDES += -I'"${EPREFIX}"'/usr/include/nspr -I$(DIST)/include/dbm' \
|
|
||||||
>> headers.mk || die "failed to append include"
|
|
||||||
|
|
||||||
# modify install path
|
|
||||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
|
||||||
-i source.mk || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk || die
|
|
||||||
|
|
||||||
# Ensure we stay multilib aware
|
|
||||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
|
||||||
|
|
||||||
# Fix pkgconfig file for Prefix
|
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
|
||||||
"${S}"/mozilla/security/nss/config/Makefile || die
|
|
||||||
|
|
||||||
epatch "${FILESDIR}/nss-3.13.1-solaris-gcc.patch"
|
|
||||||
|
|
||||||
# dirty hack
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
|
||||||
lib/ssl/config.mk || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
|
||||||
cmd/platlibs.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
strip-flags
|
|
||||||
|
|
||||||
echo > "${T}"/test.c || die
|
|
||||||
$(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*64-bit*|*ppc64*|*x86_64*) export USE_64=1;;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
export NSPR_INCLUDE_DIR=`nspr-config --includedir`
|
|
||||||
export NSPR_LIB_DIR=`nspr-config --libdir`
|
|
||||||
export BUILD_OPT=1
|
|
||||||
export NSS_USE_SYSTEM_SQLITE=1
|
|
||||||
export NSDISTMODE=copy
|
|
||||||
export NSS_ENABLE_ECC=1
|
|
||||||
export XCFLAGS="${CFLAGS}"
|
|
||||||
export FREEBL_NO_DEPEND=1
|
|
||||||
export ASFLAGS=""
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "coreconf make failed"
|
|
||||||
cd "${S}"/mozilla/security/dbm || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "dbm make failed"
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "nss make failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Altering these 3 libraries breaks the CHK verification.
|
|
||||||
# All of the following cause it to break:
|
|
||||||
# - stripping
|
|
||||||
# - prelink
|
|
||||||
# - ELF signing
|
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
|
||||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
|
||||||
# stripping.
|
|
||||||
#local_libdir="$(get_libdir)"
|
|
||||||
#export STRIP_MASK="
|
|
||||||
# */${local_libdir}/libfreebl3.so*
|
|
||||||
# */${local_libdir}/libnssdbm3.so*
|
|
||||||
# */${local_libdir}/libsoftokn3.so*"
|
|
||||||
|
|
||||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
|
||||||
|
|
||||||
generate_chk() {
|
|
||||||
local shlibsign="$1"
|
|
||||||
local libdir="$2"
|
|
||||||
einfo "Resigning core NSS libraries for FIPS validation"
|
|
||||||
shift 2
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libname=lib${i}.so
|
|
||||||
local chkname=lib${i}.chk
|
|
||||||
"${shlibsign}" \
|
|
||||||
-i "${libdir}"/${libname} \
|
|
||||||
-o "${libdir}"/${chkname}.tmp \
|
|
||||||
&& mv -f \
|
|
||||||
"${libdir}"/${chkname}.tmp \
|
|
||||||
"${libdir}"/${chkname} \
|
|
||||||
|| die "Failed to sign ${libname}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_chk() {
|
|
||||||
local libdir="$1"
|
|
||||||
shift 1
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libfname="${libdir}/lib${i}.so"
|
|
||||||
# If the major version has changed, then we have old chk files.
|
|
||||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
|
||||||
&& rm -f "${libfname}.chk"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
MINOR_VERSION=12
|
|
||||||
cd "${S}"/mozilla/security/dist || die
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir) || die
|
|
||||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
|
||||||
# We generate these after stripping the libraries, else they don't match.
|
|
||||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
|
||||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
|
||||||
|
|
||||||
# Install nss-config and pkgconfig file
|
|
||||||
dodir /usr/bin || die
|
|
||||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
|
||||||
dodir /usr/$(get_libdir)/pkgconfig || die
|
|
||||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
|
||||||
|
|
||||||
# all the include files
|
|
||||||
insinto /usr/include/nss
|
|
||||||
doins public/nss/*.h || die
|
|
||||||
cd "${ED}"/usr/$(get_libdir) || die
|
|
||||||
local n=
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die
|
|
||||||
ln -s ${n} ${file} || die
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
local nssutils
|
|
||||||
# Always enabled because we need it for chk generation.
|
|
||||||
nssutils="shlibsign"
|
|
||||||
if use utils; then
|
|
||||||
# The tests we do not need to install.
|
|
||||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
|
||||||
#fipstest remtest sdrtest"
|
|
||||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
|
||||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
|
||||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
|
||||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
|
||||||
symkeyutil tstclnt vfychain vfyserv"
|
|
||||||
fi
|
|
||||||
cd "${S}"/mozilla/security/dist/*/bin/ || die
|
|
||||||
for f in ${nssutils}; do
|
|
||||||
dobin ${f} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
|
||||||
# shlibsign after prelink.
|
|
||||||
declare -a libs
|
|
||||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
|
||||||
done
|
|
||||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
|
||||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss" || die
|
|
||||||
unset libs liblist
|
|
||||||
doenvd "${T}/90nss" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# We must re-sign the libraries AFTER they are stripped.
|
|
||||||
generate_chk "${EROOT}"/usr/bin/shlibsign "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
@ -1,206 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.13.3.ebuild,v 1.6 2013/03/29 22:45:18 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
NSPR_VER="4.9"
|
|
||||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
|
||||||
|
|
||||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/nss-3.13.3-add_spi+cacerts_ca_certs.patch"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="utils"
|
|
||||||
|
|
||||||
DEPEND="virtual/pkgconfig"
|
|
||||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
|
||||||
>=dev-db/sqlite-3.5
|
|
||||||
sys-libs/zlib"
|
|
||||||
|
|
||||||
src_setup() {
|
|
||||||
export LC_ALL="C"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Custom changes for gentoo
|
|
||||||
epatch "${FILESDIR}/${PN}-3.13-gentoo-fixup.patch"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
|
||||||
epatch "${DISTDIR}/nss-3.13.3-add_spi+cacerts_ca_certs.patch"
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
# hack nspr paths
|
|
||||||
echo 'INCLUDES += -I'"${EPREFIX}"'/usr/include/nspr -I$(DIST)/include/dbm' \
|
|
||||||
>> headers.mk || die "failed to append include"
|
|
||||||
|
|
||||||
# modify install path
|
|
||||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
|
||||||
-i source.mk || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk || die
|
|
||||||
|
|
||||||
# Ensure we stay multilib aware
|
|
||||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
|
||||||
|
|
||||||
# Fix pkgconfig file for Prefix
|
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
|
||||||
"${S}"/mozilla/security/nss/config/Makefile || die
|
|
||||||
|
|
||||||
epatch "${FILESDIR}/nss-3.13.1-solaris-gcc.patch"
|
|
||||||
|
|
||||||
# dirty hack
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
|
||||||
lib/ssl/config.mk || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
|
||||||
cmd/platlibs.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
strip-flags
|
|
||||||
|
|
||||||
echo > "${T}"/test.c || die
|
|
||||||
$(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*64-bit*|*ppc64*|*x86_64*) export USE_64=1;;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
export NSPR_INCLUDE_DIR=`nspr-config --includedir`
|
|
||||||
export NSPR_LIB_DIR=`nspr-config --libdir`
|
|
||||||
export BUILD_OPT=1
|
|
||||||
export NSS_USE_SYSTEM_SQLITE=1
|
|
||||||
export NSDISTMODE=copy
|
|
||||||
export NSS_ENABLE_ECC=1
|
|
||||||
export XCFLAGS="${CFLAGS}"
|
|
||||||
export FREEBL_NO_DEPEND=1
|
|
||||||
export ASFLAGS=""
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "coreconf make failed"
|
|
||||||
cd "${S}"/mozilla/security/dbm || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "dbm make failed"
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "nss make failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Altering these 3 libraries breaks the CHK verification.
|
|
||||||
# All of the following cause it to break:
|
|
||||||
# - stripping
|
|
||||||
# - prelink
|
|
||||||
# - ELF signing
|
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
|
||||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
|
||||||
# stripping.
|
|
||||||
#local_libdir="$(get_libdir)"
|
|
||||||
#export STRIP_MASK="
|
|
||||||
# */${local_libdir}/libfreebl3.so*
|
|
||||||
# */${local_libdir}/libnssdbm3.so*
|
|
||||||
# */${local_libdir}/libsoftokn3.so*"
|
|
||||||
|
|
||||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
|
||||||
|
|
||||||
generate_chk() {
|
|
||||||
local shlibsign="$1"
|
|
||||||
local libdir="$2"
|
|
||||||
einfo "Resigning core NSS libraries for FIPS validation"
|
|
||||||
shift 2
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libname=lib${i}.so
|
|
||||||
local chkname=lib${i}.chk
|
|
||||||
"${shlibsign}" \
|
|
||||||
-i "${libdir}"/${libname} \
|
|
||||||
-o "${libdir}"/${chkname}.tmp \
|
|
||||||
&& mv -f \
|
|
||||||
"${libdir}"/${chkname}.tmp \
|
|
||||||
"${libdir}"/${chkname} \
|
|
||||||
|| die "Failed to sign ${libname}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_chk() {
|
|
||||||
local libdir="$1"
|
|
||||||
shift 1
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libfname="${libdir}/lib${i}.so"
|
|
||||||
# If the major version has changed, then we have old chk files.
|
|
||||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
|
||||||
&& rm -f "${libfname}.chk"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
MINOR_VERSION=12
|
|
||||||
cd "${S}"/mozilla/security/dist || die
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir) || die
|
|
||||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
|
||||||
# We generate these after stripping the libraries, else they don't match.
|
|
||||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
|
||||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
|
||||||
|
|
||||||
# Install nss-config and pkgconfig file
|
|
||||||
dodir /usr/bin || die
|
|
||||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
|
||||||
dodir /usr/$(get_libdir)/pkgconfig || die
|
|
||||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
|
||||||
|
|
||||||
# all the include files
|
|
||||||
insinto /usr/include/nss
|
|
||||||
doins public/nss/*.h || die
|
|
||||||
cd "${ED}"/usr/$(get_libdir) || die
|
|
||||||
local n=
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die
|
|
||||||
ln -s ${n} ${file} || die
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
local nssutils
|
|
||||||
# Always enabled because we need it for chk generation.
|
|
||||||
nssutils="shlibsign"
|
|
||||||
if use utils; then
|
|
||||||
# The tests we do not need to install.
|
|
||||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
|
||||||
#fipstest remtest sdrtest"
|
|
||||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
|
||||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
|
||||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
|
||||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
|
||||||
symkeyutil tstclnt vfychain vfyserv"
|
|
||||||
fi
|
|
||||||
cd "${S}"/mozilla/security/dist/*/bin/ || die
|
|
||||||
for f in ${nssutils}; do
|
|
||||||
dobin ${f} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
|
||||||
# shlibsign after prelink.
|
|
||||||
declare -a libs
|
|
||||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
|
||||||
done
|
|
||||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
|
||||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss" || die
|
|
||||||
unset libs liblist
|
|
||||||
doenvd "${T}/90nss" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# We must re-sign the libraries AFTER they are stripped.
|
|
||||||
generate_chk "${EROOT}"/usr/bin/shlibsign "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
@ -1,208 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.13.4.ebuild,v 1.9 2013/03/29 22:45:18 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
NSPR_VER="4.9"
|
|
||||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
|
||||||
|
|
||||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/nss-3.13.3-add_spi+cacerts_ca_certs.patch
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.13.3_pem.support"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ~ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="utils"
|
|
||||||
|
|
||||||
DEPEND="virtual/pkgconfig"
|
|
||||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
|
||||||
>=dev-db/sqlite-3.5
|
|
||||||
sys-libs/zlib"
|
|
||||||
|
|
||||||
src_setup() {
|
|
||||||
export LC_ALL="C"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Custom changes for gentoo
|
|
||||||
epatch "${FILESDIR}/${PN}-3.13-gentoo-fixup.patch"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
|
||||||
epatch "${DISTDIR}/nss-3.13.3-add_spi+cacerts_ca_certs.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.13.3_pem.support"
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
# hack nspr paths
|
|
||||||
echo 'INCLUDES += -I'"${EPREFIX}"'/usr/include/nspr -I$(DIST)/include/dbm' \
|
|
||||||
>> headers.mk || die "failed to append include"
|
|
||||||
|
|
||||||
# modify install path
|
|
||||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
|
||||||
-i source.mk || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk || die
|
|
||||||
|
|
||||||
# Ensure we stay multilib aware
|
|
||||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
|
||||||
|
|
||||||
# Fix pkgconfig file for Prefix
|
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
|
||||||
"${S}"/mozilla/security/nss/config/Makefile || die
|
|
||||||
|
|
||||||
epatch "${FILESDIR}/nss-3.13.1-solaris-gcc.patch"
|
|
||||||
|
|
||||||
# dirty hack
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
|
||||||
lib/ssl/config.mk || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
|
||||||
cmd/platlibs.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
strip-flags
|
|
||||||
|
|
||||||
echo > "${T}"/test.c || die
|
|
||||||
$(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*64-bit*|*ppc64*|*x86_64*) export USE_64=1;;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
export NSPR_INCLUDE_DIR=`nspr-config --includedir`
|
|
||||||
export NSPR_LIB_DIR=`nspr-config --libdir`
|
|
||||||
export BUILD_OPT=1
|
|
||||||
export NSS_USE_SYSTEM_SQLITE=1
|
|
||||||
export NSDISTMODE=copy
|
|
||||||
export NSS_ENABLE_ECC=1
|
|
||||||
export XCFLAGS="${CFLAGS}"
|
|
||||||
export FREEBL_NO_DEPEND=1
|
|
||||||
export ASFLAGS=""
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "coreconf make failed"
|
|
||||||
cd "${S}"/mozilla/security/dbm || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "dbm make failed"
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "nss make failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Altering these 3 libraries breaks the CHK verification.
|
|
||||||
# All of the following cause it to break:
|
|
||||||
# - stripping
|
|
||||||
# - prelink
|
|
||||||
# - ELF signing
|
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
|
||||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
|
||||||
# stripping.
|
|
||||||
#local_libdir="$(get_libdir)"
|
|
||||||
#export STRIP_MASK="
|
|
||||||
# */${local_libdir}/libfreebl3.so*
|
|
||||||
# */${local_libdir}/libnssdbm3.so*
|
|
||||||
# */${local_libdir}/libsoftokn3.so*"
|
|
||||||
|
|
||||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
|
||||||
|
|
||||||
generate_chk() {
|
|
||||||
local shlibsign="$1"
|
|
||||||
local libdir="$2"
|
|
||||||
einfo "Resigning core NSS libraries for FIPS validation"
|
|
||||||
shift 2
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libname=lib${i}.so
|
|
||||||
local chkname=lib${i}.chk
|
|
||||||
"${shlibsign}" \
|
|
||||||
-i "${libdir}"/${libname} \
|
|
||||||
-o "${libdir}"/${chkname}.tmp \
|
|
||||||
&& mv -f \
|
|
||||||
"${libdir}"/${chkname}.tmp \
|
|
||||||
"${libdir}"/${chkname} \
|
|
||||||
|| die "Failed to sign ${libname}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_chk() {
|
|
||||||
local libdir="$1"
|
|
||||||
shift 1
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libfname="${libdir}/lib${i}.so"
|
|
||||||
# If the major version has changed, then we have old chk files.
|
|
||||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
|
||||||
&& rm -f "${libfname}.chk"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
MINOR_VERSION=12
|
|
||||||
cd "${S}"/mozilla/security/dist || die
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir) || die
|
|
||||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
|
||||||
# We generate these after stripping the libraries, else they don't match.
|
|
||||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
|
||||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
|
||||||
|
|
||||||
# Install nss-config and pkgconfig file
|
|
||||||
dodir /usr/bin || die
|
|
||||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
|
||||||
dodir /usr/$(get_libdir)/pkgconfig || die
|
|
||||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
|
||||||
|
|
||||||
# all the include files
|
|
||||||
insinto /usr/include/nss
|
|
||||||
doins public/nss/*.h || die
|
|
||||||
cd "${ED}"/usr/$(get_libdir) || die
|
|
||||||
local n=
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die
|
|
||||||
ln -s ${n} ${file} || die
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
local nssutils
|
|
||||||
# Always enabled because we need it for chk generation.
|
|
||||||
nssutils="shlibsign"
|
|
||||||
if use utils; then
|
|
||||||
# The tests we do not need to install.
|
|
||||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
|
||||||
#fipstest remtest sdrtest"
|
|
||||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
|
||||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
|
||||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
|
||||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
|
||||||
symkeyutil tstclnt vfychain vfyserv"
|
|
||||||
fi
|
|
||||||
cd "${S}"/mozilla/security/dist/*/bin/ || die
|
|
||||||
for f in ${nssutils}; do
|
|
||||||
dobin ${f} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
|
||||||
# shlibsign after prelink.
|
|
||||||
declare -a libs
|
|
||||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
|
||||||
done
|
|
||||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
|
||||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss" || die
|
|
||||||
unset libs liblist
|
|
||||||
doenvd "${T}/90nss" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# We must re-sign the libraries AFTER they are stripped.
|
|
||||||
generate_chk "${EROOT}"/usr/bin/shlibsign "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
@ -1,212 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.13.5-r1.ebuild,v 1.2 2013/03/29 22:45:18 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
NSPR_VER="4.9.1"
|
|
||||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
|
||||||
|
|
||||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.13.3-add_spi+cacerts_ca_certs.patch
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.13.3_pem.support"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="utils"
|
|
||||||
|
|
||||||
DEPEND="virtual/pkgconfig
|
|
||||||
>=dev-libs/nspr-${NSPR_VER}"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
|
||||||
>=dev-db/sqlite-3.5
|
|
||||||
sys-libs/zlib"
|
|
||||||
|
|
||||||
src_setup() {
|
|
||||||
export LC_ALL="C"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Custom changes for gentoo
|
|
||||||
epatch "${FILESDIR}/${PN}-3.13-gentoo-fixup.patch"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.13.3-add_spi+cacerts_ca_certs.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.13.3_pem.support"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.13.5-x32.patch"
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
# hack nspr paths
|
|
||||||
echo 'INCLUDES += -I'"${EPREFIX}"'/usr/include/nspr -I$(DIST)/include/dbm' \
|
|
||||||
>> headers.mk || die "failed to append include"
|
|
||||||
|
|
||||||
# modify install path
|
|
||||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
|
||||||
-i source.mk || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk || die
|
|
||||||
|
|
||||||
# Ensure we stay multilib aware
|
|
||||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
|
||||||
|
|
||||||
# Fix pkgconfig file for Prefix
|
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
|
||||||
"${S}"/mozilla/security/nss/config/Makefile || die
|
|
||||||
|
|
||||||
epatch "${FILESDIR}/nss-3.13.1-solaris-gcc.patch"
|
|
||||||
|
|
||||||
# dirty hack
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
|
||||||
lib/ssl/config.mk || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
|
||||||
cmd/platlibs.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
strip-flags
|
|
||||||
|
|
||||||
echo > "${T}"/test.c || die
|
|
||||||
$(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*32-bit*x86-64*) export USE_x32=1;;
|
|
||||||
*64-bit*|*ppc64*|*x86_64*) export USE_64=1;;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
export NSPR_INCLUDE_DIR=`nspr-config --includedir`
|
|
||||||
export NSPR_LIB_DIR=`nspr-config --libdir`
|
|
||||||
export BUILD_OPT=1
|
|
||||||
export NSS_USE_SYSTEM_SQLITE=1
|
|
||||||
export NSDISTMODE=copy
|
|
||||||
export NSS_ENABLE_ECC=1
|
|
||||||
export XCFLAGS="${CFLAGS}"
|
|
||||||
export FREEBL_NO_DEPEND=1
|
|
||||||
export ASFLAGS=""
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "coreconf make failed"
|
|
||||||
cd "${S}"/mozilla/security/dbm || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "dbm make failed"
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "nss make failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Altering these 3 libraries breaks the CHK verification.
|
|
||||||
# All of the following cause it to break:
|
|
||||||
# - stripping
|
|
||||||
# - prelink
|
|
||||||
# - ELF signing
|
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
|
||||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
|
||||||
# stripping.
|
|
||||||
#local_libdir="$(get_libdir)"
|
|
||||||
#export STRIP_MASK="
|
|
||||||
# */${local_libdir}/libfreebl3.so*
|
|
||||||
# */${local_libdir}/libnssdbm3.so*
|
|
||||||
# */${local_libdir}/libsoftokn3.so*"
|
|
||||||
|
|
||||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
|
||||||
|
|
||||||
generate_chk() {
|
|
||||||
local shlibsign="$1"
|
|
||||||
local libdir="$2"
|
|
||||||
einfo "Resigning core NSS libraries for FIPS validation"
|
|
||||||
shift 2
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libname=lib${i}.so
|
|
||||||
local chkname=lib${i}.chk
|
|
||||||
"${shlibsign}" \
|
|
||||||
-i "${libdir}"/${libname} \
|
|
||||||
-o "${libdir}"/${chkname}.tmp \
|
|
||||||
&& mv -f \
|
|
||||||
"${libdir}"/${chkname}.tmp \
|
|
||||||
"${libdir}"/${chkname} \
|
|
||||||
|| die "Failed to sign ${libname}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_chk() {
|
|
||||||
local libdir="$1"
|
|
||||||
shift 1
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libfname="${libdir}/lib${i}.so"
|
|
||||||
# If the major version has changed, then we have old chk files.
|
|
||||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
|
||||||
&& rm -f "${libfname}.chk"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
MINOR_VERSION=12
|
|
||||||
cd "${S}"/mozilla/security/dist || die
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir) || die
|
|
||||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
|
||||||
# We generate these after stripping the libraries, else they don't match.
|
|
||||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
|
||||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
|
||||||
|
|
||||||
# Install nss-config and pkgconfig file
|
|
||||||
dodir /usr/bin || die
|
|
||||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
|
||||||
dodir /usr/$(get_libdir)/pkgconfig || die
|
|
||||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
|
||||||
|
|
||||||
# all the include files
|
|
||||||
insinto /usr/include/nss
|
|
||||||
doins public/nss/*.h || die
|
|
||||||
cd "${ED}"/usr/$(get_libdir) || die
|
|
||||||
local n=
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die
|
|
||||||
ln -s ${n} ${file} || die
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
local nssutils
|
|
||||||
# Always enabled because we need it for chk generation.
|
|
||||||
nssutils="shlibsign"
|
|
||||||
if use utils; then
|
|
||||||
# The tests we do not need to install.
|
|
||||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
|
||||||
#fipstest remtest sdrtest"
|
|
||||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
|
||||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
|
||||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
|
||||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
|
||||||
symkeyutil tstclnt vfychain vfyserv"
|
|
||||||
fi
|
|
||||||
cd "${S}"/mozilla/security/dist/*/bin/ || die
|
|
||||||
for f in ${nssutils}; do
|
|
||||||
dobin ${f} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
|
||||||
# shlibsign after prelink.
|
|
||||||
declare -a libs
|
|
||||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
|
||||||
done
|
|
||||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
|
||||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss" || die
|
|
||||||
unset libs liblist
|
|
||||||
doenvd "${T}/90nss" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# We must re-sign the libraries AFTER they are stripped.
|
|
||||||
generate_chk "${EROOT}"/usr/bin/shlibsign "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
@ -1,210 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.13.5.ebuild,v 1.8 2013/03/29 22:45:18 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
NSPR_VER="4.9.1"
|
|
||||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
|
||||||
|
|
||||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.13.3-add_spi+cacerts_ca_certs.patch
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.13.3_pem.support"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ~ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="utils"
|
|
||||||
|
|
||||||
DEPEND="virtual/pkgconfig
|
|
||||||
>=dev-libs/nspr-${NSPR_VER}"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
|
||||||
>=dev-db/sqlite-3.5
|
|
||||||
sys-libs/zlib"
|
|
||||||
|
|
||||||
src_setup() {
|
|
||||||
export LC_ALL="C"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Custom changes for gentoo
|
|
||||||
epatch "${FILESDIR}/${PN}-3.13-gentoo-fixup.patch"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.13.3-add_spi+cacerts_ca_certs.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.13.3_pem.support"
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
# hack nspr paths
|
|
||||||
echo 'INCLUDES += -I'"${EPREFIX}"'/usr/include/nspr -I$(DIST)/include/dbm' \
|
|
||||||
>> headers.mk || die "failed to append include"
|
|
||||||
|
|
||||||
# modify install path
|
|
||||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
|
||||||
-i source.mk || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk || die
|
|
||||||
|
|
||||||
# Ensure we stay multilib aware
|
|
||||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
|
||||||
|
|
||||||
# Fix pkgconfig file for Prefix
|
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
|
||||||
"${S}"/mozilla/security/nss/config/Makefile || die
|
|
||||||
|
|
||||||
epatch "${FILESDIR}/nss-3.13.1-solaris-gcc.patch"
|
|
||||||
|
|
||||||
# dirty hack
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
|
||||||
lib/ssl/config.mk || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
|
||||||
cmd/platlibs.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
strip-flags
|
|
||||||
|
|
||||||
echo > "${T}"/test.c || die
|
|
||||||
$(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*64-bit*|*ppc64*|*x86_64*) export USE_64=1;;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
export NSPR_INCLUDE_DIR=`nspr-config --includedir`
|
|
||||||
export NSPR_LIB_DIR=`nspr-config --libdir`
|
|
||||||
export BUILD_OPT=1
|
|
||||||
export NSS_USE_SYSTEM_SQLITE=1
|
|
||||||
export NSDISTMODE=copy
|
|
||||||
export NSS_ENABLE_ECC=1
|
|
||||||
export XCFLAGS="${CFLAGS}"
|
|
||||||
export FREEBL_NO_DEPEND=1
|
|
||||||
export ASFLAGS=""
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "coreconf make failed"
|
|
||||||
cd "${S}"/mozilla/security/dbm || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "dbm make failed"
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "nss make failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Altering these 3 libraries breaks the CHK verification.
|
|
||||||
# All of the following cause it to break:
|
|
||||||
# - stripping
|
|
||||||
# - prelink
|
|
||||||
# - ELF signing
|
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
|
||||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
|
||||||
# stripping.
|
|
||||||
#local_libdir="$(get_libdir)"
|
|
||||||
#export STRIP_MASK="
|
|
||||||
# */${local_libdir}/libfreebl3.so*
|
|
||||||
# */${local_libdir}/libnssdbm3.so*
|
|
||||||
# */${local_libdir}/libsoftokn3.so*"
|
|
||||||
|
|
||||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
|
||||||
|
|
||||||
generate_chk() {
|
|
||||||
local shlibsign="$1"
|
|
||||||
local libdir="$2"
|
|
||||||
einfo "Resigning core NSS libraries for FIPS validation"
|
|
||||||
shift 2
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libname=lib${i}.so
|
|
||||||
local chkname=lib${i}.chk
|
|
||||||
"${shlibsign}" \
|
|
||||||
-i "${libdir}"/${libname} \
|
|
||||||
-o "${libdir}"/${chkname}.tmp \
|
|
||||||
&& mv -f \
|
|
||||||
"${libdir}"/${chkname}.tmp \
|
|
||||||
"${libdir}"/${chkname} \
|
|
||||||
|| die "Failed to sign ${libname}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_chk() {
|
|
||||||
local libdir="$1"
|
|
||||||
shift 1
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libfname="${libdir}/lib${i}.so"
|
|
||||||
# If the major version has changed, then we have old chk files.
|
|
||||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
|
||||||
&& rm -f "${libfname}.chk"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
MINOR_VERSION=12
|
|
||||||
cd "${S}"/mozilla/security/dist || die
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir) || die
|
|
||||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
|
||||||
# We generate these after stripping the libraries, else they don't match.
|
|
||||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
|
||||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
|
||||||
|
|
||||||
# Install nss-config and pkgconfig file
|
|
||||||
dodir /usr/bin || die
|
|
||||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
|
||||||
dodir /usr/$(get_libdir)/pkgconfig || die
|
|
||||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
|
||||||
|
|
||||||
# all the include files
|
|
||||||
insinto /usr/include/nss
|
|
||||||
doins public/nss/*.h || die
|
|
||||||
cd "${ED}"/usr/$(get_libdir) || die
|
|
||||||
local n=
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die
|
|
||||||
ln -s ${n} ${file} || die
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
local nssutils
|
|
||||||
# Always enabled because we need it for chk generation.
|
|
||||||
nssutils="shlibsign"
|
|
||||||
if use utils; then
|
|
||||||
# The tests we do not need to install.
|
|
||||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
|
||||||
#fipstest remtest sdrtest"
|
|
||||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
|
||||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
|
||||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
|
||||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
|
||||||
symkeyutil tstclnt vfychain vfyserv"
|
|
||||||
fi
|
|
||||||
cd "${S}"/mozilla/security/dist/*/bin/ || die
|
|
||||||
for f in ${nssutils}; do
|
|
||||||
dobin ${f} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
|
||||||
# shlibsign after prelink.
|
|
||||||
declare -a libs
|
|
||||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
|
||||||
done
|
|
||||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
|
||||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss" || die
|
|
||||||
unset libs liblist
|
|
||||||
doenvd "${T}/90nss" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# We must re-sign the libraries AFTER they are stripped.
|
|
||||||
generate_chk "${EROOT}"/usr/bin/shlibsign "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
@ -1,212 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.13.6.ebuild,v 1.5 2013/03/29 22:45:18 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
NSPR_VER="4.9.2"
|
|
||||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
|
||||||
|
|
||||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.13.6-add_spi+cacerts_ca_certs.patch
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.13.3_pem.support"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="utils"
|
|
||||||
|
|
||||||
DEPEND="virtual/pkgconfig
|
|
||||||
>=dev-libs/nspr-${NSPR_VER}"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
|
||||||
>=dev-db/sqlite-3.5
|
|
||||||
sys-libs/zlib"
|
|
||||||
|
|
||||||
src_setup() {
|
|
||||||
export LC_ALL="C"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Custom changes for gentoo
|
|
||||||
epatch "${FILESDIR}/${PN}-3.13-gentoo-fixup.patch"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.13.6-add_spi+cacerts_ca_certs.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.13.3_pem.support"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.13.5-x32.patch"
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
# hack nspr paths
|
|
||||||
echo 'INCLUDES += -I'"${EPREFIX}"'/usr/include/nspr -I$(DIST)/include/dbm' \
|
|
||||||
>> headers.mk || die "failed to append include"
|
|
||||||
|
|
||||||
# modify install path
|
|
||||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
|
||||||
-i source.mk || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk || die
|
|
||||||
|
|
||||||
# Ensure we stay multilib aware
|
|
||||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
|
||||||
|
|
||||||
# Fix pkgconfig file for Prefix
|
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
|
||||||
"${S}"/mozilla/security/nss/config/Makefile || die
|
|
||||||
|
|
||||||
epatch "${FILESDIR}/nss-3.13.1-solaris-gcc.patch"
|
|
||||||
|
|
||||||
# dirty hack
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
|
||||||
lib/ssl/config.mk || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
|
||||||
cmd/platlibs.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
strip-flags
|
|
||||||
|
|
||||||
echo > "${T}"/test.c || die
|
|
||||||
$(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*32-bit*x86-64*) export USE_x32=1;;
|
|
||||||
*64-bit*|*ppc64*|*x86_64*) export USE_64=1;;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
export NSPR_INCLUDE_DIR=`nspr-config --includedir`
|
|
||||||
export NSPR_LIB_DIR=`nspr-config --libdir`
|
|
||||||
export BUILD_OPT=1
|
|
||||||
export NSS_USE_SYSTEM_SQLITE=1
|
|
||||||
export NSDISTMODE=copy
|
|
||||||
export NSS_ENABLE_ECC=1
|
|
||||||
export XCFLAGS="${CFLAGS}"
|
|
||||||
export FREEBL_NO_DEPEND=1
|
|
||||||
export ASFLAGS=""
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "coreconf make failed"
|
|
||||||
cd "${S}"/mozilla/security/dbm || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "dbm make failed"
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "nss make failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Altering these 3 libraries breaks the CHK verification.
|
|
||||||
# All of the following cause it to break:
|
|
||||||
# - stripping
|
|
||||||
# - prelink
|
|
||||||
# - ELF signing
|
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
|
||||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
|
||||||
# stripping.
|
|
||||||
#local_libdir="$(get_libdir)"
|
|
||||||
#export STRIP_MASK="
|
|
||||||
# */${local_libdir}/libfreebl3.so*
|
|
||||||
# */${local_libdir}/libnssdbm3.so*
|
|
||||||
# */${local_libdir}/libsoftokn3.so*"
|
|
||||||
|
|
||||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
|
||||||
|
|
||||||
generate_chk() {
|
|
||||||
local shlibsign="$1"
|
|
||||||
local libdir="$2"
|
|
||||||
einfo "Resigning core NSS libraries for FIPS validation"
|
|
||||||
shift 2
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libname=lib${i}.so
|
|
||||||
local chkname=lib${i}.chk
|
|
||||||
"${shlibsign}" \
|
|
||||||
-i "${libdir}"/${libname} \
|
|
||||||
-o "${libdir}"/${chkname}.tmp \
|
|
||||||
&& mv -f \
|
|
||||||
"${libdir}"/${chkname}.tmp \
|
|
||||||
"${libdir}"/${chkname} \
|
|
||||||
|| die "Failed to sign ${libname}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_chk() {
|
|
||||||
local libdir="$1"
|
|
||||||
shift 1
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libfname="${libdir}/lib${i}.so"
|
|
||||||
# If the major version has changed, then we have old chk files.
|
|
||||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
|
||||||
&& rm -f "${libfname}.chk"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
MINOR_VERSION=12
|
|
||||||
cd "${S}"/mozilla/security/dist || die
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir) || die
|
|
||||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
|
||||||
# We generate these after stripping the libraries, else they don't match.
|
|
||||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
|
||||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
|
||||||
|
|
||||||
# Install nss-config and pkgconfig file
|
|
||||||
dodir /usr/bin || die
|
|
||||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
|
||||||
dodir /usr/$(get_libdir)/pkgconfig || die
|
|
||||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
|
||||||
|
|
||||||
# all the include files
|
|
||||||
insinto /usr/include/nss
|
|
||||||
doins public/nss/*.h || die
|
|
||||||
cd "${ED}"/usr/$(get_libdir) || die
|
|
||||||
local n=
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die
|
|
||||||
ln -s ${n} ${file} || die
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
local nssutils
|
|
||||||
# Always enabled because we need it for chk generation.
|
|
||||||
nssutils="shlibsign"
|
|
||||||
if use utils; then
|
|
||||||
# The tests we do not need to install.
|
|
||||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
|
||||||
#fipstest remtest sdrtest"
|
|
||||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
|
||||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
|
||||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
|
||||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
|
||||||
symkeyutil tstclnt vfychain vfyserv"
|
|
||||||
fi
|
|
||||||
cd "${S}"/mozilla/security/dist/*/bin/ || die
|
|
||||||
for f in ${nssutils}; do
|
|
||||||
dobin ${f} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
|
||||||
# shlibsign after prelink.
|
|
||||||
declare -a libs
|
|
||||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
|
||||||
done
|
|
||||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
|
||||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss" || die
|
|
||||||
unset libs liblist
|
|
||||||
doenvd "${T}/90nss" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# We must re-sign the libraries AFTER they are stripped.
|
|
||||||
generate_chk "${EROOT}"/usr/bin/shlibsign "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
@ -1,271 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.14.1.ebuild,v 1.13 2013/03/29 22:45:18 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
NSPR_VER="4.9.2"
|
|
||||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
|
||||||
|
|
||||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.13.3_pem.support"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="utils"
|
|
||||||
|
|
||||||
DEPEND="virtual/pkgconfig
|
|
||||||
>=dev-libs/nspr-${NSPR_VER}"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
|
||||||
>=dev-db/sqlite-3.5
|
|
||||||
sys-libs/zlib"
|
|
||||||
|
|
||||||
src_setup() {
|
|
||||||
export LC_ALL="C"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Custom changes for gentoo
|
|
||||||
epatch "${FILESDIR}/${PN}-3.14.1-gentoo-fixups.patch"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.13.3_pem.support"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.13.5-x32.patch"
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
# hack nspr paths
|
|
||||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
|
||||||
>> headers.mk || die "failed to append include"
|
|
||||||
|
|
||||||
# modify install path
|
|
||||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
|
||||||
-i source.mk || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk || die
|
|
||||||
|
|
||||||
# Ensure we stay multilib aware
|
|
||||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
|
||||||
|
|
||||||
# Fix pkgconfig file for Prefix
|
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
|
||||||
"${S}"/mozilla/security/nss/config/Makefile || die
|
|
||||||
|
|
||||||
epatch "${FILESDIR}/nss-3.13.1-solaris-gcc.patch"
|
|
||||||
|
|
||||||
# use host shlibsign if need be #436216
|
|
||||||
if tc-is-cross-compiler ; then
|
|
||||||
sed -i \
|
|
||||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
|
||||||
"${S}"/mozilla/security/nss/cmd/shlibsign/sign.sh || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# dirty hack
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
|
||||||
lib/ssl/config.mk || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
|
||||||
cmd/platlibs.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
nssarch() {
|
|
||||||
# Most of the arches are the same as $ARCH
|
|
||||||
local t=${1:-${CHOST}}
|
|
||||||
case ${t} in
|
|
||||||
hppa*) echo "parisc";;
|
|
||||||
i?86*) echo "i686";;
|
|
||||||
x86_64*) echo "x86_64";;
|
|
||||||
*) tc-arch ${t};;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
nssbits() {
|
|
||||||
echo > "${T}"/test.c || die
|
|
||||||
${!1} ${CPPFLAGS} ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*32-bit*x86-64*) echo USE_x32=1;;
|
|
||||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
strip-flags
|
|
||||||
|
|
||||||
tc-export AR RANLIB {BUILD_,}{CC,PKG_CONFIG}
|
|
||||||
local makeargs=(
|
|
||||||
CC="${CC}"
|
|
||||||
AR="${AR} rc \$@"
|
|
||||||
RANLIB="${RANLIB}"
|
|
||||||
OPTIMIZER=
|
|
||||||
$(nssbits CC)
|
|
||||||
)
|
|
||||||
|
|
||||||
# Take care of nspr settings #436216
|
|
||||||
append-cppflags $(${PKG_CONFIG} nspr --cflags)
|
|
||||||
append-ldflags $(${PKG_CONFIG} nspr --libs-only-L)
|
|
||||||
unset NSPR_INCLUDE_DIR
|
|
||||||
export NSPR_LIB_DIR=${T}/fake-dir
|
|
||||||
|
|
||||||
# Do not let `uname` be used.
|
|
||||||
if use kernel_linux ; then
|
|
||||||
makeargs+=(
|
|
||||||
OS_TARGET=Linux
|
|
||||||
OS_RELEASE=2.6
|
|
||||||
OS_TEST="$(nssarch)"
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
export BUILD_OPT=1
|
|
||||||
export NSS_USE_SYSTEM_SQLITE=1
|
|
||||||
export NSDISTMODE=copy
|
|
||||||
export NSS_ENABLE_ECC=1
|
|
||||||
export XCFLAGS="${CFLAGS} ${CPPFLAGS}"
|
|
||||||
export FREEBL_NO_DEPEND=1
|
|
||||||
export ASFLAGS=""
|
|
||||||
|
|
||||||
local d
|
|
||||||
|
|
||||||
# Build the host tools first.
|
|
||||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
|
||||||
XCFLAGS="${BUILD_CFLAGS}" \
|
|
||||||
emake -j1 -C mozilla/security/coreconf \
|
|
||||||
CC="${BUILD_CC}" \
|
|
||||||
$(nssbits BUILD_CC) \
|
|
||||||
|| die
|
|
||||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
|
||||||
|
|
||||||
# Then build the target tools.
|
|
||||||
for d in dbm nss ; do
|
|
||||||
emake -j1 "${makeargs[@]}" -C mozilla/security/${d} || die "${d} make failed"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# Altering these 3 libraries breaks the CHK verification.
|
|
||||||
# All of the following cause it to break:
|
|
||||||
# - stripping
|
|
||||||
# - prelink
|
|
||||||
# - ELF signing
|
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
|
||||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
|
||||||
# stripping.
|
|
||||||
#local_libdir="$(get_libdir)"
|
|
||||||
#export STRIP_MASK="
|
|
||||||
# */${local_libdir}/libfreebl3.so*
|
|
||||||
# */${local_libdir}/libnssdbm3.so*
|
|
||||||
# */${local_libdir}/libsoftokn3.so*"
|
|
||||||
|
|
||||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
|
||||||
|
|
||||||
generate_chk() {
|
|
||||||
local shlibsign="$1"
|
|
||||||
local libdir="$2"
|
|
||||||
einfo "Resigning core NSS libraries for FIPS validation"
|
|
||||||
shift 2
|
|
||||||
local i
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libname=lib${i}.so
|
|
||||||
local chkname=lib${i}.chk
|
|
||||||
"${shlibsign}" \
|
|
||||||
-i "${libdir}"/${libname} \
|
|
||||||
-o "${libdir}"/${chkname}.tmp \
|
|
||||||
&& mv -f \
|
|
||||||
"${libdir}"/${chkname}.tmp \
|
|
||||||
"${libdir}"/${chkname} \
|
|
||||||
|| die "Failed to sign ${libname}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_chk() {
|
|
||||||
local libdir="$1"
|
|
||||||
shift 1
|
|
||||||
local i
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libfname="${libdir}/lib${i}.so"
|
|
||||||
# If the major version has changed, then we have old chk files.
|
|
||||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
|
||||||
&& rm -f "${libfname}.chk"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
MINOR_VERSION=12
|
|
||||||
cd "${S}"/mozilla/security/dist || die
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir) || die
|
|
||||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
|
||||||
# We generate these after stripping the libraries, else they don't match.
|
|
||||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
|
||||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
|
||||||
|
|
||||||
# Install nss-config and pkgconfig file
|
|
||||||
dodir /usr/bin || die
|
|
||||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
|
||||||
dodir /usr/$(get_libdir)/pkgconfig || die
|
|
||||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
|
||||||
|
|
||||||
# all the include files
|
|
||||||
insinto /usr/include/nss
|
|
||||||
doins public/nss/*.h || die
|
|
||||||
cd "${ED}"/usr/$(get_libdir) || die
|
|
||||||
local n file
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die
|
|
||||||
ln -s ${n} ${file} || die
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
local f nssutils
|
|
||||||
# Always enabled because we need it for chk generation.
|
|
||||||
nssutils="shlibsign"
|
|
||||||
if use utils; then
|
|
||||||
# The tests we do not need to install.
|
|
||||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
|
||||||
#fipstest remtest sdrtest"
|
|
||||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
|
||||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
|
||||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
|
||||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
|
||||||
symkeyutil tstclnt vfychain vfyserv"
|
|
||||||
fi
|
|
||||||
cd "${S}"/mozilla/security/dist/*/bin/ || die
|
|
||||||
for f in ${nssutils}; do
|
|
||||||
dobin ${f} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
|
||||||
# shlibsign after prelink.
|
|
||||||
local l libs=()
|
|
||||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
|
||||||
done
|
|
||||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
|
||||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss" || die
|
|
||||||
unset libs liblist
|
|
||||||
doenvd "${T}/90nss" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# We must re-sign the libraries AFTER they are stripped.
|
|
||||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
|
||||||
# See if we can execute it (cross-compiling & such). #436216
|
|
||||||
"${shlibsign}" -h >&/dev/null
|
|
||||||
if [[ $? -gt 1 ]] ; then
|
|
||||||
shlibsign="shlibsign"
|
|
||||||
fi
|
|
||||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
@ -1,272 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.14.2.ebuild,v 1.2 2013/03/29 22:45:18 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
NSPR_VER="4.9.5"
|
|
||||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
|
||||||
|
|
||||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.13.3_pem.support"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="utils"
|
|
||||||
|
|
||||||
DEPEND="virtual/pkgconfig
|
|
||||||
>=dev-libs/nspr-${NSPR_VER}"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
|
||||||
>=dev-db/sqlite-3.5
|
|
||||||
sys-libs/zlib"
|
|
||||||
|
|
||||||
src_setup() {
|
|
||||||
export LC_ALL="C"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Custom changes for gentoo
|
|
||||||
epatch "${FILESDIR}/${PN}-3.14.1-gentoo-fixups.patch"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.13.3_pem.support"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.14.2-x32.patch"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.14.2-sqlite.patch"
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
# hack nspr paths
|
|
||||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
|
||||||
>> headers.mk || die "failed to append include"
|
|
||||||
|
|
||||||
# modify install path
|
|
||||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
|
||||||
-i source.mk || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk || die
|
|
||||||
|
|
||||||
# Ensure we stay multilib aware
|
|
||||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
|
||||||
|
|
||||||
# Fix pkgconfig file for Prefix
|
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
|
||||||
"${S}"/mozilla/security/nss/config/Makefile || die
|
|
||||||
|
|
||||||
epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
|
|
||||||
|
|
||||||
# use host shlibsign if need be #436216
|
|
||||||
if tc-is-cross-compiler ; then
|
|
||||||
sed -i \
|
|
||||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
|
||||||
"${S}"/mozilla/security/nss/cmd/shlibsign/sign.sh || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# dirty hack
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
|
||||||
lib/ssl/config.mk || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
|
||||||
cmd/platlibs.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
nssarch() {
|
|
||||||
# Most of the arches are the same as $ARCH
|
|
||||||
local t=${1:-${CHOST}}
|
|
||||||
case ${t} in
|
|
||||||
hppa*) echo "parisc";;
|
|
||||||
i?86*) echo "i686";;
|
|
||||||
x86_64*) echo "x86_64";;
|
|
||||||
*) tc-arch ${t};;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
nssbits() {
|
|
||||||
echo > "${T}"/test.c || die
|
|
||||||
${!1} ${CPPFLAGS} ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*32-bit*x86-64*) echo USE_x32=1;;
|
|
||||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
strip-flags
|
|
||||||
|
|
||||||
tc-export AR RANLIB {BUILD_,}{CC,PKG_CONFIG}
|
|
||||||
local makeargs=(
|
|
||||||
CC="${CC}"
|
|
||||||
AR="${AR} rc \$@"
|
|
||||||
RANLIB="${RANLIB}"
|
|
||||||
OPTIMIZER=
|
|
||||||
$(nssbits CC)
|
|
||||||
)
|
|
||||||
|
|
||||||
# Take care of nspr settings #436216
|
|
||||||
append-cppflags $(${PKG_CONFIG} nspr --cflags)
|
|
||||||
append-ldflags $(${PKG_CONFIG} nspr --libs-only-L)
|
|
||||||
unset NSPR_INCLUDE_DIR
|
|
||||||
export NSPR_LIB_DIR=${T}/fake-dir
|
|
||||||
|
|
||||||
# Do not let `uname` be used.
|
|
||||||
if use kernel_linux ; then
|
|
||||||
makeargs+=(
|
|
||||||
OS_TARGET=Linux
|
|
||||||
OS_RELEASE=2.6
|
|
||||||
OS_TEST="$(nssarch)"
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
export BUILD_OPT=1
|
|
||||||
export NSS_USE_SYSTEM_SQLITE=1
|
|
||||||
export NSDISTMODE=copy
|
|
||||||
export NSS_ENABLE_ECC=1
|
|
||||||
export XCFLAGS="${CFLAGS} ${CPPFLAGS}"
|
|
||||||
export FREEBL_NO_DEPEND=1
|
|
||||||
export ASFLAGS=""
|
|
||||||
|
|
||||||
local d
|
|
||||||
|
|
||||||
# Build the host tools first.
|
|
||||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
|
||||||
XCFLAGS="${BUILD_CFLAGS}" \
|
|
||||||
emake -j1 -C mozilla/security/coreconf \
|
|
||||||
CC="${BUILD_CC}" \
|
|
||||||
$(nssbits BUILD_CC) \
|
|
||||||
|| die
|
|
||||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
|
||||||
|
|
||||||
# Then build the target tools.
|
|
||||||
for d in dbm nss ; do
|
|
||||||
emake -j1 "${makeargs[@]}" -C mozilla/security/${d} || die "${d} make failed"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# Altering these 3 libraries breaks the CHK verification.
|
|
||||||
# All of the following cause it to break:
|
|
||||||
# - stripping
|
|
||||||
# - prelink
|
|
||||||
# - ELF signing
|
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
|
||||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
|
||||||
# stripping.
|
|
||||||
#local_libdir="$(get_libdir)"
|
|
||||||
#export STRIP_MASK="
|
|
||||||
# */${local_libdir}/libfreebl3.so*
|
|
||||||
# */${local_libdir}/libnssdbm3.so*
|
|
||||||
# */${local_libdir}/libsoftokn3.so*"
|
|
||||||
|
|
||||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
|
||||||
|
|
||||||
generate_chk() {
|
|
||||||
local shlibsign="$1"
|
|
||||||
local libdir="$2"
|
|
||||||
einfo "Resigning core NSS libraries for FIPS validation"
|
|
||||||
shift 2
|
|
||||||
local i
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libname=lib${i}.so
|
|
||||||
local chkname=lib${i}.chk
|
|
||||||
"${shlibsign}" \
|
|
||||||
-i "${libdir}"/${libname} \
|
|
||||||
-o "${libdir}"/${chkname}.tmp \
|
|
||||||
&& mv -f \
|
|
||||||
"${libdir}"/${chkname}.tmp \
|
|
||||||
"${libdir}"/${chkname} \
|
|
||||||
|| die "Failed to sign ${libname}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_chk() {
|
|
||||||
local libdir="$1"
|
|
||||||
shift 1
|
|
||||||
local i
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libfname="${libdir}/lib${i}.so"
|
|
||||||
# If the major version has changed, then we have old chk files.
|
|
||||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
|
||||||
&& rm -f "${libfname}.chk"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
MINOR_VERSION=12
|
|
||||||
cd "${S}"/mozilla/security/dist || die
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir) || die
|
|
||||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
|
||||||
# We generate these after stripping the libraries, else they don't match.
|
|
||||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
|
||||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
|
||||||
|
|
||||||
# Install nss-config and pkgconfig file
|
|
||||||
dodir /usr/bin || die
|
|
||||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
|
||||||
dodir /usr/$(get_libdir)/pkgconfig || die
|
|
||||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
|
||||||
|
|
||||||
# all the include files
|
|
||||||
insinto /usr/include/nss
|
|
||||||
doins public/nss/*.h || die
|
|
||||||
cd "${ED}"/usr/$(get_libdir) || die
|
|
||||||
local n file
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die
|
|
||||||
ln -s ${n} ${file} || die
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
local f nssutils
|
|
||||||
# Always enabled because we need it for chk generation.
|
|
||||||
nssutils="shlibsign"
|
|
||||||
if use utils; then
|
|
||||||
# The tests we do not need to install.
|
|
||||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
|
||||||
#fipstest remtest sdrtest"
|
|
||||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
|
||||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
|
||||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
|
||||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
|
||||||
symkeyutil tstclnt vfychain vfyserv"
|
|
||||||
fi
|
|
||||||
cd "${S}"/mozilla/security/dist/*/bin/ || die
|
|
||||||
for f in ${nssutils}; do
|
|
||||||
dobin ${f} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
|
||||||
# shlibsign after prelink.
|
|
||||||
local l libs=()
|
|
||||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
|
||||||
done
|
|
||||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
|
||||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss" || die
|
|
||||||
unset libs liblist
|
|
||||||
doenvd "${T}/90nss" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# We must re-sign the libraries AFTER they are stripped.
|
|
||||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
|
||||||
# See if we can execute it (cross-compiling & such). #436216
|
|
||||||
"${shlibsign}" -h >&/dev/null
|
|
||||||
if [[ $? -gt 1 ]] ; then
|
|
||||||
shlibsign="shlibsign"
|
|
||||||
fi
|
|
||||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
@ -1,212 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.14.ebuild,v 1.11 2013/03/29 22:45:18 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
NSPR_VER="4.9.2"
|
|
||||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
|
||||||
|
|
||||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
|
||||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.14-add_spi+cacerts_ca_certs.patch
|
|
||||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.13.3_pem.support"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="utils"
|
|
||||||
|
|
||||||
DEPEND="virtual/pkgconfig
|
|
||||||
>=dev-libs/nspr-${NSPR_VER}"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
|
||||||
>=dev-db/sqlite-3.5
|
|
||||||
sys-libs/zlib"
|
|
||||||
|
|
||||||
src_setup() {
|
|
||||||
export LC_ALL="C"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Custom changes for gentoo
|
|
||||||
epatch "${FILESDIR}/${PN}-3.13-gentoo-fixup.patch"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.14-add_spi+cacerts_ca_certs.patch"
|
|
||||||
epatch "${DISTDIR}/${PN}-3.13.3_pem.support"
|
|
||||||
epatch "${FILESDIR}/${PN}-3.13.5-x32.patch"
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
# hack nspr paths
|
|
||||||
echo 'INCLUDES += -I'"${EPREFIX}"'/usr/include/nspr -I$(DIST)/include/dbm' \
|
|
||||||
>> headers.mk || die "failed to append include"
|
|
||||||
|
|
||||||
# modify install path
|
|
||||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
|
||||||
-i source.mk || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk || die
|
|
||||||
|
|
||||||
# Ensure we stay multilib aware
|
|
||||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
|
||||||
|
|
||||||
# Fix pkgconfig file for Prefix
|
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
|
||||||
"${S}"/mozilla/security/nss/config/Makefile || die
|
|
||||||
|
|
||||||
epatch "${FILESDIR}/nss-3.13.1-solaris-gcc.patch"
|
|
||||||
|
|
||||||
# dirty hack
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
|
||||||
lib/ssl/config.mk || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
|
||||||
cmd/platlibs.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
strip-flags
|
|
||||||
|
|
||||||
echo > "${T}"/test.c || die
|
|
||||||
$(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
|
||||||
case $(file "${T}"/test.o) in
|
|
||||||
*32-bit*x86-64*) export USE_x32=1;;
|
|
||||||
*64-bit*|*ppc64*|*x86_64*) export USE_64=1;;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
export NSPR_INCLUDE_DIR=`nspr-config --includedir`
|
|
||||||
export NSPR_LIB_DIR=`nspr-config --libdir`
|
|
||||||
export BUILD_OPT=1
|
|
||||||
export NSS_USE_SYSTEM_SQLITE=1
|
|
||||||
export NSDISTMODE=copy
|
|
||||||
export NSS_ENABLE_ECC=1
|
|
||||||
export XCFLAGS="${CFLAGS}"
|
|
||||||
export FREEBL_NO_DEPEND=1
|
|
||||||
export ASFLAGS=""
|
|
||||||
|
|
||||||
cd "${S}"/mozilla/security/coreconf || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "coreconf make failed"
|
|
||||||
cd "${S}"/mozilla/security/dbm || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "dbm make failed"
|
|
||||||
cd "${S}"/mozilla/security/nss || die
|
|
||||||
emake -j1 CC="$(tc-getCC)" || die "nss make failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Altering these 3 libraries breaks the CHK verification.
|
|
||||||
# All of the following cause it to break:
|
|
||||||
# - stripping
|
|
||||||
# - prelink
|
|
||||||
# - ELF signing
|
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
|
||||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
|
||||||
# stripping.
|
|
||||||
#local_libdir="$(get_libdir)"
|
|
||||||
#export STRIP_MASK="
|
|
||||||
# */${local_libdir}/libfreebl3.so*
|
|
||||||
# */${local_libdir}/libnssdbm3.so*
|
|
||||||
# */${local_libdir}/libsoftokn3.so*"
|
|
||||||
|
|
||||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
|
||||||
|
|
||||||
generate_chk() {
|
|
||||||
local shlibsign="$1"
|
|
||||||
local libdir="$2"
|
|
||||||
einfo "Resigning core NSS libraries for FIPS validation"
|
|
||||||
shift 2
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libname=lib${i}.so
|
|
||||||
local chkname=lib${i}.chk
|
|
||||||
"${shlibsign}" \
|
|
||||||
-i "${libdir}"/${libname} \
|
|
||||||
-o "${libdir}"/${chkname}.tmp \
|
|
||||||
&& mv -f \
|
|
||||||
"${libdir}"/${chkname}.tmp \
|
|
||||||
"${libdir}"/${chkname} \
|
|
||||||
|| die "Failed to sign ${libname}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_chk() {
|
|
||||||
local libdir="$1"
|
|
||||||
shift 1
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libfname="${libdir}/lib${i}.so"
|
|
||||||
# If the major version has changed, then we have old chk files.
|
|
||||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
|
||||||
&& rm -f "${libfname}.chk"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
MINOR_VERSION=12
|
|
||||||
cd "${S}"/mozilla/security/dist || die
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir) || die
|
|
||||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
|
||||||
# We generate these after stripping the libraries, else they don't match.
|
|
||||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
|
||||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
|
||||||
|
|
||||||
# Install nss-config and pkgconfig file
|
|
||||||
dodir /usr/bin || die
|
|
||||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
|
||||||
dodir /usr/$(get_libdir)/pkgconfig || die
|
|
||||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
|
||||||
|
|
||||||
# all the include files
|
|
||||||
insinto /usr/include/nss
|
|
||||||
doins public/nss/*.h || die
|
|
||||||
cd "${ED}"/usr/$(get_libdir) || die
|
|
||||||
local n=
|
|
||||||
for file in *$(get_libname); do
|
|
||||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
|
||||||
mv ${file} ${n} || die
|
|
||||||
ln -s ${n} ${file} || die
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
local nssutils
|
|
||||||
# Always enabled because we need it for chk generation.
|
|
||||||
nssutils="shlibsign"
|
|
||||||
if use utils; then
|
|
||||||
# The tests we do not need to install.
|
|
||||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
|
||||||
#fipstest remtest sdrtest"
|
|
||||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
|
||||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
|
||||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
|
||||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
|
||||||
symkeyutil tstclnt vfychain vfyserv"
|
|
||||||
fi
|
|
||||||
cd "${S}"/mozilla/security/dist/*/bin/ || die
|
|
||||||
for f in ${nssutils}; do
|
|
||||||
dobin ${f} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
|
||||||
# shlibsign after prelink.
|
|
||||||
declare -a libs
|
|
||||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
|
||||||
done
|
|
||||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
|
||||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss" || die
|
|
||||||
unset libs liblist
|
|
||||||
doenvd "${T}/90nss" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# We must re-sign the libraries AFTER they are stripped.
|
|
||||||
generate_chk "${EROOT}"/usr/bin/shlibsign "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
@ -1,2 +1,2 @@
|
|||||||
DIST latex-beamer-3.26.zip 4344322 SHA256 c61f5b8dc02ef2584ddba707de49f8e58b2533350109154ef79d91f07cd83a8e SHA512 fc419e61943d3bdf6230d4d3822bc53322551f07394a9a703e0ffc82c942155a591776af7d0396559d20325c4211b09a363eb770cad002d0b292e7ba97e3d6de WHIRLPOOL 29d0fb6193458a497fe79b9ed79a55f41139f20f751c38bf48c6416e741b2fa32da4501c1ae4850f5b652bd9af8223beb61a13deae60442525aec1bba96a6cf3
|
DIST latex-beamer-3.26.zip 4344322 SHA256 c61f5b8dc02ef2584ddba707de49f8e58b2533350109154ef79d91f07cd83a8e SHA512 fc419e61943d3bdf6230d4d3822bc53322551f07394a9a703e0ffc82c942155a591776af7d0396559d20325c4211b09a363eb770cad002d0b292e7ba97e3d6de WHIRLPOOL 29d0fb6193458a497fe79b9ed79a55f41139f20f751c38bf48c6416e741b2fa32da4501c1ae4850f5b652bd9af8223beb61a13deae60442525aec1bba96a6cf3
|
||||||
DIST latex-beamer-3.27.zip 3126232 SHA256 8af3383bd3090cdd69422f34db9358151243eddacb0020f8d7da0f8ccbfc5727 SHA512 709644282658ae0784b820f6843cdccf1786e194785bf8cc3cf96a153dd541ffd969b6830462bae4dbe011dcae7d96d7896bfb00d7aa1c1277dcd0130d43521c WHIRLPOOL 3e85981b7a7860c7ec81086249a46a88ae49109d8ade4226c3b27a95638c00948cad55f15c482b12d58813126e2ed4c0acb50f13702ddaec4242cd51346e5e71
|
DIST latex-beamer-3.27.zip 4345327 SHA256 4899fbd783154c9ac2f8dd43f62da24b753ea09ef2637c74c80209ebf7fdad02 SHA512 435877b1c70ded101bbaea4fdd91c25a9ef75bf709113b834a4d8ecf890364d4f11e045cb62f307c50265ed0671934652262cc6dfcb32c9a01f4fdf91c7c72db WHIRLPOOL cc75ad9929ec0635ccd44396aa584c41cbcfc3c2e36298d7145c7164b902c9689e40d9353c83105b9ef492e025245f164444beaa3fd06f124c8145fa2bd39117
|
||||||
|
@ -0,0 +1,463 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-9.2_pre20130619.ebuild,v 1.1 2013/06/19 15:32:40 chithanh Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa"
|
||||||
|
|
||||||
|
if [[ ${PV} = 9999* ]]; then
|
||||||
|
GIT_ECLASS="git-2"
|
||||||
|
EXPERIMENTAL="true"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||||
|
|
||||||
|
inherit base autotools multilib flag-o-matic python-single-r1 toolchain-funcs ${GIT_ECLASS}
|
||||||
|
|
||||||
|
OPENGL_DIR="xorg-x11"
|
||||||
|
|
||||||
|
MY_PN="${PN/m/M}"
|
||||||
|
MY_P="${MY_PN}-${PV/_/-}"
|
||||||
|
MY_SRC_P="${MY_PN}Lib-${PV/_/-}"
|
||||||
|
|
||||||
|
FOLDER="${PV/_rc*/}"
|
||||||
|
|
||||||
|
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||||
|
HOMEPAGE="http://mesa3d.sourceforge.net/"
|
||||||
|
|
||||||
|
#SRC_PATCHES="mirror://gentoo/${P}-gentoo-patches-01.tar.bz2"
|
||||||
|
if [[ $PV = 9999* ]]; then
|
||||||
|
SRC_URI="${SRC_PATCHES}"
|
||||||
|
else
|
||||||
|
SRC_URI="mirror://gentoo/${P}.tar.xz
|
||||||
|
${SRC_PATCHES}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# The code is MIT/X11.
|
||||||
|
# GLES[2]/gl[2]{,ext,platform}.h are SGI-B-2.0
|
||||||
|
LICENSE="MIT SGI-B-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
|
||||||
|
INTEL_CARDS="i915 i965 ilo intel"
|
||||||
|
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||||
|
VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} freedreno nouveau vmware"
|
||||||
|
for card in ${VIDEO_CARDS}; do
|
||||||
|
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||||
|
done
|
||||||
|
|
||||||
|
IUSE="${IUSE_VIDEO_CARDS}
|
||||||
|
bindist +classic debug +egl +gallium gbm gles1 gles2 +llvm +nptl opencl
|
||||||
|
openvg osmesa pax_kernel pic r600-llvm-compiler selinux +shared-glapi vdpau
|
||||||
|
wayland xvmc xa xorg kernel_FreeBSD"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
llvm? ( gallium )
|
||||||
|
openvg? ( egl gallium )
|
||||||
|
opencl? ( gallium r600-llvm-compiler )
|
||||||
|
gbm? ( shared-glapi )
|
||||||
|
gles1? ( egl )
|
||||||
|
gles2? ( egl )
|
||||||
|
r600-llvm-compiler? ( gallium llvm || ( video_cards_r600 video_cards_radeon ) )
|
||||||
|
wayland? ( egl )
|
||||||
|
xa? ( gallium )
|
||||||
|
xorg? ( gallium )
|
||||||
|
video_cards_freedreno? ( gallium )
|
||||||
|
video_cards_intel? ( || ( classic gallium ) )
|
||||||
|
video_cards_i915? ( || ( classic gallium ) )
|
||||||
|
video_cards_i965? ( classic )
|
||||||
|
video_cards_ilo? ( gallium )
|
||||||
|
video_cards_nouveau? ( || ( classic gallium ) )
|
||||||
|
video_cards_radeon? ( || ( classic gallium ) )
|
||||||
|
video_cards_r100? ( classic )
|
||||||
|
video_cards_r200? ( classic )
|
||||||
|
video_cards_r300? ( gallium )
|
||||||
|
video_cards_r600? ( gallium )
|
||||||
|
video_cards_radeonsi? ( gallium llvm )
|
||||||
|
video_cards_vmware? ( gallium )
|
||||||
|
"
|
||||||
|
|
||||||
|
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.45"
|
||||||
|
# keep correct libdrm and dri2proto dep
|
||||||
|
# keep blocks in rdepend for binpkg
|
||||||
|
RDEPEND="
|
||||||
|
!<x11-base/xorg-server-1.7
|
||||||
|
!<=x11-proto/xf86driproto-2.0.3
|
||||||
|
classic? ( app-admin/eselect-mesa )
|
||||||
|
gallium? ( app-admin/eselect-mesa )
|
||||||
|
>=app-admin/eselect-opengl-1.2.7
|
||||||
|
dev-libs/expat
|
||||||
|
gbm? ( virtual/udev )
|
||||||
|
>=x11-libs/libX11-1.3.99.901
|
||||||
|
x11-libs/libXdamage
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXxf86vm
|
||||||
|
>=x11-libs/libxcb-1.8.1
|
||||||
|
opencl? (
|
||||||
|
app-admin/eselect-opencl
|
||||||
|
dev-libs/libclc
|
||||||
|
)
|
||||||
|
vdpau? ( >=x11-libs/libvdpau-0.4.1 )
|
||||||
|
wayland? ( >=dev-libs/wayland-1.0.3 )
|
||||||
|
xorg? (
|
||||||
|
x11-base/xorg-server:=
|
||||||
|
x11-libs/libdrm[libkms]
|
||||||
|
)
|
||||||
|
xvmc? ( >=x11-libs/libXvMC-1.0.6 )
|
||||||
|
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vmware?]
|
||||||
|
"
|
||||||
|
for card in ${INTEL_CARDS}; do
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||||
|
"
|
||||||
|
done
|
||||||
|
|
||||||
|
for card in ${RADEON_CARDS}; do
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||||
|
"
|
||||||
|
done
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
llvm? (
|
||||||
|
>=sys-devel/llvm-2.9
|
||||||
|
r600-llvm-compiler? ( sys-devel/llvm[video_cards_radeon] )
|
||||||
|
video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] )
|
||||||
|
)
|
||||||
|
opencl? (
|
||||||
|
>=sys-devel/llvm-3.3[video_cards_radeon]
|
||||||
|
>=sys-devel/clang-3.3
|
||||||
|
>=sys-devel/gcc-4.6
|
||||||
|
)
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
dev-libs/libxml2[python,${PYTHON_USEDEP}]
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
virtual/pkgconfig
|
||||||
|
>=x11-proto/dri2proto-2.6
|
||||||
|
>=x11-proto/glproto-1.4.15-r1
|
||||||
|
>=x11-proto/xextproto-7.0.99.1
|
||||||
|
x11-proto/xf86driproto
|
||||||
|
x11-proto/xf86vidmodeproto
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
# It is slow without texrels, if someone wants slow
|
||||||
|
# mesa without texrels +pic use is worth the shot
|
||||||
|
QA_EXECSTACK="usr/lib*/opengl/xorg-x11/lib/libGL.so*"
|
||||||
|
QA_WX_LOAD="usr/lib*/opengl/xorg-x11/lib/libGL.so*"
|
||||||
|
|
||||||
|
# Think about: ggi, fbcon, no-X configs
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# workaround toc-issue wrt #386545
|
||||||
|
use ppc64 && append-flags -mminimal-toc
|
||||||
|
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
[[ $PV = 9999* ]] && git-2_src_unpack
|
||||||
|
mv "${WORKDIR}"/${PN}-* "${WORKDIR}/${MY_P}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# apply patches
|
||||||
|
if [[ ${PV} != 9999* && -n ${SRC_PATCHES} ]]; then
|
||||||
|
EPATCH_FORCE="yes" \
|
||||||
|
EPATCH_SOURCE="${WORKDIR}/patches" \
|
||||||
|
EPATCH_SUFFIX="patch" \
|
||||||
|
epatch
|
||||||
|
fi
|
||||||
|
|
||||||
|
# relax the requirement that r300 must have llvm, bug 380303
|
||||||
|
epatch "${FILESDIR}"/${PN}-8.1-dont-require-llvm-for-r300.patch
|
||||||
|
|
||||||
|
# fix for hardened pax_kernel, bug 240956
|
||||||
|
[[ ${PV} != 9999* ]] && epatch "${FILESDIR}"/glx_ro_text_segm.patch
|
||||||
|
|
||||||
|
# Solaris needs some recent POSIX stuff in our case
|
||||||
|
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||||
|
sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Tests fail against python-3, bug #407887
|
||||||
|
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' src/glsl/tests/compare_ir || die
|
||||||
|
|
||||||
|
base_src_prepare
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf
|
||||||
|
|
||||||
|
if use classic; then
|
||||||
|
# Configurable DRI drivers
|
||||||
|
driver_enable swrast
|
||||||
|
|
||||||
|
# Intel code
|
||||||
|
driver_enable video_cards_i915 i915
|
||||||
|
driver_enable video_cards_i965 i965
|
||||||
|
if ! use video_cards_i915 && \
|
||||||
|
! use video_cards_i965; then
|
||||||
|
driver_enable video_cards_intel i915 i965
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Nouveau code
|
||||||
|
driver_enable video_cards_nouveau nouveau
|
||||||
|
|
||||||
|
# ATI code
|
||||||
|
driver_enable video_cards_r100 radeon
|
||||||
|
driver_enable video_cards_r200 r200
|
||||||
|
if ! use video_cards_r100 && \
|
||||||
|
! use video_cards_r200; then
|
||||||
|
driver_enable video_cards_radeon radeon r200
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use egl; then
|
||||||
|
myconf+="
|
||||||
|
--with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm")
|
||||||
|
$(use_enable gallium gallium-egl)
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use gallium; then
|
||||||
|
myconf+="
|
||||||
|
$(use_enable llvm gallium-llvm)
|
||||||
|
$(use_enable openvg)
|
||||||
|
$(use_enable r600-llvm-compiler)
|
||||||
|
$(use_enable vdpau)
|
||||||
|
$(use_enable xvmc)
|
||||||
|
"
|
||||||
|
gallium_enable swrast
|
||||||
|
gallium_enable video_cards_vmware svga
|
||||||
|
gallium_enable video_cards_nouveau nouveau
|
||||||
|
gallium_enable video_cards_i915 i915
|
||||||
|
gallium_enable video_cards_ilo ilo
|
||||||
|
if ! use video_cards_i915 && \
|
||||||
|
! use video_cards_i965; then
|
||||||
|
gallium_enable video_cards_intel i915
|
||||||
|
fi
|
||||||
|
|
||||||
|
gallium_enable video_cards_r300 r300
|
||||||
|
gallium_enable video_cards_r600 r600
|
||||||
|
gallium_enable video_cards_radeonsi radeonsi
|
||||||
|
if ! use video_cards_r300 && \
|
||||||
|
! use video_cards_r600; then
|
||||||
|
gallium_enable video_cards_radeon r300 r600
|
||||||
|
fi
|
||||||
|
|
||||||
|
gallium_enable video_cards_freedreno freedreno
|
||||||
|
# opencl stuff
|
||||||
|
if use opencl; then
|
||||||
|
myconf+="
|
||||||
|
$(use_enable opencl)
|
||||||
|
--with-opencl-libdir="${EPREFIX}/usr/$(get_libdir)/OpenCL/vendors/mesa"
|
||||||
|
--with-clang-libdir="${EPREFIX}/usr/$(get_libdir)"
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# x86 hardened pax_kernel needs glx-rts, bug 240956
|
||||||
|
if use pax_kernel; then
|
||||||
|
myconf+="
|
||||||
|
$(use_enable x86 glx-rts)
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# build fails with BSD indent, bug #428112
|
||||||
|
use userland_GNU || export INDENT=cat
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--enable-dri \
|
||||||
|
--enable-glx \
|
||||||
|
$(use_enable !bindist texture-float) \
|
||||||
|
$(use_enable debug) \
|
||||||
|
$(use_enable egl) \
|
||||||
|
$(use_enable gbm) \
|
||||||
|
$(use_enable gles1) \
|
||||||
|
$(use_enable gles2) \
|
||||||
|
$(use_enable nptl glx-tls) \
|
||||||
|
$(use_enable osmesa) \
|
||||||
|
$(use_enable !pic asm) \
|
||||||
|
$(use_enable shared-glapi) \
|
||||||
|
$(use_enable xa) \
|
||||||
|
$(use_enable xorg) \
|
||||||
|
--with-dri-drivers=${DRI_DRIVERS} \
|
||||||
|
--with-gallium-drivers=${GALLIUM_DRIVERS} \
|
||||||
|
PYTHON2="${PYTHON}" \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
base_src_install
|
||||||
|
|
||||||
|
find "${ED}" -name '*.la' -exec rm -f {} + || die
|
||||||
|
|
||||||
|
if use !bindist; then
|
||||||
|
dodoc docs/patents.txt
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install config file for eselect mesa
|
||||||
|
insinto /usr/share/mesa
|
||||||
|
newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf
|
||||||
|
|
||||||
|
# Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib
|
||||||
|
# because user can eselect desired GL provider.
|
||||||
|
ebegin "Moving libGL and friends for dynamic switching"
|
||||||
|
local x
|
||||||
|
local gl_dir="/usr/$(get_libdir)/opengl/${OPENGL_DIR}/"
|
||||||
|
dodir ${gl_dir}/{lib,extensions,include/GL}
|
||||||
|
for x in "${ED}"/usr/$(get_libdir)/lib{EGL,GL*,OpenVG}.{la,a,so*}; do
|
||||||
|
if [ -f ${x} -o -L ${x} ]; then
|
||||||
|
mv -f "${x}" "${ED}${gl_dir}"/lib \
|
||||||
|
|| die "Failed to move ${x}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
for x in "${ED}"/usr/include/GL/{gl.h,glx.h,glext.h,glxext.h}; do
|
||||||
|
if [ -f ${x} -o -L ${x} ]; then
|
||||||
|
mv -f "${x}" "${ED}${gl_dir}"/include/GL \
|
||||||
|
|| die "Failed to move ${x}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
for x in "${ED}"/usr/include/{EGL,GLES*,VG,KHR}; do
|
||||||
|
if [ -d ${x} ]; then
|
||||||
|
mv -f "${x}" "${ED}${gl_dir}"/include \
|
||||||
|
|| die "Failed to move ${x}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
eend $?
|
||||||
|
|
||||||
|
if use classic || use gallium; then
|
||||||
|
ebegin "Moving DRI/Gallium drivers for dynamic switching"
|
||||||
|
local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
|
||||||
|
keepdir /usr/$(get_libdir)/dri
|
||||||
|
dodir /usr/$(get_libdir)/mesa
|
||||||
|
for x in ${gallium_drivers[@]}; do
|
||||||
|
if [ -f "${S}/$(get_libdir)/gallium/${x}" ]; then
|
||||||
|
mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
|
||||||
|
|| die "Failed to move ${x}"
|
||||||
|
insinto "/usr/$(get_libdir)/dri/"
|
||||||
|
if [ -f "${S}/$(get_libdir)/${x}" ]; then
|
||||||
|
insopts -m0755
|
||||||
|
doins "${S}/$(get_libdir)/${x}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
|
||||||
|
if [ -f ${x} -o -L ${x} ]; then
|
||||||
|
mv -f "${x}" "${x/dri/mesa}" \
|
||||||
|
|| die "Failed to move ${x}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
|
||||||
|
ln -s ../mesa/*.so . || die "Creating symlink failed"
|
||||||
|
# remove symlinks to drivers known to eselect
|
||||||
|
for x in ${gallium_drivers[@]}; do
|
||||||
|
if [ -f ${x} -o -L ${x} ]; then
|
||||||
|
rm "${x}" || die "Failed to remove ${x}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
eend $?
|
||||||
|
fi
|
||||||
|
if use opencl; then
|
||||||
|
ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching"
|
||||||
|
local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa"
|
||||||
|
dodir ${cl_dir}/{lib,include}
|
||||||
|
if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then
|
||||||
|
mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \
|
||||||
|
"${ED}"${cl_dir}
|
||||||
|
fi
|
||||||
|
if [ -f "${ED}/usr/include/CL/opencl.h" ]; then
|
||||||
|
mv -f "${ED}"/usr/include/CL \
|
||||||
|
"${ED}"${cl_dir}/include
|
||||||
|
fi
|
||||||
|
eend $?
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
# Switch to the xorg implementation.
|
||||||
|
echo
|
||||||
|
eselect opengl set --use-old ${OPENGL_DIR}
|
||||||
|
|
||||||
|
# switch to xorg-x11 and back if necessary, bug #374647 comment 11
|
||||||
|
OLD_IMPLEM="$(eselect opengl show)"
|
||||||
|
if [[ ${OPENGL_DIR}x != ${OLD_IMPLEM}x ]]; then
|
||||||
|
eselect opengl set ${OPENGL_DIR}
|
||||||
|
eselect opengl set ${OLD_IMPLEM}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Select classic/gallium drivers
|
||||||
|
if use classic || use gallium; then
|
||||||
|
eselect mesa set --auto
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Switch to mesa opencl
|
||||||
|
if use opencl; then
|
||||||
|
eselect opencl set --use-old ${PN}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# warn about patent encumbered texture-float
|
||||||
|
if use !bindist; then
|
||||||
|
elog "USE=\"bindist\" was not set. Potentially patent encumbered code was"
|
||||||
|
elog "enabled. Please see patents.txt for an explanation."
|
||||||
|
fi
|
||||||
|
|
||||||
|
local using_radeon r_flag
|
||||||
|
for r_flag in ${RADEON_CARDS}; do
|
||||||
|
if use video_cards_${r_flag}; then
|
||||||
|
using_radeon=1
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ ${using_radeon} = 1 ]] && ! has_version media-libs/libtxc_dxtn; then
|
||||||
|
elog "Note that in order to have full S3TC support, it is necessary to install"
|
||||||
|
elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice"
|
||||||
|
elog "textures in some apps, and some others even require this to run."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# $1 - VIDEO_CARDS flag
|
||||||
|
# other args - names of DRI drivers to enable
|
||||||
|
# TODO: avoid code duplication for a more elegant implementation
|
||||||
|
driver_enable() {
|
||||||
|
case $# in
|
||||||
|
# for enabling unconditionally
|
||||||
|
1)
|
||||||
|
DRI_DRIVERS+=",$1"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if use $1; then
|
||||||
|
shift
|
||||||
|
for i in $@; do
|
||||||
|
DRI_DRIVERS+=",${i}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
gallium_enable() {
|
||||||
|
case $# in
|
||||||
|
# for enabling unconditionally
|
||||||
|
1)
|
||||||
|
GALLIUM_DRIVERS+=",$1"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if use $1; then
|
||||||
|
shift
|
||||||
|
for i in $@; do
|
||||||
|
GALLIUM_DRIVERS+=",${i}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
@ -1,3 +1,3 @@
|
|||||||
DIST schroedinger-1.0.10.tar.gz 996489 SHA256 9a45c4f8d6197a641a9b06ab9b59ec02ad9986723fd855528a00ec3477a71964
|
DIST schroedinger-1.0.10.tar.gz 996489 SHA256 9a45c4f8d6197a641a9b06ab9b59ec02ad9986723fd855528a00ec3477a71964 SHA512 732264bcf1a3d1005924d93534bb36f1473fcb94d288165b0184f2728029b2a496bbe9c06794e26a97a4f20516eda163b1e92768f4127670ff70af9b38f1ef19 WHIRLPOOL 80407d5020bcf964b4ae36fd48770d72e8aabaedd8029d41daf2b451aef9c9d737bfa4b015709ea3fbe6d70a435158a2dc0ed67ee1bedc0155ff2aaa691a788d
|
||||||
DIST schroedinger-1.0.11.tar.gz 1019247 SHA256 1e572a0735b92aca5746c4528f9bebd35aa0ccf8619b22fa2756137a8cc9f912 SHA512 a39dd5360eb87a63379de71d91f48cde309ded91632c0ab8b1dc76b73591f7d0dfa7003c606d1b546d495b18c916aae905a9540b48dff7cbeb5b289e0f880438 WHIRLPOOL 118b37a61369423ce9c1f383ed7fedb24d619e63a5e61121a4468e15acb9adf502f7982c41ba3f867be23773f133c5b46fc0aa4638346bd7e5c293668c0291f8
|
DIST schroedinger-1.0.11.tar.gz 1019247 SHA256 1e572a0735b92aca5746c4528f9bebd35aa0ccf8619b22fa2756137a8cc9f912 SHA512 a39dd5360eb87a63379de71d91f48cde309ded91632c0ab8b1dc76b73591f7d0dfa7003c606d1b546d495b18c916aae905a9540b48dff7cbeb5b289e0f880438 WHIRLPOOL 118b37a61369423ce9c1f383ed7fedb24d619e63a5e61121a4468e15acb9adf502f7982c41ba3f867be23773f133c5b46fc0aa4638346bd7e5c293668c0291f8
|
||||||
DIST schroedinger-1.0.8.tar.gz 863436 SHA256 2a3cac3d561af744d1f7b0f2d00540153beb6ce5293de7f822cfc7e86c380d29
|
DIST schroedinger-1.0.8.tar.gz 863436 SHA256 2a3cac3d561af744d1f7b0f2d00540153beb6ce5293de7f822cfc7e86c380d29
|
||||||
|
@ -1,3 +1 @@
|
|||||||
DIST xvidcore-1.2.2.tar.bz2 643344 SHA256 e42a602de489438b96f7f4742b68e9bed7efa7aee3570379bb2582b4290b6d11 SHA512 34e68f24c0f579daf7ed5b7d352ac515cb7b329467b4763fa4ccbe689f2defe97fd2f14e5e08d01e67438a12a53b94a8cd66040d380c36321a9874a88c09fc8f WHIRLPOOL d87db115a4bf0cbdbcbc9cc19f4a24abca3cdbb8c74614413941a39bc12c754472640ec05b8ea1fa09852d057b18a340873faeb5fd29a6428a9b1ac5e5eb316e
|
|
||||||
DIST xvidcore-1.3.1.tar.bz2 710007 SHA256 c51ae8449b04fd8c8d5e15546d5e7c022d72014df7849be2598b9dfa1c003d64 SHA512 85ecb22b52515023d192555da94c9c95f01fccf6898582b4036b601e39c8644d272d296265ded69b4051e7d5b5b176227c2ba0b15cef2ba9bc48471a076b3553 WHIRLPOOL b0cc4e958427ebd7452c569c548a5ead2c9367aaa58e12e512f90d623f7ff5083bd11c0341eafefc5bfa939f01f59267b8dfa3edeba801c5819744c46fc3cf8a
|
|
||||||
DIST xvidcore-1.3.2.tar.bz2 697038 SHA256 d6c11334e1e771f9e4722eff454762325fd0989f6a4217abca296d6770160bf4 SHA512 0b7725314abc1dbe1f0ba4700393c391b8f98589300051ad7ebc5bdef7e87b20f19dcc88c37afbc1dfa117b6c8c1d5051b8f8d263c419e6965c5bc5f0201dc97 WHIRLPOOL c9e3f1a99544fe5b2394afc9adee3764565572b7b7fb46e2c92500d13851a8225b3e8b8e0db280a37aba72ff978e11a8c9f80d3a65b27f682087b1308f506dfa
|
DIST xvidcore-1.3.2.tar.bz2 697038 SHA256 d6c11334e1e771f9e4722eff454762325fd0989f6a4217abca296d6770160bf4 SHA512 0b7725314abc1dbe1f0ba4700393c391b8f98589300051ad7ebc5bdef7e87b20f19dcc88c37afbc1dfa117b6c8c1d5051b8f8d263c419e6965c5bc5f0201dc97 WHIRLPOOL c9e3f1a99544fe5b2394afc9adee3764565572b7b7fb46e2c92500d13851a8225b3e8b8e0db280a37aba72ff978e11a8c9f80d3a65b27f682087b1308f506dfa
|
||||||
|
@ -1,457 +0,0 @@
|
|||||||
diff -up xvidcore/src/bitstream/x86_asm/cbp_mmx.asm.noexec-stack xvidcore/src/bitstream/x86_asm/cbp_mmx.asm
|
|
||||||
--- xvidcore/src/bitstream/x86_asm/cbp_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/bitstream/x86_asm/cbp_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -126,8 +126,4 @@ calc_cbp_mmx:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/bitstream/x86_asm/cbp_sse2.asm.noexec-stack xvidcore/src/bitstream/x86_asm/cbp_sse2.asm
|
|
||||||
--- xvidcore/src/bitstream/x86_asm/cbp_sse2.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/bitstream/x86_asm/cbp_sse2.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -116,8 +116,4 @@ calc_cbp_sse2:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/dct/x86_asm/fdct_mmx_ffmpeg.asm.noexec-stack xvidcore/src/dct/x86_asm/fdct_mmx_ffmpeg.asm
|
|
||||||
--- xvidcore/src/dct/x86_asm/fdct_mmx_ffmpeg.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/dct/x86_asm/fdct_mmx_ffmpeg.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -401,7 +401,4 @@ MAKE_FDCT_FUNC fdct_mmx_ffmpeg, FDCT_ROW
|
|
||||||
|
|
||||||
MAKE_FDCT_FUNC fdct_xmm_ffmpeg, FDCT_ROW_XMM
|
|
||||||
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/dct/x86_asm/fdct_mmx_skal.asm.noexec-stack xvidcore/src/dct/x86_asm/fdct_mmx_skal.asm
|
|
||||||
--- xvidcore/src/dct/x86_asm/fdct_mmx_skal.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/dct/x86_asm/fdct_mmx_skal.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -500,7 +500,4 @@ MAKE_FDCT_FUNC fdct_mmx_skal, fMTX_MULT_
|
|
||||||
|
|
||||||
MAKE_FDCT_FUNC fdct_xmm_skal, fMTX_MULT_XMM
|
|
||||||
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/dct/x86_asm/fdct_sse2_skal.asm.noexec-stack xvidcore/src/dct/x86_asm/fdct_sse2_skal.asm
|
|
||||||
--- xvidcore/src/dct/x86_asm/fdct_sse2_skal.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/dct/x86_asm/fdct_sse2_skal.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -605,7 +605,4 @@ fdct_sse2_skal:
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/dct/x86_asm/idct_3dne.asm.noexec-stack xvidcore/src/dct/x86_asm/idct_3dne.asm
|
|
||||||
--- xvidcore/src/dct/x86_asm/idct_3dne.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/dct/x86_asm/idct_3dne.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -698,8 +698,4 @@ idct_3dne:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/dct/x86_asm/idct_mmx.asm.noexec-stack xvidcore/src/dct/x86_asm/idct_mmx.asm
|
|
||||||
--- xvidcore/src/dct/x86_asm/idct_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/dct/x86_asm/idct_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -608,8 +608,4 @@ idct_xmm:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/dct/x86_asm/idct_sse2_dmitry.asm.noexec-stack xvidcore/src/dct/x86_asm/idct_sse2_dmitry.asm
|
|
||||||
--- xvidcore/src/dct/x86_asm/idct_sse2_dmitry.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/dct/x86_asm/idct_sse2_dmitry.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -325,8 +325,4 @@ idct_sse2_dmitry:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/colorspace_rgb_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/colorspace_rgb_mmx.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/colorspace_rgb_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/colorspace_rgb_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -514,8 +514,4 @@ MAKE_COLORSPACE rgba_to_yv12_mmx,0, 4
|
|
||||||
MAKE_COLORSPACE yv12_to_bgr_mmx,48, 3,8,2, YV12_TO_BGR, 3, -1
|
|
||||||
MAKE_COLORSPACE yv12_to_bgra_mmx,48, 4,8,2, YV12_TO_BGR, 4, -1
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/colorspace_yuv_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/colorspace_yuv_mmx.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/colorspace_yuv_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/colorspace_yuv_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -474,7 +474,4 @@ MAKE_YV12_TO_YV12 yv12_to_yv12_mmx, 0
|
|
||||||
|
|
||||||
MAKE_YV12_TO_YV12 yv12_to_yv12_xmm, 1
|
|
||||||
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/colorspace_yuyv_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/colorspace_yuyv_mmx.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/colorspace_yuyv_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/colorspace_yuyv_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -341,7 +341,4 @@ MAKE_COLORSPACE yv12_to_uyvy_mmx,0,
|
|
||||||
MAKE_COLORSPACE yv12_to_yuyvi_mmx,0, 2,8,4, YV12_TO_YUYVI, 0, -1
|
|
||||||
MAKE_COLORSPACE yv12_to_uyvyi_mmx,0, 2,8,4, YV12_TO_YUYVI, 1, -1
|
|
||||||
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/deintl_sse.asm.noexec-stack xvidcore/src/image/x86_asm/deintl_sse.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/deintl_sse.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/deintl_sse.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -131,7 +131,4 @@ xvid_deinterlace_sse:
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
;//////////////////////////////////////////////////////////////////////
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/gmc_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/gmc_mmx.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/gmc_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/gmc_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -220,7 +220,4 @@ xvid_GMC_Core_Lin_8_sse41:
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
;//////////////////////////////////////////////////////////////////////
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/interpolate8x8_3dn.asm.noexec-stack xvidcore/src/image/x86_asm/interpolate8x8_3dn.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/interpolate8x8_3dn.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/interpolate8x8_3dn.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -463,8 +463,4 @@ interpolate8x4_halfpel_hv_3dn:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/interpolate8x8_3dne.asm.noexec-stack xvidcore/src/image/x86_asm/interpolate8x8_3dne.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/interpolate8x8_3dne.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/interpolate8x8_3dne.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -563,8 +563,4 @@ ALIGN SECTION_ALIGN
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/interpolate8x8_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/interpolate8x8_mmx.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/interpolate8x8_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/interpolate8x8_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -1328,8 +1328,4 @@ interpolate8x8_halfpel_hv_add_mmx:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/interpolate8x8_xmm.asm.noexec-stack xvidcore/src/image/x86_asm/interpolate8x8_xmm.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/interpolate8x8_xmm.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/interpolate8x8_xmm.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -819,8 +819,4 @@ interpolate8x8_halfpel_hv_add_xmm:
|
|
||||||
EPILOG
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/postprocessing_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/postprocessing_mmx.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/postprocessing_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/postprocessing_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -114,7 +114,4 @@ image_brightness_mmx:
|
|
||||||
ENDFUNC
|
|
||||||
;//////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/postprocessing_sse2.asm.noexec-stack xvidcore/src/image/x86_asm/postprocessing_sse2.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/postprocessing_sse2.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/postprocessing_sse2.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -130,7 +130,4 @@ image_brightness_sse2:
|
|
||||||
ENDFUNC
|
|
||||||
;//////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/qpel_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/qpel_mmx.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/qpel_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/qpel_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -1149,7 +1149,4 @@ ENDFUNC
|
|
||||||
%undef SRC_PTR
|
|
||||||
%undef DST_PTR
|
|
||||||
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/image/x86_asm/reduced_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/reduced_mmx.asm
|
|
||||||
--- xvidcore/src/image/x86_asm/reduced_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/image/x86_asm/reduced_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -985,8 +985,4 @@ ENDFUNC
|
|
||||||
|
|
||||||
; pfeewwww... Never Do That On Stage Again. :)
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/motion/x86_asm/sad_3dn.asm.noexec-stack xvidcore/src/motion/x86_asm/sad_3dn.asm
|
|
||||||
--- xvidcore/src/motion/x86_asm/sad_3dn.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/motion/x86_asm/sad_3dn.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -216,8 +216,4 @@ sad8bi_3dn:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/motion/x86_asm/sad_3dne.asm.noexec-stack xvidcore/src/motion/x86_asm/sad_3dne.asm
|
|
||||||
--- xvidcore/src/motion/x86_asm/sad_3dne.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/motion/x86_asm/sad_3dne.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -490,8 +490,4 @@ ALIGN SECTION_ALIGN
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/motion/x86_asm/sad_mmx.asm.noexec-stack xvidcore/src/motion/x86_asm/sad_mmx.asm
|
|
||||||
--- xvidcore/src/motion/x86_asm/sad_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/motion/x86_asm/sad_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -731,8 +731,4 @@ sse8_8bit_mmx:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/motion/x86_asm/sad_sse2.asm.noexec-stack xvidcore/src/motion/x86_asm/sad_sse2.asm
|
|
||||||
--- xvidcore/src/motion/x86_asm/sad_sse2.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/motion/x86_asm/sad_sse2.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -176,8 +176,4 @@ dev16_sse3:
|
|
||||||
MEAN16_SSE2_SSE3 lddqu
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/motion/x86_asm/sad_xmm.asm.noexec-stack xvidcore/src/motion/x86_asm/sad_xmm.asm
|
|
||||||
--- xvidcore/src/motion/x86_asm/sad_xmm.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/motion/x86_asm/sad_xmm.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -436,8 +436,4 @@ sad16v_xmm:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/nasm.inc.noexec-stack xvidcore/src/nasm.inc
|
|
||||||
--- xvidcore/src/nasm.inc.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/nasm.inc 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -189,3 +189,12 @@ BITS 32
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%endmacro
|
|
||||||
+
|
|
||||||
+%macro NON_EXEC_STACK 0
|
|
||||||
+%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
+section .note.GNU-stack noalloc noexec nowrite progbits
|
|
||||||
+%endif
|
|
||||||
+%ifidn __OUTPUT_FORMAT__,elf64
|
|
||||||
+section .note.GNU-stack noalloc noexec nowrite progbits
|
|
||||||
+%endif
|
|
||||||
+%endmacro
|
|
||||||
diff -up xvidcore/src/plugins/x86_asm/plugin_ssim-a.asm.noexec-stack xvidcore/src/plugins/x86_asm/plugin_ssim-a.asm
|
|
||||||
--- xvidcore/src/plugins/x86_asm/plugin_ssim-a.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/plugins/x86_asm/plugin_ssim-a.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -273,6 +273,4 @@ consim_mmx:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm.noexec-stack xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm
|
|
||||||
--- xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -931,7 +931,4 @@ ALIGN SECTION_ALIGN
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/quant/x86_asm/quantize_h263_mmx.asm.noexec-stack xvidcore/src/quant/x86_asm/quantize_h263_mmx.asm
|
|
||||||
--- xvidcore/src/quant/x86_asm/quantize_h263_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/quant/x86_asm/quantize_h263_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -1070,8 +1070,4 @@ dequant_h263_inter_sse2:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/quant/x86_asm/quantize_mpeg_mmx.asm.noexec-stack xvidcore/src/quant/x86_asm/quantize_mpeg_mmx.asm
|
|
||||||
--- xvidcore/src/quant/x86_asm/quantize_mpeg_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/quant/x86_asm/quantize_mpeg_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -657,8 +657,4 @@ ALIGN SECTION_ALIGN
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/quant/x86_asm/quantize_mpeg_xmm.asm.noexec-stack xvidcore/src/quant/x86_asm/quantize_mpeg_xmm.asm
|
|
||||||
--- xvidcore/src/quant/x86_asm/quantize_mpeg_xmm.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/quant/x86_asm/quantize_mpeg_xmm.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -618,8 +618,4 @@ ALIGN SECTION_ALIGN
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/utils/x86_asm/cpuid.asm.noexec-stack xvidcore/src/utils/x86_asm/cpuid.asm
|
|
||||||
--- xvidcore/src/utils/x86_asm/cpuid.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/utils/x86_asm/cpuid.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -240,7 +240,4 @@ ENDFUNC
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/utils/x86_asm/interlacing_mmx.asm.noexec-stack xvidcore/src/utils/x86_asm/interlacing_mmx.asm
|
|
||||||
--- xvidcore/src/utils/x86_asm/interlacing_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/utils/x86_asm/interlacing_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -198,8 +198,4 @@ MBFieldTest_mmx:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/utils/x86_asm/mem_transfer_3dne.asm.noexec-stack xvidcore/src/utils/x86_asm/mem_transfer_3dne.asm
|
|
||||||
--- xvidcore/src/utils/x86_asm/mem_transfer_3dne.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/utils/x86_asm/mem_transfer_3dne.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -465,8 +465,4 @@ transfer8x4_copy_3dne:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
||||||
diff -up xvidcore/src/utils/x86_asm/mem_transfer_mmx.asm.noexec-stack xvidcore/src/utils/x86_asm/mem_transfer_mmx.asm
|
|
||||||
--- xvidcore/src/utils/x86_asm/mem_transfer_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200
|
|
||||||
+++ xvidcore/src/utils/x86_asm/mem_transfer_mmx.asm 2009-09-21 10:39:24.000000000 +0200
|
|
||||||
@@ -588,8 +588,4 @@ transfer8x4_copy_mmx:
|
|
||||||
ret
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
-
|
|
||||||
-%ifidn __OUTPUT_FORMAT__,elf
|
|
||||||
-section ".note.GNU-stack" noalloc noexec nowrite progbits
|
|
||||||
-%endif
|
|
||||||
-
|
|
||||||
+NON_EXEC_STACK
|
|
@ -1,61 +0,0 @@
|
|||||||
# Copyright 1999-2010 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/xvid/xvid-1.2.2-r2.ebuild,v 1.9 2010/10/30 15:48:30 ssuominen Exp $
|
|
||||||
|
|
||||||
EAPI=2
|
|
||||||
inherit eutils multilib
|
|
||||||
|
|
||||||
MY_PN=${PN}core
|
|
||||||
MY_P=${MY_PN}-${PV}
|
|
||||||
|
|
||||||
DESCRIPTION="XviD, a high performance/quality MPEG-4 video de-/encoding solution"
|
|
||||||
HOMEPAGE="http://www.xvid.org"
|
|
||||||
SRC_URI="http://downloads.xvid.org/downloads/${MY_P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
|
|
||||||
IUSE="examples pic"
|
|
||||||
|
|
||||||
NASM=">=dev-lang/nasm-2.05.01"
|
|
||||||
YASM=">=dev-lang/yasm-0.8.0"
|
|
||||||
|
|
||||||
DEPEND="amd64? ( || ( ${YASM} ${NASM} ) )
|
|
||||||
x86? ( || ( ${YASM} ${NASM} ) )
|
|
||||||
x86-fbsd? ( || ( ${YASM} ${NASM} ) )"
|
|
||||||
RDEPEND=""
|
|
||||||
|
|
||||||
S=${WORKDIR}/${MY_PN}/build/generic
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "${WORKDIR}"
|
|
||||||
epatch "${FILESDIR}"/${P}-noexecstack.patch
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e '/^minimum_yasm_minor_version/s:=.*:=0:' \
|
|
||||||
"${S}"/configure || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf
|
|
||||||
|
|
||||||
if use pic; then
|
|
||||||
myconf="--disable-assembly"
|
|
||||||
fi
|
|
||||||
|
|
||||||
econf ${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
dodoc "${S}"/../../{AUTHORS,ChangeLog*,CodingStyle,README,TODO}
|
|
||||||
|
|
||||||
local mylib=$(basename $(ls "${D}"/usr/$(get_libdir)/libxvidcore.so*))
|
|
||||||
dosym ${mylib} /usr/$(get_libdir)/libxvidcore.so
|
|
||||||
dosym ${mylib} /usr/$(get_libdir)/${mylib%.?}
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
insinto /usr/share/${PN}
|
|
||||||
doins -r "${S}"/../../examples
|
|
||||||
fi
|
|
||||||
}
|
|
@ -0,0 +1,82 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/media-sound/lame/lame-3.99.5-r1.ebuild,v 1.1 2013/06/19 17:18:52 aballier Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit autotools eutils multilib-minimal
|
||||||
|
|
||||||
|
DESCRIPTION="LAME Ain't an MP3 Encoder"
|
||||||
|
HOMEPAGE="http://lame.sourceforge.net/"
|
||||||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
|
||||||
|
mirror://gentoo/${P}-automake-2.12.patch.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="debug mmx mp3rtp sndfile static-libs"
|
||||||
|
|
||||||
|
# These deps are without MULTILIB_USEDEP and are correct since we only build
|
||||||
|
# libmp3lame for multilib and these deps apply to the lame frontend executable.
|
||||||
|
RDEPEND=">=sys-libs/ncurses-5.7-r7
|
||||||
|
sndfile? ( >=media-libs/libsndfile-1.0.2 )
|
||||||
|
abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20130224 )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
mmx? ( dev-lang/nasm )"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch \
|
||||||
|
"${FILESDIR}"/${PN}-3.96-ccc.patch \
|
||||||
|
"${FILESDIR}"/${PN}-3.98-gtk-path.patch \
|
||||||
|
"${FILESDIR}"/${PN}-3.99.5-tinfo.patch \
|
||||||
|
"${WORKDIR}"/${P}-automake-2.12.patch
|
||||||
|
|
||||||
|
mkdir libmp3lame/i386/.libs || die #workaround parallel build with nasm
|
||||||
|
|
||||||
|
sed -i -e '/define sp/s/+/ + /g' libmp3lame/i386/nasm.h || die
|
||||||
|
|
||||||
|
use mmx || sed -i -e '/AC_PATH_PROG/s:nasm:dIsAbLe&:' configure.in #361879
|
||||||
|
|
||||||
|
AT_M4DIR=. eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
is_best_abi() {
|
||||||
|
local all_abis=( $(multilib_get_enabled_abis) )
|
||||||
|
local best_abi="${all_abis[$(( ${#all_abis[@]} - 1 ))]}"
|
||||||
|
[ "${ABI}" = "${best_abi}" ]
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myconf
|
||||||
|
use mmx && myconf+="--enable-nasm" #361879
|
||||||
|
|
||||||
|
# Only build the frontend for the best ABI.
|
||||||
|
if is_best_abi ; then
|
||||||
|
myconf+=" $(use_enable mp3rtp)"
|
||||||
|
use sndfile && myconf+=" --with-fileio=sndfile"
|
||||||
|
else
|
||||||
|
myconf+=" --disable-frontend --disable-mp3rtp"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE="${S}" econf \
|
||||||
|
$(use_enable static-libs static) \
|
||||||
|
$(use_enable debug debug norm) \
|
||||||
|
--disable-mp3x \
|
||||||
|
--enable-dynamic-frontends \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
emake DESTDIR="${D}" pkghtmldir="${EPREFIX}/usr/share/doc/${PF}/html" install
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
cd "${S}"
|
||||||
|
dobin misc/mlame
|
||||||
|
|
||||||
|
dodoc API ChangeLog HACKING README STYLEGUIDE TODO USAGE
|
||||||
|
dohtml misc/lameGUI.html Dll/LameDLLInterface.htm
|
||||||
|
|
||||||
|
find "${ED}" -name '*.la' -exec rm -f {} +
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
Wed, 19 Jun 2013 12:36:55 +0000
|
Wed, 19 Jun 2013 20:36:59 +0000
|
||||||
|
@ -1 +1 @@
|
|||||||
Wed, 19 Jun 2013 12:36:55 +0000
|
Wed, 19 Jun 2013 20:36:59 +0000
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
DEFINED_PHASES=configure install postinst prepare
|
||||||
|
DEPEND=>=dev-libs/glib-2.8:2 gpm? ( sys-libs/gpm ) kernel_linux? ( sys-fs/e2fsprogs ) samba? ( net-fs/samba ) sftp? ( net-libs/libssh2 ) slang? ( >=sys-libs/slang-2 ) !slang? ( sys-libs/ncurses ) spell? ( app-text/aspell ) X? ( x11-libs/libX11 x11-libs/libICE x11-libs/libXau x11-libs/libXdmcp x11-libs/libSM ) app-arch/xz-utils virtual/pkgconfig nls? ( sys-devel/gettext ) test? ( dev-libs/check )
|
||||||
|
DESCRIPTION=GNU Midnight Commander is a text based file manager
|
||||||
|
EAPI=4
|
||||||
|
HOMEPAGE=http://www.midnight-commander.org
|
||||||
|
IUSE=+edit gpm mclib nls samba sftp +slang spell test X +xdg
|
||||||
|
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris
|
||||||
|
LICENSE=GPL-3
|
||||||
|
RDEPEND=>=dev-libs/glib-2.8:2 gpm? ( sys-libs/gpm ) kernel_linux? ( sys-fs/e2fsprogs ) samba? ( net-fs/samba ) sftp? ( net-libs/libssh2 ) slang? ( >=sys-libs/slang-2 ) !slang? ( sys-libs/ncurses ) spell? ( app-text/aspell ) X? ( x11-libs/libX11 x11-libs/libICE x11-libs/libXau x11-libs/libXdmcp x11-libs/libSM )
|
||||||
|
REQUIRED_USE=spell? ( edit )
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://www.midnight-commander.org/downloads/mc-4.8.8.tar.xz
|
||||||
|
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 flag-o-matic d900015de4e092f26d8c0a18b6bd60de multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28
|
||||||
|
_md5_=58090641617da2258bde122ead81ab3b
|
@ -1,13 +1,12 @@
|
|||||||
DEFINED_PHASES=compile install setup
|
DEFINED_PHASES=compile install setup
|
||||||
DEPEND=>=app-text/djvu-3.5.24-r1 >=app-text/zathura-0.2.0 dev-libs/glib:2 cairo? ( x11-libs/cairo ) virtual/pkgconfig
|
DEPEND=>=app-text/djvu-3.5.24-r1 >=app-text/zathura-0.2.0 dev-libs/glib:2 x11-libs/cairo:= virtual/pkgconfig
|
||||||
DESCRIPTION=DjVu plug-in for zathura
|
DESCRIPTION=DjVu plug-in for zathura
|
||||||
EAPI=5
|
EAPI=5
|
||||||
HOMEPAGE=http://pwmt.org/projects/zathura/
|
HOMEPAGE=http://pwmt.org/projects/zathura/
|
||||||
IUSE=cairo
|
|
||||||
KEYWORDS=~amd64 ~arm ~x86
|
KEYWORDS=~amd64 ~arm ~x86
|
||||||
LICENSE=ZLIB
|
LICENSE=ZLIB
|
||||||
RDEPEND=>=app-text/djvu-3.5.24-r1 >=app-text/zathura-0.2.0 dev-libs/glib:2 cairo? ( x11-libs/cairo )
|
RDEPEND=>=app-text/djvu-3.5.24-r1 >=app-text/zathura-0.2.0 dev-libs/glib:2 x11-libs/cairo:=
|
||||||
SLOT=0
|
SLOT=0
|
||||||
SRC_URI=http://pwmt.org/projects/zathura/plugins/download/zathura-djvu-0.2.3.tar.gz
|
SRC_URI=http://pwmt.org/projects/zathura/plugins/download/zathura-djvu-0.2.3.tar.gz
|
||||||
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28
|
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28
|
||||||
_md5_=e23bf0250df3e9de436756a408d14b82
|
_md5_=1196f83e8afcda61bc5a4c15e726bcc4
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
DEFINED_PHASES=compile install setup
|
DEFINED_PHASES=compile install setup
|
||||||
DEPEND=!app-text/zathura-pdf-poppler >=app-text/mupdf-1.2:= <app-text/mupdf-9999 >=app-text/zathura-0.2.0 cairo? ( x11-libs/cairo ) virtual/pkgconfig
|
DEPEND=!app-text/zathura-pdf-poppler >=app-text/mupdf-1.2:= <app-text/mupdf-9999 >=app-text/zathura-0.2.0 x11-libs/cairo:= virtual/pkgconfig
|
||||||
DESCRIPTION=PDF plug-in for zathura
|
DESCRIPTION=PDF plug-in for zathura
|
||||||
EAPI=5
|
EAPI=5
|
||||||
HOMEPAGE=http://pwmt.org/projects/zathura/
|
HOMEPAGE=http://pwmt.org/projects/zathura/
|
||||||
IUSE=cairo
|
|
||||||
KEYWORDS=~amd64 ~x86
|
KEYWORDS=~amd64 ~x86
|
||||||
LICENSE=ZLIB
|
LICENSE=ZLIB
|
||||||
RDEPEND=!app-text/zathura-pdf-poppler >=app-text/mupdf-1.2:= <app-text/mupdf-9999 >=app-text/zathura-0.2.0 cairo? ( x11-libs/cairo )
|
RDEPEND=!app-text/zathura-pdf-poppler >=app-text/mupdf-1.2:= <app-text/mupdf-9999 >=app-text/zathura-0.2.0 x11-libs/cairo:=
|
||||||
SLOT=0
|
SLOT=0
|
||||||
SRC_URI=http://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-0.2.3.tar.gz
|
SRC_URI=http://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-0.2.3.tar.gz
|
||||||
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28
|
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28
|
||||||
_md5_=65e8886ccb3195883c87687b9dbea23c
|
_md5_=451dfafea6b89da69c8d5e5106b6d307
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
DEFINED_PHASES=compile install setup unpack
|
DEFINED_PHASES=compile install setup unpack
|
||||||
DEPEND=!app-text/zathura-pdf-poppler >=app-text/mupdf-9999:= >=app-text/zathura-0.2.0 media-libs/jbig2dec media-libs/openjpeg:2 virtual/jpeg cairo? ( x11-libs/cairo ) virtual/pkgconfig dev-vcs/git
|
DEPEND=!app-text/zathura-pdf-poppler >=app-text/mupdf-9999:= >=app-text/zathura-0.2.0 media-libs/jbig2dec media-libs/openjpeg:2 virtual/jpeg x11-libs/cairo:= virtual/pkgconfig dev-vcs/git
|
||||||
DESCRIPTION=PDF plug-in for zathura
|
DESCRIPTION=PDF plug-in for zathura
|
||||||
EAPI=5
|
EAPI=5
|
||||||
HOMEPAGE=http://pwmt.org/projects/zathura/
|
HOMEPAGE=http://pwmt.org/projects/zathura/
|
||||||
IUSE=cairo
|
|
||||||
LICENSE=ZLIB
|
LICENSE=ZLIB
|
||||||
RDEPEND=!app-text/zathura-pdf-poppler >=app-text/mupdf-9999:= >=app-text/zathura-0.2.0 media-libs/jbig2dec media-libs/openjpeg:2 virtual/jpeg cairo? ( x11-libs/cairo )
|
RDEPEND=!app-text/zathura-pdf-poppler >=app-text/mupdf-9999:= >=app-text/zathura-0.2.0 media-libs/jbig2dec media-libs/openjpeg:2 virtual/jpeg x11-libs/cairo:=
|
||||||
SLOT=0
|
SLOT=0
|
||||||
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 git-2 e92e09651292b1bef5656592364550f7 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28
|
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 git-2 e92e09651292b1bef5656592364550f7 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28
|
||||||
_md5_=c3e3b52b2f5cf4601f16b9c25d498663
|
_md5_=84e1e4c5b125c7a9ef0c113275bb9c83
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
DEFINED_PHASES=compile install setup
|
DEFINED_PHASES=compile install setup
|
||||||
DEPEND=>=app-text/libspectre-0.2.6 >=app-text/zathura-0.2.0 dev-libs/glib:2 cairo? ( x11-libs/cairo ) virtual/pkgconfig
|
DEPEND=>=app-text/libspectre-0.2.6 >=app-text/zathura-0.2.0 dev-libs/glib:2 x11-libs/cairo:= virtual/pkgconfig
|
||||||
DESCRIPTION=PostScript plug-in for zathura
|
DESCRIPTION=PostScript plug-in for zathura
|
||||||
EAPI=5
|
EAPI=5
|
||||||
HOMEPAGE=http://pwmt.org/projects/zathura/
|
HOMEPAGE=http://pwmt.org/projects/zathura/
|
||||||
IUSE=cairo
|
|
||||||
KEYWORDS=~amd64 ~arm ~x86 ~amd64-linux ~x86-linux
|
KEYWORDS=~amd64 ~arm ~x86 ~amd64-linux ~x86-linux
|
||||||
LICENSE=ZLIB
|
LICENSE=ZLIB
|
||||||
RDEPEND=>=app-text/libspectre-0.2.6 >=app-text/zathura-0.2.0 dev-libs/glib:2 cairo? ( x11-libs/cairo )
|
RDEPEND=>=app-text/libspectre-0.2.6 >=app-text/zathura-0.2.0 dev-libs/glib:2 x11-libs/cairo:=
|
||||||
SLOT=0
|
SLOT=0
|
||||||
SRC_URI=http://pwmt.org/projects/zathura/plugins/download/zathura-ps-0.2.2.tar.gz
|
SRC_URI=http://pwmt.org/projects/zathura/plugins/download/zathura-ps-0.2.2.tar.gz
|
||||||
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28
|
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28
|
||||||
_md5_=32a5bb1697a91dbf911d9fd45fa62e90
|
_md5_=121efc0a6c8d4cd5547352994ec03b10
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=compile configure install prepare setup unpack
|
||||||
|
DEPEND=>=sys-devel/clang-3.2 >=sys-devel/llvm-3.2
|
||||||
|
DESCRIPTION=OpenCL C library
|
||||||
|
EAPI=5
|
||||||
|
HOMEPAGE=http://libclc.llvm.org/ http://cgit.freedesktop.org/~tstellar/libclc/
|
||||||
|
KEYWORDS=~amd64 ~x86
|
||||||
|
LICENSE=|| ( MIT BSD )
|
||||||
|
RDEPEND=>=sys-devel/clang-3.2 >=sys-devel/llvm-3.2
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=mirror://gentoo/libclc-0.0.1_pre20130524.tar.xz
|
||||||
|
_eclasses_=base ec46b36a6f6fd1d0b505a33e0b74e413 eutils f31a0ec0d081047cbf9c0bbb4822d831 multilib 892e597faee02a5b94eb02ab512e7622 python-any-r1 7ed4a8181d62a098eaa6c8eeacf190c9 python-utils-r1 9aa9cecaaf78644be7c0b8b8dc814dce toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28
|
||||||
|
_md5_=a1782e885245ff584f0d4e96dcb97d2d
|
@ -1,11 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install postinst prepare
|
|
||||||
DESCRIPTION=Netscape Portable Runtime
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://www.mozilla.org/projects/nspr/
|
|
||||||
IUSE=debug
|
|
||||||
KEYWORDS=~alpha amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
|
|
||||||
LICENSE=|| ( MPL-1.1 GPL-2 LGPL-2.1 )
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.8/src/nspr-4.8.8.tar.gz
|
|
||||||
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
|
||||||
_md5_=570e9c0ff6d9f763b48995c82d9f57ed
|
|
@ -1,11 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install postinst prepare
|
|
||||||
DESCRIPTION=Netscape Portable Runtime
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://www.mozilla.org/projects/nspr/
|
|
||||||
IUSE=debug
|
|
||||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
|
|
||||||
LICENSE=|| ( MPL-1.1 GPL-2 LGPL-2.1 )
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.9/src/nspr-4.8.9.tar.gz
|
|
||||||
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
|
||||||
_md5_=cd1df1553ddd8948291b6af01354e2c0
|
|
@ -1,12 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DEPEND=|| ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) =sys-devel/autoconf-2.1* sys-devel/libtool
|
|
||||||
DESCRIPTION=Netscape Portable Runtime
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://www.mozilla.org/projects/nspr/
|
|
||||||
IUSE=debug
|
|
||||||
KEYWORDS=alpha amd64 arm ~hppa ia64 ~mips ppc ~ppc64 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
|
|
||||||
LICENSE=|| ( MPL-1.1 GPL-2 LGPL-2.1 )
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.9/src/nspr-4.9.tar.gz
|
|
||||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils f31a0ec0d081047cbf9c0bbb4822d831 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing a2130e6fc4aa4c6a24b265ca0cbcc2b6 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
|
||||||
_md5_=632679d00a7e8fad608c31bbc0ac5892
|
|
@ -1,12 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DEPEND=|| ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) =sys-devel/autoconf-2.1* sys-devel/libtool
|
|
||||||
DESCRIPTION=Netscape Portable Runtime
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://www.mozilla.org/projects/nspr/
|
|
||||||
IUSE=debug
|
|
||||||
KEYWORDS=alpha amd64 ~arm hppa ia64 ~mips ppc ~ppc64 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
|
|
||||||
LICENSE=|| ( MPL-2.0 GPL-2 LGPL-2.1 )
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.9.1/src/nspr-4.9.1.tar.gz
|
|
||||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils f31a0ec0d081047cbf9c0bbb4822d831 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing a2130e6fc4aa4c6a24b265ca0cbcc2b6 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
|
||||||
_md5_=f1e0d23767ae545662a78d3825312d0f
|
|
@ -1,12 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DEPEND=|| ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) =sys-devel/autoconf-2.1* sys-devel/libtool
|
|
||||||
DESCRIPTION=Netscape Portable Runtime
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://www.mozilla.org/projects/nspr/
|
|
||||||
IUSE=debug
|
|
||||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
|
|
||||||
LICENSE=|| ( MPL-2.0 GPL-2 LGPL-2.1 )
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.9.2/src/nspr-4.9.2.tar.gz
|
|
||||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils f31a0ec0d081047cbf9c0bbb4822d831 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing a2130e6fc4aa4c6a24b265ca0cbcc2b6 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
|
||||||
_md5_=141acfed98e00faf680efdd83d312288
|
|
@ -1,12 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DEPEND=|| ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) =sys-devel/autoconf-2.1* sys-devel/libtool
|
|
||||||
DESCRIPTION=Netscape Portable Runtime
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://www.mozilla.org/projects/nspr/
|
|
||||||
IUSE=debug
|
|
||||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
|
|
||||||
LICENSE=|| ( MPL-2.0 GPL-2 LGPL-2.1 )
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.9.2/src/nspr-4.9.2.tar.gz
|
|
||||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils f31a0ec0d081047cbf9c0bbb4822d831 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing a2130e6fc4aa4c6a24b265ca0cbcc2b6 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
|
||||||
_md5_=f09859a48a830f67dc7d31103c940a27
|
|
@ -1,12 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DEPEND=|| ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) =sys-devel/autoconf-2.1* sys-devel/libtool
|
|
||||||
DESCRIPTION=Netscape Portable Runtime
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://www.mozilla.org/projects/nspr/
|
|
||||||
IUSE=debug
|
|
||||||
KEYWORDS=~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
|
|
||||||
LICENSE=|| ( MPL-2.0 GPL-2 LGPL-2.1 )
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.9.4/src/nspr-4.9.4.tar.gz
|
|
||||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils f31a0ec0d081047cbf9c0bbb4822d831 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing a2130e6fc4aa4c6a24b265ca0cbcc2b6 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
|
||||||
_md5_=033412d9d5db554a4125655561875d6d
|
|
@ -1,12 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DEPEND=|| ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) =sys-devel/autoconf-2.1* sys-devel/libtool
|
|
||||||
DESCRIPTION=Netscape Portable Runtime
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://www.mozilla.org/projects/nspr/
|
|
||||||
IUSE=debug
|
|
||||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
|
|
||||||
LICENSE=|| ( MPL-2.0 GPL-2 LGPL-2.1 )
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.9.5/src/nspr-4.9.5.tar.gz
|
|
||||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils f31a0ec0d081047cbf9c0bbb4822d831 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing a2130e6fc4aa4c6a24b265ca0cbcc2b6 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
|
||||||
_md5_=fff98fb1c4bc0a9e3f1f54f53efa76cd
|
|
@ -1,12 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DEPEND=|| ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) =sys-devel/autoconf-2.1* sys-devel/libtool
|
|
||||||
DESCRIPTION=Netscape Portable Runtime
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://www.mozilla.org/projects/nspr/
|
|
||||||
IUSE=debug
|
|
||||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
|
|
||||||
LICENSE=|| ( MPL-2.0 GPL-2 LGPL-2.1 )
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.9.5/src/nspr-4.9.5.tar.gz
|
|
||||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils f31a0ec0d081047cbf9c0bbb4822d831 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing a2130e6fc4aa4c6a24b265ca0cbcc2b6 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
|
||||||
_md5_=7bf9535bb640537745df3890f4fc99f3
|
|
@ -1,12 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare
|
|
||||||
DEPEND=|| ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) =sys-devel/autoconf-2.1* sys-devel/libtool
|
|
||||||
DESCRIPTION=Netscape Portable Runtime
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://www.mozilla.org/projects/nspr/
|
|
||||||
IUSE=debug
|
|
||||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
|
|
||||||
LICENSE=|| ( MPL-2.0 GPL-2 LGPL-2.1 )
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.9.6/src/nspr-4.9.6.tar.gz
|
|
||||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils f31a0ec0d081047cbf9c0bbb4822d831 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing a2130e6fc4aa4c6a24b265ca0cbcc2b6 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
|
||||||
_md5_=6e30b6d3592055e2fde102a962d2dbf6
|
|
@ -1,13 +0,0 @@
|
|||||||
DEFINED_PHASES=compile install postinst postrm prepare
|
|
||||||
DEPEND=virtual/pkgconfig
|
|
||||||
DESCRIPTION=Mozilla's Network Security Services library that implements PKI support
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://www.mozilla.org/projects/security/pki/nss/
|
|
||||||
IUSE=utils
|
|
||||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
|
|
||||||
LICENSE=|| ( MPL-1.1 GPL-2 LGPL-2.1 )
|
|
||||||
RDEPEND=>=dev-libs/nspr-4.8.9 >=dev-db/sqlite-3.5
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_11_RTM/src/nss-3.12.11.tar.gz
|
|
||||||
_eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 flag-o-matic d900015de4e092f26d8c0a18b6bd60de multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28
|
|
||||||
_md5_=36cfd92d2f9c08f143a1761e1cff9be4
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue