openbsd-ports/net/dhcpcd/Makefile
tb 78fa7ab8dc net/dhcpcd: fix a regression introduced in 9.4.0
Once every few minutes dhcpcd prints two lines into /var/log/messages:

dhcpcd[89340]: make_env: Undefined error: 0
dhcpcd[89340]: script_runreason: Undefined error: 0

Apparently OpenBSD allows interfaces with the same priority number whereas
NetBSD doesn't.  This would break the ordering used in the routes tree and
RB-tree insertion would fail.  The upstream fix sets errno to make the log
messages more meaningful and fixes RB-tree insertion. It also plugs a leak
in this error path.

Fix from https://roy.marples.name/archives/dhcpcd-discuss/0003426.html

ok sthen
2021-01-16 23:35:47 +00:00

35 lines
753 B
Makefile

# $OpenBSD: Makefile,v 1.89 2021/01/16 23:35:47 tb Exp $
COMMENT= DHCPv4/IPv4LL/IPv6RS/DHCPv6 quad stack client
DISTNAME= dhcpcd-9.4.0
REVISION= 0
EPOCH= 0
CATEGORIES= net
EXTRACT_SUFX= .tar.xz
HOMEPAGE= https://roy.marples.name/projects/dhcpcd
# BSD-2
PERMIT_PACKAGE= Yes
# uses pledge()
WANTLIB += c
MAINTAINER= Stuart Henderson <stu.ports@spacehopper.org>
MASTER_SITES= https://roy.marples.name/downloads/dhcpcd/ \
ftp://roy.marples.name/pub/dhcpcd/
CONFIGURE_STYLE= simple
CONFIGURE_ARGS= --enable-privsep \
--privsepuser=_dhcpcd \
--prefix='${PREFIX}' \
--sysconfdir='${SYSCONFDIR}' \
--mandir='${PREFIX}/man' \
--localstatedir='${LOCALSTATEDIR}'
FAKE_FLAGS= SYSCONFDIR=${PREFIX}/share/examples/dhcpcd
.include <bsd.port.mk>