Last active
September 23, 2015 10:13
-
-
Save eru/e8289662a2fdca9a6633 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# パッケージ作成に必要な物をインストール | |
yum install -y wget rpmdevtools tar mysql-devel httpd-devel ImageMagick-devel gcc-c++ libtool openssl-devel libmemcached-devel | |
# ビルド用ディレクトリの作成 | |
rpmdev-setuptree | |
# ビルド用のソースディレクトリへ移動 | |
cd ~/rpmbuild/SOURCES | |
# ソースをダウンロード | |
wget --trust-server-names "http://osdn.jp/frs/redir.php?m=iij&f=%2Fmodchxj%2F52522%2Fmod-chxj_0.14.1.src.tar.gz" | |
# ビルド用のSPECディレクトリへ移動 | |
cd ~/rpmbuild/SPECS | |
# SPECファイルをダウンロード | |
wget "https://gist.githubusercontent.com/eru/d45889b646a5ae55f837/raw/3148b7ca008861c5d66105e81f297728af21a640/mod_chxj.spec" | |
# ビルド | |
rpmbuild -ba mod_chxj.spec | |
# インストール | |
yum localinstall -y /root/rpmbuild/RPMS/x86_64/mod_chxj-0.14.1-1.x86_64.rpm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment