summaryrefslogtreecommitdiff
blob: 132d1387279f3cab5c30770b2f2bdb67a5427711 (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

MY_P="${P/gnap-ext/gnap-tools}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Gentoo-based Network Appliance extensions and remastering tool"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
SRC_URI="
	mirror://gentoo/${MY_P}.tar.bz2
	!minimal? ( mirror://gentoo/gnap-basefs-${PV}.tar.bz2
		mirror://gentoo/gnap-extensions-${PV}.tar )
"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="minimal"

RDEPEND="sys-fs/squashfs-tools:0"
DEPEND=""

src_unpack() {
	unpack ${MY_P}.tar.bz2
	if ! use minimal; then
		unpack gnap-extensions-${PV}.tar
	fi
}

src_install() {
	dobin gnap_remaster
	doman gnap_remaster.1

	if ! use minimal; then
		dodir /usr/lib/gnap
		insinto /usr/lib/gnap
		newins "${DISTDIR}/gnap-basefs-${PV}.tar.bz2" gnap-basefs.tar.bz2
		dodir /usr/lib/gnap/extensions
		insinto /usr/lib/gnap/extensions
		doins "${WORKDIR}"/gnapext_*.tbz2
	fi
}