But I do need init and OpenRC is cool

This commit is contained in:
Mark Vainomaa 2018-11-10 02:58:37 +02:00
parent 81052601b7
commit 736e9e0601
Signed by: mikroskeem
GPG Key ID: 1B3F9523B542D315
3 changed files with 42 additions and 2 deletions

View File

@ -47,5 +47,4 @@ b curl
# Init
b sabotage-kernel-headers
b runit
b eudev
b openrc

31
pkgs/openrc/build.sh Executable file
View File

@ -0,0 +1,31 @@
#!/bin/bash
pkgname="openrc"
pkgver="0.39.2"
src="https://github.com/OpenRC/openrc/archive/${pkgver}.tar.gz"
prepare () {
[ -f "${pkgname}-src.tar.gz" ] || curl -L -o "${pkgname}-src.tar.gz" "${src}"
tar -C "${srcdir}" -xvf "${pkgname}-src.tar.gz"
}
build () {
cd "${srcdir}/openrc-${pkgver}"
for p in "${wd}"/patches/*.patch; do
patch -u -p0 < "${p}"
done
make \
PKG_PREFIX=/usr \
BRANDING=\"GNU/Linux\" \
MKNET=no
}
package () {
cd "${srcdir}/openrc-${pkgver}"
make DESTDIR="${pkgdir}" install
}
. ../common.sh

View File

@ -0,0 +1,10 @@
--- src/rc/broadcast.c 2018-11-10 02:53:10.148102181 +0200
+++ src/rc/broadcast.c 2018-11-10 02:53:12.858143415 +0200
@@ -29,6 +29,7 @@
#include <setjmp.h>
#include <paths.h>
#include <sys/utsname.h>
+#include <utmp.h>
#include "broadcast.h"
#include "helpers.h"