blob: 83275995af6c08097a4989ee3cf40f44ddb853a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"
|