summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/Makefile
blob: 8f257c54e9eba94a0e785b3d1a07713984d0f6c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# $FreeBSD$

DIST_DIR= ${.CURDIR}/../../contrib/isc-dhcp

.PATH: ${DIST_DIR}/client ${DIST_DIR}/common

PROG=	dhclient
SRCS=	clparse.c dhclient.c
SRCS+=	alloc.c bpf.c conflex.c convert.c dispatch.c errwarn.c ethernet.c \
	hash.c icmp.c inet.c inet_addr.c memory.c nit.c options.c packet.c \
	parse.c print.c raw.c socket.c tables.c tree.c upf.c

CFLAGS+= -I${DIST_DIR}/includes -I${DIST_DIR}
CFLAGS+= -DCLIENT_PATH='"PATH=/sbin:/bin:/usr/sbin:/usr/bin"' -Dwarn=dhcp_warn

MAN=	dhclient.conf.5 dhclient.leases.5 dhcp-options.5
MAN+=	dhclient.8 dhclient-script.8

beforeinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
	    ${DIST_DIR}/client/scripts/freebsd \
	    ${DESTDIR}${BINDIR}/dhclient-script

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud