update .ebuild ; update compile doc ; update RHEL init.d

This commit is contained in:
root 2010-01-29 22:05:39 +03:00
parent 2dc95eca47
commit c8bc2f64fd
4 changed files with 29 additions and 12 deletions

View File

@ -8,7 +8,7 @@ Prerequisites
Before you try to compile µHub, please make sure the following prerequisites are met. Before you try to compile µHub, please make sure the following prerequisites are met.
* GNU make * GNU make
* gcc > 3.0 (or MinGW on Windows) * gcc > 3.0 (or MinGW on Windows)
* libevent >= 1.3 * libevent >= 1.3 ( not require on Linux)
* Perl 5 * Perl 5
Linux and Mac OSX Linux and Mac OSX

View File

@ -2,7 +2,7 @@
# see man logrotate # see man logrotate
# #
# #
/var/log/uhub.log { /var/log/uhub.log {
compress compress
size 10M size 10M
rotate 10 rotate 10

View File

@ -9,7 +9,5 @@
# -u <user> Run as given user # -u <user> Run as given user
# -g <group> Run with given group permissions # -g <group> Run with given group permissions
# -p <file> Store pid in file (process id) # -p <file> Store pid in file (process id)
UHUBOPTIONS=" -u uhub -f -p /var/run/uhub.pid -l /var/log/uhub.log" UHUBOPTIONS=" -u uhub -f -p /var/run/uhub.pid -l /var/log/uhub.log"

View File

@ -1,24 +1,43 @@
# Copyright 1999-2010 Gentoo Foundation # Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Header: $ # $Header: $
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
EAPI="2" EAPI="2"
DESCRIPTION="High performance ADC hub" DESCRIPTION="High performance ADC hub"
HOMEPAGE="http://www.uhub.org/" HOMEPAGE="http://www.uhub.org/"
SRC_URI="http://www.extatic.org/downloads/uhub/${P}-src.tar.bz2"
LICENSE="GPL-3" LICENSE="GPL-3"
SLOT="0" SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+ssl" IUSE="+ssl"
DEPEND="=dev-lang/perl-5* DEPEND=">=dev-libs/libevent-1.3
=dev-lang/perl-5*
ssl? ( >=dev-libs/openssl-0.9.8 ) ssl? ( >=dev-libs/openssl-0.9.8 )
" "
RDEPEND="${DEPEND}" RDEPEND="${DEPEND}"
src_install() { src_compile() {
mkdir -p ${D}/usr/bin $opts=""
mkdir -p ${D}/etc/uhub use ssl && opts="USE_SSL=YES $opts"
emake DESTDIR="${D}" UHUB_PREFIX="${D}/usr" install || die "install failed" emake $opts
}
src_install() {
dodir /usr/bin
dodir /etc/uhub
emake DESTDIR="${D}" UHUB_PREFIX="${D}/usr" install || die "install failed"
newinitd doc/uhub.gentoo.rc uhub || newinitd ${FILESDIR}/uhub.rc uhub
}
pkg_postinst() {
enewuser uhub
} }