author | Gary Gendel <gary@genashor.com> |
Sun, 09 Sep 2012 23:26:18 +0100 | |
changeset 505 | 064bc3aa72d4 |
parent 280 | c0dae1e3ca2f |
permissions | -rw-r--r-- |
280
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
1 |
# |
505
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
2 |
# This file and its contents are supplied under the terms of the |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
3 |
# Common Development and Distribution License ("CDDL)". You may |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
4 |
# only use this file in accordance with the terms of the CDDL. |
280
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
5 |
# |
505
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
6 |
# A full copy of the text of the CDDL should have accompanied this |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
7 |
# source. A copy of the CDDL is also available via the Internet at |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
8 |
# http://www.illumos.org/license/CDDL. |
280
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
9 |
# |
505
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
10 |
|
280
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
11 |
# |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
12 |
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
505
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
13 |
# Copyright (c) 2012, Gary Gendel <[email protected]> |
280
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
14 |
# |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
15 |
include ../../make-rules/shared-macros.mk |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
16 |
|
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
17 |
COMPONENT_NAME= dhcp |
505
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
18 |
COMPONENT_VERSION= 4.2.4-P1 |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
19 |
IPS_COMPONENT_VERSION= 4.2.4.1 |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
20 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
280
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
21 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
505
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
22 |
COMPONENT_ARCHIVE_HASH= sha256:d3baabef27fc006e1ce1c4e3d03d7e5c4b6a34d5a2f45fa47d69235ed25ad420 |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
23 |
COMPONENT_ARCHIVE_URL= http://ftp.isc.org/isc/dhcp/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
280
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
24 |
|
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
25 |
include ../../make-rules/prep.mk |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/configure.mk |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
27 |
include ../../make-rules/ips.mk |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
28 |
|
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
30 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
31 |
|
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
32 |
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/inet |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
33 |
CONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)/inet |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
34 |
CONFIGURE_OPTIONS += --bindir=$(USRSBINDIR) |
505
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
35 |
CONFIGURE_OPTIONS += --enable-use-sockets |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
36 |
CONFIGURE_OPTIONS += --enable-ipv4-pktinfo |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
37 |
|
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
38 |
CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
39 |
CONFIGURE_ENV += CPPFLAGS="-I$(BUILD_DIR_$(BITS))/bind/include" |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
40 |
|
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
41 |
# ISC configures a bind library during the build process so we need to make |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
42 |
# sure the build environment is set up for the configure call |
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
43 |
COMPONENT_BUILD_ENV += CC=$(CC) CFLAGS="$(CFLAGS)" |
280
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
44 |
|
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
45 |
build: $(BUILD_32) |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
46 |
|
505
064bc3aa72d4
2314 bring isc-dhcp updates into illumos-userland from userland-gate
Gary Gendel <gary@genashor.com>
parents:
280
diff
changeset
|
47 |
install: $(INSTALL_32) $(PROTO_DIR)/dhcpd.leases |
280
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
48 |
|
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
49 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
50 |
|
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
51 |
test: build |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
52 |
@cd $(BUILD_DIR_32); $(MAKE) check |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
53 |
|
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
54 |
$(PROTO_DIR)/dhcpd.leases: $(INSTALL_32) |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
55 |
$(TOUCH) $@ |
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
56 |
|
c0dae1e3ca2f
PSARC 2011/043 Import ISC DHCP
Rishi Srivatsavai <Rishi.Srivatsavai@oracle.com>
parents:
diff
changeset
|
57 |
include ../../make-rules/depend.mk |