Something at least approching package guidelines.
This commit is contained in:
parent
fff80ad068
commit
f828f75cc3
@ -1,20 +0,0 @@
|
|||||||
To setup a basic single-node localhost-only batch system, install the
|
|
||||||
torque-server, torque-mom, and torque-scheduler packages, and do something like
|
|
||||||
this:
|
|
||||||
|
|
||||||
/sbin/chkconfig pbs_mom on
|
|
||||||
/sbin/chkconfig pbs_server on
|
|
||||||
/sbin/chkconfig pbs_sched on
|
|
||||||
/bin/hostname --long > %{torquehomedir}/server_priv/nodes
|
|
||||||
/bin/hostname --long > %{torquehomedir}/server_name
|
|
||||||
service pbs_server start
|
|
||||||
qmgr -c "s s scheduling=true"
|
|
||||||
qmgr -c "c q batch queue_type=execution"
|
|
||||||
qmgr -c "s q batch started=true"
|
|
||||||
qmgr -c "s q batch enabled=true"
|
|
||||||
qmgr -c "s q batch resources_default.nodes=1"
|
|
||||||
qmgr -c "s q batch resources_default.walltime=3600"
|
|
||||||
qmgr -c "s s default_queue=batch"
|
|
||||||
service pbs_mom restart
|
|
||||||
service pbs_sched restart
|
|
||||||
|
|
71
README.Fedora
Normal file
71
README.Fedora
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
This README describes how to get the most basic working
|
||||||
|
torque service on a single host.
|
||||||
|
|
||||||
|
To setup a basic single-node localhost-only batch system, install the
|
||||||
|
torque-server, torque-mom, and torque-scheduler packages, and do something like
|
||||||
|
this:
|
||||||
|
|
||||||
|
|
||||||
|
1) Get your full hostname with
|
||||||
|
|
||||||
|
# /bin/hostname --long
|
||||||
|
|
||||||
|
e.g myhost.example.org
|
||||||
|
|
||||||
|
2) Edit /etc/torque/server_name
|
||||||
|
to contain the single line
|
||||||
|
|
||||||
|
myhost.example.org
|
||||||
|
|
||||||
|
3) Edit /etc/torque/mom/config
|
||||||
|
to contain the single line
|
||||||
|
|
||||||
|
$pbsserver myhost.example.org
|
||||||
|
|
||||||
|
4) Create a torque serverdb file.
|
||||||
|
# /usr/sbin/pbs_server -D -t create
|
||||||
|
|
||||||
|
Warning this will remove any existing serverdb
|
||||||
|
file located at /var/lib/torque/server_priv/serverdb
|
||||||
|
|
||||||
|
You will have to Ctrl^C the pbs_server command, it will
|
||||||
|
only take a moment to create this file.
|
||||||
|
|
||||||
|
5) Start the pbs_server and configure it.
|
||||||
|
service pbs_server start
|
||||||
|
# qmgr -c "s s scheduling=true"
|
||||||
|
# qmgr -c "c q batch queue_type=execution"
|
||||||
|
# qmgr -c "s q batch started=true"
|
||||||
|
# qmgr -c "s q batch enabled=true"
|
||||||
|
# qmgr -c "s q batch resources_default.nodes=1"
|
||||||
|
# qmgr -c "s q batch resources_default.walltime=3600"
|
||||||
|
# qmgr -c "s s default_queue=batch"
|
||||||
|
|
||||||
|
6) Add one batch worker to your pbs_server.
|
||||||
|
|
||||||
|
# qmgr -c "c n myhost.example.org"
|
||||||
|
|
||||||
|
7) Start the pbs_mom and pbs_sched deamons.
|
||||||
|
|
||||||
|
# service pbs_mom start
|
||||||
|
# service pbs_sched start
|
||||||
|
|
||||||
|
8) Use chkconfig to start the services at boot time.
|
||||||
|
|
||||||
|
# /sbin/chkconfig pbs_mom on
|
||||||
|
# /sbin/chkconfig pbs_server on
|
||||||
|
# /sbin/chkconfig pbs_sched on
|
||||||
|
|
||||||
|
9) Submit a test job.
|
||||||
|
As a user not as root run the following
|
||||||
|
|
||||||
|
$ qsub <<EOF
|
||||||
|
hostname
|
||||||
|
echo "Hi I am a batch job running in torque"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
490
torque.spec
490
torque.spec
@ -20,7 +20,7 @@
|
|||||||
%global build_gui 1
|
%global build_gui 1
|
||||||
|
|
||||||
# these are non-defaults, but fit better into most RPM-based systems
|
# these are non-defaults, but fit better into most RPM-based systems
|
||||||
%global torquehomedir %{_localstatedir}/torque
|
%global torquehomedir %{_localstatedir}/lib/torque
|
||||||
|
|
||||||
# --with/--without processing
|
# --with/--without processing
|
||||||
# first, error if conflicting options are used
|
# first, error if conflicting options are used
|
||||||
@ -65,150 +65,209 @@
|
|||||||
|
|
||||||
# finish up the configs...
|
# finish up the configs...
|
||||||
%global server_nameflags --with-default-server=%{server_name}
|
%global server_nameflags --with-default-server=%{server_name}
|
||||||
%global shared_description %(echo -e "TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource \\nmanager providing control over batch jobs and distributed compute nodes. \\nTORQUE is based on OpenPBS version 2.3.12 and incorporates scalability, \\nfault tolerance, and feature extension patches provided by USC, NCSA, OSC, \\nthe U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many \\nother leading edge HPC organizations.\\n\\nThis build was configured with:\\n %{server_nameflags}\\n %{tclflags}\\n %{guiflags}\\n %{rcpflags}\\n")
|
|
||||||
|
|
||||||
Name: torque
|
Name: torque
|
||||||
Version: 2.4.8
|
Version: 2.4.8
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Tera-scale Open-source Resource and QUEue manager
|
Summary: Tera-scale Open-source Resource and QUEue manager
|
||||||
Source0: http://www.clusterresources.com/downloads/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://www.clusterresources.com/downloads/%{name}/%{name}-%{version}.tar.gz
|
||||||
Source2: xpbs.desktop
|
Source2: xpbs.desktop
|
||||||
Source3: xpbsmon.desktop
|
Source3: xpbsmon.desktop
|
||||||
Source4: xpbs.png
|
Source4: xpbs.png
|
||||||
Source5: xpbsmon.png
|
Source5: xpbsmon.png
|
||||||
Source6: README-localhost
|
Source6: README.Fedora
|
||||||
Source7: pbs-config-multilib
|
Source7: pbs-config-multilib
|
||||||
License: OpenPBS
|
Source8: config
|
||||||
Group: System Environment/Daemons
|
License: OpenPBS
|
||||||
URL: http://www.clusterresources.com/products/torque/
|
Group: System Environment/Daemons
|
||||||
Provides: pbs = %{version}-%{release}
|
URL: http://www.clusterresources.com/products/torque/
|
||||||
BuildRequires: desktop-file-utils, pam-devel, xauth, readline-devel, ncurses-devel
|
BuildRequires: desktop-file-utils
|
||||||
Conflicts: pbspro, openpbs, openpbs-oscar
|
BuildRequires: pam-devel
|
||||||
Obsoletes: torque-localhost
|
BuildRequires: xauth
|
||||||
|
BuildRequires: readline-devel
|
||||||
|
BuildRequires: ncurses-devel
|
||||||
%if %{use_tcl}
|
%if %{use_tcl}
|
||||||
BuildRequires: tcl-devel
|
BuildRequires: tcl-devel
|
||||||
%endif
|
%endif
|
||||||
%if %{build_gui}
|
%if %{build_gui}
|
||||||
BuildRequires: tk-devel
|
BuildRequires: tk-devel
|
||||||
%else
|
|
||||||
Obsoletes: torque-gui
|
|
||||||
%endif
|
|
||||||
%if ! %{use_rcp}
|
|
||||||
Requires: openssh-clients
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{shared_description}
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
||||||
|
manager providing control over batch jobs and distributed compute nodes.
|
||||||
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
||||||
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
||||||
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
||||||
|
other leading edge HPC organizations.
|
||||||
|
|
||||||
This package holds just a few shared files and directories.
|
This package holds just a few shared files and directories.
|
||||||
|
|
||||||
%package client
|
%package client
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Summary: Client part of TORQUE
|
Summary: Client part of TORQUE
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
Requires(posttrans): /usr/sbin/alternatives
|
Requires(posttrans): chkconfig
|
||||||
Requires(preun): /usr/sbin/alternatives
|
Requires(preun): chkconfig
|
||||||
Provides: pbs-client = %{version}-%{release}
|
|
||||||
|
|
||||||
|
|
||||||
%description client
|
%description client
|
||||||
%{shared_description}
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
||||||
|
manager providing control over batch jobs and distributed compute nodes.
|
||||||
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
||||||
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
||||||
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
||||||
|
other leading edge HPC organizations.
|
||||||
|
|
||||||
This package holds the command-line client programs.
|
This package holds the command-line client programs.
|
||||||
|
|
||||||
%package docs
|
%package docs
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
Summary: Documentation files for TORQUE
|
Summary: Documentation files for TORQUE
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Provides: pbs-docs = %{version}-%{release}
|
BuildArch: noarch
|
||||||
|
|
||||||
%description docs
|
%description docs
|
||||||
%{shared_description}
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
||||||
|
manager providing control over batch jobs and distributed compute nodes.
|
||||||
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
||||||
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
||||||
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
||||||
|
other leading edge HPC organizations.
|
||||||
|
|
||||||
This package holds the documentation files.
|
This package holds the documentation files.
|
||||||
|
|
||||||
%package gui
|
%package gui
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Summary: Graphical clients for TORQUE
|
Summary: Graphical clients for TORQUE
|
||||||
Requires: %{name}-client = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: torque-client = %{version}-%{release}
|
||||||
Provides: xpbs = %{version}-%{release}
|
|
||||||
Provides: xpbsmon = %{version}-%{release}
|
|
||||||
Provides: %{name}-x11tools = %{version}-%{release}
|
|
||||||
|
|
||||||
%description gui
|
%description gui
|
||||||
%{shared_description}
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
||||||
|
manager providing control over batch jobs and distributed compute nodes.
|
||||||
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
||||||
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
||||||
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
||||||
|
other leading edge HPC organizations.
|
||||||
|
|
||||||
This package holds the graphical clients.
|
This package holds the graphical clients.
|
||||||
|
|
||||||
%package -n lib%{name}
|
%package libs
|
||||||
Summary: Run-time libs for programs which will use the %{name} library
|
Summary: Run-time libs for programs which will use the %{name} library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: torque = %{version}-%{release}
|
||||||
|
Obsoletes: libtorque < 2.4.8-2
|
||||||
|
Provides: libtorque = %{version}-%{release}
|
||||||
|
|
||||||
|
%description libs
|
||||||
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
||||||
|
manager providing control over batch jobs and distributed compute nodes.
|
||||||
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
||||||
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
||||||
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
||||||
|
other leading edge HPC organizations.
|
||||||
|
|
||||||
%description -n lib%{name}
|
|
||||||
%{shared_description}
|
|
||||||
This package includes the shared libraries necessary for running TORQUE
|
This package includes the shared libraries necessary for running TORQUE
|
||||||
programs.
|
programs.
|
||||||
|
|
||||||
%package -n lib%{name}-devel
|
%package devel
|
||||||
Summary: Development tools for programs which will use the %{name} library
|
Summary: Development tools for programs which will use the %{name} library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: lib%{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: torque-libs = %{version}-%{release}
|
||||||
|
Obsoletes: libtorque-devel < 2.4.8-2
|
||||||
|
Provides: libtorque-devel = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
||||||
|
manager providing control over batch jobs and distributed compute nodes.
|
||||||
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
||||||
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
||||||
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
||||||
|
other leading edge HPC organizations.
|
||||||
|
|
||||||
%description -n lib%{name}-devel
|
|
||||||
%{shared_description}
|
|
||||||
This package includes the header files and static libraries
|
This package includes the header files and static libraries
|
||||||
necessary for developing programs which will use %{name}.
|
necessary for developing programs which will use %{name}.
|
||||||
|
|
||||||
%package mom
|
%package mom
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Summary: Node execution daemon for TORQUE
|
Summary: Node execution daemon for TORQUE
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: torque-libs = %{version}-%{release}
|
||||||
Provides: pbs-mom = %{version}-%{release}
|
%if ! %{use_rcp}
|
||||||
Requires(post): chkconfig
|
Requires: openssh-clients
|
||||||
Requires(preun): chkconfig
|
%endif
|
||||||
# This is for /sbin/service
|
Requires(post): chkconfig
|
||||||
Requires(preun): initscripts
|
Requires(preun): chkconfig
|
||||||
|
Requires(preun): initscripts
|
||||||
|
|
||||||
|
|
||||||
%description mom
|
%description mom
|
||||||
%{shared_description}
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
||||||
|
manager providing control over batch jobs and distributed compute nodes.
|
||||||
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
||||||
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
||||||
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
||||||
|
other leading edge HPC organizations.
|
||||||
|
|
||||||
This package holds the execute daemon required on every node.
|
This package holds the execute daemon required on every node.
|
||||||
|
|
||||||
%package pam
|
%package pam
|
||||||
Summary: PAM module for TORQUE MOM nodes
|
Summary: PAM module for TORQUE MOM nodes
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
|
||||||
%description pam
|
%description pam
|
||||||
%{shared_description}
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
||||||
|
manager providing control over batch jobs and distributed compute nodes.
|
||||||
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
||||||
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
||||||
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
||||||
|
other leading edge HPC organizations.
|
||||||
|
|
||||||
A simple PAM module to authorize users on PBS MOM nodes with a running job.
|
A simple PAM module to authorize users on PBS MOM nodes with a running job.
|
||||||
|
|
||||||
%package scheduler
|
%package scheduler
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Summary: Simple fifo scheduler for TORQUE
|
Summary: Simple fifo scheduler for TORQUE
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: torque-libs = %{version}-%{release}
|
||||||
Provides: pbs-scheduler = %{version}-%{release}
|
Requires(post): chkconfig
|
||||||
Requires(post): chkconfig
|
Requires(preun): chkconfig
|
||||||
Requires(preun): chkconfig
|
Requires(preun): initscripts
|
||||||
# This is for /sbin/service
|
|
||||||
Requires(preun): initscripts
|
|
||||||
|
|
||||||
%description scheduler
|
%description scheduler
|
||||||
%{shared_description}
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
||||||
|
manager providing control over batch jobs and distributed compute nodes.
|
||||||
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
||||||
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
||||||
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
||||||
|
other leading edge HPC organizations.
|
||||||
|
|
||||||
This package holds the fifo C scheduler.
|
This package holds the fifo C scheduler.
|
||||||
|
|
||||||
%package server
|
%package server
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Summary: The main part of TORQUE
|
Summary: The main part of TORQUE
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: torque-libs = %{version}-%{release}
|
||||||
Provides: pbs-server = %{version}-%{release}
|
%if ! %{use_rcp}
|
||||||
Requires(post): chkconfig
|
Requires: openssh-server
|
||||||
Requires(preun): chkconfig
|
%endif
|
||||||
# This is for /sbin/service
|
Requires(post): chkconfig
|
||||||
Requires(preun): initscripts
|
Requires(preun): chkconfig
|
||||||
|
Requires(preun): initscripts
|
||||||
|
|
||||||
%description server
|
%description server
|
||||||
%shared_description
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
||||||
|
manager providing control over batch jobs and distributed compute nodes.
|
||||||
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
||||||
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
||||||
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
||||||
|
other leading edge HPC organizations.
|
||||||
|
|
||||||
This package holds the server.
|
This package holds the server.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n torque-%{version}%{?snap:-snap.%snap}
|
%setup -q
|
||||||
install -pm 644 %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} .
|
install -pm 644 %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} \
|
||||||
|
%{SOURCE6} %{SOURCE7} %{SOURCE8} .
|
||||||
|
# rm x bit on some documentation.
|
||||||
|
chmod 644 torque.setup
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags} -Wno-overlength-strings"
|
CFLAGS="%{optflags} -Wno-overlength-strings"
|
||||||
@ -217,9 +276,18 @@ CFLAGS="%{optflags} -Wno-overlength-strings"
|
|||||||
--with-sendmail=%{_sbindir}/sendmail --disable-static \
|
--with-sendmail=%{_sbindir}/sendmail --disable-static \
|
||||||
%{server_nameflags} %{guiflags} %{tclflags} %{rcpflags}
|
%{server_nameflags} %{guiflags} %{tclflags} %{rcpflags}
|
||||||
|
|
||||||
|
|
||||||
cp -vf pbs-config-multilib pbs-config
|
cp -vf pbs-config-multilib pbs-config
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
for daemon in pbs_mom pbs_sched pbs_server
|
||||||
|
do
|
||||||
|
sed -i -e 's|^PBS_HOME=.*|PBS_HOME=%{torquehomedir}|' \
|
||||||
|
-e 's|^PBS_DAEMON=.*|PBS_DAEMON=%{_sbindir}/'$daemon'|' \
|
||||||
|
-e 's|chkconfig: 345|chkconfig: -|' \
|
||||||
|
contrib/init.d/$daemon
|
||||||
|
done
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} INSTALL="install -p" install
|
make DESTDIR=%{buildroot} INSTALL="install -p" install
|
||||||
|
|
||||||
@ -232,19 +300,14 @@ touch -r pbs-config-multilib %{buildroot}%{_bindir}/pbs-config
|
|||||||
|
|
||||||
# install initscripts
|
# install initscripts
|
||||||
mkdir -p %{buildroot}%{_initrddir}
|
mkdir -p %{buildroot}%{_initrddir}
|
||||||
for daemon in pbs_mom pbs_sched pbs_server; do
|
install -p -m 755 contrib/init.d/pbs_mom %{buildroot}%{_initrddir}/pbs_mom
|
||||||
sed -e 's|^PBS_HOME=.*|PBS_HOME=%{torquehomedir}|' \
|
install -p -m 755 contrib/init.d/pbs_sched %{buildroot}%{_initrddir}/pbs_sched
|
||||||
-e 's|^PBS_DAEMON=.*|PBS_DAEMON=%{_sbindir}/'$daemon'|' \
|
install -p -m 755 contrib/init.d/pbs_server %{buildroot}%{_initrddir}/pbs_server
|
||||||
-e 's|chkconfig: 345|chkconfig: -|' \
|
|
||||||
< contrib/init.d/$daemon > %{buildroot}%{_initrddir}/$daemon
|
|
||||||
chmod 755 %{buildroot}%{_initrddir}/$daemon
|
|
||||||
done
|
|
||||||
|
|
||||||
%if %{build_gui}
|
%if %{build_gui}
|
||||||
# This is really trivial, but cleans up an rpmlint warning
|
# This is really trivial, but cleans up an rpmlint warning
|
||||||
sed -i -e 's|%{_lib}/../||' %{buildroot}%{_bindir}/xpbs
|
sed -i -e 's|%{_lib}/../||' %{buildroot}%{_bindir}/xpbs
|
||||||
|
|
||||||
# install .desktop files and my ugly icons
|
|
||||||
desktop-file-install --dir %{buildroot}%{_datadir}/applications xpbs.desktop
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications xpbs.desktop
|
||||||
desktop-file-install --dir %{buildroot}%{_datadir}/applications xpbsmon.desktop
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications xpbsmon.desktop
|
||||||
install -d %{buildroot}%{_datadir}/pixmaps
|
install -d %{buildroot}%{_datadir}/pixmaps
|
||||||
@ -259,6 +322,51 @@ do
|
|||||||
%{buildroot}%{_mandir}/man1/${bin}-torque.1
|
%{buildroot}%{_mandir}/man1/${bin}-torque.1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Relocate configuration files.
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/torque
|
||||||
|
pushd %{buildroot}%{torquehomedir}
|
||||||
|
mv pbs_environment %{buildroot}%{_sysconfdir}/torque
|
||||||
|
mv server_name %{buildroot}%{_sysconfdir}/torque
|
||||||
|
ln -s %{_sysconfdir}/torque/pbs_environment .
|
||||||
|
ln -s %{_sysconfdir}/torque/server_name .
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Relocate mom_logs to /var/log
|
||||||
|
mkdir -p %{buildroot}%{_var}/log/torque
|
||||||
|
pushd %{buildroot}%{torquehomedir}
|
||||||
|
mv mom_logs %{buildroot}%{_var}/log/torque
|
||||||
|
ln -s %{_var}/log/torque/mom_logs .
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Install mom_priv/config file to /etc/torque/mom
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/torque/mom
|
||||||
|
install -p -m 644 config %{buildroot}%{_sysconfdir}/torque/mom/config
|
||||||
|
pushd %{buildroot}%{torquehomedir}/mom_priv
|
||||||
|
ln -s %{_sysconfdir}/torque/mom/config .
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Install sched_config files to /etc/torque/sched
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/torque/sched
|
||||||
|
pushd %{buildroot}%{torquehomedir}/sched_priv
|
||||||
|
for CONFIG in dedicated_time holidays resource_group sched_config ; do
|
||||||
|
mv $CONFIG %{buildroot}%{_sysconfdir}/torque/sched/.
|
||||||
|
ln -s %{_sysconfdir}/torque/sched/$CONFIG .
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Relocate sched_logs to /var/log
|
||||||
|
pushd %{buildroot}%{torquehomedir}
|
||||||
|
mv sched_logs %{buildroot}%{_var}/log/torque
|
||||||
|
ln -s %{_var}/log/torque/sched_logs .
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Relocate server_logs to /var/log
|
||||||
|
pushd %{buildroot}%{torquehomedir}
|
||||||
|
mv server_logs %{buildroot}%{_var}/log/torque
|
||||||
|
ln -s %{_var}/log/torque/server_logs .
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
@ -266,17 +374,17 @@ rm -rf %{buildroot}
|
|||||||
if grep -q "PBS services" /etc/services;then
|
if grep -q "PBS services" /etc/services;then
|
||||||
: PBS services already installed
|
: PBS services already installed
|
||||||
else
|
else
|
||||||
cat<<-__EOF__>>/etc/services
|
cat<<__EOF__>>/etc/services
|
||||||
# Standard PBS services
|
# Standard PBS services
|
||||||
pbs 15001/tcp # pbs server (pbs_server)
|
pbs 15001/tcp # pbs server (pbs_server)
|
||||||
pbs 15001/udp # pbs server (pbs_server)
|
pbs 15001/udp # pbs server (pbs_server)
|
||||||
pbs_mom 15002/tcp # mom to/from server
|
pbs_mom 15002/tcp # mom to/from server
|
||||||
pbs_mom 15002/udp # mom to/from server
|
pbs_mom 15002/udp # mom to/from server
|
||||||
pbs_resmom 15003/tcp # mom resource management requests
|
pbs_resmom 15003/tcp # mom resource management requests
|
||||||
pbs_resmom 15003/udp # mom resource management requests
|
pbs_resmom 15003/udp # mom resource management requests
|
||||||
pbs_sched 15004/tcp # scheduler
|
pbs_sched 15004/tcp # scheduler
|
||||||
pbs_sched 15004/udp # scheduler
|
pbs_sched 15004/udp # scheduler
|
||||||
__EOF__
|
__EOF__
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%posttrans client
|
%posttrans client
|
||||||
@ -307,8 +415,8 @@ if [ $1 -eq 0 ]; then
|
|||||||
/usr/sbin/alternatives --remove qsub %{_bindir}/qsub-torque
|
/usr/sbin/alternatives --remove qsub %{_bindir}/qsub-torque
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post -n lib%{name} -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
%postun -n lib%{name} -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%post mom
|
%post mom
|
||||||
/sbin/chkconfig --add pbs_mom
|
/sbin/chkconfig --add pbs_mom
|
||||||
@ -339,12 +447,17 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%doc README.torque torque.setup Release_Notes CHANGELOG PBS_License.txt README-localhost
|
%doc README.torque torque.setup Release_Notes
|
||||||
%config(noreplace) %{torquehomedir}/pbs_environment
|
%doc CHANGELOG PBS_License.txt README.Fedora
|
||||||
%config(noreplace) %{torquehomedir}/server_name
|
%dir %{torquehomedir}
|
||||||
%dir %{torquehomedir}
|
%dir %{torquehomedir}/aux
|
||||||
%{torquehomedir}/aux
|
%dir %{torquehomedir}/spool
|
||||||
%{torquehomedir}/spool
|
%dir %{torquehomedir}/undelivered
|
||||||
|
%{torquehomedir}/pbs_environment
|
||||||
|
%{torquehomedir}/server_name
|
||||||
|
%config(noreplace) %{_sysconfdir}/torque/pbs_environment
|
||||||
|
%config(noreplace) %{_sysconfdir}/torque/server_name
|
||||||
|
|
||||||
|
|
||||||
%files client
|
%files client
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
@ -364,25 +477,97 @@ fi
|
|||||||
%if %{use_tcl}
|
%if %{use_tcl}
|
||||||
%{_bindir}/pbs_tclsh
|
%{_bindir}/pbs_tclsh
|
||||||
%endif
|
%endif
|
||||||
%{_mandir}/man1/qsub-torque.1.gz
|
%{_mandir}/man1/qsub-torque.1.*
|
||||||
%{_mandir}/man1/qalter-torque.1.gz
|
%{_mandir}/man1/qalter-torque.1.*
|
||||||
%{_mandir}/man1/qdel-torque.1.gz
|
%{_mandir}/man1/qdel-torque.1.*
|
||||||
%{_mandir}/man1/qhold-torque.1.gz
|
%{_mandir}/man1/qhold-torque.1.*
|
||||||
%{_mandir}/man1/qrls-torque.1.gz
|
%{_mandir}/man1/qrls-torque.1.*
|
||||||
%{_mandir}/man1/qselect-torque.1.gz
|
%{_mandir}/man1/qselect-torque.1.*
|
||||||
%{_mandir}/man1/qstat-torque.1.gz
|
%{_mandir}/man1/qstat-torque.1.*
|
||||||
|
|
||||||
|
|
||||||
%files docs
|
%files docs
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%doc doc/admin_guide.ps
|
%doc doc/admin_guide.ps
|
||||||
%{_mandir}/man*/*
|
%{_mandir}/man1/basl2c.1.*
|
||||||
%exclude %{_mandir}/man1/qsub-torque.1.gz
|
%{_mandir}/man1/nqs2pbs.1.*
|
||||||
%exclude %{_mandir}/man1/qalter-torque.1.gz
|
%{_mandir}/man1/pbs.1.*
|
||||||
%exclude %{_mandir}/man1/qdel-torque.1.gz
|
%{_mandir}/man1/pbsdsh.1.*
|
||||||
%exclude %{_mandir}/man1/qhold-torque.1.gz
|
%{_mandir}/man1/qchkpt.1.*
|
||||||
%exclude %{_mandir}/man1/qrls-torque.1.gz
|
%{_mandir}/man1/qmgr.1.*
|
||||||
%exclude %{_mandir}/man1/qselect-torque.1.gz
|
%{_mandir}/man1/qmove.1.*
|
||||||
%exclude %{_mandir}/man1/qstat-torque.1.gz
|
%{_mandir}/man1/qmsg.1.*
|
||||||
|
%{_mandir}/man1/qorder.1.*
|
||||||
|
%{_mandir}/man1/qrerun.1.*
|
||||||
|
%{_mandir}/man1/qsig.1.*
|
||||||
|
%{_mandir}/man1/xpbs.1.*
|
||||||
|
%{_mandir}/man1/xpbsmon.1.*
|
||||||
|
%{_mandir}/man3/pbs_alterjob.3.*
|
||||||
|
%{_mandir}/man3/pbs_connect.3.*
|
||||||
|
%{_mandir}/man3/pbs_default.3.*
|
||||||
|
%{_mandir}/man3/pbs_deljob.3.*
|
||||||
|
%{_mandir}/man3/pbs_disconnect.3.*
|
||||||
|
%{_mandir}/man3/pbs_geterrmsg.3.*
|
||||||
|
%{_mandir}/man3/pbs_holdjob.3.*
|
||||||
|
%{_mandir}/man3/pbs_locate.3.*
|
||||||
|
%{_mandir}/man3/pbs_manager.3.*
|
||||||
|
%{_mandir}/man3/pbs_movejob.3.*
|
||||||
|
%{_mandir}/man3/pbs_msgjob.3.*
|
||||||
|
%{_mandir}/man3/pbs_orderjob.3.*
|
||||||
|
%{_mandir}/man3/pbs_rerunjob.3.*
|
||||||
|
%{_mandir}/man3/pbs_rescquery.3.*
|
||||||
|
%{_mandir}/man3/pbs_rescreserve.3.*
|
||||||
|
%{_mandir}/man3/pbs_rlsjob.3.*
|
||||||
|
%{_mandir}/man3/pbs_runjob.3.*
|
||||||
|
%{_mandir}/man3/pbs_selectjob.3.*
|
||||||
|
%{_mandir}/man3/pbs_selstat.3.*
|
||||||
|
%{_mandir}/man3/pbs_sigjob.3.*
|
||||||
|
%{_mandir}/man3/pbs_stagein.3.*
|
||||||
|
%{_mandir}/man3/pbs_statjob.3.*
|
||||||
|
%{_mandir}/man3/pbs_statnode.3.*
|
||||||
|
%{_mandir}/man3/pbs_statque.3.*
|
||||||
|
%{_mandir}/man3/pbs_statserver.3.*
|
||||||
|
%{_mandir}/man3/pbs_submit.3.*
|
||||||
|
%{_mandir}/man3/pbs_terminate.3.*
|
||||||
|
%{_mandir}/man3/rpp.3.*
|
||||||
|
%{_mandir}/man3/tm.3.*
|
||||||
|
%{_mandir}/man7/pbs_job_attributes.7.*
|
||||||
|
%{_mandir}/man7/pbs_queue_attributes.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_aix4.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_aix5.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_darwin.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_digitalunix.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_freebsd.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_fujitsu.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_hpux10.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_hpux11.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_irix5.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_irix6.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_irix6array.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_linux.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_netbsd.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_solaris5.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_solaris7.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_sp2.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_sunos4.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_unicos8.7.*
|
||||||
|
%{_mandir}/man7/pbs_resources_unicosmk2.7.*
|
||||||
|
%{_mandir}/man7/pbs_server_attributes.7.*
|
||||||
|
%{_mandir}/man8/pbs_mom.8.*
|
||||||
|
%{_mandir}/man8/pbs_sched.8.*
|
||||||
|
%{_mandir}/man8/pbs_sched_basl.8.*
|
||||||
|
%{_mandir}/man8/pbs_sched_cc.8.*
|
||||||
|
%{_mandir}/man8/pbs_sched_tcl.8.*
|
||||||
|
%{_mandir}/man8/pbs_server.8.*
|
||||||
|
%{_mandir}/man8/pbsnodes.8.*
|
||||||
|
%{_mandir}/man8/qdisable.8.*
|
||||||
|
%{_mandir}/man8/qenable.8.*
|
||||||
|
%{_mandir}/man8/qrun.8.*
|
||||||
|
%{_mandir}/man8/qstart.8.*
|
||||||
|
%{_mandir}/man8/qstop.8.*
|
||||||
|
%{_mandir}/man8/qterm.8.*
|
||||||
|
|
||||||
|
|
||||||
%if %{build_gui}
|
%if %{build_gui}
|
||||||
%files gui
|
%files gui
|
||||||
@ -396,11 +581,11 @@ fi
|
|||||||
%{_datadir}/pixmaps/*.png
|
%{_datadir}/pixmaps/*.png
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n lib%{name}
|
%files libs
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files -n lib%{name}-devel
|
%files devel
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_includedir}/torque
|
%{_includedir}/torque
|
||||||
@ -416,10 +601,14 @@ fi
|
|||||||
%if %{use_rcp}
|
%if %{use_rcp}
|
||||||
%attr(4755, root, root) %{_sbindir}/pbs_rcp
|
%attr(4755, root, root) %{_sbindir}/pbs_rcp
|
||||||
%endif
|
%endif
|
||||||
%{torquehomedir}/mom_priv/
|
%{torquehomedir}/mom_priv
|
||||||
%{torquehomedir}/mom_logs
|
%{torquehomedir}/mom_logs
|
||||||
%{torquehomedir}/checkpoint
|
%{torquehomedir}/checkpoint
|
||||||
%{torquehomedir}/undelivered
|
%{torquehomedir}/undelivered
|
||||||
|
%dir %{_var}/log/torque
|
||||||
|
%dir %{_var}/log/torque/mom_logs
|
||||||
|
%dir %{_sysconfdir}/torque/mom
|
||||||
|
%config(noreplace) %{_sysconfdir}/torque/mom/config
|
||||||
|
|
||||||
%files pam
|
%files pam
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
@ -434,6 +623,12 @@ fi
|
|||||||
%dir %{torquehomedir}/sched_priv
|
%dir %{torquehomedir}/sched_priv
|
||||||
%config(noreplace) %{torquehomedir}/sched_priv/*
|
%config(noreplace) %{torquehomedir}/sched_priv/*
|
||||||
%{torquehomedir}/sched_logs
|
%{torquehomedir}/sched_logs
|
||||||
|
%dir %{_var}/log/torque/sched_logs
|
||||||
|
%dir %{_sysconfdir}/torque/sched
|
||||||
|
%config(noreplace) %{_sysconfdir}/torque/sched/dedicated_time
|
||||||
|
%config(noreplace) %{_sysconfdir}/torque/sched/holidays
|
||||||
|
%config(noreplace) %{_sysconfdir}/torque/sched/resource_group
|
||||||
|
%config(noreplace) %{_sysconfdir}/torque/sched/sched_config
|
||||||
|
|
||||||
%files server
|
%files server
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
@ -441,10 +636,29 @@ fi
|
|||||||
%attr(0755, root, root) %{_sbindir}/momctl
|
%attr(0755, root, root) %{_sbindir}/momctl
|
||||||
%{_sbindir}/qserverd
|
%{_sbindir}/qserverd
|
||||||
%{_initrddir}/pbs_server
|
%{_initrddir}/pbs_server
|
||||||
|
%dir %{_var}/log/torque/server_logs
|
||||||
%{torquehomedir}/server_logs
|
%{torquehomedir}/server_logs
|
||||||
%{torquehomedir}/server_priv
|
%{torquehomedir}/server_priv
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 1 2010 Steve Traylen <steve.traylen@cern.ch> - 2.4.8-2
|
||||||
|
- Set torquehome to /var/lib/torque rather than /var/torque
|
||||||
|
- Drop provides and obsoletes since never present in Fedora/EPEL.
|
||||||
|
- Don't use a variable for the description.
|
||||||
|
- Split install of init.d scripts to build and install sections
|
||||||
|
as appropriate.
|
||||||
|
- Mark docs subpackage as noarch.
|
||||||
|
- Rename libtorque package to more normal torque-libs package.
|
||||||
|
- Rename libtorque-devel package to more normal torque-devel package.
|
||||||
|
- Remove the unused epoch and snapshot variables.
|
||||||
|
- Have mom requires openssh-clients and server openssh-server
|
||||||
|
- Have mom, sched and server log to /var/log/torque and symlinks
|
||||||
|
- Move configurtion files to /etc/torque and symlink in expected.
|
||||||
|
- Be more explicit about man page in the files section.
|
||||||
|
- Rename README-localhost to README.Fedora to make it more obvious
|
||||||
|
it's related to this package.
|
||||||
|
|
||||||
* Wed Jun 2 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.4.8-1
|
* Wed Jun 2 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.4.8-1
|
||||||
- update to 2.4.8
|
- update to 2.4.8
|
||||||
- drop static libs
|
- drop static libs
|
||||||
|
Loading…
Reference in New Issue
Block a user