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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/systemimager-server-bin/systemimager-server-bin-3.0.1.ebuild,v 1.3 2004/02/27 18:29:55 bass Exp $
MY_P="systemimager-server-3.0.1-4.noarch"
S=${WORKDIR}
DESCRIPTION="System imager server. Software that automates Linux installs, software distribution, and production deployment."
HOMEPAGE="http://www.systemimager.org/"
SRC_URI="mirror://sourceforge/systemimager/${MY_P}.rpm"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"
DEPEND="app-arch/rpm2targz
app-admin/systemimager-common-bin
app-admin/systemimager-boot-bin
app-admin/systemconfigurator"
RDEPEND="${DEPEND}
dev-perl/AppConfig
dev-perl/XML-Simple"
src_unpack() {
rpm2targz ${DISTDIR}/${MY_P}.rpm
tar zxf ${WORKDIR}/${MY_P}.tar.gz
}
src_compile() {
einfo "nothing to compile; binary package."
}
src_install() {
#stuff in /usr
dobin usr/bin/{mkautoinstallcd,mkautoinstalldiskette}
dodir -p /usr/lib/systemimager/perl/SystemImager/
insinto /usr/lib/systemimager/perl/SystemImager/
doins usr/lib/systemimager/perl/SystemImager/Server.pm
dosbin usr/sbin/{addclients,cpimage,getimage,mkautoinstallscript,mkbootserver,mkclientnetboot,mkdhcpserver,mkdhcpstatic,mkrsyncd_conf,mvimage,netbootmond,pushupdate,rmimage}
doman usr/share/man/man5/*.gz
doman usr/share/man/man8/*.gz
dodoc usr/share/doc/systemimager-server-3.0.1/*
#stuff in /var
dodir -p /var/lib/systemimager/{images,overrides,scripts}
insinto /var/lib/systemimager/images
doins var/lib/systemimager/images/*
dodir -p /var/log/systemimager
#stuff in etc
exeinto /etc/init.d
doexe etc/init.d/*
dodir -p /etc/system/imager/{pxelinux.cfg,rsync_stubs}
insinto /etc/systemimager/pxelinux.cfg
doins etc/systemimager/pxelinux.cfg/*
insinto /etc/systemimager/rsync_stubs
doins etc/systemimager/rsync_stubs/*
insinto /etc/systemimager
doins etc/systemimager/systemimager.conf
}
|