diff options
author | David P. <megver83@parabola.nu> | 2024-04-06 23:17:49 -0300 |
---|---|---|
committer | David P. <megver83@parabola.nu> | 2024-04-06 23:17:49 -0300 |
commit | 76758ecc5caa154dd1b8155fa6c837f01b3a4134 (patch) | |
tree | ebf25cb5d0f348d83c99250b7474a7fc4338542a | |
parent | 5d5ee6bfbbb9793e2819ad93b54a3ca0d9ed0e8d (diff) |
addpkg: nonsystemd/dhcpcd-openrc 20210505-1
Signed-off-by: David P. <megver83@parabola.nu>
-rw-r--r-- | nonsystemd/dhcpcd-openrc/PKGBUILD | 20 | ||||
-rw-r--r-- | nonsystemd/dhcpcd-openrc/dhcpcd.initd | 19 |
2 files changed, 39 insertions, 0 deletions
diff --git a/nonsystemd/dhcpcd-openrc/PKGBUILD b/nonsystemd/dhcpcd-openrc/PKGBUILD new file mode 100644 index 000000000..067626b2d --- /dev/null +++ b/nonsystemd/dhcpcd-openrc/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: David P. <megver83@parabola.nu> +# Maintainer (Artix): artoo <artoo@artixlinux.org> + +pkgname=dhcpcd-openrc +pkgver=20210505 +pkgrel=1 +pkgdesc="OpenRC dhcpcd init script" +arch=('any') +url="https://gitea.artixlinux.org/artixlinux/packages-openrc" +license=('GPL2') +groups=('openrc-system') +provides=('init-dhcpcd') +conflicts=('init-dhcpcd') +source=("dhcpcd.initd") +sha256sums=('b28359fa2d9ec1a8722e00dd31ed9553658626295ebb182e807390a1dbc4b79b') + +package() { + depends=('openrc' 'dhcpcd') + install -Dm755 "${srcdir}"/dhcpcd.initd "${pkgdir}"/etc/init.d/dhcpcd +} diff --git a/nonsystemd/dhcpcd-openrc/dhcpcd.initd b/nonsystemd/dhcpcd-openrc/dhcpcd.initd new file mode 100644 index 000000000..3be2cd9f1 --- /dev/null +++ b/nonsystemd/dhcpcd-openrc/dhcpcd.initd @@ -0,0 +1,19 @@ +#!/usr/bin/openrc-run +# Copyright 2007-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command=/usr/bin/dhcpcd +#pidfile=/run/dhcpcd/pid +supervisor="supervise-daemon" +command_args_foreground="--nobackground" +command_args=-q +name="DHCP Client Daemon" + +depend() +{ + provide net + need localmount + use logger network + after bootmisc modules + before dns +} |