11 # or http://www.opensolaris.org/os/licensing.
12 # See the License for the specific language governing permissions
13 # and limitations under the License.
14 #
15 # When distributing Covered Code, include this CDDL HEADER in each
16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 # If applicable, add the following below this CDDL HEADER, with the
18 # fields enclosed by brackets "[]" replaced with your own identifying
19 # information: Portions Copyright [yyyy] [name of copyright owner]
20 #
21 # CDDL HEADER END
22 #
23 #
24 # Copyright 2014 OmniTI Computer Consulting, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27 # Load support functions
28 . ../../lib/functions.sh
29
30 PROG=nss
31 VER=3.17.4
32 # Include NSPR version since we're downloading a combined tarball.
33 NSPRVER=4.10.7
34 # But set BUILDDIR to just be the NSS version.
35 BUILDDIR=$PROG-$VER
36 VERHUMAN=$VER
37 PKG=$PROG ##IGNORE##
38 SUMMARY="Not the real summary"
39 DESC="$SUMMARY"
40
41 # NOTE: These are generated by uname and build variables.
42 # CHECK THESE WHEN THINGS CHANGE!
43 DIST32=SunOS5.11_i86pc_gcc_OPT.OBJ
44 DIST64=SunOS5.11_i86pc_gcc_64_OPT.OBJ
45
46 BUILD_DEPENDS_IPS="library/nspr/header-nspr"
47
48 MAKE_OPTS="BUILD_OPT=1 NS_USE_GCC=1 NO_MDUPDATE=1 NSDISTMODE=copy"
49
50 NSS_LIBS="libfreebl3.so libnss3.so
51 libnssckbi.so libnssdbm3.so
52 libnssutil3.so libsmime3.so
53 libsoftokn3.so libssl3.so"
54 NSPR_LIBS="libnspr4.so libplc4.so libplds4.so"
55
56 # Variables that switch between NSS and NSPR
57 TGT_LIBS=$NSS_LIBS
58 PC_FILE=nss.pc
59 LOCAL_MOG_FILE=nss-local.mog
60
61 make_clean() {
62 # Assume PWD == top-level with nss & nspr subdirs.
63 /bin/rm -rf dist
64 cd nss
65 logcmd gmake $MAKE_OPTS nss_clean_all || logerr "Can't make clean"
66 cd ..
67 }
68
69 configure32() {
70 # Get the install/prototype path out of the way now.
71 logcmd mkdir -p $DESTDIR/usr/lib/mps || \
72 logerr "Failed to create NSS install directory."
73 }
74
75 make_prog32() {
131 for lib in $TGT_LIBS
132 do
133 ln -s ../../amd64/$lib $DESTDIR/usr/lib/mps/secv1/amd64/$lib
134 ln -s ../$lib $DESTDIR/usr/lib/mps/secv1/$lib
135 done
136 }
137
138 init
139 # Download combined NSS & NSPR tarball.
140 download_source $PROG $PROG "$VER-with-nspr-$NSPRVER"
141 patch_source
142 prep_build
143 build
144 secv1_links
145
146 PKG=system/library/mozilla-nss/header-nss
147 SUMMARY="Network Security Services Headers"
148 DESC="$SUMMARY"
149 make_package header-nss.mog
150
151 DEPENDS_IPS="SUNWcs system/library/gcc-4-runtime system/library
152 library/nspr database/sqlite-3"
153 PKG=system/library/mozilla-nss
154 SUMMARY="Network Security Services Libraries"
155 DESC="$SUMMARY"
156 make_package nss.mog
157
158 # This cleans up NSS.
159 clean_up
160
161 # Switch variables & populate other proto area.
162 VER=$NSPRVER
163 TGT_LIBS=$NSPR_LIBS
164 PC_FILE=nspr.pc
165 LOCAL_MOG_FILE=nspr-local.mog
166 DESTDIR=`echo $DESTDIR | sed 's/nss/nspr/g'`
167 prep_build
168 logcmd mkdir -p $DESTDIR/usr/include/mps/md || \
169 logerr "Failed to create NSPR header install directory."
170 logcmd mkdir -p $DESTDIR/usr/include/mps/obsolete || \
171 logerr "Failed to create NSPR header install directory."
185 logcmd cp $TMPDIR/$BUILDDIR/dist/$DIST64/include/obsolete/*.h \
186 $DESTDIR/usr/include/mps/obsolete
187 logcmd cp $TMPDIR/$BUILDDIR/dist/$DIST64/include/private/*.h \
188 $DESTDIR/usr/include/mps/private
189 logcmd cp $TMPDIR/$BUILDDIR/dist/$DIST64/include/md/* \
190 $DESTDIR/usr/include/mps/md
191 logcmd cp $TMPDIR/$BUILDDIR/nspr/$DIST64/config/nspr.pc \
192 $DESTDIR/usr/lib/mps/amd64/pkgconfig
193 # Restore 32-bit NSPR libraries.
194 logcmd cp /tmp/nspr-save.$$/nspr.pc $DESTDIR/usr/lib/mps/pkgconfig/nspr.pc
195 logcmd cp /tmp/nspr-save.$$/*.so $DESTDIR/usr/lib/mps || \
196 logerr "32-bit NSPR library installation failure"
197 logcmd rm -rf /tmp/nspr-save.$$
198 secv1_links
199
200 PKG=library/nspr/header-nspr
201 SUMMARY="Netscape Portable Runtime Headers"
202 DESC="$SUMMARY"
203 make_package header-nspr.mog
204
205 DEPENDS_IPS="SUNWcs system/library/gcc-4-runtime system/library"
206 PKG=library/nspr
207 SUMMARY="Netscape Portable Runtime"
208 DESC="$SUMMARY"
209 make_package nspr.mog
210
211 # This cleans up NSPR.
212 clean_up
213
214 # Vim hints
215 # vim:ts=4:sw=4:et:
|
11 # or http://www.opensolaris.org/os/licensing.
12 # See the License for the specific language governing permissions
13 # and limitations under the License.
14 #
15 # When distributing Covered Code, include this CDDL HEADER in each
16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 # If applicable, add the following below this CDDL HEADER, with the
18 # fields enclosed by brackets "[]" replaced with your own identifying
19 # information: Portions Copyright [yyyy] [name of copyright owner]
20 #
21 # CDDL HEADER END
22 #
23 #
24 # Copyright 2014 OmniTI Computer Consulting, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27 # Load support functions
28 . ../../lib/functions.sh
29
30 PROG=nss
31 VER=3.19
32 # Include NSPR version since we're downloading a combined tarball.
33 NSPRVER=4.10.8
34 # But set BUILDDIR to just be the NSS version.
35 BUILDDIR=$PROG-$VER
36 VERHUMAN=$VER
37 PKG=$PROG ##IGNORE##
38 SUMMARY="Not the real summary"
39 DESC="$SUMMARY"
40
41 # NOTE: These are generated by uname and build variables.
42 # CHECK THESE WHEN THINGS CHANGE!
43 DIST32=SunOS5.11_i86pc_gcc_OPT.OBJ
44 DIST64=SunOS5.11_i86pc_gcc_64_OPT.OBJ
45
46 BUILD_DEPENDS_IPS="library/nspr/header-nspr"
47
48 MAKE_OPTS="BUILD_OPT=1 NS_USE_GCC=1 NO_MDUPDATE=1 NSDISTMODE=copy"
49
50 NSS_LIBS="libfreebl3.so libnss3.so
51 libnssckbi.so libnssdbm3.so
52 libnssutil3.so libsmime3.so
53 libsoftokn3.so libssl3.so"
54 NSPR_LIBS="libnspr4.so libplc4.so libplds4.so"
55
56 # Use old gcc4 standards level for this.
57 export OS_CFLAGS="-std=gnu89"
58
59 # Variables that switch between NSS and NSPR
60 TGT_LIBS=$NSS_LIBS
61 PC_FILE=nss.pc
62 LOCAL_MOG_FILE=nss-local.mog
63
64 make_clean() {
65 # Assume PWD == top-level with nss & nspr subdirs.
66 /bin/rm -rf dist
67 cd nss
68 logcmd gmake $MAKE_OPTS nss_clean_all || logerr "Can't make clean"
69 cd ..
70 }
71
72 configure32() {
73 # Get the install/prototype path out of the way now.
74 logcmd mkdir -p $DESTDIR/usr/lib/mps || \
75 logerr "Failed to create NSS install directory."
76 }
77
78 make_prog32() {
134 for lib in $TGT_LIBS
135 do
136 ln -s ../../amd64/$lib $DESTDIR/usr/lib/mps/secv1/amd64/$lib
137 ln -s ../$lib $DESTDIR/usr/lib/mps/secv1/$lib
138 done
139 }
140
141 init
142 # Download combined NSS & NSPR tarball.
143 download_source $PROG $PROG "$VER-with-nspr-$NSPRVER"
144 patch_source
145 prep_build
146 build
147 secv1_links
148
149 PKG=system/library/mozilla-nss/header-nss
150 SUMMARY="Network Security Services Headers"
151 DESC="$SUMMARY"
152 make_package header-nss.mog
153
154 DEPENDS_IPS="SUNWcs system/library/gcc-5-runtime system/library
155 library/nspr database/sqlite-3"
156 PKG=system/library/mozilla-nss
157 SUMMARY="Network Security Services Libraries"
158 DESC="$SUMMARY"
159 make_package nss.mog
160
161 # This cleans up NSS.
162 clean_up
163
164 # Switch variables & populate other proto area.
165 VER=$NSPRVER
166 TGT_LIBS=$NSPR_LIBS
167 PC_FILE=nspr.pc
168 LOCAL_MOG_FILE=nspr-local.mog
169 DESTDIR=`echo $DESTDIR | sed 's/nss/nspr/g'`
170 prep_build
171 logcmd mkdir -p $DESTDIR/usr/include/mps/md || \
172 logerr "Failed to create NSPR header install directory."
173 logcmd mkdir -p $DESTDIR/usr/include/mps/obsolete || \
174 logerr "Failed to create NSPR header install directory."
188 logcmd cp $TMPDIR/$BUILDDIR/dist/$DIST64/include/obsolete/*.h \
189 $DESTDIR/usr/include/mps/obsolete
190 logcmd cp $TMPDIR/$BUILDDIR/dist/$DIST64/include/private/*.h \
191 $DESTDIR/usr/include/mps/private
192 logcmd cp $TMPDIR/$BUILDDIR/dist/$DIST64/include/md/* \
193 $DESTDIR/usr/include/mps/md
194 logcmd cp $TMPDIR/$BUILDDIR/nspr/$DIST64/config/nspr.pc \
195 $DESTDIR/usr/lib/mps/amd64/pkgconfig
196 # Restore 32-bit NSPR libraries.
197 logcmd cp /tmp/nspr-save.$$/nspr.pc $DESTDIR/usr/lib/mps/pkgconfig/nspr.pc
198 logcmd cp /tmp/nspr-save.$$/*.so $DESTDIR/usr/lib/mps || \
199 logerr "32-bit NSPR library installation failure"
200 logcmd rm -rf /tmp/nspr-save.$$
201 secv1_links
202
203 PKG=library/nspr/header-nspr
204 SUMMARY="Netscape Portable Runtime Headers"
205 DESC="$SUMMARY"
206 make_package header-nspr.mog
207
208 DEPENDS_IPS="SUNWcs system/library/gcc-5-runtime system/library"
209 PKG=library/nspr
210 SUMMARY="Netscape Portable Runtime"
211 DESC="$SUMMARY"
212 make_package nspr.mog
213
214 # This cleans up NSPR.
215 clean_up
216
217 # Vim hints
218 # vim:ts=4:sw=4:et:
|