TORQUEで使用されるリモートシェルはデフォでssh/scpみたい。
これをrsh/rcpにするにはリコンパイルが必要。
ここでは torque-2.5.13.tar.gz に含まれる torque.spec ファイルを
調整して rsh/rcp が有効な rpm ファイルを作ります。
まずは、torque-2.5.13.tar.gzから spec ファイルを抜き取る
[root@pbs ~]# tar tvfz torque-2.5.13.tar.gz | grep spec
-rw-r--r-- 1167/2010 13406 2013-08-02 01:13 torque-2.5.13/torque.spec
-rw-r--r-- 1167/2010 13419 2013-08-02 01:10 torque-2.5.13/buildutils/torque.spec.in
[root@pbs ~]#
[root@pbs ~]# tar xvfz torque-2.5.13.tar.gz torque-2.5.13/torque.spec
torque-2.5.13/torque.spec
[root@pbs ~]#抜き取った torque.spec ファイルを編集して、 rsh/rcp を有効にする。
[root@pbs ~]# vi torque-2.5.13/torque.spec
[root@pbs ~]# diff -u torque-2.5.13/torque.spec.orig torque-2.5.13/torque.spec
--- torque-2.5.13/torque.spec.orig 2015-05-04 15:09:41.004132689 +0900
+++ torque-2.5.13/torque.spec 2015-05-04 15:09:55.515414458 +0900
@@ -39,7 +39,7 @@
%define ac_with_ha --%{?with_ha:en}%{!?with_ha:dis}able-high-availability
%define ac_with_munge --%{?with_munge:en}%{!?with_munge:dis}able-munge-auth
%define ac_with_pam --with%{!?with_pam:out}-pam%{?with_pam:=/%{_lib}/security}
-%define ac_with_scp --with-rcp=%{?with_scp:scp}%{!?with_scp:pbs_rcp}
+%define ac_with_scp --with-rcp=/usr/bin/rcp
%define ac_with_spool --%{?with_spool:en}%{!?with_spool:dis}able-spool
%define ac_with_syslog --%{?with_syslog:en}%{!?with_syslog:dis}able-syslog
[root@pbs ~]#rpmファイルを作るべく、下準備を行って、specでrpmbuildを実行する
[root@pbs ~]# mkdir -p ~/rpmbuild/{BUILD,SOURCES,SPECS,SRPMS,RPMS}
[root@pbs ~]# cp torque-2.5.13.tar.gz ~/rpmbuild/SOURCES/
[root@pbs ~]# chown root:root torque-2.5.13/torque.spec
[root@pbs ~]# rpmbuild -ba torque-2.5.13/torque.specこれで ~/rpmbuild/RPMS/x86_64 に目的のrpmが作られる。
[root@pbs ~]# ls -l rpmbuild/RPMS/x86_64/
合計 2964
-rw-r--r-- 1 root root 621136 5月 4 15:25 2015 torque-2.5.13-1.cri.x86_64.rpm
-rw-r--r-- 1 root root 152564 5月 4 15:25 2015 torque-client-2.5.13-1.cri.x86_64.rpm
-rw-r--r-- 1 root root 1832216 5月 4 15:25 2015 torque-debuginfo-2.5.13-1.cri.x86_64.rpm
-rw-r--r-- 1 root root 112028 5月 4 15:25 2015 torque-devel-2.5.13-1.cri.x86_64.rpm
-rw-r--r-- 1 root root 40372 5月 4 15:25 2015 torque-scheduler-2.5.13-1.cri.x86_64.rpm
-rw-r--r-- 1 root root 265040 5月 4 15:25 2015 torque-server-2.5.13-1.cri.x86_64.rpm
[root@pbs ~]#*configureのログは、rpmbuild/BUILD/torque-2.5.13/config.log に書かれているので確認もそこでできる。