vm/stoneをコンテナでビルドする
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
* はじめに / Introduction [#p2f14847]
社内ネットワークでプロキシを云々するための便利ツール [[Si...
Build [[(EN) Simple Repeater `stone'>>https://www.gcd.org...
** わざわざビルドするのはなぜ? / Why bother to build? [#...
最近はパッケージが提供されてないっぽいので。
It seems that the package has not been provided recently.
- 以前のUbuntuでは stone のパッケージ(deb)が用意されて...
Previously Ubuntu had a deb package, but it doesn't seem ...
- CentOS/Fedora系は epel とか rpmfusion とかにはないみた...
CentOS / Fedora system doesn't seem to be in epel or rpmf...
* 作り方 / How to build [#l55c23de]
docker/podman をインストールしたLinux上でスクリプトを実行...
Run the script on Linux with docker / podman installed
#prism(bash){{{
#!/bin/sh
# vim: set ft=sh ff=unix expandtab ts=2 sw=2 :
#set -x
set -e
STONE_SRC_URL='https://osdn.net/cvs/view/stone/stone/?vie...
container_name=stone_builder
# container management command
if command -v docker >/dev/null 2>&1; then
CONTAINER_CLI=docker
elif command -v podman >/dev/null 2>&1; then
CONTAINER_CLI=podman
else
echo "ERROR: Requires either docker or podman, stopped."
exit 1
fi
"$CONTAINER_CLI" ps -aq -f "name=$container_name" | xargs...
"$CONTAINER_CLI" ps -aq -f "name=$container_name" | xargs...
"$CONTAINER_CLI" run -i \
-v "$(pwd)":/mnt \
-w /mnt \
-e STONE_SRC_URL="$STONE_SRC_URL" \
--name "$container_name" \
ubuntu bash <<'...'
set -x
apt update
apt -y install build-essential curl libssl-dev
curl -sSL "$STONE_SRC_URL" | tar zxvf -
cd stone
sed -i 's/SSL_state/SSL_get_state/' stone.c # https://bi...
make linux-ssl
...
}}}
ビルドが正常終了したら実行ファイルを適宜配置します(例 su...
When the build is completed normally, place the executabl...
* 備考 / Remarks [#i01c40f7]
- [[CVS リポジトリ>https://osdn.net/cvs/view/stone/stone/...
You don't have to worry about the -D_GNU_SOURCE option be...
- 最近のopensslに合わせて、ソースコードを修正しています
Modifying the source code for recent openssl.
-- [[tcpリピータのstone – 極限環境材料化学研究室>ht...
終了行:
* はじめに / Introduction [#p2f14847]
社内ネットワークでプロキシを云々するための便利ツール [[Si...
Build [[(EN) Simple Repeater `stone'>>https://www.gcd.org...
** わざわざビルドするのはなぜ? / Why bother to build? [#...
最近はパッケージが提供されてないっぽいので。
It seems that the package has not been provided recently.
- 以前のUbuntuでは stone のパッケージ(deb)が用意されて...
Previously Ubuntu had a deb package, but it doesn't seem ...
- CentOS/Fedora系は epel とか rpmfusion とかにはないみた...
CentOS / Fedora system doesn't seem to be in epel or rpmf...
* 作り方 / How to build [#l55c23de]
docker/podman をインストールしたLinux上でスクリプトを実行...
Run the script on Linux with docker / podman installed
#prism(bash){{{
#!/bin/sh
# vim: set ft=sh ff=unix expandtab ts=2 sw=2 :
#set -x
set -e
STONE_SRC_URL='https://osdn.net/cvs/view/stone/stone/?vie...
container_name=stone_builder
# container management command
if command -v docker >/dev/null 2>&1; then
CONTAINER_CLI=docker
elif command -v podman >/dev/null 2>&1; then
CONTAINER_CLI=podman
else
echo "ERROR: Requires either docker or podman, stopped."
exit 1
fi
"$CONTAINER_CLI" ps -aq -f "name=$container_name" | xargs...
"$CONTAINER_CLI" ps -aq -f "name=$container_name" | xargs...
"$CONTAINER_CLI" run -i \
-v "$(pwd)":/mnt \
-w /mnt \
-e STONE_SRC_URL="$STONE_SRC_URL" \
--name "$container_name" \
ubuntu bash <<'...'
set -x
apt update
apt -y install build-essential curl libssl-dev
curl -sSL "$STONE_SRC_URL" | tar zxvf -
cd stone
sed -i 's/SSL_state/SSL_get_state/' stone.c # https://bi...
make linux-ssl
...
}}}
ビルドが正常終了したら実行ファイルを適宜配置します(例 su...
When the build is completed normally, place the executabl...
* 備考 / Remarks [#i01c40f7]
- [[CVS リポジトリ>https://osdn.net/cvs/view/stone/stone/...
You don't have to worry about the -D_GNU_SOURCE option be...
- 最近のopensslに合わせて、ソースコードを修正しています
Modifying the source code for recent openssl.
-- [[tcpリピータのstone – 極限環境材料化学研究室>ht...
ページ名: