Print this page
Update git to 2.0
| Split |
Close |
| Expand all |
| Collapse all |
--- old/build/git/build.sh
+++ new/build/git/build.sh
1 1 #!/usr/bin/bash
2 2 #
3 3 # CDDL HEADER START
4 4 #
5 5 # The contents of this file are subject to the terms of the
6 6 # Common Development and Distribution License, Version 1.0 only
7 7 # (the "License"). You may not use this file except in compliance
8 8 # with the License.
9 9 #
10 10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 11 # or http://www.opensolaris.org/os/licensing.
12 12 # See the License for the specific language governing permissions
13 13 # and limitations under the License.
14 14 #
15 15 # When distributing Covered Code, include this CDDL HEADER in each
16 16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 17 # If applicable, add the following below this CDDL HEADER, with the
18 18 # fields enclosed by brackets "[]" replaced with your own identifying
19 19 # information: Portions Copyright [yyyy] [name of copyright owner]
20 20 #
21 21 # CDDL HEADER END
|
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
22 22 #
23 23 #
24 24 # Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 # Copyright (c) 2014 by Delphix. All rights reserved.
27 27 #
28 28 # Load support functions
29 29 . ../../lib/functions.sh
30 30
31 31 PROG=git
32 -VER=1.8.4
32 +VER=2.0.0
33 33 PKG=developer/versioning/git
34 34 SUMMARY="$PROG - a free and open source, distributed version control system"
35 35 DESC="$SUMMARY"
36 36
37 37 BUILD_DEPENDS_IPS="compatibility/ucb developer/build/autoconf"
38 38
39 39 DEPENDS_IPS="runtime/python-26 \
40 40 web/curl \
41 41 library/security/openssl@1.0.1 \
42 42 library/zlib"
43 43
44 44 TAR=gtar
45 45
46 46 # For inet_ntop which isn't detected properly in the configure script
47 47 LDFLAGS="-lnsl"
48 48 CFLAGS64="$CFLAGS64 -I/usr/include/amd64"
49 49 CONFIGURE_OPTS="--without-tcltk
50 50 --with-python=/usr/bin/python
51 51 --with-curl=/usr
52 52 --with-openssl=/usr"
53 53
54 54 save_function configure32 configure32_orig
55 55 configure32() {
56 56 make_param configure
57 57 configure32_orig
58 58 }
59 59
60 60 save_function configure64 configure64_orig
61 61 configure64() {
62 62 make_param configure
63 63 configure64_orig
64 64 }
65 65
66 66 install_man() {
67 67 logmsg "Fetching and installing pre-built man pages"
68 68 if [[ ! -f ${TMPDIR}/${PROG}-manpages-${VER}.tar.gz ]]; then
69 69 pushd $TMPDIR > /dev/null
70 70 get_resource $PROG/${PROG}-manpages-${VER}.tar.gz || \
71 71 logerr "--- Failed to fetch tarball"
72 72 popd > /dev/null
73 73 fi
74 74 logcmd mkdir -p ${DESTDIR}${PREFIX}/share/man
75 75 pushd ${DESTDIR}${PREFIX}/share/man > /dev/null
76 76 extract_archive ${TMPDIR}/${PROG}-manpages-${VER}.tar.gz || \
77 77 logerr "--- Error extracting archive"
78 78 popd > /dev/null
79 79 }
80 80
81 81 init
82 82 download_source $PROG $PROG $VER
83 83 patch_source
84 84 prep_build
85 85 build
86 86 make_isa_stub
87 87 install_man
88 88 make_package
89 89 clean_up
|
↓ open down ↓ |
47 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX