CheckInstall の変更点
ソースからRPM,DEBなどのパッケージを作るツール。
-[[オフィシャル>http://asic-linux.com.mx/%7Eizto/checkinstall/]]
*インストール
パッケージがあるので、適当に導入。
*使用方法
+make
+su
+checkinstall
**for Fedora, etc
例:[[Omni OpenMP Compiler System>http://phase.hpcc.jp/Omni/]]
cd tar xvzf Omni-1.6.tar.gz
cd Omni-1.6
./configure
make
su
checkinstall -R --nodoc
>
This package will be built according to these values:
1 - Summary: [ Omni OpenMP Compiler System ]
2 - Name: [ omni-compiler ]
3 - Version: [ 1.6 ]
4 - Release: [ 1 ]
5 - License: [ LGPL ]
6 - Group: [ Development/Languages ]
7 - Architecture: [ i386 ]
8 - Source location: [ Omni-1.6 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ omni-compiler ]
<
rpm -ivh /usr/src/redhat/RPMS/i386/omni-compiler-1.6-1.i386.rpm
vi ~/.bash_profile
>
# Omni
PATH=$PATH:/usr/local/lib/openmp/libexec
<
**for Debian
例:[[Visitors>Linux/Apache/ログ解析/Visitors]]~
makeのターゲットにinstallがない場合はでっちあげる :p
tar xvzf visitors-0.6.tar.gz
cd visitors_0.6/
echo -e "\ninstall:\n\tinstall \$(PRGNAME) /usr/local/bin/" >> Makefile
make
su
checkinstall -D --nodoc
>
This package will be built according to these values:
0 - Maintainer: [ root@localhost.localdomain ]
1 - Summary: [ Very fast web log analyzer ]
2 - Name: [ visitors ]
3 - Version: [ 0.6 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ visitors_0.6 ]
9 - Alternate source location: [ ]
<
*関連
**パッケージを解凍する
-RPM
rpm2cpio hoge.rpm | cpio -id
-DEB
ar -x hoge.deb
*参考
-[[@IT:ソースファイルからRPMファイルを作成するには>http://www.atmarkit.co.jp/flinux/rensai/linuxtips/530mkrpmfs.html]]
-[[checkinstall を使ってみよう>http://www.linet.gr.jp/~juk/plamo/custom/checkinstall.html]]
-[[rpm2cpio>http://www.netlaputa.ne.jp/~utty/linuxmld/rpm2cpio1.html]]
**気になる
-[[SPECファイルの自動作成>http://www.kids-clinic.jp/uni/spec.html]]