aboutsummaryrefslogtreecommitdiff
path: root/extra/dhcpcd
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-06-05 14:46:24 +0300
committerCem Keylan <cem@ckyln.com>2020-06-05 14:46:24 +0300
commitd10f77b98663ff814fed1ab6bc54ab9649297c80 (patch)
tree371d66ae9e56e69d9c7f06fab7f8ce9dbbdd2bbe /extra/dhcpcd
parent5d327cff92b68ce9c7cdc534fc7b7bbefc607dad (diff)
downloadrepository-d10f77b98663ff814fed1ab6bc54ab9649297c80.tar.gz
dhcpcd: move to extra
Diffstat (limited to 'extra/dhcpcd')
-rwxr-xr-xextra/dhcpcd/build23
-rw-r--r--extra/dhcpcd/checksums3
-rw-r--r--extra/dhcpcd/depends1
-rw-r--r--extra/dhcpcd/files/dhcpcd.run2
-rw-r--r--extra/dhcpcd/patches/fix-common-header.patch10
-rw-r--r--extra/dhcpcd/sources3
-rw-r--r--extra/dhcpcd/version1
7 files changed, 43 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"
diff --git a/extra/dhcpcd/checksums b/extra/dhcpcd/checksums
new file mode 100644
index 00000000..fc3dc686
--- /dev/null
+++ b/extra/dhcpcd/checksums
@@ -0,0 +1,3 @@
+e21e13d581862a07ce6a204b164b8dee0f374bcdb24c4868e7582be82165f42e dhcpcd-9.1.1.tar.gz
+533714c2f3edcd70e47822cb880d8e8ffdba673b10452ea808037ec2714a375c dhcpcd.run
+954aaf3c0182eae030e4df8c85b3e566de6fb97b899433e24f2ab54bd365a105 fix-common-header.patch
diff --git a/extra/dhcpcd/depends b/extra/dhcpcd/depends
new file mode 100644
index 00000000..1f97bc3a
--- /dev/null
+++ b/extra/dhcpcd/depends
@@ -0,0 +1 @@
+linux-headers make
diff --git a/extra/dhcpcd/files/dhcpcd.run b/extra/dhcpcd/files/dhcpcd.run
new file mode 100644
index 00000000..0172d7f8
--- /dev/null
+++ b/extra/dhcpcd/files/dhcpcd.run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec dhcpcd -BM 1>&2
diff --git a/extra/dhcpcd/patches/fix-common-header.patch b/extra/dhcpcd/patches/fix-common-header.patch
new file mode 100644
index 00000000..854892a2
--- /dev/null
+++ b/extra/dhcpcd/patches/fix-common-header.patch
@@ -0,0 +1,10 @@
+--- dhcpcd/src/common.h
++++ dhcpcd/src/common.h
+@@ -31,6 +31,7 @@
+
+ #include <sys/param.h>
+ #include <sys/time.h>
++#include <sys/stat.h>
+ #include <stdint.h>
+ #include <stdio.h>
+
diff --git a/extra/dhcpcd/sources b/extra/dhcpcd/sources
new file mode 100644
index 00000000..d1535310
--- /dev/null
+++ b/extra/dhcpcd/sources
@@ -0,0 +1,3 @@
+https://github.com/rsmarples/dhcpcd/archive/dhcpcd-9.1.1.tar.gz
+files/dhcpcd.run
+patches/fix-common-header.patch
diff --git a/extra/dhcpcd/version b/extra/dhcpcd/version
new file mode 100644
index 00000000..5be13cc7
--- /dev/null
+++ b/extra/dhcpcd/version
@@ -0,0 +1 @@
+9.1.1 1