update to dhcpcd-9.1.1.

dhcpcd now uses pledge(), there are some articles with findings from the
process that may be of interest to readers:

https://roy.marples.name/blog/capsicum_vs_pledge.html
https://roy.marples.name/blog/capsicum_vs_pledge_part2.html

port change: move the homedir for the @newuser to /var/empty now that
dhcpcd no longer requires files inside the chroot directory.
This commit is contained in:
sthen 2020-06-04 13:45:11 +00:00
parent ba9ac0c8ed
commit 9e317abcca
3 changed files with 9 additions and 11 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.74 2020/06/03 20:54:28 sthen Exp $
# $OpenBSD: Makefile,v 1.75 2020/06/04 13:45:11 sthen Exp $
COMMENT= DHCPv4/IPv4LL/IPv6RS/DHCPv6 quad stack client
DISTNAME= dhcpcd-9.0.2
REVISION= 1
DISTNAME= dhcpcd-9.1.1
CATEGORIES= net
EXTRACT_SUFX= .tar.xz
@ -13,6 +12,7 @@ HOMEPAGE= https://roy.marples.name/projects/dhcpcd
# BSD-2
PERMIT_PACKAGE= Yes
# uses pledge()
WANTLIB += c
MAINTAINER= Stuart Henderson <sthen@openbsd.org>

View File

@ -1,2 +1,2 @@
SHA256 (dhcpcd-9.0.2.tar.xz) = 9uny/Kf1669nkV/y/2YSLuwOestJDzyBZ4HWXMtd0SE=
SIZE (dhcpcd-9.0.2.tar.xz) = 244800
SHA256 (dhcpcd-9.1.1.tar.xz) = u3QpEb4fZg20KnMjrMeTtYf0Z8XeW3GGc1wW0gIEc30=
SIZE (dhcpcd-9.1.1.tar.xz) = 246084

View File

@ -1,7 +1,6 @@
@comment $OpenBSD: PLIST,v 1.13 2020/06/03 20:54:28 sthen Exp $
@comment $OpenBSD: PLIST,v 1.14 2020/06/04 13:45:11 sthen Exp $
@newgroup _dhcpcd:846
@newuser _dhcpcd:846:_dhcpcd:daemon:dhcpcd user:/var/dhcpcd:/sbin/nologin
@extraunexec rm ${LOCALSTATEDIR}/db/dhcpcd/*
@newuser _dhcpcd:846:_dhcpcd:daemon:dhcpcd user:/var/empty:/sbin/nologin
@owner root
@group wheel
@sample /var/dhcpcd/
@ -33,7 +32,6 @@ share/examples/dhcpcd/dhcpcd.conf
@sample ${LOCALSTATEDIR}/db/dhcpcd/
@comment handle DUID file move for a smoother transition to 7.0
@exec-update [[ ! -f ${LOCALSTATEDIR}/db/dhcpcd/duid ]] && [[ -r ${SYSCONFDIR}/dhcpcd.duid ]] && cp ${SYSCONFDIR}/dhcpcd.duid ${LOCALSTATEDIR}/db/dhcpcd/duid; true
@comment fix dir ownership - 9.x starts using privsep
@comment fix dir ownership for upgrades from before privsep was added in 9.0
@exec-update [[ -d ${LOCALSTATEDIR}/db/dhcpcd ]] && chown -R _dhcpcd:_dhcpcd ${LOCALSTATEDIR}/db/dhcpcd
@comment warn if the user installed the package in the short window when this was set to /var/empty
@exec-update getent passwd _dhcpcd | grep -q /var/empty && echo Please update _dhcpcd home directory to /var/dhcpcd. || true
@exec-update getent passwd _dhcpcd | grep -q /var/dhcpcd && usermod -d /var/empty _dhcpcd || true