From 93517a69ff0b5eae472086fd8718a326a0082e68 Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Sat, 12 Sep 2020 11:38:57 -0700 Subject: [PATCH] dhcpcd: make privsep a build option --- srcpkgs/dhcpcd/template | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/srcpkgs/dhcpcd/template b/srcpkgs/dhcpcd/template index 89da9d503bf..4bedf20ab84 100644 --- a/srcpkgs/dhcpcd/template +++ b/srcpkgs/dhcpcd/template @@ -1,10 +1,10 @@ # Template file for 'dhcpcd' pkgname=dhcpcd version=9.2.0 -revision=1 +revision=2 build_style=configure make_check_target=test -configure_args="--prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --rundir=/run/dhcpcd --privsepuser=_dhcpcd" +configure_args="--prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --rundir=/run/dhcpcd" hostmakedepends="ntp pkg-config" makedepends="eudev-libudev-devel" short_desc="RFC2131 compliant DHCP client" @@ -15,9 +15,15 @@ distfiles="https://roy.marples.name/downloads/dhcpcd/dhcpcd-${version}.tar.xz" checksum=fcb2d19672d445bbfd38678fdee4f556ef967a3ea6bd81092d10545df2cb9666 lib32disabled=yes conf_files=/etc/dhcpcd.conf -# privsep -system_accounts="_dhcpcd" -_dhcpcd_homedir="/var/db/dhcpcd" + +build_options="privsep" +build_options_default="privsep" + +if [ "$build_option_privsep" ]; then + configure_args+=" --privsepuser=_dhcpcd" + system_accounts="_dhcpcd" + _dhcpcd_homedir="/var/db/dhcpcd" +fi post_install() { vsv dhcpcd