components/isc-dhcp/Makefile
author Shawn Walker-Salas <shawn.walker@oracle.com>
Wed, 30 Mar 2016 13:33:31 -0700
changeset 5682 94c0ca64c022
parent 5261 172253f94ecf
child 5709 42ebc732084b
permissions -rw-r--r--
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh 22228656 remove redundant declarations and additions from makefiles 22252545 simplify build rules for components from common upstream 22378457 tclConfig.sh compiler settings are too specific 22727315 httping curses gui missing 22750630 procmail ignores userland cflags and may use private strstr function 22758725 wdiff uses diff from PATH instead of /usr/gnu/bin/diff 22926847 cloog Makefile typo when setting ASLR_MODE 22935090 tk config script has wrong linker flags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
     1
#
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
     3
#
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
     7
#
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    12
#
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    18
#
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5261
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5261
diff changeset
    22
#
5261
172253f94ecf 22517767 Upgrade Solaris' DHCP to version 4.1-ESV-R7-P1
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 4339
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5261
diff changeset
    25
BUILD_BITS= 64_and_32
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    27
1048
e82fa02a4d16 15863968 Auto-generation of Userland gate list - Phase 1.
Rich Burridge <rich.burridge@oracle.com>
parents: 982
diff changeset
    28
COMPONENT_NAME=		isc-dhcp
982
339360bfe9df 7196236 Problem with network/dhcp_server
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 933
diff changeset
    29
COMPONENT_VERSION=	4.1-ESV-R7
5261
172253f94ecf 22517767 Upgrade Solaris' DHCP to version 4.1-ESV-R7-P1
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 4339
diff changeset
    30
HUMAN_VERSION=		$(COMPONENT_VERSION)-P1
172253f94ecf 22517767 Upgrade Solaris' DHCP to version 4.1-ESV-R7-P1
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 4339
diff changeset
    31
IPS_COMPONENT_VERSION=	4.1.0.7.1
1048
e82fa02a4d16 15863968 Auto-generation of Userland gate list - Phase 1.
Rich Burridge <rich.burridge@oracle.com>
parents: 982
diff changeset
    32
COMPONENT_SRC_NAME=	dhcp
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 473
diff changeset
    33
COMPONENT_PROJECT_URL=	http://www.isc.org/software/dhcp/
933
fbf8e08af1f1 7181717 Problem with network/dhcp_server
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 800
diff changeset
    34
COMPONENT_ARCHIVE_URL=  \
fbf8e08af1f1 7181717 Problem with network/dhcp_server
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 800
diff changeset
    35
    http://ftp.isc.org/isc/dhcp/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 736
diff changeset
    36
COMPONENT_ARCHIVE_HASH= \
982
339360bfe9df 7196236 Problem with network/dhcp_server
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 933
diff changeset
    37
    sha256:25d579291a13ccce39c5dbb0e2f2ce8e974c82015bc4e3ee653cf95a4ed15ca4
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1048
diff changeset
    38
COMPONENT_BUGDB=	service/dhcp-server
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    39
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    40
TPNO=			10383
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    41
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5261
diff changeset
    42
INSTALL_TARGET=
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5261
diff changeset
    43
include $(WS_MAKE_RULES)/common.mk
4084
3b8278addf4b PSARC/2015/160 ISC libomapi, libdst, and libdhcpctl
Praveen Kumar Muthuswamy <praveen.muthuswamy@oracle.com>
parents: 3817
diff changeset
    44
3b8278addf4b PSARC/2015/160 ISC libomapi, libdst, and libdhcpctl
Praveen Kumar Muthuswamy <praveen.muthuswamy@oracle.com>
parents: 3817
diff changeset
    45
LINT_FLAGS +=   -I$(BUILD_DIR_32)/includes \
3b8278addf4b PSARC/2015/160 ISC libomapi, libdst, and libdhcpctl
Praveen Kumar Muthuswamy <praveen.muthuswamy@oracle.com>
parents: 3817
diff changeset
    46
	-I$(BUILD_DIR_64)/includes -I$(SOURCE_DIR)/includes -I.
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    47
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    48
COMPONENT_PRE_CONFIGURE_ACTION = \
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    49
	($(CLONEY) $(SOURCE_DIR) $(@D))
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    50
4084
3b8278addf4b PSARC/2015/160 ISC libomapi, libdst, and libdhcpctl
Praveen Kumar Muthuswamy <praveen.muthuswamy@oracle.com>
parents: 3817
diff changeset
    51
# Some patches need configure script re-creation.
3b8278addf4b PSARC/2015/160 ISC libomapi, libdst, and libdhcpctl
Praveen Kumar Muthuswamy <praveen.muthuswamy@oracle.com>
parents: 3817
diff changeset
    52
COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf -vfi);
3b8278addf4b PSARC/2015/160 ISC libomapi, libdst, and libdhcpctl
Praveen Kumar Muthuswamy <praveen.muthuswamy@oracle.com>
parents: 3817
diff changeset
    53
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    54
CONFIGURE_OPTIONS  +=	--sysconfdir=$(ETCDIR)/inet
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS  +=	--sbindir=$(USRLIBDIR)/inet
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    56
CONFIGURE_OPTIONS  +=	--bindir=$(USRSBINDIR)
658
714803fd87a0 7116917 Problem with network/dhcp_server
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 609
diff changeset
    57
CONFIGURE_OPTIONS  +=	--enable-use-sockets
714803fd87a0 7116917 Problem with network/dhcp_server
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 609
diff changeset
    58
CONFIGURE_OPTIONS  +=	--enable-ipv4-pktinfo
4084
3b8278addf4b PSARC/2015/160 ISC libomapi, libdst, and libdhcpctl
Praveen Kumar Muthuswamy <praveen.muthuswamy@oracle.com>
parents: 3817
diff changeset
    59
CONFIGURE_OPTIONS  +=	--with-pic
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    60
722
db6c773d591a 7143416 setting config/append_agent_option to true prevents dhcrelay from starting
Krishnan Chandrashekar <Krishnan.Chandrashekar@oracle.COM>
parents: 659
diff changeset
    61
db6c773d591a 7143416 setting config/append_agent_option to true prevents dhcrelay from starting
Krishnan Chandrashekar <Krishnan.Chandrashekar@oracle.COM>
parents: 659
diff changeset
    62
# Disable message in omapip/errwarn.c.
db6c773d591a 7143416 setting config/append_agent_option to true prevents dhcrelay from starting
Krishnan Chandrashekar <Krishnan.Chandrashekar@oracle.COM>
parents: 659
diff changeset
    63
CPPFLAGS  +=	        -DNOMINUM
db6c773d591a 7143416 setting config/append_agent_option to true prevents dhcrelay from starting
Krishnan Chandrashekar <Krishnan.Chandrashekar@oracle.COM>
parents: 659
diff changeset
    64
4084
3b8278addf4b PSARC/2015/160 ISC libomapi, libdst, and libdhcpctl
Praveen Kumar Muthuswamy <praveen.muthuswamy@oracle.com>
parents: 3817
diff changeset
    65
CFLAGS += -g -fPIC
3b8278addf4b PSARC/2015/160 ISC libomapi, libdst, and libdhcpctl
Praveen Kumar Muthuswamy <praveen.muthuswamy@oracle.com>
parents: 3817
diff changeset
    66
2164
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    67
COMPONENT_TEST_DIR =	$(@D)
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    68
4084
3b8278addf4b PSARC/2015/160 ISC libomapi, libdst, and libdhcpctl
Praveen Kumar Muthuswamy <praveen.muthuswamy@oracle.com>
parents: 3817
diff changeset
    69
install:	build $(INSTALL_32_and_64) $(PROTO_DIR)/dhcpd.leases
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    70
4084
3b8278addf4b PSARC/2015/160 ISC libomapi, libdst, and libdhcpctl
Praveen Kumar Muthuswamy <praveen.muthuswamy@oracle.com>
parents: 3817
diff changeset
    71
$(PROTO_DIR)/dhcpd.leases:	$(INSTALL_32_and_64)
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    72
	$(TOUCH) $@
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    73
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    74
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    75
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    76
REQUIRED_PACKAGES += system/core-os
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    77
REQUIRED_PACKAGES += system/network