1 |
anarchy 10/02/11 03:29:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nss-3.12.5-r1.ebuild |
5 |
Log: |
6 |
update for upstream concerns, thanks to Wan-Teh for his concerns. |
7 |
(Portage version: 2.1.7.17/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.170 dev-libs/nss/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nss/ChangeLog?rev=1.170&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nss/ChangeLog?rev=1.170&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nss/ChangeLog?r1=1.169&r2=1.170 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/nss/ChangeLog,v |
19 |
retrieving revision 1.169 |
20 |
retrieving revision 1.170 |
21 |
diff -u -r1.169 -r1.170 |
22 |
--- ChangeLog 9 Feb 2010 11:43:21 -0000 1.169 |
23 |
+++ ChangeLog 11 Feb 2010 03:29:22 -0000 1.170 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-libs/nss |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/ChangeLog,v 1.169 2010/02/09 11:43:21 pacho Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/ChangeLog,v 1.170 2010/02/11 03:29:22 anarchy Exp $ |
29 |
+ |
30 |
+*nss-3.12.5-r1 (11 Feb 2010) |
31 |
+ |
32 |
+ 11 Feb 2010; <anarchy@g.o> +nss-3.12.5-r1.ebuild: |
33 |
+ Address concerns from upstream about our build, move to /usr/lib{64} |
34 |
|
35 |
09 Feb 2010; Pacho Ramos <pacho@g.o> nss-3.12.5.ebuild: |
36 |
amd64 stable, bug 300606 |
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-libs/nss/nss-3.12.5-r1.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nss/nss-3.12.5-r1.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nss/nss-3.12.5-r1.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: nss-3.12.5-r1.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.12.5-r1.ebuild,v 1.1 2010/02/11 03:29:22 anarchy Exp $ |
50 |
|
51 |
inherit eutils flag-o-matic multilib toolchain-funcs |
52 |
|
53 |
NSPR_VER="4.8" |
54 |
RTM_NAME="NSS_${PV//./_}_RTM" |
55 |
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support" |
56 |
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/" |
57 |
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz" |
58 |
#SRC_URI="http://dev.gentoo.org/~armin76/dist/${P}.tar.bz2 |
59 |
# mirror://gentoo/${P}.tar.bz2" |
60 |
|
61 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
64 |
IUSE="utils" |
65 |
|
66 |
DEPEND="dev-util/pkgconfig" |
67 |
RDEPEND=">=dev-libs/nspr-${NSPR_VER} |
68 |
>=dev-db/sqlite-3.5" |
69 |
|
70 |
src_unpack() { |
71 |
unpack ${A} |
72 |
|
73 |
# Custom changes for gentoo |
74 |
epatch "${FILESDIR}"/"${PN}"-3.12.5-gentoo-fixups.diff |
75 |
|
76 |
cd "${S}"/mozilla/security/coreconf |
77 |
|
78 |
# modify install path |
79 |
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \ |
80 |
-i source.mk |
81 |
|
82 |
# Respect LDFLAGS |
83 |
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk |
84 |
|
85 |
# Ensure we stay multilib aware |
86 |
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib" |
87 |
} |
88 |
|
89 |
src_compile() { |
90 |
strip-flags |
91 |
|
92 |
echo > "${T}"/test.c |
93 |
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o |
94 |
case $(file "${T}"/test.o) in |
95 |
*64-bit*) export USE_64=1;; |
96 |
*32-bit*) ;; |
97 |
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";; |
98 |
esac |
99 |
|
100 |
export BUILD_OPT=1 |
101 |
export NSS_USE_SYSTEM_SQLITE=1 |
102 |
export NSPR_INCLUDE_DIR=`pkg-config --cflags-only-I nspr | sed 's/-I//'` |
103 |
export NSDISTMODE=copy |
104 |
export NSS_ENABLE_ECC=1 |
105 |
export XCFLAGS="${CFLAGS}" |
106 |
export FREEBL_NO_DEPEND=1 |
107 |
export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 |
108 |
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 |
109 |
|
110 |
cd "${S}"/mozilla/security/coreconf |
111 |
emake -j1 CC="$(tc-getCC)" || die "coreconf make failed" |
112 |
cd "${S}"/mozilla/security/dbm |
113 |
emake -j1 CC="$(tc-getCC)" || die "dbm make failed" |
114 |
cd "${S}"/mozilla/security/nss |
115 |
emake -j1 CC="$(tc-getCC)" || die "nss make failed" |
116 |
} |
117 |
|
118 |
src_install () { |
119 |
MINOR_VERSION=12 |
120 |
cd "${S}"/mozilla/security/dist |
121 |
|
122 |
dodir /usr/$(get_libdir)/nss |
123 |
cp -L */lib/*.so "${D}"/usr/$(get_libdir) || die "copying shared libs failed" |
124 |
cp -L */lib/*.chk "${D}"/usr/$(get_libdir) || die "copying chk files failed" |
125 |
cp -L */lib/libcrmf.a "${D}"/usr/$(get_libdir) || die "copying libs failed" |
126 |
|
127 |
# Install nspr-config and pkgconfig file |
128 |
dodir /usr/bin |
129 |
cp -L */bin/nss-config "${D}"/usr/bin |
130 |
dodir /usr/$(get_libdir)/pkgconfig |
131 |
cp -L */lib/pkgconfig/nss.pc "${D}"/usr/$(get_libdir)/pkgconfig |
132 |
|
133 |
# all the include files |
134 |
insinto /usr/include/nss |
135 |
doins public/nss/*.h |
136 |
cd "${D}"/usr/$(get_libdir) |
137 |
for file in *.so; do |
138 |
mv ${file} ${file}.${MINOR_VERSION} |
139 |
ln -s ${file}.${MINOR_VERSION} ${file} |
140 |
done |
141 |
|
142 |
if use utils; then |
143 |
local nssutil |
144 |
nssutils="certutil crlutil cmsutil modutil pk12util signtool signver ssltrap addbuiltin" |
145 |
|
146 |
cd "${S}"/mozilla/security/dist/*/bin/ |
147 |
for f in $nssutils; do |
148 |
newbin ${f} |
149 |
done |
150 |
fi |
151 |
} |
152 |
|
153 |
pkg_postinst() { |
154 |
elog "We have reverted back to using upstreams soname." |
155 |
elog "Please run revdep-rebuild --library libnss3.so.12 , this" |
156 |
elog "will correct most issues. If you find a binary that does" |
157 |
elog "not run please re-emerge package to ensure it properly" |
158 |
elog " links after upgrade." |
159 |
elog |
160 |
} |