summaryrefslogtreecommitdiff
blob: 6d40a09b5d7528cba014c3a8e1476b52e4ba2d08 (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-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 web management daemon"
HOMEPAGE="http://www.areca.com.tw/"
SRC_URI="ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/HTTP/${MY_SRC_URI_PATH}V${MY_PV}.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=""

DEPEND="app-arch/unzip"

RESTRICT="strip mirror test"

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

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

src_install() {
	exeinto /opt/areca/http
	case ${ARCH} in
		amd64) http=x86_64/archttp64;;
		x86) http=i386/archttp32;;
		*) die "invalid ARCH";;
	esac
	doexe ${http}
	dosym /opt/areca/http/${http##*/} /usr/sbin/areca-http
}