summaryrefslogtreecommitdiff
blob: e796c1df0c777dcf18b77f72e7d0a6d2fb7dda32 (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
# Copyright 2011 Gentoo Linux
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

DESCRIPTION="Gentoo Linux LiveDVD release file"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI=""

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"

IUSE=""
DEPEND=""

src_unpack () {
	# Set arch
	if use amd64; then
		ARCH=amd64;
	fi
	if use x86; then
		ARCH=x86;
	fi

	# Set kernel
	if use kernel_linux; then
		KERN=Linux
	fi

	# Write file
	echo "Gentoo ${KERN} ${ARCH} ${PV}" > livedvd-release

}

src_install () {
	insinto /etc
	doins livedvd-release
	dosym /etc/livedvd-release /etc/system-release
}