blob: 850aa3b7dd586ab5d5fad5deac6a2a0aa2659d7e (
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
|
# Maintainer: Márcio Silva <coadde@lavabit.com>
pkgname=torque
pkgver=4.2.2
_pkgver=1065
pkgrel=2
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=(
d53af8dc05e2d1ffa699da2a79e2c82247a882d868784c38d685fc77c3bb8a334e036e835bac2988d39675c5df7a04c2b567b826df4bf6975b437a9955164ae2
532c007cf3fcf171d071b67438fca430cdda4ec19d5e6c51ff5388b73610817825dd4cc86866c3d8a9411b6fdee6f76c64cd764dbd2277c1e7ca48e843ff9221
290620b00b2bd636b47c3c60158a4e6cff06e9a764ac7fc7d4996f9be1aace58ee248a075b4c3cf84951af9013a655b29ea6adec789fe6e170df62b07b05cc85
2977fbd4d7b7241a2aadef4bc5575483a882a62dd65b74cfb26958530ce99030ee0c3e6c8a093d1e2ccc2bfe4ebed4f90bc7b52aaece7fd43ea2f9af08781fed
)
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:
|