summaryrefslogtreecommitdiff
blob: 1b479622756492727df1820e3a89a2864b55b1e0 (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
45
46
47
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Dell OpenManage Server for Linux"
HOMEPAGE="http://linux.dell.com/monitoring.shtml"
DEB_URI="dellomsa_${PV}-2_i386.deb"
SRC_URI="http://linux.dell.com/files/openmanage-contributions/debian/omsa5.1/${DEB_URI}"
LICENSE="Dell"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""
DEPEND="app-arch/deb2targz
   sys-libs/openipmi
   net-misc/rsync"

RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}"

src_unpack() {
	cd "${WORKDIR}"
	cp ${DISTDIR}/${DEB_URI} ${WORKDIR}
	deb2targz ${DEB_URI}
	tar zxvf ${DEB_URI/.deb/.tar.gz}
}

src_compile() {
	return
}

src_install() {
	rsync -avr ${WORKDIR}/opt ${D}
	
	ln -s /opt/dell/srvadmin/ ${D}/etc/delloma.d
	dodir /opt/dell/srvadmin/shared/.sharedipc
	
	newinitd ${FILESDIR}/init_d_dellomsa dellomsa
	newconfd ${FILESDIR}/conf_d_dellomsa dellomsa
	newenvd  ${FILESDIR}/env_d_dellomsa 80dellomsa

	insinto /etc/pam.d
	newins ${FILESDIR}/pam_d_omauth omauth

	doetc ${FILESDIR}/omreg.cfg
}