head	1.2;
access;
symbols
	perseant-exfatfs-base-20250801:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.6
	perseant-exfatfs-base:1.2
	netbsd-8-3-RELEASE:1.1.1.1
	netbsd-9-4-RELEASE:1.1.1.1.20.2
	netbsd-9-3-RELEASE:1.1.1.1.20.2
	cjep_sun2x:1.2.0.4
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.1.1.1.20.2
	cjep_staticlib_x:1.2.0.2
	cjep_staticlib_x-base:1.2
	netbsd-9-1-RELEASE:1.1.1.1.20.2
	phil-wifi-20200421:1.2
	phil-wifi-20200411:1.2
	phil-wifi-20200406:1.2
	netbsd-8-2-RELEASE:1.1.1.1
	netbsd-9-0-RELEASE:1.1.1.1.20.2
	netbsd-9-0-RC2:1.1.1.1.20.2
	netbsd-9-0-RC1:1.1.1.1.20.2
	dhcpcd-8-0-4:1.1.1.2
	dhcpcd-8-0-3:1.1.1.1
	netbsd-9:1.1.1.1.0.20
	netbsd-9-base:1.1.1.1
	dhcpcd-8-0-2:1.1.1.1
	dhcpcd-8-0-1:1.1.1.1
	dhcpcd-8-0-0:1.1.1.1
	dhcpcd-7-2-3a:1.1.1.1
	phil-wifi-20190609:1.1.1.1
	netbsd-8-1-RELEASE:1.1.1.1
	netbsd-8-1-RC1:1.1.1.1
	dhcpcd-7-2-2:1.1.1.1
	dhcpcd-7-2-1:1.1.1.1
	dhcpcd-7-2-0:1.1.1.1
	dhcpcd-7-1-1:1.1.1.1
	pgoyette-compat-merge-20190127:1.1.1.1
	pgoyette-compat-20190127:1.1.1.1
	dhcpcd-7-1-0:1.1.1.1
	pgoyette-compat-20190118:1.1.1.1
	pgoyette-compat-1226:1.1.1.1
	pgoyette-compat-1126:1.1.1.1
	pgoyette-compat-1020:1.1.1.1
	pgoyette-compat-0930:1.1.1.1
	pgoyette-compat-0906:1.1.1.1
	netbsd-7-2-RELEASE:1.1.1.1.18.2
	dhcpcd-7-0-8:1.1.1.1
	pgoyette-compat-0728:1.1.1.1
	netbsd-7:1.1.1.1.0.18
	dhcpcd-7-0-7:1.1.1.1
	netbsd-8-0-RELEASE:1.1.1.1
	phil-wifi:1.1.1.1.0.16
	phil-wifi-base:1.1.1.1
	pgoyette-compat-0625:1.1.1.1
	netbsd-8-0-RC2:1.1.1.1
	dhcpcd-7-0-6:1.1.1.1
	dhcpcd-7-0-5b:1.1.1.1
	dhcpcd-7-0-5a:1.1.1.1
	dhcpcd-7-0-5:1.1.1.1
	pgoyette-compat-0521:1.1.1.1
	dhcpcd-7-0-4:1.1.1.1
	pgoyette-compat-0502:1.1.1.1
	pgoyette-compat-0422:1.1.1.1
	netbsd-8-0-RC1:1.1.1.1
	pgoyette-compat-0415:1.1.1.1
	pgoyette-compat-0407:1.1.1.1
	dhcpcd-7-0-3:1.1.1.1
	pgoyette-compat-0330:1.1.1.1
	dhcpcd-7-0-2:1.1.1.1
	pgoyette-compat-0322:1.1.1.1
	pgoyette-compat-0315:1.1.1.1
	pgoyette-compat:1.1.1.1.0.14
	pgoyette-compat-base:1.1.1.1
	dhcpcd-7-0-1:1.1.1.1
	dhcpcd-7-0-0:1.1.1.1
	dhcpcd-7-0-0-rc4:1.1.1.1
	matt-nb8-mediatek:1.1.1.1.0.12
	matt-nb8-mediatek-base:1.1.1.1
	dhcpcd-7-0-0-rc3:1.1.1.1
	dhcpcd-7-0-0-rc2:1.1.1.1
	perseant-stdc-iso10646:1.1.1.1.0.10
	perseant-stdc-iso10646-base:1.1.1.1
	netbsd-8:1.1.1.1.0.8
	netbsd-8-base:1.1.1.1
	prg-localcount2-base3:1.1.1.1
	prg-localcount2-base2:1.1.1.1
	dhcpcd-7-0-0-rc1:1.1.1.1
	prg-localcount2-base1:1.1.1.1
	prg-localcount2:1.1.1.1.0.6
	prg-localcount2-base:1.1.1.1
	pgoyette-localcount:1.1.1.1.0.4
	pgoyette-localcount-20170426:1.1.1.1
	bouyer-socketcan:1.1.1.1.0.2
	bouyer-socketcan-base1:1.1.1.1
	dhcpcd-7-0-0-beta3:1.1.1.1
	dhcpcd-7-0-0-beta2:1.1.1.1
	dhcpcd-7-0-0-beta1:1.1.1.1
	roy:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2019.09.13.11.01.50;	author roy;	state dead;
branches;
next	1.1;
commitid	JTX7G9icenLTbQCB;

1.1
date	2017.03.31.20.51.16;	author roy;	state Exp;
branches
	1.1.1.1;
next	;
commitid	2iSri9mccyHffKLz;

1.1.1.1
date	2017.03.31.20.51.16;	author roy;	state Exp;
branches
	1.1.1.1.2.1
	1.1.1.1.4.1
	1.1.1.1.16.1
	1.1.1.1.18.1
	1.1.1.1.20.1;
next	1.1.1.2;
commitid	2iSri9mccyHffKLz;

1.1.1.2
date	2019.09.04.13.27.50;	author roy;	state Exp;
branches;
next	;
commitid	KEvLdUpWYb0ehHBB;

1.1.1.1.2.1
date	2017.03.31.20.51.16;	author roy;	state dead;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2017.03.31.20.51.17;	author roy;	state Exp;
branches;
next	;

1.1.1.1.4.1
date	2017.03.31.20.51.16;	author pgoyette;	state dead;
branches;
next	1.1.1.1.4.2;
commitid	ojV02aOSdzvBqZOz;

1.1.1.1.4.2
date	2017.04.26.02.52.23;	author pgoyette;	state Exp;
branches;
next	;
commitid	ojV02aOSdzvBqZOz;

1.1.1.1.16.1
date	2020.04.13.07.45.58;	author martin;	state dead;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.1.1.1.18.1
date	2017.03.31.20.51.16;	author martin;	state dead;
branches;
next	1.1.1.1.18.2;
commitid	HmTKhyRj9OTCmLLA;

1.1.1.1.18.2
date	2018.07.27.10.43.20;	author martin;	state Exp;
branches;
next	;
commitid	HmTKhyRj9OTCmLLA;

1.1.1.1.20.1
date	2019.09.05.08.56.55;	author martin;	state Exp;
branches;
next	1.1.1.1.20.2;
commitid	n3LQXHCBRIxtKNBB;

1.1.1.1.20.2
date	2019.10.12.14.44.32;	author martin;	state dead;
branches;
next	;
commitid	PQET3nQkMBRStAGB;


desc
@@


1.2
log
@Sync
@
text
@TOP?=	../
include ${TOP}/iconfig.mk

PROG=		dhcpcd-run-hooks
BINDIR=		${LIBEXECDIR}
CLEANFILES=	dhcpcd-run-hooks
MAN8=		dhcpcd-run-hooks.8
CLEANFILES+=	dhcpcd-run-hooks.8

SCRIPTSDIR=	${HOOKDIR}
SCRIPTS=	01-test 02-dump
SCRIPTS+=	20-resolv.conf
SCRIPTS+=	30-hostname
SCRIPTS+=	${HOOKSCRIPTS}

# Some hooks should not be installed by default
FILESDIR=	${DATADIR}/dhcpcd/hooks
FILES=		10-wpa_supplicant
FILES+=		15-timezone
FILES+=		29-lookup-hostname
FILES+=		${EGHOOKSCRIPTS}

.SUFFIXES:	.in

.in: Makefile ${TOP}/config.mk
	${SED} ${SED_RUNDIR} ${SED_DBDIR} ${SED_LIBDIR} ${SED_HOOKDIR} \
		${SED_SYS} ${SED_SCRIPT} ${SED_DATADIR} \
		${SED_SERVICEEXISTS} ${SED_SERVICECMD} ${SED_SERVICESTATUS} \
		${SED_STATUSARG} \
		-e 's:@@YPDOMAIN_DIR@@:${YPDOMAIN_DIR}:g' \
		-e 's:@@YPDOMAIN_SUFFIX@@:${YPDOMAIN_SUFFIX}:g' \
		$< > $@@

all: ${PROG} ${MAN8} ${SCRIPTS} ${EGHOOKSCRIPTS}

clean:
	rm -f ${CLEANFILES} 50-ypbind

depend:

proginstall: ${PROG} ${HOOKSCRIPTS}
	${INSTALL} -d ${DESTDIR}${BINDIR}
	${INSTALL} -m ${BINMODE} ${PROG} ${DESTDIR}${BINDIR}
	${INSTALL} -d ${DESTDIR}${SCRIPTSDIR}
	${INSTALL} -m ${NONBINMODE} ${SCRIPTS} ${DESTDIR}${SCRIPTSDIR}
	# We need to remove the old MTU change script if we at all can.
	rm -f ${DESTDIR}${SCRIPTSDIR}/10-mtu

eginstall: ${EGHOOKSCRIPTS}
	${INSTALL} -d ${DESTDIR}${FILESDIR}
	${INSTALL} -m ${NONBINMODE} ${FILES} ${DESTDIR}${FILESDIR}

maninstall: ${MAN8}
	${INSTALL} -d ${DESTDIR}${MANDIR}/man8
	${INSTALL} -m ${MANMODE} ${MAN8} ${DESTDIR}${MANDIR}/man8

install: proginstall eginstall maninstall

import: ${HOOKSCRIPTS}
	${INSTALL} -d /tmp/${DISTPREFIX}/dhcpcd-hooks
	${INSTALL} -m ${NONBINMODE} ${SCRIPTS} /tmp/${DISTPREFIX}/dhcpcd-hooks
	${INSTALL} -m ${NONBINMODE} ${FILES} /tmp/${DISTPREFIX}/dhcpcd-hooks

include ${TOP}/Makefile.inc
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Import dhcpcd-7.0.0-beta. Changes from prior version include:

  *  source file locations reworked:
       dhcpcd source is in src
       dhcpcd hooks are in hooks
       compat is in compat
  *  README split into README.md and BUILDING.md
  *  internal routing is now protocol agnostic
  *  avoid using __packed and use compile time asserts instead
  *  addresses some alignment issues
  *  disable some ARP code on kernels which support RFC5227
  *  BSD IPv6 kernel settings are now updated to reflect dhcpcd config
  *  custom logger has been removed, syslog handles everything
     as such, the --logfile option has been removed as well.
     If you need better/earlier logging, get a better syslogger!
  *  distinfo and signed distinfo files are now available alongside
     release taraballs from this point onwards
  *  default DBDIR has changed from /var/db to /var/db/dhcpcd
  *  /etc/dhcpcd.duid moves to DBDIR/duid
  *  /etc/dhcpcd.secret moves to DBDIR/secret
  *  lease file names have dhcpcd removed from them as they are now
     inside a directory of the same name
  *  fixed issues with reject routes not working on some platforms
  *  improved nl80211 support on Linux for working out the SSID
  *  no longer request NTP by default in dhcpcd.conf
  *  BPF filtering vastly improved so dhcpcd only wake up on
     ARP or DHCP packets destined for it
  *  support for MUD URL (draft-ietf-opsawg-mud-05)
  *  if the kernel isn't doing DAD, don't insist on waiting for it
     to actually do it
  *  fix a potential crash where the DHCP or ARP states could be
     freed before the packet processing loop naturally breaks
  *  removed gateway and nogateway options
     (these can be controlled by the nooption directive which
     works for more than just gateways)
  *  removed ipv6ra_own and ipv6ra_own_default options
     (these can be controled by the ipv6rs/noipv6rs directive)
  *  fix a crash receiving SIGUSR1
@
text
@@


1.1.1.1.16.1
log
@Mostly merge changes from HEAD upto 20200411
@
text
@@


1.1.1.1.20.1
log
@Catch up to current for the following files, requested by roy in ticket #177:

	external/bsd/dhcpcd/dist/BUILDING.md            up to 1.1.1.5
	external/bsd/dhcpcd/dist/Makefile               up to 1.1.1.7
	external/bsd/dhcpcd/dist/Makefile.inc           up to 1.1.1.3
	external/bsd/dhcpcd/dist/configure              up to 1.1.1.15
	external/bsd/dhcpcd/dist/compat/rb.c            up to 1.1.1.2
	external/bsd/dhcpcd/dist/compat/rbtree.h        up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/Makefile         up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/Makefile           up to 1.1.1.6
	external/bsd/dhcpcd/dist/src/bpf.c              up to 1.12
	external/bsd/dhcpcd/dist/src/control.c          up to 1.1.1.8
	external/bsd/dhcpcd/dist/src/control.h          up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/defs.h             up to 1.1.1.27
	external/bsd/dhcpcd/dist/src/dhcp-common.c      up to 1.1.1.8
	external/bsd/dhcpcd/dist/src/dhcp.c             up to 1.25
	external/bsd/dhcpcd/dist/src/dhcp6.c            up to 1.12
	external/bsd/dhcpcd/dist/src/dhcpcd.8.in        up to 1.3
	external/bsd/dhcpcd/dist/src/dhcpcd.c           up to 1.25
	external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in   up to 1.1.1.14
	external/bsd/dhcpcd/dist/src/duid.c             up to 1.1.1.7
	external/bsd/dhcpcd/dist/src/if-bsd.c           up to 1.12
	external/bsd/dhcpcd/dist/src/if-linux.c         up to 1.1.1.16
	external/bsd/dhcpcd/dist/src/if-options.c       up to 1.17
	external/bsd/dhcpcd/dist/src/if-options.h       up to 1.1.1.11
	external/bsd/dhcpcd/dist/src/if-sun.c           up to 1.1.1.11
	external/bsd/dhcpcd/dist/src/if.c               up to 1.1.1.16
	external/bsd/dhcpcd/dist/src/if.h               up to 1.1.1.11
	external/bsd/dhcpcd/dist/src/ipv4.c             up to 1.1.1.17
	external/bsd/dhcpcd/dist/src/ipv4.h             up to 1.1.1.10
	external/bsd/dhcpcd/dist/src/ipv6.c             up to 1.4
	external/bsd/dhcpcd/dist/src/ipv6.h             up to 1.5
	external/bsd/dhcpcd/dist/src/ipv6nd.c           up to 1.11
	external/bsd/dhcpcd/dist/src/ipv6nd.h           up to 1.1.1.11
	external/bsd/dhcpcd/dist/src/route.c            up to 1.1.1.14
	external/bsd/dhcpcd/dist/src/route.h            up to 1.1.1.9
	external/bsd/dhcpcd/dist/src/sa.c               up to 1.1.1.6
	external/bsd/dhcpcd/dist/src/script.c           up to 1.1.1.11

Import dhcpcd-8.0.4 with the following changes:

 * BSD: Fixed router reachability tests
 * inet6: If router unreachable, just solicit a new one
 * inet6: Fon't install a default route if only lladdresses
 * inet6: Stop listening to NA messages
 * BSD: Listen to RTM_MISS messages
 * DHCP: Fix in_cksum for Big Endian
 * DHCP{,6}: Don't log an error if the lease file is truncated

Changes in dhcpcd-8.0.3:

 *  DHCP: Work with IP headers with options
 *  script: Assert that env string are correctly terminated
 *  script: Terminate env strings with no value
 *  script: Don't attempt to use an invalid env string
 *  route: Fix NULL deference error when using static routes
 *  ARP: Respect IFF_NOARP
 *  DHCP: Allow full DHCP support for PtP interfaces, but not by default
 *  control: sends correct buffer to listeners

dhcpcd-ui now correctly reports SSD association and all the addresses
obtained (regression from dhcpcd-7)
@
text
@a63 7
_import-src:
	${INSTALL} -d ${DESTDIR}/hooks
	cp dhcpcd-run-hooks.in dhcpcd-run-hooks.8.in [0-9]* ${DESTDIR}/hooks
	rm ${DESTDIR}/hooks/50-dhcpcd-compat
	if [ `uname` = Linux ]; then rm ${DESTDIR}/hooks/50-ypbind.in; \
		else rm ${DESTDIR}/hooks/50-yp.conf; fi

@


1.1.1.1.20.2
log
@Pull up the following revisions, requested by roy in ticket #302:

	external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c  up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h  up to 1.1.1.2
	external/bsd/dhcpcd/NetBSD-upgrade              up to 1.2
	external/bsd/dhcpcd/dist/compat/crypt/sha256.c  delete
	external/bsd/dhcpcd/dist/compat/crypt/hmac.c    delete
	external/bsd/dhcpcd/dist/compat/crypt/hmac.h    delete
	external/bsd/dhcpcd/dist/compat/crypt/md5.c     delete
	external/bsd/dhcpcd/dist/compat/crypt/md5.h     delete
	external/bsd/dhcpcd/dist/compat/crypt/sha256.h  delete
	external/bsd/dhcpcd/dist/compat/_strtoi.h       delete
	external/bsd/dhcpcd/dist/compat/arc4random.c    delete
	external/bsd/dhcpcd/dist/compat/arc4random.h    delete
	external/bsd/dhcpcd/dist/compat/arc4random_uniform.c delete
	external/bsd/dhcpcd/dist/compat/arc4random_uniform.h delete
	external/bsd/dhcpcd/dist/compat/bitops.h        delete
	external/bsd/dhcpcd/dist/compat/consttime_memequal.h delete
	external/bsd/dhcpcd/dist/compat/dprintf.c       delete
	external/bsd/dhcpcd/dist/compat/dprintf.h       delete
	external/bsd/dhcpcd/dist/compat/endian.h        delete
	external/bsd/dhcpcd/dist/compat/pidfile.c       delete
	external/bsd/dhcpcd/dist/compat/pidfile.h       delete
	external/bsd/dhcpcd/dist/compat/queue.h         delete
	external/bsd/dhcpcd/dist/compat/rb.c            delete
	external/bsd/dhcpcd/dist/compat/rbtree.h        delete
	external/bsd/dhcpcd/dist/compat/reallocarray.c  delete
	external/bsd/dhcpcd/dist/compat/reallocarray.h  delete
	external/bsd/dhcpcd/dist/compat/strlcpy.c       delete
	external/bsd/dhcpcd/dist/compat/strlcpy.h       delete
	external/bsd/dhcpcd/dist/compat/strtoi.c        delete
	external/bsd/dhcpcd/dist/compat/strtoi.h        delete
	external/bsd/dhcpcd/dist/compat/strtou.c        delete
	external/bsd/dhcpcd/dist/.gitignore             delete
	external/bsd/dhcpcd/dist/BUILDING.md            delete
	external/bsd/dhcpcd/dist/Makefile               delete
	external/bsd/dhcpcd/dist/Makefile.inc           delete
	external/bsd/dhcpcd/dist/config-null.mk         delete
	external/bsd/dhcpcd/dist/configure              delete
	external/bsd/dhcpcd/dist/iconfig.mk             delete
	external/bsd/dhcpcd/dist/hooks/Makefile         delete
	external/bsd/dhcpcd/dist/hooks/50-dhcpcd-compat delete
	external/bsd/dhcpcd/dist/hooks/50-yp.conf       delete
	external/bsd/dhcpcd/dist/src/Makefile           delete
	external/bsd/dhcpcd/dist/src/GNUmakefile        delete
	external/bsd/dhcpcd/dist/src/dev.c              delete
	external/bsd/dhcpcd/dist/src/dhcpcd-definitions-small.conf delete
	external/bsd/dhcpcd/dist/src/dhcpcd-definitions.conf delete
	external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c.in delete
	external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h.in delete
	external/bsd/dhcpcd/dist/src/genembedc          delete
	external/bsd/dhcpcd/dist/src/genembedh          delete
	external/bsd/dhcpcd/dist/src/if-linux-wext.c    delete
	external/bsd/dhcpcd/dist/src/if-linux.c         delete
	external/bsd/dhcpcd/dist/src/if-sun.c           delete
	external/bsd/dhcpcd/dist/src/dev/Makefile       delete
	external/bsd/dhcpcd/dist/src/dev/udev.c         delete
	external/bsd/dhcpcd/dist/tests/crypt/.gitignore delete
	external/bsd/dhcpcd/dist/tests/crypt/GNUmakefile delete
	external/bsd/dhcpcd/dist/tests/crypt/Makefile   delete
	external/bsd/dhcpcd/dist/tests/crypt/README.md  delete
	external/bsd/dhcpcd/dist/tests/crypt/run-test.c delete
	external/bsd/dhcpcd/dist/tests/crypt/test.h     delete
	external/bsd/dhcpcd/dist/tests/crypt/test_hmac_md5.c delete
	external/bsd/dhcpcd/dist/tests/Makefile         delete
	external/bsd/dhcpcd/dist/tests/eloop-bench/.gitignore delete
	external/bsd/dhcpcd/dist/tests/eloop-bench/Makefile delete
	external/bsd/dhcpcd/dist/tests/eloop-bench/README.md delete
	external/bsd/dhcpcd/dist/tests/eloop-bench/eloop-bench.c delete
	external/bsd/dhcpcd/dist/src/arp.c              up to 1.1.1.12
	external/bsd/dhcpcd/dist/src/bpf.c              up to 1.13
	external/bsd/dhcpcd/dist/src/bpf.h              up to 1.1.1.7
	external/bsd/dhcpcd/dist/src/common.c           up to 1.1.1.9
	external/bsd/dhcpcd/dist/src/common.h           up to 1.1.1.9
	external/bsd/dhcpcd/dist/src/control.h          up to 1.1.1.6
	external/bsd/dhcpcd/dist/src/defs.h             up to 1.1.1.30
	external/bsd/dhcpcd/dist/src/dhcp-common.c      up to 1.1.1.9
	external/bsd/dhcpcd/dist/src/dhcp-common.h      up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/dhcp.c             up to 1.28
	external/bsd/dhcpcd/dist/src/dhcp.h             up to 1.1.1.11
	external/bsd/dhcpcd/dist/src/dhcp6.c            up to 1.13
	external/bsd/dhcpcd/dist/src/dhcpcd.8.in        up to 1.4
	external/bsd/dhcpcd/dist/src/dhcpcd.c           up to 1.27
	external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in   up to 1.1.1.15
	external/bsd/dhcpcd/dist/src/if-bsd.c           up to 1.14
	external/bsd/dhcpcd/dist/src/if-options.c       up to 1.18
	external/bsd/dhcpcd/dist/src/if.c               up to 1.1.1.17
	external/bsd/dhcpcd/dist/src/if.h               up to 1.1.1.12
	external/bsd/dhcpcd/dist/src/ipv4.c             up to 1.1.1.18
	external/bsd/dhcpcd/dist/src/ipv4.h             up to 1.1.1.11
	external/bsd/dhcpcd/dist/src/ipv4ll.c           up to 1.1.1.10
	external/bsd/dhcpcd/dist/src/ipv4ll.h           up to 1.1.1.8
	external/bsd/dhcpcd/dist/src/ipv6.c             up to 1.5
	external/bsd/dhcpcd/dist/src/ipv6.h             up to 1.6
	external/bsd/dhcpcd/dist/src/ipv6nd.c           up to 1.12
	external/bsd/dhcpcd/dist/src/route.c            up to 1.1.1.15
	external/bsd/dhcpcd/sbin/dhcpcd/Makefile        up to 1.49
	doc/3RDPARTY					modified manually

Import dhcpcd-8.1.0 with the following changes:

 * Fix carrier status after a route socket overflow
 * Allow domain spaced options
 * DHCP: Allow not sending Force Renew Nonce or Reconf Accept
 * IPv4LL: Now passes Apple Bonjour test versions 1.4 and 1.5
 * ARP: Fix a typo and remove pragma (thus working with old gcc)
 * DHCP6: Fix a cosmetic issue with infinite leases
 * DHCP6: SLA 0 and Prefix Len 0 will now add a delegatd /64 address
 * Ignore some virtual interfaces such as Tap and Bridge by default
 * BPF: Move validation logic out of BPF and back into dhcpcd
@
text
@@


1.1.1.2
log
@Import dhcpcd-8.0.4 with the following changes:

 * BSD: Fixed router reachability tests
 * inet6: If router unreachable, just solicit a new one
 * inet6: Fon't install a default route if only lladdresses
 * inet6: Stop listening to NA messages
 * BSD: Listen to RTM_MISS messages
 * DHCP: Fix in_cksum for Big Endian
 * DHCP{,6}: Don't log an error if the lease file is truncated
@
text
@a63 7
_import-src:
	${INSTALL} -d ${DESTDIR}/hooks
	cp dhcpcd-run-hooks.in dhcpcd-run-hooks.8.in [0-9]* ${DESTDIR}/hooks
	rm ${DESTDIR}/hooks/50-dhcpcd-compat
	if [ `uname` = Linux ]; then rm ${DESTDIR}/hooks/50-ypbind.in; \
		else rm ${DESTDIR}/hooks/50-yp.conf; fi

@


1.1.1.1.18.1
log
@file Makefile was added on branch netbsd-7 on 2018-07-27 10:43:20 +0000
@
text
@d1 64
@


1.1.1.1.18.2
log
@Pull up following revision(s) (requested by roy in ticket #1621):

	external/bsd/dhcpcd/dist/compat/crypt/sha256.c  up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/crypt/md5.c     up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/crypt/md5.h     up to 1.1.1.2
	external/bsd/dhcpcd/dist/compat/crypt/sha256.h  up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/crypt/hmac.c    up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/crypt/hmac.h    up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/_strtoi.h       up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/arc4random.c    up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/arc4random.h    up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/arc4random_uniform.c up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/arc4random_uniform.h up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/bitops.h        up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/dprintf.c       up to 1.1.1.2
	external/bsd/dhcpcd/dist/compat/dprintf.h       up to 1.1.1.2
	external/bsd/dhcpcd/dist/compat/endian.h        up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/pidfile.c       up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/pidfile.h       up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/queue.h         up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/reallocarray.c  up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/reallocarray.h  up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/strtoi.c        up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/strtoi.h        up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/strtou.c        up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/strlcpy.c       up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/strlcpy.h       up to 1.1.1.1
	external/bsd/dhcpcd/dist/config-null.mk         up to 1.1.1.1
	external/bsd/dhcpcd/dist/configure              up to 1.1.1.8
	external/bsd/dhcpcd/dist/iconfig.mk             up to 1.1.1.1
	external/bsd/dhcpcd/dist/hooks/01-test          up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/02-dump          up to 1.1.1.1
	external/bsd/dhcpcd/dist/hooks/10-wpa_supplicant up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/15-timezone      up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/20-resolv.conf   up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/29-lookup-hostname up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/30-hostname      up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/50-dhcpcd-compat up to 1.1.1.1
	external/bsd/dhcpcd/dist/hooks/50-ntp.conf      up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/50-yp.conf       up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/50-ypbind.in     up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/Makefile         up to 1.1.1.1
	external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.8.in up to 1.1.1.4
	external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/GNUmakefile        up to 1.1.1.1
	external/bsd/dhcpcd/dist/src/Makefile           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/arp.c              up to 1.1.1.7
	external/bsd/dhcpcd/dist/src/arp.h              up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/auth.c             up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/auth.h             up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/bpf.c              up to 1.7
	external/bsd/dhcpcd/dist/src/bpf.h              up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/common.c           up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/common.h           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/control.c          up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/control.h          up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/defs.h             up to 1.1.1.15
	external/bsd/dhcpcd/dist/src/dev.c              up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/dev.h              up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcp-common.c      up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/dhcp-common.h      up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcp.c             up to 1.11
	external/bsd/dhcpcd/dist/src/dhcp.h             up to 1.1.1.6
	external/bsd/dhcpcd/dist/src/dhcp6.c            up to 1.1.1.12
	external/bsd/dhcpcd/dist/src/dhcp6.h            up to 1.1.1.6
	external/bsd/dhcpcd/dist/src/dhcpcd-definitions-small.conf up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcpcd-definitions.conf up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c.in up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h.in up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcpcd.8.in        up to 1.1.1.10
	external/bsd/dhcpcd/dist/src/dhcpcd.c           up to 1.13
	external/bsd/dhcpcd/dist/src/dhcpcd.conf        up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in   up to 1.1.1.10
	external/bsd/dhcpcd/dist/src/dhcpcd.h           up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/duid.c             up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/duid.h             up to 1.1.1.1
	external/bsd/dhcpcd/dist/src/eloop.c            up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/eloop.h            up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/genembedc          up to 1.1.1.1
	external/bsd/dhcpcd/dist/src/genembedh          up to 1.1.1.1
	external/bsd/dhcpcd/dist/src/if-bsd.c           up to 1.1.1.8
	external/bsd/dhcpcd/dist/src/if-linux-wext.c    up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/if-linux.c         up to 1.1.1.10
	external/bsd/dhcpcd/dist/src/if-options.c       up to 1.10
	external/bsd/dhcpcd/dist/src/if-options.h       up to 1.1.1.7
	external/bsd/dhcpcd/dist/src/if-sun.c           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/if.c               up to 1.1.1.8
	external/bsd/dhcpcd/dist/src/if.h               up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/ipv4.c             up to 1.1.1.9
	external/bsd/dhcpcd/dist/src/ipv4.h             up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/ipv4ll.c           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/ipv4ll.h           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/ipv6.c             up to 1.1.1.11
	external/bsd/dhcpcd/dist/src/ipv6.h             up to 1.1.1.7
	external/bsd/dhcpcd/dist/src/ipv6nd.c           up to 1.1.1.8
	external/bsd/dhcpcd/dist/src/ipv6nd.h           up to 1.1.1.6
	external/bsd/dhcpcd/dist/src/logerr.c           up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/logerr.h           up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/route.c            up to 1.1.1.8
	external/bsd/dhcpcd/dist/src/route.h            up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/sa.c               up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/sa.h               up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/script.c           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/script.h           up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dev/Makefile       up to 1.1.1.1
	external/bsd/dhcpcd/dist/src/dev/udev.c         up to 1.1.1.2
	external/bsd/dhcpcd/dist/tests/crypt/.gitignore up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/crypt/GNUmakefile up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/crypt/Makefile   up to 1.1.1.2
	external/bsd/dhcpcd/dist/tests/crypt/README.md  up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/crypt/run-test.c up to 1.1.1.2
	external/bsd/dhcpcd/dist/tests/crypt/test.h     up to 1.1.1.2
	external/bsd/dhcpcd/dist/tests/crypt/test_hmac_md5.c up to 1.1.1.3
	external/bsd/dhcpcd/dist/tests/Makefile         up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/eloop-bench/.gitignore up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/eloop-bench/Makefile up to 1.1.1.2
	external/bsd/dhcpcd/dist/tests/eloop-bench/README.md up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/eloop-bench/eloop-bench.c up to 1.1.1.3
	external/bsd/dhcpcd/dist/.arcconfig             up to 1.1.1.1
	external/bsd/dhcpcd/dist/.gitignore             up to 1.4
	external/bsd/dhcpcd/dist/BUILDING.md            up to 1.1.1.2
	external/bsd/dhcpcd/dist/LICENSE                up to 1.1.1.2
	external/bsd/dhcpcd/dist/Makefile               up to 1.1.1.5
	external/bsd/dhcpcd/dist/Makefile.inc           up to 1.1.1.2
	external/bsd/dhcpcd/dist/README.md              up to 1.1.1.3
	external/bsd/dhcpcd/dist/bpf-filter.h           delete
	external/bsd/dhcpcd/dist/common.c               delete
	external/bsd/dhcpcd/dist/arp.c                  delete
	external/bsd/dhcpcd/dist/arp.h                  delete
	external/bsd/dhcpcd/dist/auth.c                 delete
	external/bsd/dhcpcd/dist/auth.h                 delete
	external/bsd/dhcpcd/dist/dhcpcd.c               delete
	external/bsd/dhcpcd/dist/control.c              delete
	external/bsd/dhcpcd/dist/common.h               delete
	external/bsd/dhcpcd/dist/config.h               delete
	external/bsd/dhcpcd/dist/dhcp-common.c          delete
	external/bsd/dhcpcd/dist/control.h              delete
	external/bsd/dhcpcd/dist/defs.h                 delete
	external/bsd/dhcpcd/dist/dev.h                  delete
	external/bsd/dhcpcd/dist/dhcpcd-definitions.conf delete
	external/bsd/dhcpcd/dist/dhcp-common.h          delete
	external/bsd/dhcpcd/dist/dhcp.c                 delete
	external/bsd/dhcpcd/dist/dhcp.h                 delete
	external/bsd/dhcpcd/dist/dhcp6.c                delete
	external/bsd/dhcpcd/dist/dhcp6.h                delete
	external/bsd/dhcpcd/dist/dhcpcd-run-hooks.8.in  delete
	external/bsd/dhcpcd/dist/dhcpcd-embedded.c      delete
	external/bsd/dhcpcd/dist/dhcpcd.8.in            delete
	external/bsd/dhcpcd/dist/dhcpcd-embedded.c.in   delete
	external/bsd/dhcpcd/dist/dhcpcd-embedded.h      delete
	external/bsd/dhcpcd/dist/dhcpcd-embedded.h.in   delete
	external/bsd/dhcpcd/dist/ipv4.c                 delete
	external/bsd/dhcpcd/dist/if.c                   delete
	external/bsd/dhcpcd/dist/dhcpcd-run-hooks.in    delete
	external/bsd/dhcpcd/dist/dhcpcd.h               delete
	external/bsd/dhcpcd/dist/dhcpcd.conf            delete
	external/bsd/dhcpcd/dist/dhcpcd.conf.5.in       delete
	external/bsd/dhcpcd/dist/duid.c                 delete
	external/bsd/dhcpcd/dist/duid.h                 delete
	external/bsd/dhcpcd/dist/eloop.c                delete
	external/bsd/dhcpcd/dist/eloop.h                delete
	external/bsd/dhcpcd/dist/if-bsd.c               delete
	external/bsd/dhcpcd/dist/if-options.c           delete
	external/bsd/dhcpcd/dist/if-options.h           delete
	external/bsd/dhcpcd/dist/if.h                   delete
	external/bsd/dhcpcd/dist/crypt/hmac_md5.c       delete
	external/bsd/dhcpcd/dist/crypt/crypt.h          delete
	external/bsd/dhcpcd/dist/ipv4.h                 delete
	external/bsd/dhcpcd/dist/ipv4ll.c               delete
	external/bsd/dhcpcd/dist/ipv6.c                 delete
	external/bsd/dhcpcd/dist/ipv4ll.h               delete
	external/bsd/dhcpcd/dist/ipv6.h                 delete
	external/bsd/dhcpcd/dist/ipv6nd.c               delete
	external/bsd/dhcpcd/dist/ipv6nd.h               delete
	external/bsd/dhcpcd/dist/script.c               delete
	external/bsd/dhcpcd/dist/script.h               delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/15-timezone delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/01-test   delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/02-dump   delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/10-mtu    delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/10-wpa_supplicant delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/20-resolv.conf delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/29-lookup-hostname delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/30-hostname delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/50-ntp.conf delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/50-ypbind delete
	usr.sbin/postinstall/postinstall: revision 1.211-1.213
	etc/rc.d/dhcpcd					upto 1.5
	doc/3RDPARTY					manual edit

Import dhcpcd-7.0.7.
Adjust postinstal and rc file.
@
text
@a0 64
TOP?=	../
include ${TOP}/iconfig.mk

PROG=		dhcpcd-run-hooks
BINDIR=		${LIBEXECDIR}
CLEANFILES=	dhcpcd-run-hooks
MAN8=		dhcpcd-run-hooks.8
CLEANFILES+=	dhcpcd-run-hooks.8

SCRIPTSDIR=	${HOOKDIR}
SCRIPTS=	01-test 02-dump
SCRIPTS+=	20-resolv.conf
SCRIPTS+=	30-hostname
SCRIPTS+=	${HOOKSCRIPTS}

# Some hooks should not be installed by default
FILESDIR=	${DATADIR}/dhcpcd/hooks
FILES=		10-wpa_supplicant
FILES+=		15-timezone
FILES+=		29-lookup-hostname
FILES+=		${EGHOOKSCRIPTS}

.SUFFIXES:	.in

.in: Makefile ${TOP}/config.mk
	${SED} ${SED_RUNDIR} ${SED_DBDIR} ${SED_LIBDIR} ${SED_HOOKDIR} \
		${SED_SYS} ${SED_SCRIPT} ${SED_DATADIR} \
		${SED_SERVICEEXISTS} ${SED_SERVICECMD} ${SED_SERVICESTATUS} \
		${SED_STATUSARG} \
		-e 's:@@YPDOMAIN_DIR@@:${YPDOMAIN_DIR}:g' \
		-e 's:@@YPDOMAIN_SUFFIX@@:${YPDOMAIN_SUFFIX}:g' \
		$< > $@@

all: ${PROG} ${MAN8} ${SCRIPTS} ${EGHOOKSCRIPTS}

clean:
	rm -f ${CLEANFILES} 50-ypbind

depend:

proginstall: ${PROG} ${HOOKSCRIPTS}
	${INSTALL} -d ${DESTDIR}${BINDIR}
	${INSTALL} -m ${BINMODE} ${PROG} ${DESTDIR}${BINDIR}
	${INSTALL} -d ${DESTDIR}${SCRIPTSDIR}
	${INSTALL} -m ${NONBINMODE} ${SCRIPTS} ${DESTDIR}${SCRIPTSDIR}
	# We need to remove the old MTU change script if we at all can.
	rm -f ${DESTDIR}${SCRIPTSDIR}/10-mtu

eginstall: ${EGHOOKSCRIPTS}
	${INSTALL} -d ${DESTDIR}${FILESDIR}
	${INSTALL} -m ${NONBINMODE} ${FILES} ${DESTDIR}${FILESDIR}

maninstall: ${MAN8}
	${INSTALL} -d ${DESTDIR}${MANDIR}/man8
	${INSTALL} -m ${MANMODE} ${MAN8} ${DESTDIR}${MANDIR}/man8

install: proginstall eginstall maninstall

import: ${HOOKSCRIPTS}
	${INSTALL} -d /tmp/${DISTPREFIX}/dhcpcd-hooks
	${INSTALL} -m ${NONBINMODE} ${SCRIPTS} /tmp/${DISTPREFIX}/dhcpcd-hooks
	${INSTALL} -m ${NONBINMODE} ${FILES} /tmp/${DISTPREFIX}/dhcpcd-hooks

include ${TOP}/Makefile.inc
@


1.1.1.1.2.1
log
@file Makefile was added on branch bouyer-socketcan on 2017-03-31 20:51:17 +0000
@
text
@d1 64
@


1.1.1.1.2.2
log
@2552809
@
text
@a0 64
TOP?=	../
include ${TOP}/iconfig.mk

PROG=		dhcpcd-run-hooks
BINDIR=		${LIBEXECDIR}
CLEANFILES=	dhcpcd-run-hooks
MAN8=		dhcpcd-run-hooks.8
CLEANFILES+=	dhcpcd-run-hooks.8

SCRIPTSDIR=	${HOOKDIR}
SCRIPTS=	01-test 02-dump
SCRIPTS+=	20-resolv.conf
SCRIPTS+=	30-hostname
SCRIPTS+=	${HOOKSCRIPTS}

# Some hooks should not be installed by default
FILESDIR=	${DATADIR}/dhcpcd/hooks
FILES=		10-wpa_supplicant
FILES+=		15-timezone
FILES+=		29-lookup-hostname
FILES+=		${EGHOOKSCRIPTS}

.SUFFIXES:	.in

.in: Makefile ${TOP}/config.mk
	${SED} ${SED_RUNDIR} ${SED_DBDIR} ${SED_LIBDIR} ${SED_HOOKDIR} \
		${SED_SYS} ${SED_SCRIPT} ${SED_DATADIR} \
		${SED_SERVICEEXISTS} ${SED_SERVICECMD} ${SED_SERVICESTATUS} \
		${SED_STATUSARG} \
		-e 's:@@YPDOMAIN_DIR@@:${YPDOMAIN_DIR}:g' \
		-e 's:@@YPDOMAIN_SUFFIX@@:${YPDOMAIN_SUFFIX}:g' \
		$< > $@@

all: ${PROG} ${MAN8} ${SCRIPTS} ${EGHOOKSCRIPTS}

clean:
	rm -f ${CLEANFILES} 50-ypbind

depend:

proginstall: ${PROG} ${HOOKSCRIPTS}
	${INSTALL} -d ${DESTDIR}${BINDIR}
	${INSTALL} -m ${BINMODE} ${PROG} ${DESTDIR}${BINDIR}
	${INSTALL} -d ${DESTDIR}${SCRIPTSDIR}
	${INSTALL} -m ${NONBINMODE} ${SCRIPTS} ${DESTDIR}${SCRIPTSDIR}
	# We need to remove the old MTU change script if we at all can.
	rm -f ${DESTDIR}${SCRIPTSDIR}/10-mtu

eginstall: ${EGHOOKSCRIPTS}
	${INSTALL} -d ${DESTDIR}${FILESDIR}
	${INSTALL} -m ${NONBINMODE} ${FILES} ${DESTDIR}${FILESDIR}

maninstall: ${MAN8}
	${INSTALL} -d ${DESTDIR}${MANDIR}/man8
	${INSTALL} -m ${MANMODE} ${MAN8} ${DESTDIR}${MANDIR}/man8

install: proginstall eginstall maninstall

import: ${HOOKSCRIPTS}
	${INSTALL} -d /tmp/${DISTPREFIX}/dhcpcd-hooks
	${INSTALL} -m ${NONBINMODE} ${SCRIPTS} /tmp/${DISTPREFIX}/dhcpcd-hooks
	${INSTALL} -m ${NONBINMODE} ${FILES} /tmp/${DISTPREFIX}/dhcpcd-hooks

include ${TOP}/Makefile.inc
@


1.1.1.1.4.1
log
@file Makefile was added on branch pgoyette-localcount on 2017-04-26 02:52:23 +0000
@
text
@d1 64
@


1.1.1.1.4.2
log
@Sync with HEAD
@
text
@a0 64
TOP?=	../
include ${TOP}/iconfig.mk

PROG=		dhcpcd-run-hooks
BINDIR=		${LIBEXECDIR}
CLEANFILES=	dhcpcd-run-hooks
MAN8=		dhcpcd-run-hooks.8
CLEANFILES+=	dhcpcd-run-hooks.8

SCRIPTSDIR=	${HOOKDIR}
SCRIPTS=	01-test 02-dump
SCRIPTS+=	20-resolv.conf
SCRIPTS+=	30-hostname
SCRIPTS+=	${HOOKSCRIPTS}

# Some hooks should not be installed by default
FILESDIR=	${DATADIR}/dhcpcd/hooks
FILES=		10-wpa_supplicant
FILES+=		15-timezone
FILES+=		29-lookup-hostname
FILES+=		${EGHOOKSCRIPTS}

.SUFFIXES:	.in

.in: Makefile ${TOP}/config.mk
	${SED} ${SED_RUNDIR} ${SED_DBDIR} ${SED_LIBDIR} ${SED_HOOKDIR} \
		${SED_SYS} ${SED_SCRIPT} ${SED_DATADIR} \
		${SED_SERVICEEXISTS} ${SED_SERVICECMD} ${SED_SERVICESTATUS} \
		${SED_STATUSARG} \
		-e 's:@@YPDOMAIN_DIR@@:${YPDOMAIN_DIR}:g' \
		-e 's:@@YPDOMAIN_SUFFIX@@:${YPDOMAIN_SUFFIX}:g' \
		$< > $@@

all: ${PROG} ${MAN8} ${SCRIPTS} ${EGHOOKSCRIPTS}

clean:
	rm -f ${CLEANFILES} 50-ypbind

depend:

proginstall: ${PROG} ${HOOKSCRIPTS}
	${INSTALL} -d ${DESTDIR}${BINDIR}
	${INSTALL} -m ${BINMODE} ${PROG} ${DESTDIR}${BINDIR}
	${INSTALL} -d ${DESTDIR}${SCRIPTSDIR}
	${INSTALL} -m ${NONBINMODE} ${SCRIPTS} ${DESTDIR}${SCRIPTSDIR}
	# We need to remove the old MTU change script if we at all can.
	rm -f ${DESTDIR}${SCRIPTSDIR}/10-mtu

eginstall: ${EGHOOKSCRIPTS}
	${INSTALL} -d ${DESTDIR}${FILESDIR}
	${INSTALL} -m ${NONBINMODE} ${FILES} ${DESTDIR}${FILESDIR}

maninstall: ${MAN8}
	${INSTALL} -d ${DESTDIR}${MANDIR}/man8
	${INSTALL} -m ${MANMODE} ${MAN8} ${DESTDIR}${MANDIR}/man8

install: proginstall eginstall maninstall

import: ${HOOKSCRIPTS}
	${INSTALL} -d /tmp/${DISTPREFIX}/dhcpcd-hooks
	${INSTALL} -m ${NONBINMODE} ${SCRIPTS} /tmp/${DISTPREFIX}/dhcpcd-hooks
	${INSTALL} -m ${NONBINMODE} ${FILES} /tmp/${DISTPREFIX}/dhcpcd-hooks

include ${TOP}/Makefile.inc
@


