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 に書かれているので確認もそこでできる。

最新の60件
2026-09-05 2026-08-31 2026-08-27 2026-08-24 2026-08-20 2026-08-18 2026-08-17 2026-08-16 2026-08-15 2026-08-13 2026-08-12 2026-08-11 2026-08-09 2026-07-30 2026-07-25 2026-07-24 2026-07-20 2026-07-18 2026-07-17 2026-07-16 2026-07-08 2026-07-07 2026-07-06 2026-07-04 2026-07-02 2026-06-27 2026-06-24 2026-06-21 2026-06-17 2026-06-14 2026-06-13 2026-06-09 2026-06-08 2026-06-05 2026-06-04 2026-06-03

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2015-05-04 (月) 15:27:51