But I do need init and OpenRC is cool
This commit is contained in:
parent
81052601b7
commit
736e9e0601
@ -47,5 +47,4 @@ b curl
|
||||
|
||||
# Init
|
||||
b sabotage-kernel-headers
|
||||
b runit
|
||||
b eudev
|
||||
b openrc
|
||||
|
31
pkgs/openrc/build.sh
Executable file
31
pkgs/openrc/build.sh
Executable 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
|
10
pkgs/openrc/patches/utmp-macro-fix.patch
Normal file
10
pkgs/openrc/patches/utmp-macro-fix.patch
Normal 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"
|
Loading…
Reference in New Issue
Block a user