blob: 06ea790283779abd8bc7f662940fed0fe61c2df5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
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() {
local mymakeflags=(
CFLAGS="${CFLAGS} -I/usr/include/libowfat"
LDFLAGS="${LDFLAGS}"
DIET="diet"
CC="$(tc-getCC)"
)
emake "${mymakeflags[@]}"
}
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
}
|