From 00814ce3647b36513bbe345fb0be870fa5e9f366 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 21 Aug 2017 18:09:06 -0500 Subject: user/sysvinit: new package --- user/sysvinit/APKBUILD | 51 ++++++++++++++++++++++++++ user/sysvinit/sysvinit-2.88-posix-header.patch | 10 +++++ user/sysvinit/sysvinit.post-upgrade | 4 ++ 3 files changed, 65 insertions(+) create mode 100644 user/sysvinit/APKBUILD create mode 100644 user/sysvinit/sysvinit-2.88-posix-header.patch create mode 100644 user/sysvinit/sysvinit.post-upgrade (limited to 'user') diff --git a/user/sysvinit/APKBUILD b/user/sysvinit/APKBUILD new file mode 100644 index 000000000..b3079c83c --- /dev/null +++ b/user/sysvinit/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=sysvinit +pkgver=2.88 +pkgrel=0 +pkgdesc="System V-style init programs" +url="https://savannah.nongnu.org/projects/sysvinit" +arch="all" +license="GPL-2.0+" +depends="" +makedepends="linux-headers" +install="sysvinit.post-upgrade" +options="!check" +provides="/sbin/init" +subpackages="$pkgname-doc" +source="http://download.savannah.nongnu.org/releases/sysvinit/sysvinit-${pkgver}dsf.tar.bz2 + sysvinit-2.88-posix-header.patch + " +builddir="$srcdir/sysvinit-${pkgver}dsf" + +prepare() { + cd "$builddir" + default_prepare + + # util-linux + sed -i -r \ + -e '/^(USR)?S?BIN/s:\<(last|lastb|mesg)\>::g' \ + -e '/^MAN[18]/s:\<(last|lastb|mesg)[.][18]\>::g' \ + src/Makefile + + # procps + sed -i -r \ + -e '/\/bin\/pidof/d'\ + -e '/^MAN8/s:\::g' \ + src/Makefile +} + +build() { + cd "$builddir" + export DISTRO="Adélie" + make -C src +} + +package() { + cd "$builddir" + make -C src install ROOT="$pkgdir" + rm "$pkgdir"/usr/bin/lastb || true +} + +sha512sums="0bd8eeb124e84fdfa8e621b05f796804ee69a9076b65f5115826bfa814ac1d5d28d31a5c22ebe77c86a93b2288edf4891adc0afaecc4de656c4ecda8a83807bf sysvinit-2.88dsf.tar.bz2 +27dfe089660a291cbcba06d8564bad11f7fd7c96629e72c2b005562689dc7d8bb479c760e980590906e98423b991ae0acd048713d3bc372174d55ed894abeb3f sysvinit-2.88-posix-header.patch" diff --git a/user/sysvinit/sysvinit-2.88-posix-header.patch b/user/sysvinit/sysvinit-2.88-posix-header.patch new file mode 100644 index 000000000..3d63e434e --- /dev/null +++ b/user/sysvinit/sysvinit-2.88-posix-header.patch @@ -0,0 +1,10 @@ +--- a/src/init.c 2016-06-06 07:54:04.237447068 +0000 ++++ b/src/init.c 2016-06-06 08:17:37.177523978 +0000 +@@ -46,6 +46,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/user/sysvinit/sysvinit.post-upgrade b/user/sysvinit/sysvinit.post-upgrade new file mode 100644 index 000000000..a3eee1243 --- /dev/null +++ b/user/sysvinit/sysvinit.post-upgrade @@ -0,0 +1,4 @@ +#!/bin/sh + +/sbin/telinit U &> /dev/null +return 0 -- cgit v1.2.3-70-g09d2