差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
linux:openlitespeed:fedora_support_for_build_scripts [2022/10/05 12:59] – 削除 - 外部編集 (Unknown date) 非ログインユーザー | linux:openlitespeed:fedora_support_for_build_scripts [2023/04/18 00:25] (現在) – [Fedora 対応後のビルドスクリプト] ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== OpenLiteSpeed ビルドスクリプトの Fedora 対応🤤 ====== | ||
+ | [[https:// | ||
+ | |||
+ | <wrap em> | ||
+ | |||
+ | ソースコードのダウンロード🤤\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
+ | <b class=GRN> | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | Cloning into ' | ||
+ | remote: Enumerating objects: 1888, done. | ||
+ | remote: Counting objects: 100% (1888/ | ||
+ | remote: Compressing objects: 100% (1739/ | ||
+ | remote: Total 1888 (delta 679), reused 572 (delta 108), pack-reused 0 | ||
+ | Receiving objects: 100% (1888/ | ||
+ | Resolving deltas: 100% (679/679), done. | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 現時点の最新ソースコードの LSWS バージョンは...🤔\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
+ | <b class=GRN> | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | set(<b class=RED> | ||
+ | set(<b class=RED> | ||
+ | set(<b class=RED> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Linux を最新に更新する🤔 | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | $ sudo dnf update -y | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | しかし、これは Fedora 36 向けには作られていない😅 | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | OS is Linux, APP_MGR_CMD is dnf. | ||
+ | メタデータの期限切れの最終確認: | ||
+ | 依存関係が解決しました。 | ||
+ | 行うべきことはありません。 | ||
+ | 完了しました! | ||
+ | メタデータの期限切れの最終確認: | ||
+ | 一致した引数がありません: | ||
+ | エラー: 一致するものが見つかりません: | ||
+ | This script only works on 7/8/9 for centos family._Static_assert | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP mincode>< | ||
+ | This script only works on 7/8/9 for centos family._Static_assert | ||
+ | このスクリプトは、centos ファミリの 7/8/9 でのみ機能します。_Static_assert😥 | ||
+ | </ | ||
+ | |||
+ | ===== build.sh の修正 ===== | ||
+ | |||
+ | ==== Fedora で動作しない原因を探る ==== | ||
+ | まずは、シェルスクリプトをバックアップします...🤔\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | シェルスクリプトを直します...🤔\\ | ||
+ | 直すには動きを理解する必要があるので、'' | ||
+ | **/bin/sh -> bash** ''/ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
+ | </ | ||
+ | <WRAP color_code>< | ||
+ | #!/bin/sh | ||
+ | </ | ||
+ | ↓ | ||
+ | <WRAP color_code>< | ||
+ | #!/bin/sh -x | ||
+ | </ | ||
+ | <WRAP color_command>< | ||
+ | $ ll /bin/sh | ||
+ | </ | ||
+ | <WRAP color_command>< | ||
+ | lrwxrwxrwx. 1 root root 4 1月 20 2022 <b class=HIC>/ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 直したシェルスクリプトを実行します🤤\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
+ | </ | ||
+ | <WRAP color_result_long>< | ||
+ | + VERSION=1.0.1 | ||
+ | + moduledir=' | ||
+ | ++ uname | ||
+ | + OS=Linux | ||
+ | ++ arch | ||
+ | + ARCH=x86_64 | ||
+ | + ISLINUX=no | ||
+ | + VERSIONNUMBER= | ||
+ | + ' | ||
+ | + ' | ||
+ | + APP_MGRS=' | ||
+ | + APP_MGR_CMD= | ||
+ | + for APP_MGR in ${APP_MGRS} | ||
+ | ++ which apt | ||
+ | + APP_MGR_CHECK= | ||
+ | + ' | ||
+ | + for APP_MGR in ${APP_MGRS} | ||
+ | ++ which apt-get | ||
+ | + APP_MGR_CHECK= | ||
+ | + ' | ||
+ | + for APP_MGR in ${APP_MGRS} | ||
+ | ++ which dnf | ||
+ | + APP_MGR_CHECK= | ||
+ | + ' | ||
+ | + APP_MGR_CMD=dnf | ||
+ | + break | ||
+ | + echo OS is Linux, APP_MGR_CMD is dnf. | ||
+ | OS is Linux, APP_MGR_CMD is dnf. | ||
+ | + ' | ||
+ | ++ dirname ./build.sh | ||
+ | + cd . | ||
+ | ++ pwd | ||
+ | + CURDIR=/ | ||
+ | + ' | ||
+ | + ' | ||
+ | + ISLINUX=yes | ||
+ | + prepareLinux | ||
+ | + OSTYPE=unknownlinux | ||
+ | + ' | ||
+ | + OSTYPE=CENTOS | ||
+ | + yum update -y | ||
+ | メタデータの期限切れの最終確認: | ||
+ | + yum install -y epel-release | ||
+ | メタデータの期限切れの最終確認: | ||
+ | 一致した引数がありません: | ||
+ | エラー: 一致するものが見つかりません: | ||
+ | ++ cat / | ||
+ | + output=' | ||
+ | + echo Fedora release 36 ' | ||
+ | + grep ' 7.' | ||
+ | + echo Fedora release 36 ' | ||
+ | + grep ' 8.' | ||
+ | + echo Fedora release 36 ' | ||
+ | + grep ' 9.' | ||
+ | + ' | ||
+ | + ' | ||
+ | + ' | ||
+ | + echo This script only works on 7/8/9 for centos family._Static_assert | ||
+ | This script only works on 7/8/9 for centos family._Static_assert | ||
+ | + exit 1 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 最低限の対応でスクリプトをデバッグする ==== | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | 1c1 | ||
+ | < #!/bin/sh -x | ||
+ | --- | ||
+ | > #!/bin/sh | ||
+ | 162c162 | ||
+ | < #yum install -y epel-release | ||
+ | --- | ||
+ | > yum install -y epel-release | ||
+ | 164,166c164 | ||
+ | < if echo $output | grep " | ||
+ | < | ||
+ | < elif echo $output | grep " 7."; then | ||
+ | --- | ||
+ | > if echo $output | grep " 7."; then | ||
+ | 174,177d171 | ||
+ | < if [ ! " | ||
+ | < yum install -y epel-release | ||
+ | < fi | ||
+ | < | ||
+ | 193,194c187 | ||
+ | < #elif [ " | ||
+ | < elif [ " | ||
+ | --- | ||
+ | > elif [ " | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | シェルスクリプトのデバッグ...🤔\\ | ||
+ | [[+tab|.fedora_support_for_scripts: | ||
+ | |||
+ | **golang** パッケージがインストールされていない🤔\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_result>< | ||
+ | -- Checking for module ' | ||
+ | -- | ||
+ | libunwind not found. Disabling unwind tests. | ||
+ | <b class=RED> | ||
+ | Could not find Go | ||
+ | |||
+ | </b> | ||
+ | -- Configuring incomplete, errors occurred! | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | **autoheader** は **autoconf** パッケージに含まれる...🤔\\ | ||
+ | **go** で **golang** パッケージがインストールされない...😢\\ | ||
+ | <wrap em> | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | </ | ||
+ | <WRAP color_code>< | ||
+ | 198c207,208 | ||
+ | < yum -y install libtool autoconf autoheader automake wget go clang patch expat-devel | ||
+ | --- | ||
+ | > #yum -y install libtool autoconf autoheader automake wget go clang patch expat-devel | ||
+ | > yum -y install libtool autoconf automake wget golang clang patch expat-devel | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | [[+tab|.fedora_support_for_scripts: | ||
+ | |||
+ | ===== Fedora 対応後のビルドスクリプト ===== | ||
+ | 修正後の build.sh は、以下の内容です🤤\\ | ||
+ | < | ||
+ | <div class=" | ||
+ | < | ||
+ | @import '/ | ||
+ | @import '/ | ||
+ | |||
+ | .dokuwiki pre { | ||
+ | box-shadow: unset; | ||
+ | } | ||
+ | div.embed_codemirror001 div.CodeMirror * { | ||
+ | font-family: | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | div.embed_codemirror001 div.CodeMirror { | ||
+ | height: 480px; | ||
+ | } | ||
+ | .select-theme .form-control { width: auto; display: inline-block; | ||
+ | </ | ||
+ | |||
+ | <script src="/ | ||
+ | <!-- 言語に応じたjsファイルを読み込む --> | ||
+ | <script src="/ | ||
+ | |||
+ | < | ||
+ | #!/bin/sh -x | ||
+ | ############################################################################## | ||
+ | # Open LiteSpeed is an open source HTTP server. | ||
+ | # Copyright (C) 2013 - 2022 LiteSpeed Technologies, | ||
+ | # # | ||
+ | # This program is free software: you can redistribute it and/or modify | ||
+ | # it under the terms of the GNU General Public License as published by # | ||
+ | # the Free Software Foundation, either version 3 of the License, or # | ||
+ | # (at your option) any later version. | ||
+ | # # | ||
+ | # This program is distributed in the hope that it will be useful, | ||
+ | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | ||
+ | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | ||
+ | # GNU General Public License for more details. | ||
+ | # # | ||
+ | # You should have received a copy of the GNU General Public License | ||
+ | # along with this program. If not, see http:// | ||
+ | ############################################################################## | ||
+ | |||
+ | ### Author: dxu@litespeedtech.com (David Shue) | ||
+ | |||
+ | VERSION=1.0.1 | ||
+ | moduledir=" | ||
+ | OS=`uname` | ||
+ | ARCH=`arch` | ||
+ | ISLINUX=no | ||
+ | VERSIONNUMBER= | ||
+ | |||
+ | if [ " | ||
+ | APP_MGRS=" | ||
+ | elif [ " | ||
+ | APP_MGRS=" | ||
+ | elif [ " | ||
+ | APP_MGRS=" | ||
+ | else | ||
+ | echo ' | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | APP_MGR_CMD= | ||
+ | for APP_MGR in ${APP_MGRS}; | ||
+ | APP_MGR_CHECK=`which ${APP_MGR} &>/ | ||
+ | if [ $? -eq 0 ] ; then | ||
+ | APP_MGR_CMD=" | ||
+ | break | ||
+ | fi | ||
+ | done | ||
+ | |||
+ | echo OS is ${OS}, APP_MGR_CMD is ${APP_MGR_CMD}. | ||
+ | if [ " | ||
+ | echo 'Can not find package installation command, quit.' | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | # getVersionNumber0() | ||
+ | # { | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # unset IFS; | ||
+ | # if [ x${parts[2]} = ' | ||
+ | # | ||
+ | # else | ||
+ | # #When x${parts[2]} is not empty, add 1 more to make sure 1.5 and 1.5.0 is not same | ||
+ | # | ||
+ | # fi | ||
+ | # } | ||
+ | |||
+ | getVersionNumber() | ||
+ | { | ||
+ | STRING=$1 | ||
+ | VER1=`echo $STRING | awk -F. '{ printf(" | ||
+ | VER2=`echo $STRING | awk -F. '{ printf(" | ||
+ | VER3=`echo $STRING | awk -F. '{ printf(" | ||
+ | VERSIONNUMBER=$(( 1000000 * ${VER1} + 1000 * ${VER2} + ${VER3} + 1 )) | ||
+ | } | ||
+ | |||
+ | installCmake() | ||
+ | { | ||
+ | if [ " | ||
+ | ${APP_MGR_CMD} add --update git cmake | ||
+ | else | ||
+ | ${APP_MGR_CMD} install -y git cmake | ||
+ | fi | ||
+ | | ||
+ | CMAKEVER=`cmake --version | grep version | awk ' | ||
+ | getVersionNumber $CMAKEVER | ||
+ | | ||
+ | if [ $VERSIONNUMBER -gt 3000000 ] ; then | ||
+ | echo cmake installed. | ||
+ | return | ||
+ | fi | ||
+ | | ||
+ | version=3.14 | ||
+ | build=5 | ||
+ | mkdir cmaketemp | ||
+ | CURDIR=`pwd` | ||
+ | cd ./cmaketemp | ||
+ | wget https:// | ||
+ | tar -xzvf cmake-${version}.${build}.tar.gz | ||
+ | cd cmake-${version}.${build}/ | ||
+ | | ||
+ | ./bootstrap | ||
+ | jobs=$(nproc) | ||
+ | make -j${jobs} | ||
+ | make install | ||
+ | cmake --version | ||
+ | cd ${CURDIR} | ||
+ | } | ||
+ | |||
+ | # lsrecaptcha requirement | ||
+ | installgo() | ||
+ | { | ||
+ | if [ " | ||
+ | ${APP_MGR_CMD} add --update go | ||
+ | else | ||
+ | ${APP_MGR_CMD} -y install golang-go | ||
+ | fi | ||
+ | |||
+ | which go | ||
+ | | ||
+ | if [ $? = 0 ] ; then | ||
+ | echo go installed. | ||
+ | else | ||
+ | wget https:// | ||
+ | tar -xvf go1.16.3.linux-amd64.tar.gz | ||
+ | mv -f go /usr/local | ||
+ | export PATH=/ | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | preparelibquic() | ||
+ | { | ||
+ | if [ -e lsquic ] ; then | ||
+ | ls src/ | grep liblsquic | ||
+ | if [ $? -eq 0 ] ; then | ||
+ | echo Need to git download the submodule ... | ||
+ | rm -rf lsquic | ||
+ | git clone https:// | ||
+ | cd lsquic | ||
+ | | ||
+ | LIBQUICVER=`cat ../ | ||
+ | echo " | ||
+ | git checkout ${LIBQUICVER} | ||
+ | git submodule update --init --recursive | ||
+ | cd .. | ||
+ | | ||
+ | fi | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | prepareLinux() | ||
+ | { | ||
+ | OSTYPE=unknownlinux | ||
+ | if [ -f / | ||
+ | OSTYPE=CENTOS | ||
+ | sudo yum update -y | ||
+ | | ||
+ | output=$(cat / | ||
+ | if echo $output | grep " | ||
+ | OSTYPE=FEDORA | ||
+ | elif echo $output | grep " 7."; then | ||
+ | OSTYPE=CENTOS7 | ||
+ | elif echo $output | grep " 8."; then | ||
+ | OSTYPE=CENTOS8 | ||
+ | elif echo $output | grep " 9."; then | ||
+ | OSTYPE=CENTOS9 | ||
+ | fi | ||
+ | | ||
+ | if [ ! " | ||
+ | sudo yum install -y epel-release | ||
+ | fi | ||
+ | | ||
+ | if [ " | ||
+ | if [ ! -f ./ | ||
+ | yum -y install centos-release-scl | ||
+ | which yum-config-manager | ||
+ | if [ $? = 0 ] ; then | ||
+ | yum-config-manager --enable rhel-server-rhscl-7-rpms | ||
+ | fi | ||
+ | |||
+ | yum -y install devtoolset-7 | ||
+ | touch ./ | ||
+ | scl enable devtoolset-7 " | ||
+ | rm ./ | ||
+ | exit 0 | ||
+ | fi | ||
+ | | ||
+ | #elif [ " | ||
+ | elif [ " | ||
+ | sudo dnf -y groupinstall " | ||
+ | else | ||
+ | echo This script only works on 7/8/9 for centos family._Static_assert | ||
+ | exit 1 | ||
+ | fi | ||
+ | | ||
+ | sudo yum -y install git cmake | ||
+ | installCmake | ||
+ | | ||
+ | sudo yum -y install libtool autoconf automake wget golang clang patch expat-devel | ||
+ | if [ " | ||
+ | yum -y install libatomic | ||
+ | fi | ||
+ | | ||
+ | #now for debian and Ubuntu | ||
+ | elif [ -f / | ||
+ | if [ -f / | ||
+ | output=$(cat / | ||
+ | if echo $output | grep " | ||
+ | OSTYPE=UBUNTU18 | ||
+ | elif echo $output | grep " | ||
+ | OSTYPE=UBUNTU20 | ||
+ | elif echo $output | grep " | ||
+ | OSTYPE=UBUNTU22 | ||
+ | fi | ||
+ | elif [ -f / | ||
+ | output=$(cat / | ||
+ | if echo $output | grep " | ||
+ | OSTYPE=DEBIAN9 | ||
+ | elif echo $output | grep " | ||
+ | OSTYPE=DEBIAN10 | ||
+ | elif echo $output | grep " | ||
+ | OSTYPE=DEBIAN11 | ||
+ | fi | ||
+ | fi | ||
+ | | ||
+ | #other debian OS, we still can | ||
+ | if [ " | ||
+ | echo It seems you are not using ubuntu 18/20/22 and Debian 9/10/11. | ||
+ | echo But we still can try to go further. | ||
+ | fi | ||
+ | | ||
+ | apt-get -y update | ||
+ | apt-get -f -y install | ||
+ | apt-get -y install gcc g++ wget curl make clang patch libexpat-dev | ||
+ | | ||
+ | installCmake | ||
+ | apt-get -y install git libtool ca-certificates autotools-dev autoconf automake | ||
+ | installgo | ||
+ | |||
+ | if [ " | ||
+ | apt-get -y install libatomic1 | ||
+ | fi | ||
+ | |||
+ | elif [ -f / | ||
+ | OSTYPE=ALPINE | ||
+ | ${APP_MGR_CMD} add make | ||
+ | ${APP_MGR_CMD} add gcc g++ | ||
+ | ${APP_MGR_CMD} add patch | ||
+ | installCmake | ||
+ | ${APP_MGR_CMD} add git libtool linux-headers bsd-compat-headers curl | ||
+ | ${APP_MGR_CMD} add automake autoconf | ||
+ | ${APP_MGR_CMD} add build-base expat-dev zlib-dev | ||
+ | installgo | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | | ||
+ | else | ||
+ | echo May not support your platform, but we can do a try to install some tools. | ||
+ | ${APP_MGR_CMD} -y update | ||
+ | ${APP_MGR_CMD} -y install make | ||
+ | ${APP_MGR_CMD} -y install clang | ||
+ | ${APP_MGR_CMD} -y install patch | ||
+ | installCmake | ||
+ | ${APP_MGR_CMD} -y install git libtool ca-certificates | ||
+ | ${APP_MGR_CMD} -y install autotools-dev | ||
+ | ${APP_MGR_CMD} -y install autoconf | ||
+ | ${APP_MGR_CMD} -y install autoheader | ||
+ | ${APP_MGR_CMD} -y install automake | ||
+ | installgo | ||
+ | | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | prepareBsd() | ||
+ | { | ||
+ | echo 'OS Type is `freebsd-version -k`' | ||
+ | pkg install -f -y wget | ||
+ | pkg install -f -y curl | ||
+ | pkg install -f -y lang/gcc | ||
+ | pkg install -f -y cmake | ||
+ | pkg install -f -y git | ||
+ | pkg install -f -y libtool | ||
+ | pkg install -f -y autoconf | ||
+ | pkg install -f -y automake | ||
+ | pkg install -f -y go | ||
+ | pkg install -f -y patch | ||
+ | pkg install -f -y python | ||
+ | pkg install -f -y gmake | ||
+ | | ||
+ | #something can not install through pkg will use ports | ||
+ | #portsnap fetch | ||
+ | #portsnap extract | ||
+ | #cd / | ||
+ | #make install clean BATCH=yes | ||
+ | } | ||
+ | |||
+ | prepareMac() | ||
+ | { | ||
+ | echo OS Type is `sw_vers` | ||
+ | if [ " | ||
+ | port selfupdate | ||
+ | port -f -N install wget | ||
+ | port -f -N install curl | ||
+ | port -f -N install cmake | ||
+ | port -f -N install git | ||
+ | port -f -N install libtool | ||
+ | port -f -N install autoconf | ||
+ | port -f -N install automake | ||
+ | port -f -N install go | ||
+ | port -f -N install patch | ||
+ | port -f -N install python | ||
+ | port -f -N install gmake | ||
+ | else | ||
+ | echo You need to install these tools "wget cmake git libtool autoconf automake go patch python gmake" | ||
+ | brew install -f wget | ||
+ | brew install -f curl | ||
+ | brew install -f cmake | ||
+ | brew install -f git | ||
+ | brew install -f libtool | ||
+ | brew install -f autoconf | ||
+ | brew install -f automake | ||
+ | brew install -f go | ||
+ | brew install -f patch | ||
+ | brew install -f python | ||
+ | brew install -f gmake | ||
+ | | ||
+ | fi | ||
+ | | ||
+ | } | ||
+ | |||
+ | commentout() | ||
+ | { | ||
+ | sed -i -e " | ||
+ | } | ||
+ | |||
+ | updateSrcCMakelistfile() | ||
+ | { | ||
+ | OS=`uname` | ||
+ | commentout ' | ||
+ | commentout ' | ||
+ | commentout ' | ||
+ | commentout ' | ||
+ | | ||
+ | commentout ' | ||
+ | | ||
+ | commentout ' | ||
+ | commentout ' | ||
+ | # commentout ' | ||
+ | commentout ' | ||
+ | | ||
+ | | ||
+ | commentout 'SET (CMAKE_C_COMPILER' | ||
+ | commentout 'SET (CMAKE_CXX_COMPILER' | ||
+ | | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | |||
+ | commentout | ||
+ | commentout | ||
+ | | ||
+ | if [ " | ||
+ | sed -i -e "s/ rt//g" src/ | ||
+ | sed -i -e "s/ crypt// | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | fi | ||
+ | | ||
+ | if [ " | ||
+ | sed -i -e " | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | updateModuleCMakelistfile() | ||
+ | { | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | | ||
+ | if [ " | ||
+ | echo Mac OS bypass all module right now | ||
+ | else | ||
+ | for module in ${moduledir}; | ||
+ | echo " | ||
+ | done | ||
+ | fi | ||
+ | | ||
+ | if [ -f ../ | ||
+ | echo " | ||
+ | fi | ||
+ | | ||
+ | #For linux but not alpine, add pagespeed module | ||
+ | if [ " | ||
+ | if [ ! " | ||
+ | echo " | ||
+ | fi | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | cpModuleSoFiles() | ||
+ | { | ||
+ | if [ ! -d dist/ | ||
+ | mkdir dist/ | ||
+ | fi | ||
+ | | ||
+ | for module in ${moduledir}; | ||
+ | cp -f build/ | ||
+ | done | ||
+ | | ||
+ | if [ -e src/ | ||
+ | cp -f build/ | ||
+ | fi | ||
+ | | ||
+ | if [ -e src/ | ||
+ | cp -f build/ | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | fixshmdir() | ||
+ | { | ||
+ | if [ ! -d /dev/shm ] ; then | ||
+ | mkdir /tmp/shm | ||
+ | chmod 777 /tmp/shm | ||
+ | sed -i -e " | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | |||
+ | freebsdFix() | ||
+ | { | ||
+ | if [ " | ||
+ | NEEDREBOOT=yes | ||
+ | if [ -e / | ||
+ | cat / | ||
+ | if [ $? -eq 0 ] ; then | ||
+ | NEEDREBOOT=no | ||
+ | fi | ||
+ | fi | ||
+ | | ||
+ | if [ " | ||
+ | echo " | ||
+ | echo You must reboot the server to ensure the settings change take effect. | ||
+ | touch ./ | ||
+ | fi | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | fixPagespeed() | ||
+ | { | ||
+ | PSOLVERSION=1.11.33.4 | ||
+ | cat << EOF > ../ | ||
+ | /** | ||
+ | * Due the compiling issue, this file was updated from the original file. | ||
+ | */ | ||
+ | #ifndef PAGESPEED_KERNEL_BASE_SCOPED_PTR_H_ | ||
+ | #define PAGESPEED_KERNEL_BASE_SCOPED_PTR_H_ | ||
+ | #include " | ||
+ | |||
+ | namespace net_instaweb { | ||
+ | template< | ||
+ | public: | ||
+ | scoped_array() : scoped_ptr< | ||
+ | explicit scoped_array(T* t) : scoped_ptr< | ||
+ | }; | ||
+ | } | ||
+ | #endif | ||
+ | |||
+ | EOF | ||
+ | |||
+ | } | ||
+ | |||
+ | cd `dirname " | ||
+ | CURDIR=`pwd` | ||
+ | |||
+ | if [ " | ||
+ | prepareBsd | ||
+ | elif [ " | ||
+ | ISLINUX=yes | ||
+ | prepareLinux | ||
+ | elif [ " | ||
+ | prepareMac | ||
+ | fi | ||
+ | |||
+ | cd .. | ||
+ | if [ ! -d third-party ]; then | ||
+ | git clone --depth 1 https:// | ||
+ | patch -p0 < third-party-scripts.patch | ||
+ | mkdir third-party/ | ||
+ | cd third-party/ | ||
+ | |||
+ | # | ||
+ | sed -i -e " | ||
+ | |||
+ | # Remove psol for non x86_64 non linux systems | ||
+ | if [ " | ||
+ | sed -i -e " | ||
+ | fi | ||
+ | |||
+ | ./ | ||
+ | fi | ||
+ | |||
+ | cd ${CURDIR} | ||
+ | |||
+ | updateSrcCMakelistfile | ||
+ | updateModuleCMakelistfile | ||
+ | preparelibquic | ||
+ | |||
+ | if [ " | ||
+ | fixPagespeed | ||
+ | fi | ||
+ | |||
+ | #special case modsecurity | ||
+ | cd src/ | ||
+ | ln -sf ../ | ||
+ | cd ../../../ | ||
+ | #Done of modsecurity | ||
+ | |||
+ | fixshmdir | ||
+ | |||
+ | if [ " | ||
+ | BUILD=Debug | ||
+ | else | ||
+ | BUILD=RelWithDebInfo | ||
+ | fi | ||
+ | |||
+ | if [ ! -d build ]; then | ||
+ | mkdir build | ||
+ | fi | ||
+ | cd build | ||
+ | cmake -DCMAKE_BUILD_TYPE=$BUILD .. | ||
+ | jobs=$(nproc) | ||
+ | make -j${jobs} | ||
+ | cd .. | ||
+ | |||
+ | cp build/ | ||
+ | |||
+ | cpModuleSoFiles | ||
+ | |||
+ | #Version >= 1.6.0 which has QUIC need to fix for freebsd | ||
+ | if [ -e src/ | ||
+ | freebsdFix | ||
+ | fi | ||
+ | |||
+ | cat > ./ols.conf << | ||
+ | #If you want to change the default values, please update this file. | ||
+ | # | ||
+ | |||
+ | SERVERROOT=/ | ||
+ | OPENLSWS_USER=nobody | ||
+ | OPENLSWS_GROUP=nobody | ||
+ | OPENLSWS_ADMIN=admin | ||
+ | OPENLSWS_EMAIL=root@localhost | ||
+ | OPENLSWS_ADMINSSL=yes | ||
+ | OPENLSWS_ADMINPORT=7080 | ||
+ | USE_LSPHP7=yes | ||
+ | DEFAULT_TMP_DIR=/ | ||
+ | PID_FILE=/ | ||
+ | OPENLSWS_EXAMPLEPORT=8088 | ||
+ | |||
+ | #You can set password here | ||
+ | # | ||
+ | |||
+ | END | ||
+ | |||
+ | echo Start to pack files. | ||
+ | mv dist/ | ||
+ | |||
+ | cat > ./ | ||
+ | #!/bin/sh | ||
+ | |||
+ | SERVERROOT=/ | ||
+ | OPENLSWS_USER=nobody | ||
+ | OPENLSWS_GROUP=nobody | ||
+ | OPENLSWS_ADMIN=admin | ||
+ | OPENLSWS_PASSWORD= | ||
+ | OPENLSWS_EMAIL=root@localhost | ||
+ | OPENLSWS_ADMINSSL=yes | ||
+ | OPENLSWS_ADMINPORT=7080 | ||
+ | USE_LSPHP7=yes | ||
+ | DEFAULT_TMP_DIR=/ | ||
+ | PID_FILE=/ | ||
+ | OPENLSWS_EXAMPLEPORT=8088 | ||
+ | CONFFILE=./ | ||
+ | | ||
+ | #script start here | ||
+ | cd `dirname " | ||
+ | |||
+ | if [ -f \${CONFFILE} ] ; then | ||
+ | . \${CONFFILE} | ||
+ | fi | ||
+ | |||
+ | cd dist | ||
+ | |||
+ | mkdir -p \${SERVERROOT} >/ | ||
+ | |||
+ | PASSWDFILEEXIST=no | ||
+ | if [ -f \${SERVERROOT}/ | ||
+ | PASSWDFILEEXIST=yes | ||
+ | else | ||
+ | PASSWDFILEEXIST=no | ||
+ | #Generate the random PASSWORD if not set in ols.conf | ||
+ | if [ " | ||
+ | OPENLSWS_PASSWORD=\`openssl rand -base64 6\` | ||
+ | if [ " | ||
+ | TEMPRANDSTR=\`ls -l ..\` | ||
+ | TEMPRANDSTR=\`echo " | ||
+ | if [ \$? = 0 ] ; then | ||
+ | OPENLSWS_PASSWORD=\${TEMPRANDSTR} | ||
+ | else | ||
+ | OPENLSWS_PASSWORD=123456 | ||
+ | fi | ||
+ | fi | ||
+ | echo OPENLSWS_PASSWORD=\${OPENLSWS_PASSWORD} >> ./ols.conf | ||
+ | fi | ||
+ | |||
+ | echo " | ||
+ | chmod 600 \$SERVERROOT/ | ||
+ | fi | ||
+ | |||
+ | #Change to nogroup for debain/ | ||
+ | if [ -f / | ||
+ | if [ " | ||
+ | OPENLSWS_GROUP=nogroup | ||
+ | fi | ||
+ | fi | ||
+ | |||
+ | ISRUNNING=no | ||
+ | |||
+ | if [ -f \${SERVERROOT}/ | ||
+ | echo Openlitespeed web server exists, will upgrade. | ||
+ | | ||
+ | \${SERVERROOT}/ | ||
+ | if [ \$? != 0 ]; then | ||
+ | ISRUNNING=yes | ||
+ | fi | ||
+ | fi | ||
+ | |||
+ | ./_in.sh " | ||
+ | |||
+ | cp -f modules/ | ||
+ | cp -f bin/ | ||
+ | |||
+ | if [ " | ||
+ | echo -e " | ||
+ | else | ||
+ | echo -e " | ||
+ | fi | ||
+ | echo | ||
+ | |||
+ | if [ -f ../ | ||
+ | rm ../ | ||
+ | echo -e " | ||
+ | echo | ||
+ | exit 0 | ||
+ | fi | ||
+ | |||
+ | if [ " | ||
+ | \${SERVERROOT}/ | ||
+ | fi | ||
+ | |||
+ | END | ||
+ | |||
+ | chmod 777 ./ | ||
+ | |||
+ | echo -e " | ||
+ | echo -e " | ||
+ | echo -e " | ||
+ | </ | ||
+ | <a href=" | ||
+ | |||
+ | < | ||
+ | var jsEditor = CodeMirror.fromTextArea(document.getElementById(' | ||
+ | mode: " | ||
+ | theme: " | ||
+ | lineNumbers: | ||
+ | indentUnit: 4 | ||
+ | }); | ||
+ | document.getElementById(' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Fedora 対応 + ビルド時間短縮スクリプト ===== | ||
+ | Git の shallow clone で最新履歴のみを取得するようにしただけです😅\\ | ||
+ | [[: | ||
+ | < | ||
+ | <div class=" | ||
+ | < | ||
+ | @import '/ | ||
+ | @import '/ | ||
+ | |||
+ | /*.dokuwiki pre { | ||
+ | box-shadow: unset; | ||
+ | }*/ | ||
+ | div.embed_codemirror002 div.CodeMirror * { | ||
+ | font-family: | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | div.embed_codemirror002 div.CodeMirror { | ||
+ | height: 480px; | ||
+ | } | ||
+ | .select-theme .form-control { width: auto; display: inline-block; | ||
+ | </ | ||
+ | |||
+ | <script src="/ | ||
+ | <!-- 言語に応じたjsファイルを読み込む --> | ||
+ | <script src="/ | ||
+ | |||
+ | < | ||
+ | #!/bin/sh -x | ||
+ | if [ -d openlitespeed ]; then | ||
+ | rm -rf openlitespeed | ||
+ | fi | ||
+ | git clone --depth 1 https:// | ||
+ | |||
+ | if [ -d third-party ]; then | ||
+ | rm -rf third-party | ||
+ | fi | ||
+ | |||
+ | cat << ' | ||
+ | --- openlitespeed/ | ||
+ | +++ openlitespeed/ | ||
+ | @@ -1,4 +1,4 @@ | ||
+ | -#!/bin/sh | ||
+ | +#!/bin/sh -x | ||
+ | ############################################################################## | ||
+ | # | ||
+ | # | ||
+ | @@ -52,7 +52,6 @@ | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | - | ||
+ | # getVersionNumber0() | ||
+ | # { | ||
+ | # | ||
+ | @@ -68,7 +67,6 @@ | ||
+ | # | ||
+ | # } | ||
+ | |||
+ | - | ||
+ | | ||
+ | { | ||
+ | | ||
+ | @@ -132,7 +130,6 @@ | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | - | ||
+ | | ||
+ | { | ||
+ | if [ -e lsquic ] ; then | ||
+ | @@ -158,10 +155,12 @@ | ||
+ | | ||
+ | if [ -f / | ||
+ | | ||
+ | - yum update -y | ||
+ | - yum install -y epel-release | ||
+ | + sudo yum update -y | ||
+ | + | ||
+ | | ||
+ | - if echo $output | grep " 7."; then | ||
+ | + if echo $output | grep " | ||
+ | + OSTYPE=FEDORA | ||
+ | + elif echo $output | grep " 7."; then | ||
+ | | ||
+ | elif echo $output | grep " 8."; then | ||
+ | | ||
+ | @@ -169,6 +168,10 @@ | ||
+ | | ||
+ | fi | ||
+ | |||
+ | + if [ ! " | ||
+ | + sudo yum install -y epel-release | ||
+ | + fi | ||
+ | + | ||
+ | if [ " | ||
+ | if [ ! -f ./ | ||
+ | yum -y install centos-release-scl | ||
+ | @@ -184,18 +187,18 @@ | ||
+ | exit 0 | ||
+ | fi | ||
+ | |||
+ | - elif [ " | ||
+ | - dnf -y groupinstall " | ||
+ | - | ||
+ | + #elif [ " | ||
+ | + elif [ " | ||
+ | + sudo dnf -y groupinstall " | ||
+ | else | ||
+ | echo This script only works on 7/8/9 for centos family._Static_assert | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | - yum -y install git cmake | ||
+ | + sudo yum -y install git cmake | ||
+ | | ||
+ | |||
+ | - yum -y install libtool autoconf autoheader automake wget go clang patch expat-devel | ||
+ | + sudo yum -y install libtool autoconf automake wget golang clang patch expat-devel | ||
+ | if [ " | ||
+ | yum -y install libatomic | ||
+ | fi | ||
+ | @@ -273,7 +276,6 @@ | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | - | ||
+ | | ||
+ | { | ||
+ | echo 'OS Type is `freebsd-version -k`' | ||
+ | @@ -336,8 +338,6 @@ | ||
+ | sed -i -e " | ||
+ | } | ||
+ | |||
+ | - | ||
+ | - | ||
+ | | ||
+ | | ||
+ | | ||
+ | @@ -380,7 +380,6 @@ | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | - | ||
+ | | ||
+ | { | ||
+ | echo " | ||
+ | @@ -405,11 +404,8 @@ | ||
+ | echo " | ||
+ | fi | ||
+ | fi | ||
+ | - | ||
+ | - | ||
+ | } | ||
+ | |||
+ | - | ||
+ | | ||
+ | { | ||
+ | if [ ! -d dist/ | ||
+ | @@ -429,7 +425,6 @@ | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | - | ||
+ | | ||
+ | { | ||
+ | if [ ! -d /dev/shm ] ; then | ||
+ | @@ -459,7 +454,6 @@ | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | - | ||
+ | | ||
+ | { | ||
+ | | ||
+ | @@ -487,8 +481,6 @@ | ||
+ | cd `dirname " | ||
+ | | ||
+ | |||
+ | - | ||
+ | - | ||
+ | if [ " | ||
+ | | ||
+ | elif [ " | ||
+ | @@ -498,12 +490,10 @@ | ||
+ | | ||
+ | fi | ||
+ | |||
+ | - | ||
+ | - | ||
+ | cd .. | ||
+ | if [ ! -d third-party ]; then | ||
+ | - | ||
+ | - git clone https:// | ||
+ | + git clone --depth 1 https:// | ||
+ | + patch -p0 < third-party-scripts.patch | ||
+ | mkdir third-party/ | ||
+ | cd third-party/ | ||
+ | |||
+ | @@ -516,7 +506,6 @@ | ||
+ | fi | ||
+ | |||
+ | | ||
+ | - | ||
+ | fi | ||
+ | |||
+ | cd ${CURDIR} | ||
+ | @@ -525,7 +514,6 @@ | ||
+ | | ||
+ | | ||
+ | |||
+ | - | ||
+ | if [ " | ||
+ | | ||
+ | fi | ||
+ | @@ -583,7 +571,6 @@ | ||
+ | |||
+ | END | ||
+ | |||
+ | - | ||
+ | echo Start to pack files. | ||
+ | mv dist/ | ||
+ | |||
+ | @@ -615,7 +602,6 @@ | ||
+ | |||
+ | mkdir -p \${SERVERROOT} >/ | ||
+ | |||
+ | - | ||
+ | | ||
+ | if [ -f \${SERVERROOT}/ | ||
+ | | ||
+ | @@ -640,14 +626,12 @@ | ||
+ | chmod 600 \$SERVERROOT/ | ||
+ | fi | ||
+ | |||
+ | - | ||
+ | # | ||
+ | if [ -f / | ||
+ | if [ " | ||
+ | | ||
+ | fi | ||
+ | -fi | ||
+ | - | ||
+ | +fi | ||
+ | |||
+ | | ||
+ | |||
+ | @@ -672,7 +656,6 @@ | ||
+ | fi | ||
+ | echo | ||
+ | |||
+ | - | ||
+ | if [ -f ../ | ||
+ | rm ../ | ||
+ | echo -e " | ||
+ | @@ -691,4 +674,3 @@ | ||
+ | echo -e " | ||
+ | echo -e " | ||
+ | echo -e " | ||
+ | - | ||
+ | EOF | ||
+ | patch -p0 < build.sh.patch | ||
+ | |||
+ | cat << ' | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -6,7 +6,7 @@ | ||
+ | |||
+ | |||
+ | if [ ! -d " | ||
+ | - git clone https:// | ||
+ | + git clone --depth 1 https:// | ||
+ | fi | ||
+ | cd libbcrypt | ||
+ | make | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -6,7 +6,8 @@ | ||
+ | |||
+ | |||
+ | if [ ! -d " | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone --depth 1 --no-single-branch --branch cf8d3ad3cea51cf7184307d54f465da62b7d8408 https:// | ||
+ | fi | ||
+ | |||
+ | if [ -d " | ||
+ | @@ -17,9 +18,9 @@ | ||
+ | fi | ||
+ | |||
+ | cd boringssl | ||
+ | -git reset --hard | ||
+ | -git checkout master | ||
+ | -git pull | ||
+ | +#git reset --hard | ||
+ | +#git checkout master | ||
+ | +#git pull | ||
+ | |||
+ | #git checkout 49de1fc291 | ||
+ | #git checkout bfe527fa35735e8e045cbfb42b012e13ca68f9cf | ||
+ | @@ -27,7 +28,7 @@ | ||
+ | #git checkout b117a3a0b7bd11fe6ebd503ec6b45d6b910b41a1 | ||
+ | # HTTP/3 v1 and ID-34 support | ||
+ | #git checkout a2278d4d2cabe73f6663e3299ea7808edfa306b9 | ||
+ | -git checkout cf8d3ad3cea51cf7184307d54f465da62b7d8408 | ||
+ | +#git checkout cf8d3ad3cea51cf7184307d54f465da62b7d8408 | ||
+ | |||
+ | rm -rf build | ||
+ | |||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -7,11 +7,12 @@ | ||
+ | cd src | ||
+ | |||
+ | if [ ! -d " | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone --depth 1 --no-single-branch --branch curl-7_65_3 https:// | ||
+ | fi | ||
+ | |||
+ | cd curl | ||
+ | - git checkout curl-7_65_3 | ||
+ | + #git checkout curl-7_65_3 | ||
+ | | ||
+ | | ||
+ | make | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -5,11 +5,12 @@ | ||
+ | |||
+ | cd src/ | ||
+ | |||
+ | -git clone https:// | ||
+ | +#git clone https:// | ||
+ | +git clone --depth 1 --no-single-branch --branch R_2_2_9 https:// | ||
+ | |||
+ | cd libexpat | ||
+ | |||
+ | -git checkout R_2_2_9 | ||
+ | +#git checkout R_2_2_9 | ||
+ | cd expat | ||
+ | |||
+ | rm -rf build | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -6,12 +6,13 @@ | ||
+ | cd src | ||
+ | |||
+ | if [ ! -d " | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone 1 --no-single-branch --branch v1.11.0 https:// | ||
+ | fi | ||
+ | cd flatbuffers | ||
+ | |||
+ | -git reset --hard | ||
+ | -git checkout v1.11.0 | ||
+ | +#git reset --hard | ||
+ | +#git checkout v1.11.0 | ||
+ | |||
+ | mkdir out && cd out | ||
+ | cmake .. | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -6,11 +6,12 @@ | ||
+ | |||
+ | |||
+ | if [ ! -d " | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone --depth 1 --no-single-branch --branch v1.6.12 https:// | ||
+ | fi | ||
+ | cd geoip-api-c | ||
+ | -git reset --hard | ||
+ | -git checkout v1.6.12 | ||
+ | +#git reset --hard | ||
+ | +#git checkout v1.6.12 | ||
+ | |||
+ | | ||
+ | | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -6,11 +6,12 @@ | ||
+ | |||
+ | |||
+ | if [ ! -d " | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone --depth 1 --no-single-branch --branch v2.26.0 https:// | ||
+ | fi | ||
+ | cd isa-l | ||
+ | -git reset --hard | ||
+ | -git checkout v2.26.0 | ||
+ | +#git reset --hard | ||
+ | +#git checkout v2.26.0 | ||
+ | |||
+ | | ||
+ | # | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -12,18 +12,20 @@ | ||
+ | |||
+ | |||
+ | if [ ! -d ModSecurity ]; then | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone --depth 1 --no-single-branch --branch v3.0.5 https:// | ||
+ | fi | ||
+ | cd ModSecurity | ||
+ | -git reset --hard | ||
+ | -git checkout -b v3/master origin/ | ||
+ | -git pull | ||
+ | -git checkout v3.0.5 | ||
+ | +#git reset --hard | ||
+ | +#git checkout -b v3/master origin/ | ||
+ | +#git pull | ||
+ | +#git checkout v3.0.5 | ||
+ | |||
+ | | ||
+ | sh build.sh | ||
+ | -git submodule init | ||
+ | -git submodule update | ||
+ | +#git submodule init | ||
+ | +#git submodule update | ||
+ | +git submodule update --init --recursive --recommend-shallow --depth 1 | ||
+ | | ||
+ | make -j4 | ||
+ | |||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -16,13 +16,14 @@ | ||
+ | fi | ||
+ | |||
+ | if [ ! -d " | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone --depth 1 --no-single-branch --branch LMDB_0.9.27 https:// | ||
+ | fi | ||
+ | |||
+ | cd lmdb | ||
+ | -git checkout master | ||
+ | -git pull | ||
+ | -git checkout LMDB_0.9.27 | ||
+ | +#git checkout master | ||
+ | +#git pull | ||
+ | +#git checkout LMDB_0.9.27 | ||
+ | |||
+ | cd libraries/ | ||
+ | | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -8,7 +8,8 @@ | ||
+ | mkdir lib64 | ||
+ | fi | ||
+ | |||
+ | -git submodule update --init | ||
+ | +#git submodule update --init | ||
+ | +git submodule update --init --recursive --recommend-shallow --depth 1 | ||
+ | cd script | ||
+ | |||
+ | for BUILD_LIB in $BUILD_LIBS | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -5,9 +5,10 @@ | ||
+ | | ||
+ | cd src | ||
+ | if [ ! -d " | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone --depth 1 --no-single-branch --branch 00335cd4b6347e6ecc79a67ab200ba2e050c9646 https:// | ||
+ | cd netmap | ||
+ | - git checkout 00335cd4b6347e6ecc79a67ab200ba2e050c9646 | ||
+ | + #git checkout 00335cd4b6347e6ecc79a67ab200ba2e050c9646 | ||
+ | cd .. | ||
+ | fi | ||
+ | cd .. | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -8,10 +8,11 @@ | ||
+ | mkdir lib64 | ||
+ | fi | ||
+ | |||
+ | -git submodule update --init | ||
+ | +#git submodule update --init | ||
+ | +git submodule update --init --recursive --recommend-shallow --depth 1 | ||
+ | cd script | ||
+ | |||
+ | for BUILD_LIB in $BUILD_LIBS | ||
+ | | ||
+ | - | ||
+ | + bash -x ./ | ||
+ | done | ||
+ | |||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -6,12 +6,13 @@ | ||
+ | |||
+ | |||
+ | if [ ! -d openldap ]; then | ||
+ | -git clone https:// | ||
+ | +#git clone https:// | ||
+ | +git clone --depth 1 --no-single-branch --branch OPENLDAP_REL_ENG_2_4_46 https:// | ||
+ | |||
+ | fi | ||
+ | |||
+ | cd openldap | ||
+ | -git checkout OPENLDAP_REL_ENG_2_4_46 | ||
+ | +#git checkout OPENLDAP_REL_ENG_2_4_46 | ||
+ | |||
+ | |||
+ | | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -6,7 +6,8 @@ | ||
+ | cd src | ||
+ | |||
+ | if [ ! -d " | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone --depth 1 --no-single-branch --branch OpenSSL_1_0_2p https:// | ||
+ | fi | ||
+ | |||
+ | # | ||
+ | @@ -15,11 +16,11 @@ | ||
+ | # | ||
+ | |||
+ | cd openssl | ||
+ | -git reset --hard | ||
+ | +#git reset --hard | ||
+ | |||
+ | -git checkout master | ||
+ | -git pull | ||
+ | -git checkout $RELEASE | ||
+ | +#git checkout master | ||
+ | +#git pull | ||
+ | +#git checkout $RELEASE | ||
+ | |||
+ | make clean | ||
+ | | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -6,7 +6,8 @@ | ||
+ | cd src | ||
+ | |||
+ | if [ ! -d " | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone --depth 1 https:// | ||
+ | fi | ||
+ | |||
+ | cd zlib-cf | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -6,7 +6,8 @@ | ||
+ | cd src | ||
+ | |||
+ | if [ ! -d " | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone --depth 1 https:// | ||
+ | fi | ||
+ | |||
+ | cd zlib | ||
+ | diff -ur third-party_bak/ | ||
+ | --- third-party/ | ||
+ | +++ third-party/ | ||
+ | @@ -9,13 +9,14 @@ | ||
+ | #rm -rf libzmq | ||
+ | |||
+ | if [ ! -d libzmq ]; then | ||
+ | - git clone https:// | ||
+ | + #git clone https:// | ||
+ | + git clone --depth 1 --no-single-branch --branch curl-7_65_3 v4.3.3 https:// | ||
+ | fi | ||
+ | cd libzmq | ||
+ | |||
+ | - git reset --hard | ||
+ | - git pull | ||
+ | - git checkout v4.3.3 | ||
+ | + #git reset --hard | ||
+ | + #git pull | ||
+ | + #git checkout v4.3.3 | ||
+ | |||
+ | mkdir build | ||
+ | cd build | ||
+ | EOF | ||
+ | |||
+ | cd openlitespeed | ||
+ | ./build.sh | ||
+ | </ | ||
+ | <a href=" | ||
+ | |||
+ | < | ||
+ | var jsEditor = CodeMirror.fromTextArea(document.getElementById(' | ||
+ | mode: " | ||
+ | theme: " | ||
+ | lineNumbers: | ||
+ | indentUnit: 4 | ||
+ | }); | ||
+ | document.getElementById(' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | [[+tab|.fedora_support_for_scripts: | ||
+ | |||
+ | ===== 参考文献 ===== | ||
+ | [[git> | ||
+ | [[git> | ||
+ | |||
+ | ==== 付録 ==== | ||
+ | [[tw> | ||
+ | [[tw> | ||
+ | |||
+ | ==== Development Tools パッケージ グループの内容 ==== | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
+ | </ | ||
+ | <WRAP color_result_long>< | ||
+ | メタデータの期限切れの最終確認: | ||
+ | グループ: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | git | ||
+ | patch | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | cvs | ||
+ | | ||
+ | | ||
+ | cvsps | ||
+ | darcs | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | gitg | ||
+ | | ||
+ | | ||
+ | lcov | ||
+ | | ||
+ | meld | ||
+ | | ||
+ | | ||
+ | | ||
+ | qgit | ||
+ | quilt | ||
+ | | ||
+ | rcs | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | tig | ||
+ | tkcvs | ||
+ | | ||
+ | | ||
+ | utrac | ||
+ | </ | ||
+ | </ | ||