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

KEYWORDS="-* ~amd64 ~x86"

MY_PV="v1.83_81103"

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}"
}