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

KEYWORDS="-* ~amd64 ~x86"

DESCRIPTION="Areca RaidCard HTTPd for amd64 and x86."
HOMEPAGE="http://www.areca.com.tw/support/main.htm"
SRC_URI="20060321-${PV}Beta.zip"
LICENSE="areca"
SLOT="0"
IUSE=""
RESTRICT="fetch mirror strip"

S="${WORKDIR}/20060321-${PV}"

DEPEND="app-arch/unzip"
RDEPEND=""

pkg_nofetch() {
	einfo
	einfo "Please download ${SRC_URI} from:"
	einfo "${HOMEPAGE}"
	einfo "and put it into /usr/portage/distfiles/."
	einfo
}

src_unpack() {
	unzip "${DISTDIR}/${SRC_URI}" || die "unzip failed"
}

src_install() {
	if use amd64 ; then
		newsbin "archttp64" "${PN}"
	elif use x86 ; then
		newsbin "archttp32" "${PN}"
	else
		eerror "Invalid ARCH, there are no Areca tools for you!"
	fi

	newinitd "${FILESDIR}/${PN}-initd" "${PN}" || die "Inserting init.d-file failed"
}