From 736e9e0601baaa4d163868f93d1c894e5dfb886e Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Sat, 10 Nov 2018 02:58:37 +0200 Subject: [PATCH] But I do need init and OpenRC is cool --- pkgs/build-all.sh | 3 +-- pkgs/openrc/build.sh | 31 ++++++++++++++++++++++++ pkgs/openrc/patches/utmp-macro-fix.patch | 10 ++++++++ 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100755 pkgs/openrc/build.sh create mode 100644 pkgs/openrc/patches/utmp-macro-fix.patch diff --git a/pkgs/build-all.sh b/pkgs/build-all.sh index 65ba67c..f554a5f 100755 --- a/pkgs/build-all.sh +++ b/pkgs/build-all.sh @@ -47,5 +47,4 @@ b curl # Init b sabotage-kernel-headers -b runit -b eudev +b openrc diff --git a/pkgs/openrc/build.sh b/pkgs/openrc/build.sh new file mode 100755 index 0000000..c860974 --- /dev/null +++ b/pkgs/openrc/build.sh @@ -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 diff --git a/pkgs/openrc/patches/utmp-macro-fix.patch b/pkgs/openrc/patches/utmp-macro-fix.patch new file mode 100644 index 0000000..ef22edb --- /dev/null +++ b/pkgs/openrc/patches/utmp-macro-fix.patch @@ -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 + #include + #include ++#include + + #include "broadcast.h" + #include "helpers.h"