# Derived from NetBSD's Makefile for dhcpcd DISTDIR= ${.CURDIR}/../../contrib/dhcpcd PROG= dhcpcd SRCDIR= ${DISTDIR}/src .PATH: ${SRCDIR} CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR} -I${SRCDIR} -I${DISTDIR} SRCS= common.c control.c dhcpcd.c duid.c eloop.c logerr.c SRCS+= if.c if-options.c route.c sa.c script.c SRCS+= dhcp-common.c dhcpcd-embedded.c SRCS+= if-bsd.c CFLAGS+= -DAUTH SRCS+= auth.c CFLAGS+= -DINET SRCS+= bpf.c dhcp.c ipv4.c CFLAGS+= -DARP -DARPING SRCS+= arp.c CFLAGS+= -DIPV4LL SRCS+= ipv4ll.c CFLAGS+= -DINET6 SRCS+= ipv6.c ipv6nd.c CFLAGS+= -DDHCP6 SRCS+= dhcp6.c CFLAGS+= -DPRIVSEP -DPRIVSEP_USER='"_dhcp"' SRCS+= privsep.c privsep-root.c privsep-inet.c privsep-control.c SRCS+= privsep-bpf.c SRCS+= privsep-bsd.c .PATH: ${DISTDIR}/compat SRCS+= pidfile.c rb.c strtoi.c strtou.c .PATH: ${DISTDIR}/compat/crypt SRCS+= hmac.c # Fully convert to openssl/md5.h and openssl/sha2.h CFLAGS+= -DUSE_PRIVATECRYPTO FLAGS_GROUPS= openssl openssl_FLAGS= -I${_SHLIBDIRPREFIX}/usr/include/priv/openssl openssl_FLAGS+= -DMD5Init=MD5_Init -DMD5Update=MD5_Update -DMD5Final=MD5_Final openssl_FLAGS_FILES= hmac.c ipv6.c CFLAGS+= ${PRIVATELIB_CFLAGS} DPADD= ${LIBCRYPTO} LDADD= -lprivate_crypto LDFLAGS+= ${PRIVATELIB_LDFLAGS} # system directories _SYSCONFDIR= /etc _LIBDIR= /usr/lib _LIBEXECDIR= /usr/libexec _DBDIR= /var/db/dhcpcd _RUNDIR= /var/run/dhcpcd CFLAGS+= -DSYSCONFDIR='"${_SYSCONFDIR}"' \ -DSBINDIR='"${BINDIR}"' \ -DLIBDIR='"${_LIBDIR}"' \ -DLIBEXECDIR='"${_LIBEXECDIR}"' \ -DDBDIR='"${_DBDIR}"' \ -DRUNDIR='"${_RUNDIR}"' _DATADIR= /usr/share/examples _HOOKDIR= ${_LIBEXECDIR}/dhcpcd-hooks MAN= dhcpcd.conf.5 dhcpcd.8 # NOTE: # The configuration file 'dhcpcd.conf' is installed by 'etc/Makefile' # # Hooks # HOOKSRC= ${DISTDIR}/hooks .PATH: ${HOOKSRC} SCRIPTS= dhcpcd-run-hooks SCRIPTSDIR= ${_LIBEXECDIR} MAN+= dhcpcd-run-hooks.8 FILES= 01-test 20-resolv.conf 30-hostname FILESDIR= ${_HOOKDIR} # Example hooks that should not be installed by default .for f in 10-wpa_supplicant 15-timezone 29-lookup-hostname 50-ypbind FILES+= ${f} FILESDIR_${f}= ${_DATADIR}/dhcpcd/hooks .endfor .include