Print this page
Some packages need to specify -std=gnu89 to compile, and gcc51 defaults to
gnu11 now.
Also, updated mozilla-nss-nspr to 3.19 and 4.10.8, respectively.
| Split |
Close |
| Expand all |
| Collapse all |
--- old/build/isc-dhcp/build.sh
+++ new/build/isc-dhcp/build.sh
1 1 #!/usr/bin/bash
2 2 #
3 3 # CDDL HEADER START
4 4 #
5 5 # This file and its contents are supplied under the terms of the
6 6 # Common Development and Distribution License ("CDDL"), version 1.0.
7 7 # You may only use this file in accordance with the terms of version
8 8 # 1.0 of the CDDL.
9 9 #
10 10 # A full copy of the text of the CDDL should have accompanied this
11 11 # source. A copy of the CDDL is also available via the Internet at
12 12 # http://www.illumos.org/license/CDDL.
13 13 #
14 14 # CDDL HEADER END
15 15 #
16 16 #
17 17 # Copyright 2014 OmniTI Computer Consulting, Inc. All rights reserved.
18 18 #
19 19 # Load support functions
20 20 . ../../lib/functions.sh
21 21
22 22 PROG=dhcp
23 23 VER=4.3.2
|
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
24 24 VERHUMAN=$VER
25 25 PKG=network/service/isc-dhcp
26 26 SUMMARY="ISC DHCP"
27 27 DESC="$SUMMARY $VER"
28 28
29 29 DEPENDS_IPS="system/library"
30 30
31 31 # XXX 32-bit until Y2038 rears its ugly head.
32 32 BUILDARCH=32
33 33
34 +# Use old gcc4 standards level for this.
35 +export CFLAGS="$CFLAGS -std=gnu89"
36 +
34 37 CONFIGURE_OPTS="--enable-use-sockets --enable-ipv4-pktinfo --prefix=$PREFIX --bindir=$PREFIX/bin --sbindir=$PREFIX/sbin"
35 38
36 39 pre_package() {
37 40 # Make directories and install extra files before package construction.
38 41 logcmd mkdir -p $DESTDIR/usr/share/isc-dhcp/examples || logerr \
39 42 "mkdir of $DESTDIR/usr/share/isc-dhcp/examples failed"
40 43 logcmd mkdir -p $DESTDIR/lib/svc/manifest/network || logerr \
41 44 "mkdir of $DESTDIR/lib/svc/manifest/network failed"
42 45 logcmd mkdir -p $DESTDIR/lib/svc/method || logerr \
43 46 "mkdir of $DESTDIR/lib/svc/method failed"
44 47 logcmd mkdir -p $DESTDIR/var/db || logerr "mkdir of $DESTDIR/var/db failed"
45 48 logcmd mkdir -p $DESTDIR/var/db || logerr "mkdir of $DESTDIR/var/db failed"
46 49 logcmd touch $DESTDIR/var/db/dhcpd.leases
47 50 logcmd touch $DESTDIR/var/db/dhcpd6.leases
48 51 logcmd cp $SRCDIR/files/isc-dhcp.xml $DESTDIR/lib/svc/manifest/network || \
49 52 logerr "Cannot copy in manifest."
50 53 chmod 0444 $DESTDIR/lib/svc/manifest/network/isc-dhcp.xml
51 54 logcmd cp $SRCDIR/files/dhcrelay $DESTDIR/lib/svc/method || \
52 55 logerr "Cannot copy in method."
53 56 chmod 0555 $DESTDIR/lib/svc/method/dhcrelay
54 57 }
55 58
56 59 init
57 60 download_source $PROG $PROG $VER
58 61 patch_source
59 62 prep_build
60 63 build
61 64 # Make directories in the proto area prior to the package being built.
62 65 pre_package
63 66 make_package
64 67 clean_up
65 68
66 69 # Vim hints
67 70 # vim:ts=4:sw=4:et:
|
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX