All pastes #329213 Raw Edit

Anonymous

public text v1 · immutable
#329213 ·published 2007-01-26 15:53 UTC
rendered paste body
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit versionator

MY_PV="$(replace_version_separator 2 -)"
MY_P="${PN}-${MY_PV}"

DESCRIPTION="A system and services mointor for SysVinit systems."
HOMEPAGE="http://www.rfxnetworks.com/sim.php"
# Not sure how to pull a certain version..
SRC_URI="http://www.r-fx.ca/downloads/sim-current.tar.gz"

S="${WORKDIR}/${MY_P}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

src_unpack() {
    unpack ${A}
    cd "${S}"
    sed -i -e 's@CNF="/usr/local/sim/conf.sim"@CNF="/etc/sim.conf"@' install/sim
}

src_install() {
#   into /usr/local
    dodir /usr/local/sim
    cp -rf "${S}/" "${D}usr/local/sim" || die "Install failed!"
#   doexe install/sim
#   doexe setup
#   dodir /etc
#   cp -rf install /usr/local/sim
#   cp install/conf.sim ${D}etc/sim.conf
#   cp setup /usr/local/sim
}