summaryrefslogtreecommitdiff
path: root/~coadde
diff options
context:
space:
mode:
Diffstat (limited to '~coadde')
-rw-r--r--~coadde/torque/PKGBUILD59
-rw-r--r--~coadde/torque/torque-node.service12
-rw-r--r--~coadde/torque/torque-scheduler.service12
-rw-r--r--~coadde/torque/torque-server.service12
-rw-r--r--~coadde/torque/torque.install9
5 files changed, 104 insertions, 0 deletions
diff --git a/~coadde/torque/PKGBUILD b/~coadde/torque/PKGBUILD
new file mode 100644
index 000000000..c482c515c
--- /dev/null
+++ b/~coadde/torque/PKGBUILD
@@ -0,0 +1,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:
diff --git a/~coadde/torque/torque-node.service b/~coadde/torque/torque-node.service
new file mode 100644
index 000000000..f8fcb46a2
--- /dev/null
+++ b/~coadde/torque/torque-node.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=TORQUE node
+Wants=basic.target
+After=basic.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/spool/torque/mom_priv/mom.lock
+ExecStart=/usr/bin/pbs_mom
+
+[Install]
+WantedBy=multi-user.target
diff --git a/~coadde/torque/torque-scheduler.service b/~coadde/torque/torque-scheduler.service
new file mode 100644
index 000000000..fa417cdf3
--- /dev/null
+++ b/~coadde/torque/torque-scheduler.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=TORQUE scheduler
+Wants=torque-server.service
+After=torque-server.service
+
+[Service]
+Type=forking
+PIDFile=/var/spool/torque/sched_priv/sched.lock
+ExecStart=/usr/bin/pbs_sched
+
+[Install]
+WantedBy=multi-user.target
diff --git a/~coadde/torque/torque-server.service b/~coadde/torque/torque-server.service
new file mode 100644
index 000000000..a491bbff7
--- /dev/null
+++ b/~coadde/torque/torque-server.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=TORQUE server
+Wants=basic.target
+After=basic.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/spool/torque/server_priv/server.lock
+ExecStart=/usr/bin/pbs_server
+
+[Install]
+WantedBy=multi-user.target
diff --git a/~coadde/torque/torque.install b/~coadde/torque/torque.install
new file mode 100644
index 000000000..2e90bd1ba
--- /dev/null
+++ b/~coadde/torque/torque.install
@@ -0,0 +1,9 @@
+post_install() {
+ pbs_server -f -t create
+ systemctl stop torque-server
+ echo 'Change the server name in /var/spool/torque/server_name to your needs.
+You may add your clients to /var/spool/torque/server_priv/nodes if your are the server.
+Enable torque-server.service or torque-node.service depending on whether you are the server or a node.'
+}
+
+# vim:set ts=2 sw=2 et: