blob: 73a76948bbf725a487872e30b0f2a549d4e0dd0b (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openpbs/openpbs-2.3.16.ebuild,v 1.2 2002/11/04 19:54:09 tantive Exp $
NAME=`echo ${P} | sed -e "s|openpbs-|OpenPBS_|; y|.|_|"`
A=${NAME}.tar.gz
S="${WORKDIR}/${NAME}"
DESCRIPTION="The Portable Batch System (PBS) is a flexible batch queueing and workload management system"
HOMEPAGE="http://www.openpbs.org/"
LICENSE="openpbs"
SLOT="0"
KEYWORDS="~x86"
IUSE="X tcltk"
DEPEND="virtual/glibc
X? ( x11-base/xfree )
tcltk? ( dev-lang/tcl )"
RDEPEND="net-misc/openssh"
src_unpack() {
if [ ! -e ${DISTDIR}/${A} ] ; then
einfo "Due to license issues you have to download"
einfo "the appropriate openpbs archive:"
einfo "http://www.openpbs.org/UserArea/Download/"${A}
einfo ""
einfo "The archive should be placed into /usr/portage/distfiles."
die "package archive not found"
fi
cd ${WORKDIR}
unpack ${A}
cd ${S}
# apply a patch I made for gcc3.
# maybe this should be done with sed but I'm too lazy
patch -p0 < ${FILESDIR}/makedepend-sh-gcc3.patch
# this thing doesn't use make install, but rather it's own install script
# fix it here so the install dirs are set to the ${D} directory
cd buildutils
mv pbs_mkdirs.in pbs_mkdirs.in-orig
sed -e "s|prefix=@prefix@|prefix=\${D}@prefix@| ; \
s|PBS_SERVER_HOME=@PBS_SERVER_HOME@|PBS_SERVER_HOME=\${D}@PBS_SERVER_HOME@| ; \
s|PBS_DEFAULT_FILE=@PBS_DEFAULT_FILE@|PBS_DEFAULT_FILE=\${D}@PBS_DEFAULT_FILE@| ; \
s|PBS_ENVIRON=@PBS_ENVIRON@|PBS_ENVIRON=\${D}@PBS_ENVIRON@|" \
pbs_mkdirs.in-orig > pbs_mkdirs.in
}
src_compile() {
local myconf
use X || myconf="--disable-gui"
use tcltk && myconf="${myconf} --with-tcl"
./configure ${myconf} \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-docs \
--enable-server \
--enable-mom \
--enable-clients \
--set-server-home=/var/spool/PBS \
--set-environ=/etc/pbs_environment \
--with-scp || die "./configure failed"
make || die
}
src_install() {
make prefix=${D}/usr \
mandir=${D}/usr/share/man \
PBS_SERVER_HOME=${D}/var/spool/PBS \
install || die
dodoc INSTALL PBS_License.text Read.Me Release_Notes
}
|