summaryrefslogtreecommitdiff
blob: 212ad38e6d81991a188ba3b155133ac3f4cceb44 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"
inherit eutils git-2

EGIT_REPO_URI="git://git.agaffney.org/quickstart.git"
EGIT_COMMIT="4ce0bbd11acff6c3b09634b1b46a0887e966f7a3"

DESCRIPTION="Quickstart automated installer"
HOMEPAGE="http://agaffney.org/quickstart.php"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc tftp"
RDEPEND="tftp? ( net-misc/curl )"

src_prepare() {
	epatch "${FILESDIR}/${P}-fetcher.patch"
	epatch "${FILESDIR}/${P}-quickstart.patch"
	epatch "${FILESDIR}/${P}-installsteps.patch"
}

src_install() {
	qsdir=/usr/share/quickstart

	insinto ${qsdir}/modules
	doins modules/*

	exeinto ${qsdir}
	doexe quickstart
	exeinto ${qsdir}/server
	doexe server/quickstartd.pl
	make_wrapper quickstart ./quickstart ${qsdir}
	make_wrapper quickstartd ./quickstartd.pl ${qsdir}/server

	if use doc; then
		dodoc doc/*
	fi
}