Makefile revision 1938
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync#
2b8bde865e119318ffd56bfeb9ba0d05988deb5fvboxsync# CDDL HEADER START
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync#
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync# The contents of this file are subject to the terms of the
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync# Common Development and Distribution License (the "License").
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync# You may not use this file except in compliance with the License.
2c07c1fedb046186887479cc69f283d83e70b268vboxsync#
126e63c656a41ec75acd5f21680dffba0058db47vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2b8bde865e119318ffd56bfeb9ba0d05988deb5fvboxsync# or http://www.opensolaris.org/os/licensing.
3baadeafd9922582dad9b32431362e6296417dd8vboxsync# See the License for the specific language governing permissions
1d98526a7c32ecd4d197158fc5390ac8e8d714fevboxsync# and limitations under the License.
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync#
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync# When distributing Covered Code, include this CDDL HEADER in each
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync# If applicable, add the following below this CDDL HEADER, with the
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync#
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync# CDDL HEADER END
2dfda90468c5653309a3e93423313e0ec0e627a2vboxsync#
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
#
include ../../make-rules/shared-macros.mk
COMPONENT_NAME= isc-dhcp
COMPONENT_VERSION= 4.1-ESV-R7
IPS_COMPONENT_VERSION= 4.1.0.7
COMPONENT_SRC_NAME= dhcp
COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
COMPONENT_PROJECT_URL= http://www.isc.org/software/dhcp/
COMPONENT_ARCHIVE_URL= \
http://ftp.isc.org/isc/dhcp/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
COMPONENT_ARCHIVE_HASH= \
sha256:25d579291a13ccce39c5dbb0e2f2ce8e974c82015bc4e3ee653cf95a4ed15ca4
COMPONENT_BUGDB= service/dhcp-server
include ../../make-rules/prep.mk
include ../../make-rules/configure.mk
include ../../make-rules/ips.mk
COMPONENT_PRE_CONFIGURE_ACTION = \
($(CLONEY) $(SOURCE_DIR) $(@D))
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/inet
CONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)/inet
CONFIGURE_OPTIONS += --bindir=$(USRSBINDIR)
CONFIGURE_OPTIONS += --enable-use-sockets
CONFIGURE_OPTIONS += --enable-ipv4-pktinfo
# Disable message in omapip/errwarn.c.
CPPFLAGS += -DNOMINUM
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
build: $(BUILD_32)
install: build $(INSTALL_32) $(PROTO_DIR)/dhcpd.leases
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
test: build
@cd $(BUILD_DIR_32); $(MAKE) check
$(PROTO_DIR)/dhcpd.leases: $(INSTALL_32)
$(TOUCH) $@
include ../../make-rules/depend.mk