Skip to content

Commit

Permalink
dhcpcd: make privsep a build option
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronNemo committed Sep 20, 2020
1 parent aeb9b47 commit a6901b0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions srcpkgs/dhcpcd/template
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# 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
$(vopt_if privsep --privsepuser=_dhcpcd)"
hostmakedepends="ntp pkg-config"
makedepends="eudev-libudev-devel"
short_desc="RFC2131 compliant DHCP client"
Expand All @@ -15,10 +17,13 @@ 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"

post_install() {
vsv dhcpcd
vsv dhcpcd-eth0
Expand Down

0 comments on commit a6901b0

Please sign in to comment.