forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnap-2.0.ebuild
40 lines (31 loc) · 795 Bytes
/
gnap-2.0.ebuild
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
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=0
MY_P="${P/gnap/gnap-tools}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Gentoo-based Network Appliance building system"
HOMEPAGE="https://embedded.gentoo.org/gnap.xml"
SRC_URI="mirror://gentoo/${MY_P}.tar.bz2
!minimal? ( mirror://gentoo/${PN}-core-${PV}.tar )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="minimal"
RDEPEND="app-cdr/cdrtools
sys-fs/dosfstools
<sys-boot/syslinux-5"
src_unpack() {
unpack ${MY_P}.tar.bz2
}
src_install() {
dobin gnap_overlay
doman gnap_overlay.1
dodoc README.upgrading
dodir /usr/lib/gnap
insinto /usr/lib/gnap
if ! use minimal; then
newins "${DISTDIR}"/${PN}-core-${PV}.tar ${PN}-core.tar
doins -r mbr
doins -r examples
fi
}