From d10f77b98663ff814fed1ab6bc54ab9649297c80 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 5 Jun 2020 14:46:24 +0300 Subject: dhcpcd: move to extra --- extra/dhcpcd/build | 23 +++++++++++++++++++++++ extra/dhcpcd/checksums | 3 +++ extra/dhcpcd/depends | 1 + extra/dhcpcd/files/dhcpcd.run | 2 ++ extra/dhcpcd/patches/fix-common-header.patch | 10 ++++++++++ extra/dhcpcd/sources | 3 +++ extra/dhcpcd/version | 1 + 7 files changed, 43 insertions(+) create mode 100755 extra/dhcpcd/build create mode 100644 extra/dhcpcd/checksums create mode 100644 extra/dhcpcd/depends create mode 100644 extra/dhcpcd/files/dhcpcd.run create mode 100644 extra/dhcpcd/patches/fix-common-header.patch create mode 100644 extra/dhcpcd/sources create mode 100644 extra/dhcpcd/version (limited to 'extra/dhcpcd') 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 + #include ++#include + #include + #include + 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 -- cgit v1.2.3