Date: Mon, 4 May 2020 15:03:58 +0000 (UTC) From: Ben Woods <woodsb02@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r533928 - head/net/dhcpcd-devel Message-ID: <202005041503.044F3wNf050390@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: woodsb02 Date: Mon May 4 15:03:58 2020 New Revision: 533928 URL: https://svnweb.freebsd.org/changeset/ports/533928 Log: net/dhcpcd-devel: Update to 2020-05-01 The chroot used to run operations which did not require root privileges was previously failing as it was defaulting to the home directory of the _dhcp user: /var/empty. With this update, the chroot directory is set to /var/chroot/dhcpcd at build time (during the configure phase). Modified: head/net/dhcpcd-devel/Makefile head/net/dhcpcd-devel/distinfo head/net/dhcpcd-devel/pkg-descr head/net/dhcpcd-devel/pkg-plist Modified: head/net/dhcpcd-devel/Makefile ============================================================================== --- head/net/dhcpcd-devel/Makefile Mon May 4 14:38:44 2020 (r533927) +++ head/net/dhcpcd-devel/Makefile Mon May 4 15:03:58 2020 (r533928) @@ -2,12 +2,12 @@ # $FreeBSD$ PORTNAME= dhcpcd -PORTVERSION= 8.99.0.g20200219 +PORTVERSION= g20200501 CATEGORIES= net MASTER_SITES= https://roy.marples.name/cgit/dhcpcd.git/snapshot/ PKGNAMESUFFIX= -devel DISTNAME= ${PORTNAME}-${GITTAG} -GITTAG= 53848fe +GITTAG= edec47c MAINTAINER= woodsb02@FreeBSD.org COMMENT= DHCP/IPv4LL/IPv6RS/DHCPv6 client @@ -15,20 +15,21 @@ COMMENT= DHCP/IPv4LL/IPv6RS/DHCPv6 client LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -CONFLICTS_INSTALL= dhcpcd-[0-9]* +CONFLICTS_INSTALL= dhcpcd USES= compiler:c11 cpe tar:xz CPE_VENDOR= dhcpcd_project GNU_CONFIGURE= yes CONFIGURE_ARGS= --datadir=${PREFIX}/share/examples \ - --privsepuser="_dhcp" + --privsepuser="_dhcp" \ + --chrootdir="${CHROOTDIR}" USE_RC_SUBR= dhcpcd +CHROOTDIR= /var/chroot/dhcpcd post-install: ${MV} ${STAGEDIR}${PREFIX}/etc/dhcpcd.conf \ ${STAGEDIR}${PREFIX}/share/examples/dhcpcd @${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/dhcpcd - ${MKDIR} ${STAGEDIR}/var/run/dhcpcd .include <bsd.port.mk> Modified: head/net/dhcpcd-devel/distinfo ============================================================================== --- head/net/dhcpcd-devel/distinfo Mon May 4 14:38:44 2020 (r533927) +++ head/net/dhcpcd-devel/distinfo Mon May 4 15:03:58 2020 (r533928) @@ -1,3 +1,3 @@ -TIMESTAMP = 1582327192 -SHA256 (dhcpcd-53848fe.tar.xz) = 0f1a40d64a190054d3143871acb6c7c240df8137da2f2dc0366a61728192be51 -SIZE (dhcpcd-53848fe.tar.xz) = 244588 +TIMESTAMP = 1588602303 +SHA256 (dhcpcd-edec47c.tar.xz) = baf04e436fe85f7af32a9bdd37f64558157799ff94020a71b354d83abd888151 +SIZE (dhcpcd-edec47c.tar.xz) = 245448 Modified: head/net/dhcpcd-devel/pkg-descr ============================================================================== --- head/net/dhcpcd-devel/pkg-descr Mon May 4 14:38:44 2020 (r533927) +++ head/net/dhcpcd-devel/pkg-descr Mon May 4 15:03:58 2020 (r533928) @@ -2,8 +2,10 @@ dhcpcd is a DHCP/IPv4LL/IPv6RS/DHCPv6 client. It can also act as a network manager, responding to new interfaces, listening for carrier up/down events and managing routes. +dhcpcd-9 includes privilege separation; operations which do not require +root privileges are run in a chroot (/var/chroot/dhcpcd) as the +unprivileged user _dhcp. + This is an experimental version for testing purposes. -Notably this new development version includes privilege separation; -operations which do not require root are run as the user _dhcp. WWW: https://roy.marples.name/projects/dhcpcd Modified: head/net/dhcpcd-devel/pkg-plist ============================================================================== --- head/net/dhcpcd-devel/pkg-plist Mon May 4 14:38:44 2020 (r533927) +++ head/net/dhcpcd-devel/pkg-plist Mon May 4 15:03:58 2020 (r533928) @@ -1,5 +1,4 @@ libexec/dhcpcd-hooks/01-test -libexec/dhcpcd-hooks/02-dump libexec/dhcpcd-hooks/20-resolv.conf libexec/dhcpcd-hooks/30-hostname libexec/dhcpcd-hooks/50-ntp.conf @@ -12,6 +11,4 @@ sbin/dhcpcd %%EXAMPLESDIR%%/hooks/15-timezone %%EXAMPLESDIR%%/hooks/29-lookup-hostname %%EXAMPLESDIR%%/hooks/50-ypbind -@dir(_dhcp,_dhcp,) /var/db/dhcpcd -@dir(_dhcp,_dhcp,) /var/run/dhcpcd @sample %%EXAMPLESDIR%%/dhcpcd.conf etc/dhcpcd.conf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005041503.044F3wNf050390>