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

MY_PV=${PV/_p/_}; MY_PV=${MY_PV/a_/A_}
if [[ ${MY_PV/_beta} != ${MY_PV} ]]; then
	MY_PV=${MY_PV/_beta}
	MY_SRC_URI_PATH="Beta/"
else
	MY_SRC_URI_PATH=""
fi
DESCRIPTION="areca RAID Controller Command Line Interface management tool"
HOMEPAGE="http://www.areca.com.tw/"
SRC_URI="ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/${MY_SRC_URI_PATH}V${MY_PV}.zip
	doc? ( http://www.areca.us/support/download/RaidCards/Documents/Manual_Spec/CLIManual.zip )"

LICENSE="as-is"
SLOT="0"
# This package can never enter stable, it can't be mirrored and upstream
# can remove the distfiles from their mirror anytime.
KEYWORDS="~amd64 ~x86"
IUSE="doc"

DEPEND="app-arch/unzip"

RESTRICT="strip mirror test"

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

src_compile() {
	echo "Nothing to compile."
}

src_install() {
	exeinto /opt/areca/cli
	case ${ARCH} in
		amd64) cli=x86-64/cli64;;
		x86) cli=i386/cli32;;
		*) die "invalid ARCH";;
	esac
	doexe ${cli}
	dosym /opt/areca/cli/${cli##*/} /usr/sbin/areca-cli
	useq doc && dodoc "${WORKDIR}"/CLIManual.pdf
}