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

KEYWORDS="-* ~amd64 ~x86"

MY_PV="v1.82_70911"

DESCRIPTION="Areca RaidCard HTTPd for amd64 and x86."
HOMEPAGE="http://www.areca.com.tw/support/main.htm"
SRC_URI="ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/HTTP/${MY_PV}.zip"
LICENSE="areca"
SLOT="0"
IUSE=""
RESTRICT="strip"

S="${WORKDIR}/${MY_PV/v/V}"

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

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

	newinitd "${FILESDIR}/${PN}-initd" "${PN}"
}