summaryrefslogtreecommitdiff
path: root/sys-process/minit
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-process/minit
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-process/minit')
-rw-r--r--sys-process/minit/Manifest10
-rw-r--r--sys-process/minit/files/0.9.1-destdir.patch16
-rw-r--r--sys-process/minit/files/minit-0.10-fixes.diff62
-rw-r--r--sys-process/minit/metadata.xml29
-rw-r--r--sys-process/minit/minit-0.10-r1.ebuild45
-rw-r--r--sys-process/minit/minit-0.10.ebuild41
-rw-r--r--sys-process/minit/minit-0.9.1.ebuild30
7 files changed, 233 insertions, 0 deletions
diff --git a/sys-process/minit/Manifest b/sys-process/minit/Manifest
new file mode 100644
index 000000000000..0d2e8a3f646f
--- /dev/null
+++ b/sys-process/minit/Manifest
@@ -0,0 +1,10 @@
+AUX 0.9.1-destdir.patch 622 SHA256 3e9f633a6f9c02a61a68d85c1bd8308d26898379d5fa31fd8dac88381e522d19 SHA512 decff61697cbce5ffad4dff34141182c585b5b367cc31f1983cfe816b5a22a2f35454e1dc997443b4f79c597d6029cbf3c1d23ec830af5fabd7abedcd2be89c0 WHIRLPOOL 591892fbd5ac8b7dbd91258868aad53e3517990df95bea7b9dcc2d0549bfee16c6cf6c275d2ae9d3f6c2e6b8d7401481f28436f96404ebb6aee6544e89377819
+AUX minit-0.10-fixes.diff 1916 SHA256 0d65720c5170949fad9b798cf8185eb4a01ccbeab6a79ef5805ff65b9975a5a2 SHA512 dca96b6a5c6dba7d72f0df32a2d615aee7ffd9f640a20fa67b4fcd9a0f56e991033196e91090fd78c2ba1c38d013a4ca4b0a74e7ddc39f488354a8aafb281b00 WHIRLPOOL 7b1da1fea2e69b229aee51e21c796e150c545f1a6fe0e15bd71f2b1c9566a46363ec3fc4bdaa8e0b7377b3732e9c9c1c2095b2c272e5e2d9a4625f439574f153
+DIST minit-0.10.tar.bz2 26119 SHA256 e976926342da1828d7e6b10fe489366e7690acdd0c81c0fdfa04c57182ddfacd SHA512 9c617ca9f3638a430ae8347ec4b3dc36c5b23c703f11c4d445c9abebb2e7cb2460424f5ed71112bb21e862818a45338926bc4de3d0ed8b2e99f7d296ca37479c WHIRLPOOL 1786e1bf0df70bf6df71c71f0b2ea263f44d8cc75e6999b4fc2b1dbdef7e9df17cf72e4e128c4234519751f7e6f299b0b5f419e55ecbde12043a692ce1ce99a3
+DIST minit-0.9.1.tar.bz2 21894 SHA256 8128b6b96dbe31072005acb63005d77f052a98393c455a725c2ac5054d561d22 SHA512 896ed2eb163c63daebea50e1edc8ce4de02dce619d5bc5bf08f76dc19df82c1fdeee1e8dc0f89f5662ea5975436bdfcb4690f367b89bcb92f7a5f8328c03cfb1 WHIRLPOOL a5c8ece4ccb570f4e07a212886b5954523fad6338f41ed817ae5f25c2ce7a0974e791383d76296d94f9d7bf9440ad6b4ecc78247d74569b834ace0b6bc6de82d
+EBUILD minit-0.10-r1.ebuild 927 SHA256 4c07c0bd298dae3b5c25dde45103503355129d820baf34cfc3583a521f1db67d SHA512 a6ab53764eded985db3d889b008edc54b4780ce206802469ec6dbc70c012149e37350d35c03af53c55b5d13ebad6d8ba5a2582024123a7e973ebce26f811fad4 WHIRLPOOL b3be09f9d180a7e1d56ebbade5be1db80226ace498061410fae7e66d0bb3af3c75b064569e7caaa68b351d8b74b7f8414ea58cb217e8db50a0337f80c0d6202d
+EBUILD minit-0.10.ebuild 951 SHA256 869b7f2b9fefdb3f28e8347b45d002bda3cb3d81dac3d4762d8f242f6675efbb SHA512 7e6d8184034ecb17889e816430e74bff6e4de4ff32df439be1ffee3784213c73b05cd0064b4f58370ad340c089333a3e7dfe644c1d5ba1ba71f88e0baa9dc091 WHIRLPOOL c87784a53afdf42989c9157073fbd216fba5ad2d906afca65b8bb74d85f9e7573fd36529aae8cb1dbdf190e67e8dc2e20b01caea888b4d275bae201db21a664d
+EBUILD minit-0.9.1.ebuild 564 SHA256 a836a2d606d50ee70aafcf114c4f8790d6dee03982fd1962d4cb28cdb3db0897 SHA512 a38009475f4e59a365d306553fe6e41a73491f18341b4ce71d7b1c9a77db091188167a4ef9e314ad9c86ed4d92e749c1a2cb741540d7df1670378585e47edd93 WHIRLPOOL 71af08e1234708907877ad1c95a655971200f978172ccebf2e4b7a02d477050ba8982f41bd13eb13e26dbdcc17b7834379980eacc1c8d3174184955efb39bf68
+MISC ChangeLog 2651 SHA256 9e0df0570cbee039aa33587d9adef7f7d35327442e30fb84f7c3fcb99f8d6e8d SHA512 efc262a45901235d19028b168b88c9a493f8c721f611e2befb73c3e80c0c3b690701ad500240380373a6c4698df2a096672faf280bdf00910be71dd39d988617 WHIRLPOOL 2410bf48ad11e8f364ef678f56696a92770685348646b4541e431ef034d81d6cdb8d40d391889a7467f4a218a8a7ebb8d81e3c430c564d54fd13701cf4b18c2d
+MISC ChangeLog-2015 1798 SHA256 142e0746dc65b5ee8a58e023b30aa9717c5d4dfaa72b70887fb3b365ca00ce47 SHA512 ca210157d7b569d072a980f6e04f270703e67da55ae4c113711914748380b0f499b2a9d1af71d6828d2eb5f184f4a638a37df8ac6b0615cbe816b0f8c9f10975 WHIRLPOOL fceff01fa967ed6599a1496d064ff561621aabf52cc0387ad75b3086de3e040f0c410e9f39de64f385faa9afa36432bd806a8d81ee9c526d76594d4503fdb78c
+MISC metadata.xml 1255 SHA256 8192d5d6c872e064d678552d0d5f39e454324b7d79112966ed71352ccb1f0451 SHA512 2c39ac25adbc3f8931e346608703f8de990081dec3b1f8b9dbc5c1292e57e8277e62b82cd3d390684abb9e2288748886df6ffe6fe5ad5e3ff4b9d79476993fed WHIRLPOOL 9981f15b801ce636e4e5e09a9de5df8eedaf92436b18a97aff53d7c37c9df8bcd9264c739180f7950bb1f44b76bfbf085d882e000e6f2292235dd92db4330207
diff --git a/sys-process/minit/files/0.9.1-destdir.patch b/sys-process/minit/files/0.9.1-destdir.patch
new file mode 100644
index 000000000000..7a36d3cdfde7
--- /dev/null
+++ b/sys-process/minit/files/0.9.1-destdir.patch
@@ -0,0 +1,16 @@
+--- Makefile.orig 2004-03-04 03:08:18.967017104 -0500
++++ Makefile 2004-03-04 03:10:11.445917712 -0500
+@@ -36,10 +36,12 @@
+ $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
+
+ install-files:
++ test -d $(DESTDIR)/sbin || mkdir -p $(DESTDIR)/sbin
+ install minit pidfilehack $(DESTDIR)/sbin
+ install write_proc hard-reboot $(DESTDIR)/sbin
++ test -d $(DESTDIR)/bin || mkdir -p $(DESTDIR)/bin
+ install msvc $(DESTDIR)/bin
+- test -d $(DESTDIR)/etc/minit || mkdir $(DESTDIR)/etc/minit
++ test -d $(DESTDIR)/etc/minit || mkdir -p $(DESTDIR)/etc/minit
+
+ install-fifos:
+ -mkfifo -m 600 $(DESTDIR)/etc/minit/in $(DESTDIR)/etc/minit/out
diff --git a/sys-process/minit/files/minit-0.10-fixes.diff b/sys-process/minit/files/minit-0.10-fixes.diff
new file mode 100644
index 000000000000..5c80091f84f3
--- /dev/null
+++ b/sys-process/minit/files/minit-0.10-fixes.diff
@@ -0,0 +1,62 @@
+diff -ru minit-0.10.orig/Makefile minit-0.10/Makefile
+--- minit-0.10.orig/Makefile 2005-04-08 19:24:04.000000000 +0200
++++ minit-0.10/Makefile 2008-11-27 23:05:57.000000000 +0100
+@@ -7,7 +7,7 @@
+ CROSS=
+ #CROSS=arm-linux-
+ LDFLAGS=-s
+-MANDIR=/usr/man
++MANDIR=/usr/share/man
+
+ path = $(subst :, ,$(PATH))
+ diet_path = $(foreach dir,$(path),$(wildcard $(dir)/diet))
+@@ -44,9 +44,11 @@
+ msvc: msvc.o
+ minit-update: minit-update.o split.o openreadclose.o
+ serdo: serdo.o
+-
+ shutdown: shutdown.o split.o openreadclose.o opendevconsole.o
+- $(DIET) $(CROSS)$(CC) $(LDFLAGS) -o shutdown $^
++pidfilehack: pidfilehack.o
++hard-reboot: hard-reboot.o
++write_proc: write_proc.o
++killall5: killall5.o
+
+ %.o: %.c
+ $(DIET) $(CROSS)$(CC) $(CFLAGS) -c $<
+@@ -61,22 +63,11 @@
+ test: test.c
+ gcc -nostdlib -o $@ $^ -I../dietlibc/include ../dietlibc/start.o ../dietlibc/dietlibc.a
+
+-pidfilehack: pidfilehack.c
+- $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
+-
+-hard-reboot: hard-reboot.c
+- $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
+-
+-write_proc: write_proc.c
+- $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
+-
+-killall5: killall5.c
+- $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
+-
+ install-files:
+ install -d $(DESTDIR)/etc/minit $(DESTDIR)/sbin $(DESTDIR)/bin $(DESTDIR)$(MANDIR)/man8
+- install minit pidfilehack $(DESTDIR)/sbin
++ install minit killall5 pidfilehack $(DESTDIR)/sbin
+ install write_proc hard-reboot minit-update $(DESTDIR)/sbin
++ install listpids $(DESTDIR)/sbin/minit-list
+ install msvc serdo $(DESTDIR)/bin
+ install -m 4750 shutdown $(DESTDIR)/sbin
+ test -f $(DESTDIR)/sbin/init || ln $(DESTDIR)/sbin/minit $(DESTDIR)/sbin/init
+diff -ru minit-0.10.orig/serdo.c minit-0.10/serdo.c
+--- minit-0.10.orig/serdo.c 2005-02-26 18:00:22.000000000 +0100
++++ minit-0.10/serdo.c 2008-11-27 23:02:57.000000000 +0100
+@@ -10,6 +10,7 @@
+ #define MAXENV 256
+ char* envp[MAXENV+2];
+ int envc;
++extern char **environ;
+
+ int continueonerror;
+
diff --git a/sys-process/minit/metadata.xml b/sys-process/minit/metadata.xml
new file mode 100644
index 000000000000..e4a4ebd1d0b1
--- /dev/null
+++ b/sys-process/minit/metadata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aw-gentoo@instandbesetzt.net</email>
+ <name>Andreas Wiese</name>
+ </maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+<longdescription>
+minit - a small yet feature-complete init
+
+What works so far
+ * It can start services and take dependencies into account.
+ * It can restart services
+ * It can start services in sync mode (i.e. wait until they
+terminate, to get around race conditions for static initializations)
+ * There is a companion utility "msvc" that can be used much in the
+same way as the svc from daemontools. Communication works over two
+fifos, /etc/minit/in and /etc/minit/out. Those have to exist before
+minit is started and they should be owned by root and have mode 600.
+ * There is a companion utility "pidfilehack" that can be used to do
+stuff like run ssh, wait a while, read the PID off /var/run/sshd.pid and
+tell minit this PID so it will know when sshd exits and can restart it.
+ * It can pipe stdout to a dedicated log process.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-process/minit/minit-0.10-r1.ebuild b/sys-process/minit/minit-0.10-r1.ebuild
new file mode 100644
index 000000000000..b5e5a674cca0
--- /dev/null
+++ b/sys-process/minit/minit-0.10-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="a small yet feature-complete init"
+HOMEPAGE="http://www.fefe.de/minit/"
+SRC_URI="http://dl.fefe.de/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ dev-libs/libowfat
+ dev-libs/dietlibc"
+
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/minit-0.10-fixes.diff
+)
+
+DOCS=( CHANGES README TODO )
+
+src_compile() {
+ emake CFLAGS="${CFLAGS} -I/usr/include/libowfat" \
+ LDFLAGS="${LDFLAGS}" \
+ DIET="diet"\
+ CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake install-files DESTDIR="${D}"
+ mv "${D}"/sbin/shutdown "${D}/sbin/${PN}-shutdown" || die
+ mv "${D}"/sbin/killall5 "${D}/sbin/${PN}-killall5" || die
+ rm -v "${D}"/sbin/init || die
+}
+
+pkg_postinst() {
+ [[ -e /etc/minit/in ]] || mkfifo "${ROOT}"/etc/minit/in
+ [[ -e /etc/minit/out ]] || mkfifo "${ROOT}"/etc/minit/out
+}
diff --git a/sys-process/minit/minit-0.10.ebuild b/sys-process/minit/minit-0.10.ebuild
new file mode 100644
index 000000000000..f1502b99c2bc
--- /dev/null
+++ b/sys-process/minit/minit-0.10.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="a small yet feature-complete init"
+HOMEPAGE="http://www.fefe.de/minit/"
+SRC_URI="http://dl.fefe.de/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=">=dev-libs/libowfat-0.28-r1
+ dev-libs/dietlibc"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}"/minit-0.10-fixes.diff
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS} -I/usr/include/libowfat" \
+ LDFLAGS="${LDFLAGS}" DIET="diet" CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ emake install-files DESTDIR="${D}" || die
+ mv "${D}"/sbin/shutdown "${D}"/sbin/minit-shutdown || die
+ mv "${D}"/sbin/killall5 "${D}"/sbin/minit-killall5 || die
+ rm "${D}"/sbin/init || die
+ dodoc CHANGES README TODO
+}
+
+pkg_postinst() {
+ [ -e /etc/minit/in ] || mkfifo "${ROOT}"/etc/minit/in
+ [ -e /etc/minit/out ] || mkfifo "${ROOT}"/etc/minit/out
+}
diff --git a/sys-process/minit/minit-0.9.1.ebuild b/sys-process/minit/minit-0.9.1.ebuild
new file mode 100644
index 000000000000..8e576817cb0a
--- /dev/null
+++ b/sys-process/minit/minit-0.9.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="a small yet feature-complete init"
+HOMEPAGE="http://www.fefe.de/minit/"
+SRC_URI="http://www.fefe.de/minit/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PV}-destdir.patch
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" DIET="" || die
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die
+ dodoc CHANGES README TODO
+}