rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / isc-dhcp / Makefile
blobb2bc236dcff5f30a43ffb7eaef48989190e2bdc9
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2020, Michal Nowak
23 # Copyright (c) 2022, Nona Hansel
26 BUILD_BITS= 64
28 include ../../../make-rules/shared-macros.mk
30 COMPONENT_NAME= isc-dhcp
31 COMPONENT_VERSION= 4.4.3-P1
32 IPS_COMPONENT_VERSION= 4.4.3.1
33 COMPONENT_FMRI= service/network/dhcp/isc-dhcp
34 COMPONENT_SUMMARY= ISC DHCP Server and Relay Agent
35 COMPONENT_CLASSIFICATION= System/Services
36 COMPONENT_SRC_NAME= dhcp
37 COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
38 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
39 COMPONENT_PROJECT_URL= https://www.isc.org/software/dhcp/
40 COMPONENT_ARCHIVE_URL= https://ftp.isc.org/isc/dhcp/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
41 COMPONENT_ARCHIVE_HASH= sha256:0ac416bb55997ca8632174fd10737fd61cdb8dba2752160a335775bc21dc73c7
42 COMPONENT_LICENSE= MPL v2.0
43 COMPONENT_LICENSE_FILE= LICENSE
45 # We don't ship ATF/Kyua
46 TEST_TARGET= $(NO_TESTS)
47 include $(WS_MAKE_RULES)/common.mk
49 LDFLAGS += -lnsl -lsocket
51 # Parallel build fails in bind
52 COMPONENT_BUILD_ARGS =
54 COMPONENT_PRE_CONFIGURE_ACTION = \
55 ($(CLONEY) $(SOURCE_DIR) $(@D))
57 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/inet
58 CONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)/inet
59 CONFIGURE_OPTIONS += --bindir=$(USRSBINDIR)
60 CONFIGURE_OPTIONS += --enable-use-sockets
61 CONFIGURE_OPTIONS += --enable-ipv4-pktinfo
62 CONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_$(BITS))
64 COMPONENT_POST_BUILD_ACTION = $(MAKE) -C $(BUILD_DIR_64)/keama
65 COMPONENT_POST_INSTALL_ACTION = $(MAKE) -C $(BUILD_DIR_64)/keama DESTDIR=$(PROTO_DIR) install
67 install: build $(INSTALL_64) $(PROTO_DIR)/dhcpd.leases
69 $(PROTO_DIR)/dhcpd.leases: $(INSTALL_64)
70 $(TOUCH) $@
72 # Auto-generated dependencies
73 REQUIRED_PACKAGES += SUNWcs
74 REQUIRED_PACKAGES += shell/ksh93
75 REQUIRED_PACKAGES += system/library