summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2017-04-11 00:21:32 +0200
committerPatrice Clement <monsieurp@gentoo.org>2017-04-11 00:21:44 +0200
commit748e28e80624637967269f93a2c54d653e5d13ab (patch)
tree017e3f654a280ecd112c5a239f200affe807c00d /sys-process/minit
parentdev-libs/libxml2: mark 2.9.4-r1 m68k/s390/sh stable (diff)
downloadgentoo-748e28e80624637967269f93a2c54d653e5d13ab.tar.gz
gentoo-748e28e80624637967269f93a2c54d653e5d13ab.tar.bz2
gentoo-748e28e80624637967269f93a2c54d653e5d13ab.zip
sys-process/minit: EAPI 6 bump.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sys-process/minit')
-rw-r--r--sys-process/minit/minit-0.10-r1.ebuild45
1 files changed, 45 insertions, 0 deletions
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
+}