blob: c482c515cdc881be25ac521b13ddb2843b64fa62 (
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
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
pkgname=torque
pkgver=4.2.2
_pkgver=1065
pkgrel=3
pkgdesc='An open source resource manager providing control over batch jobs and distributed compute nodes.'
url=http://www.adaptivecomputing.com/products/open-source/$pkgname/
arch=(
i686
x86_64
mips64el
)
license=custom
depends=(
libxml2
openssh
)
install=$pkgname.install
options=(!libtool)
backup=(
var/spool/$pkgname/mom_priv/config
var/spool/$pkgname/serv_priv/nodes
var/spool/$pkgname/serv_priv/serverdb
var/spool/$pkgname/server_name
)
source=(
$pkgname-$pkgver.tar.gz::http://www.adaptivecomputing.com/index.php?wpfb_dl=$_pkgver
$pkgname-{node,scheduler,server}.service
)
sha512sums=('9ad0bbe4afdec57a261d079ee236e9f52cd50345a91264888100a2d7bc2ee3026c05195715bf33e2eef8d7e2bf86342638d65ae814a27ca3401a19ae051c2c4d'
'aa25cc61eb09aad7e6b43f9ac6b955095846e1db84501a2a1dfabdb44c59335f68be6c4916f934cbf6b6b56f6a42aafd80dfe9660c6e8e956af9b5e0fe5eb255'
'c6c4be41fa4a66da0a64a28d373bae3b8821d7f1b64001464e62e2827c0a0655689e9d93801d3082752733d21dee3aae87544fb4816cb98e9848ef2c3a3388f0'
'566a782ea0327cbf946a698434e0fb1650aacf73a26c30a3789848162f574cc353c18d61ddc4b04e97690cfbc777b655efa1dc66d16390f608f27c1e6b823acb')
build() {
cd $srcdir/$pkgname-$pkgver
setarch $CARCH ./configure --prefix=/usr\
--disable-gui\
--disable-gcc-warnings\
--mandir=/usr/share/man\
--with-default-server=localhost\
--with-rcp=scp\
--with-server-home=/var/spool/$pkgname\
--with-tcl=no
mv src/resmom/Makefile src/resmom/Makefile.old
cat src/resmom/Makefile.old | sed 's/$(MOMLIBS) $(PBS_LIBS)/$(PBS_LIBS) $(MOMLIBS)/g' > src/resmom/Makefile
setarch $CARCH make
}
package() {
cd $srcdir/$pkgname-$pkgver
setarch $CARCH make DESTDIR=$pkgdir install
install -d $pkgdir/usr/lib/systemd/system
install -Dm644 $srcdir/*.service $pkgdir/usr/lib/systemd/system
}
# vim:set ts=2 sw=2 et:
|