2010-01-26 16:16:28 +00:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
2010-01-29 19:05:39 +00:00
|
|
|
inherit eutils
|
|
|
|
|
|
|
|
if [ "$PV" != "9999" ]; then
|
|
|
|
SRC_URI="http://www.extatic.org/downloads/uhub/${P}-src.tar.bz2"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
else
|
|
|
|
inherit git
|
|
|
|
SRC_URI=""
|
|
|
|
EGIT_REPO_URI="git://github.com/janvidar/uhub.git"
|
|
|
|
KEYWORDS=""
|
|
|
|
fi
|
|
|
|
|
2010-01-26 16:16:28 +00:00
|
|
|
EAPI="2"
|
|
|
|
|
|
|
|
DESCRIPTION="High performance ADC hub"
|
|
|
|
HOMEPAGE="http://www.uhub.org/"
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="+ssl"
|
|
|
|
|
2010-01-31 22:40:11 +00:00
|
|
|
DEPEND="=dev-lang/perl-5*
|
2010-01-26 16:16:28 +00:00
|
|
|
ssl? ( >=dev-libs/openssl-0.9.8 )
|
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
2010-01-29 19:05:39 +00:00
|
|
|
src_compile() {
|
|
|
|
$opts=""
|
|
|
|
use ssl && opts="USE_SSL=YES $opts"
|
|
|
|
emake $opts
|
|
|
|
}
|
2010-01-26 16:16:28 +00:00
|
|
|
src_install() {
|
2010-01-29 19:05:39 +00:00
|
|
|
dodir /usr/bin
|
|
|
|
dodir /etc/uhub
|
2010-01-26 16:16:28 +00:00
|
|
|
emake DESTDIR="${D}" UHUB_PREFIX="${D}/usr" install || die "install failed"
|
2010-01-29 19:05:39 +00:00
|
|
|
newinitd doc/uhub.gentoo.rc uhub || newinitd ${FILESDIR}/uhub.rc uhub
|
|
|
|
}
|
|
|
|
pkg_postinst() {
|
|
|
|
enewuser uhub
|
2010-01-26 16:16:28 +00:00
|
|
|
}
|