Skip to content

Commit

Permalink
pg-rex operation tool 16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
horiguti committed Mar 7, 2024
1 parent b17c3d8 commit 3467a28
Show file tree
Hide file tree
Showing 18 changed files with 8,115 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pg-rex_operation_tools/INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
===============================================================
PG-REX 運用補助ツールをソースセットからインストールする方法
===============================================================

PG-REX 運用補助ツールをソースセットからインストールする方法を記載します。

1) IO-Tty-1.11 と Net-OpenSSH-0.62 を以下の URL からダウンロードします
http://search.cpan.org/dist/IO-Tty/
http://search.cpan.org/dist/Net-OpenSSH/


2) IO-Tty-1.11 を解凍しインストールします
# tar zxvf IO-Tty-1.11.tar.gz

# cd IO-Tty-1.11
# perl Makefile.PL
# make
# make install


3) Net-OpenSSH-0.62 を解凍しインストールします
# tar zxvf Net-OpenSSH-0.62.tar.gz

# cd Net-OpenSSH-0.62
# perl Makefile.PL
# make
# make install


4) PG-REX 運用補助ツール一式を解凍し配置します
# tar zxvf PG-REX_operation_tools-<ver>.tar.gz

# cd pg-rex_operation_tools-<ver>
# perl Makefile.PL
# make
# make pure_install


以上
26 changes: 26 additions & 0 deletions pg-rex_operation_tools/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Copyright (c) 2012-2024, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the NIPPON TELEGRAPH AND TELEPHONE CORPORATION
(NTT) nor the names of its contributors may be used to endorse or
promote products derived from this software without specific prior
written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18 changes: 18 additions & 0 deletions pg-rex_operation_tools/MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
bin/pg-rex_archivefile_delete
bin/pg-rex_primary_start
bin/pg-rex_standby_start
bin/pg-rex_stop
bin/pg-rex_switchover
INSTALL
lib.in/command-rhel8.pm
lib/PGRex/command.pm
lib/PGRex/common.pm
lib/PGRex/Po/en.pm
lib/PGRex/Po/ja.pm
LICENSE
Makefile.PL
man/pg-rex_tools_manual.css
man/pg-rex_tools_manual-ja.md
man/html/pg-rex_tools_manual-ja.html
MANIFEST This list of files
pg-rex_tools.conf
39 changes: 39 additions & 0 deletions pg-rex_operation_tools/Makefile.PL
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
use strict;
use File::Copy "cp";
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

my $release;
my $lib_command;

if ($^O ne 'linux') {
die("$^O OS unsupported");
}

$release = `cat /etc/redhat-release 2> /dev/null`
or die("unsupported linux distribution other than Redhat");

if ($release !~ /Red Hat Enterprise Linux release (\d+)/ &&
$release !~ /CentOS (?:Linux )?release (\d+)/) {
die("can't get RedHat Linux release");
}
if (($1 eq '8') || ($1 eq '9')) {
$lib_command = 'lib.in/command-rhel8.pm';
}
else {
die("RedHat Linux $1 unsupported");
}

cp($lib_command, 'lib/PGRex/command.pm')
or die("copy failed ($lib_command): $!");

WriteMakefile(
NAME => 'pg-rex_operation_tools',
VERSION => '16.0',
PREREQ_PM => { 'Net::OpenSSH' => 0.62, 'IO::Tty' => 1.11 },
PREFIX => '/usr/local',
INST_BIN => 'bin',
INST_LIB => 'lib',
INST_MAN1DIR => 'man/html'
);
Loading

0 comments on commit 3467a28

Please sign in to comment.