summaryrefslogtreecommitdiff
path: root/app-admin/jinit
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/jinit')
-rw-r--r--app-admin/jinit/Manifest1
-rw-r--r--app-admin/jinit/files/jinit-0.1.12-gcc43.patch10
-rw-r--r--app-admin/jinit/jinit-0.1.12-r1.ebuild34
-rw-r--r--app-admin/jinit/metadata.xml7
4 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/jinit/Manifest b/app-admin/jinit/Manifest
new file mode 100644
index 00000000000..afb39e1683c
--- /dev/null
+++ b/app-admin/jinit/Manifest
@@ -0,0 +1 @@
+DIST jinit-0.1.12.tar.gz 110745 SHA256 8db7e4cc34fd5f12b1803e910f1a01cffd0d945705467f2190472a8ec78c86b9 SHA512 3428ba2c9bc57f6a1e30d75b9c2b86f597753fdb29e5c748986a3bf90b8189f35b88591dffb8f861b728e7ce08e78c6c5f1780147bfdb5b6a1d5f2128d34db5d WHIRLPOOL 401564708000dd621a228d1caac217b965dff1dec5e48fda658e657e8e27adb41bff8c2bc9c5cc37d12c6336064c50d5cbc4397e4e2350413f6aac671559fbd6
diff --git a/app-admin/jinit/files/jinit-0.1.12-gcc43.patch b/app-admin/jinit/files/jinit-0.1.12-gcc43.patch
new file mode 100644
index 00000000000..c9f6d92fcb0
--- /dev/null
+++ b/app-admin/jinit/files/jinit-0.1.12-gcc43.patch
@@ -0,0 +1,10 @@
+--- org/jinit-0.1.12/init_ipc/User.hh 2003-04-29 23:35:53.000000000 +0200
++++ jinit-0.1.12/init_ipc/User.hh 2009-01-04 11:19:16.000000000 +0100
+@@ -13,6 +13,7 @@
+ #include <errno.h>
+ #include <time.h>
+ #include <err.h>
++#include <cstdlib>
+
+ #include "init_ipc/sysvq.hh"
+ #include "need/error.hh"
diff --git a/app-admin/jinit/jinit-0.1.12-r1.ebuild b/app-admin/jinit/jinit-0.1.12-r1.ebuild
new file mode 100644
index 00000000000..0a8f0d0db73
--- /dev/null
+++ b/app-admin/jinit/jinit-0.1.12-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="An alternative to sysvinit which supports the need(8) concept"
+HOMEPAGE="http://john.fremlin.de/programs/linux/jinit/"
+SRC_URI="http://john.fremlin.de/programs/linux/jinit/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "failed emake install"
+ emake prefix="${D}"/usr/share/doc/${PF}/example-setup install-initscripts \
+ || die "failed installing example setup"
+ mv "${D}"/usr/sbin "${D}"/ || die
+ mv "${D}"/sbin/init "${D}"/sbin/jinit || die
+ mv "${D}"/sbin/shutdown "${D}"/sbin/jinit-shutdown || die
+ dodoc AUTHORS ChangeLog NEWS README TODO || die
+}
diff --git a/app-admin/jinit/metadata.xml b/app-admin/jinit/metadata.xml
new file mode 100644
index 00000000000..ff62877c67a
--- /dev/null
+++ b/app-admin/jinit/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>