diff options
author | Cem Keylan <cem@ckyln.com> | 2020-06-05 14:46:24 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-06-05 14:46:24 +0300 |
commit | d10f77b98663ff814fed1ab6bc54ab9649297c80 (patch) | |
tree | 371d66ae9e56e69d9c7f06fab7f8ce9dbbdd2bbe /extra/dhcpcd/build | |
parent | 5d327cff92b68ce9c7cdc534fc7b7bbefc607dad (diff) | |
download | repository-d10f77b98663ff814fed1ab6bc54ab9649297c80.tar.gz |
dhcpcd: move to extra
Diffstat (limited to 'extra/dhcpcd/build')
-rwxr-xr-x | extra/dhcpcd/build | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/extra/dhcpcd/build b/extra/dhcpcd/build new file mode 100755 index 00000000..83275995 --- /dev/null +++ b/extra/dhcpcd/build @@ -0,0 +1,23 @@ +#!/bin/sh -e + +patch -p1 < fix-common-header.patch + +export CFLAGS="$CFLAGS -fPIC" +export LDFLAGS="$LDFLAGS -static" + +./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --rundir=/run \ + --without-udev + +make +make DESTDIR="$1" install + +# Install runit service. +install -Dm755 dhcpcd.run "$1/etc/sv/dhcpcd/run" +ln -s /run/runit/supervise.dhcpcd "$1/etc/sv/dhcpcd/supervise" + +# Install runit service. +install -Dm755 dhcpcd.run "$1/etc/sysmgr/dhcpcd" |