Kouhei Sutou
null+****@clear*****
Wed Nov 30 19:31:09 JST 2016
Kouhei Sutou 2016-11-30 19:31:09 +0900 (Wed, 30 Nov 2016) New Revision: c68f7b0def95a30eedccabc5c38f1a3fb6c489e8 https://github.com/pgroonga/pgroonga/commit/c68f7b0def95a30eedccabc5c38f1a3fb6c489e8 Message: package yum: "yum install http://..." doesn't work on CentOS 5... Modified files: packages/yum/build-rpm.sh Modified: packages/yum/build-rpm.sh (+8 -2) =================================================================== --- packages/yum/build-rpm.sh 2016-11-30 18:25:50 +0900 (5f7a892) +++ packages/yum/build-rpm.sh 2016-11-30 19:31:09 +0900 (22b9887) @@ -31,8 +31,14 @@ esac pgdg_rpm=pgdg-centos${PG_PACKAGE_VERSION}-${PG_VERSION}-3.noarch.rpm run wget --no-check-certificate https://yum.postgresql.org/${PG_VERSION}/redhat/rhel-${distribution_version}-${architecture}/${pgdg_rpm} run rpm -ivh ${pgdg_rpm} -run yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm -run yum makecache +groonga_release_rpm=groonga-release-1.2.0-1.noarch.rpm +groonga_release_rpm_url=http://packages.groonga.org/centos/${groonga_release_rpm} +if [ "${distribution_version}" = "5" ]; then + run wget ${groonga_release_rpm_url} + run yum install -y --nogpgcheck ${groonga_release_rpm} +else + run yum install -y ${groonga_release_rpm_url} +fi run yum groupinstall -y "Development Tools" run yum install -y rpm-build rpmdevtools tar ${DEPENDED_PACKAGES} -------------- next part -------------- HTML����������������������������...下載