blob: f0711d345acf19e17f2df8189e73651221206cb6 (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=0
inherit toolchain-funcs
DESCRIPTION="Baselayout for netboot systems"
HOMEPAGE="https://www.gentoo.org/"
SRC_URI="https://dev.gentoo.org/~vapier/${P}.tar.bz2
mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha arm hppa ~mips ppc sh sparc x86"
IUSE=""
DEPEND=""
S=${WORKDIR}
pkg_setup() {
[[ ${ROOT} = "/" ]] && die "refusing to emerge to /"
}
src_compile() {
$(tc-getCC) ${CFLAGS} src/consoletype.c -o sbin/consoletype || die
$(tc-getSTRIP) --strip-unneeded sbin/consoletype
}
src_install() {
rm -r src
cp -r * "${D}"/ || die
}
pkg_preinst() {
[[ ${ROOT} = "/" ]] && die "refusing to install to /"
}
pkg_postinst() {
cd "${ROOT}"
mkdir -p bin dev etc lib mnt proc sbin var
mkdir -p var/log
mkdir -p mnt/gentoo
ln -s . usr
ln -s . share
}
|