components/isc-dhcp/Makefile
author Ben Chang <Benjamin.Chang@Oracle.COM>
Fri, 13 Jan 2017 13:04:10 -0800
branchs11u3-sru
changeset 7574 fb557863edc8
parent 6168 b3cd649419fe
permissions -rw-r--r--
PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl 20411483 Need dynamic library support for ISC DHCP component 21379777 header files missing in userland isc-dhcp package manifest
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
#
7574
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    21
# Copyright (c) 2011, 2017, 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
    22
#
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    24
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2365
diff changeset
    25
COMPONENT_NAME=		isc-dhcp
2365
40a585e45d7a 7196236 Problem with network/dhcp_server
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 933
diff changeset
    26
COMPONENT_VERSION=	4.1-ESV-R7
6168
b3cd649419fe 22879627 problem in SERVICE/DHCP-SERVER
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 5294
diff changeset
    27
HUMAN_VERSION=		$(COMPONENT_VERSION)-S2
b3cd649419fe 22879627 problem in SERVICE/DHCP-SERVER
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 5294
diff changeset
    28
IPS_COMPONENT_VERSION=	4.1.0.7.2
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2365
diff changeset
    29
COMPONENT_SRC_NAME=	dhcp
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2365
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
658
714803fd87a0 7116917 Problem with network/dhcp_server
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 609
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
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
    32
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
    33
COMPONENT_ARCHIVE_URL=  \
fbf8e08af1f1 7181717 Problem with network/dhcp_server
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 800
diff changeset
    34
    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
    35
COMPONENT_ARCHIVE_HASH= \
2365
40a585e45d7a 7196236 Problem with network/dhcp_server
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 933
diff changeset
    36
    sha256:25d579291a13ccce39c5dbb0e2f2ce8e974c82015bc4e3ee653cf95a4ed15ca4
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2365
diff changeset
    37
COMPONENT_BUGDB=	service/dhcp-server
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    38
3661
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2434
diff changeset
    39
TPNO=			10383
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2434
diff changeset
    40
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    41
include $(WS_MAKE_RULES)/prep.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    42
include $(WS_MAKE_RULES)/configure.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    43
include $(WS_MAKE_RULES)/ips.mk
7574
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    44
include $(WS_MAKE_RULES)/lint-libraries.mk
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    45
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    46
# Enable ASLR for this component
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    47
ASLR_MODE =	$(ASLR_ENABLE)
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    48
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    49
LINT_FLAGS +=   -I$(BUILD_DIR_32)/includes \
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    50
	-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
    51
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    52
COMPONENT_PRE_CONFIGURE_ACTION = \
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    53
	($(CLONEY) $(SOURCE_DIR) $(@D))
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    54
7574
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    55
# Some patches need configure script re-creation.
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    56
COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf -vfi);
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    57
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS  +=	--sysconfdir=$(ETCDIR)/inet
7574
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    59
CONFIGURE_OPTIONS.32  +=	--sbindir=$(USRLIBDIR)/inet
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    60
CONFIGURE_OPTIONS.32  +=	--bindir=$(USRSBINDIR)
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    61
CONFIGURE_OPTIONS.64  +=	--sbindir=$(USRLIBDIR)/inet/$(MACH64)
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    62
CONFIGURE_OPTIONS.64  +=	--bindir=$(USRSBINDIR)/$(MACH64)
658
714803fd87a0 7116917 Problem with network/dhcp_server
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 609
diff changeset
    63
CONFIGURE_OPTIONS  +=	--enable-use-sockets
714803fd87a0 7116917 Problem with network/dhcp_server
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 609
diff changeset
    64
CONFIGURE_OPTIONS  +=	--enable-ipv4-pktinfo
7574
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    65
CONFIGURE_OPTIONS  +=	--with-pic
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    66
722
db6c773d591a 7143416 setting config/append_agent_option to true prevents dhcrelay from starting
Krishnan Chandrashekar <Krishnan.Chandrashekar@oracle.COM>
parents: 659
diff changeset
    67
db6c773d591a 7143416 setting config/append_agent_option to true prevents dhcrelay from starting
Krishnan Chandrashekar <Krishnan.Chandrashekar@oracle.COM>
parents: 659
diff changeset
    68
# 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
    69
CPPFLAGS  +=	        -DNOMINUM
933
fbf8e08af1f1 7181717 Problem with network/dhcp_server
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 800
diff changeset
    70
CONFIGURE_OPTIONS  +=   CPPFLAGS="$(CPPFLAGS)"
722
db6c773d591a 7143416 setting config/append_agent_option to true prevents dhcrelay from starting
Krishnan Chandrashekar <Krishnan.Chandrashekar@oracle.COM>
parents: 659
diff changeset
    71
7574
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    72
CFLAGS += -g -fPIC
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    73
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    74
7574
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    75
configure:	$(CONFIGURE_32_and_64)
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    76
7574
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    77
build:		$(BUILD_32_and_64)
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    78
7574
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    79
install:	$(INSTALL_32_and_64) $(PROTO_DIR)/dhcpd.leases
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    80
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    81
test:	$(TEST_32_and_64) #build
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    82
	@cd $(BUILD_DIR_32); $(MAKE) check
7574
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    83
	@cd $(BUILD_DIR_64); $(MAKE) check
280
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    84
7574
fb557863edc8 PSARC 2015/160 ISC libomapi, libdst, and libdhcpctl
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6168
diff changeset
    85
$(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
    86
	$(TOUCH) $@
c0dae1e3ca2f PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff changeset
    87
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    88
REQUIRED_PACKAGES += shell/ksh93
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    89
REQUIRED_PACKAGES += system/core-os
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    90
REQUIRED_PACKAGES += system/library
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    91
REQUIRED_PACKAGES += system/network