From 5d243f327eaeecb52c581491b3903bf0a90ecd80 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 13 Oct 2014 11:52:12 +0200 Subject: [PATCH] dhcpcd: add runit services. --- srcpkgs/dhcpcd/files/dhcpcd-eth0/run | 2 ++ srcpkgs/dhcpcd/files/dhcpcd-eth0/supervise | 1 + srcpkgs/dhcpcd/files/dhcpcd/run | 2 ++ srcpkgs/dhcpcd/files/dhcpcd/supervise | 1 + srcpkgs/dhcpcd/template | 5 ++++- 5 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 srcpkgs/dhcpcd/files/dhcpcd-eth0/run create mode 120000 srcpkgs/dhcpcd/files/dhcpcd-eth0/supervise create mode 100755 srcpkgs/dhcpcd/files/dhcpcd/run create mode 120000 srcpkgs/dhcpcd/files/dhcpcd/supervise diff --git a/srcpkgs/dhcpcd/files/dhcpcd-eth0/run b/srcpkgs/dhcpcd/files/dhcpcd-eth0/run new file mode 100755 index 00000000000..bd8e0f17be4 --- /dev/null +++ b/srcpkgs/dhcpcd/files/dhcpcd-eth0/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec dhcpcd -M -B eth0 diff --git a/srcpkgs/dhcpcd/files/dhcpcd-eth0/supervise b/srcpkgs/dhcpcd/files/dhcpcd-eth0/supervise new file mode 120000 index 00000000000..9a087b7a638 --- /dev/null +++ b/srcpkgs/dhcpcd/files/dhcpcd-eth0/supervise @@ -0,0 +1 @@ +/run/runit/supervise.dhcpd-eth0 \ No newline at end of file diff --git a/srcpkgs/dhcpcd/files/dhcpcd/run b/srcpkgs/dhcpcd/files/dhcpcd/run new file mode 100755 index 00000000000..646eb7b043a --- /dev/null +++ b/srcpkgs/dhcpcd/files/dhcpcd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec dhcpcd -M -B diff --git a/srcpkgs/dhcpcd/files/dhcpcd/supervise b/srcpkgs/dhcpcd/files/dhcpcd/supervise new file mode 120000 index 00000000000..4fe4a00318b --- /dev/null +++ b/srcpkgs/dhcpcd/files/dhcpcd/supervise @@ -0,0 +1 @@ +/run/runit/supervise.dhcpcd \ No newline at end of file diff --git a/srcpkgs/dhcpcd/template b/srcpkgs/dhcpcd/template index 7b35d6a623f..0cde945e5f9 100644 --- a/srcpkgs/dhcpcd/template +++ b/srcpkgs/dhcpcd/template @@ -1,7 +1,8 @@ # Template file for 'dhcpcd' pkgname=dhcpcd version=6.5.0 -revision=1 +revision=2 +replaces="runit-void<20141013_2" lib32disabled=yes build_options="systemd" build_style=configure @@ -22,4 +23,6 @@ post_install() { vinstall ${FILESDIR}/dhcpcd.service 644 usr/lib/systemd/system vinstall ${FILESDIR}/dhcpcd@.service 644 usr/lib/systemd/system fi + vsv dhcpcd + vsv dhcpcd-eth0 }