| ENGLISH | JAPANESE |
Cmmi helps you to simplify your installation process from '.tar.gz' source archives.You can be a package manager of your local site, if you are not an expert of your OS.Cmmi can make Debian, RedHat, Slackware and cygwin packages efficiently.
Cmmi manages your installation process by following features
% mkdir ~/cmmi
% cmmi
cmmi 0.x.x
usage : cmmi [switch] [install|clean|make|ARCFILE]
cmmi ARCFILE .... checkin ARCFILE to ~/cmmi/xxxxx/
cmmi .... configure and make
cmmi install .... install
cmmi clean .... cleaning work
switch :
-v verbose mode
-d debug mode
-n force unset '$PACKAGE_TYPE'
notice: Please assume PACKAGE-NAME is a particular name of any packages.
If .url file is exists, you can remove .tar.gz or .tgz or .tar.bz2 files anytime
arcives : gcc-3.4.0.tar.gz
dir : gcc-3.4.0
move : gcc-3.4.0.tar.gz -> /home/kiyoka/cmmi/gcc-3.4.0
# (for Emacs shell-mode, Please return)
cd /home/kiyoka/cmmi/gcc-3.4.0
$ cmmi \
ftp://core.ring.gr.jp/pub/GNU/gcc/gcc-3.4.0/gcc-3.4.0.tar.gz
register URL : \
ftp://core.ring.gr.jp/pub/GNU/gcc/gcc-3.4.0/gcc-3.4.0.tar.gz \
-> /home/kiyoka/cmmi/gcc-3.4.0/.url
dir : gcc-3.4.0
# (for Emacs shell-mode, Please return)
cd /home/kiyoka/cmmi/gcc-3.4.0
# --------------------------------------------------------------
# --- This is a sample file of ~/.cmmirc (English version) ---
# --------------------------------------------------------------
#
# --- Root of cmmi
# If you want to change root of cmmi to '~/arcdir', you must remove \
following comment '#' .
# if you don't define this variable, Cmmi assumes default is '~/cmmi' .
#$ARCHIVE_DIR = 'arcdir';
#
# --- Package type ( D=debian, R=RPM, S=Slackware, C=Cygwin )
# If you don't define this variable, Cmmi assumes Your system has no \
package system. ( plain installation )
#$PACKAGE_TYPE= 'D';
#
# --- Package repository
# If you use Debian system, you can apt-get as follow setting.
# e.g.)
# username : kiyoka
# hostname : hoge
#
# apt-line is 'deb http://hoge/~kiyoka/debian ./'
# And you must start apache http server.
#
#$PACKAGE_DIR = '/home/kiyoka/public_html/debian';
#
# --- Target directory of installation
# This variable will be used for configure option --prefix=XXXX.
#$TARGET_PREFIX = '/opt/local';
#
# This is an example of auto recognition of two OSes.
#
# This example supports both Debian system and cygwin system.
#
if( $ENV{OSTYPE} =~ /linux/ ) {
# Package type
$PACKAGE_TYPE= 'D';
# The directory to pool generated packages
$PACKAGE_DIR = '/home/kiyoka/public_html/debian';
}
else {
# Package type
$PACKAGE_TYPE= 'C';
# The directory to pool generated packages
$PACKAGE_DIR = '/home/kiyoka/park/cygwin';
# installation target directory
$TARGET_PREFIX = '/opt/local';
}
#
# --- Verbose mode ( for debug )
#$verbose = 1;
conf configure make make install make install
conf ./Configure -de make make make test
If you describe a .cmmirc file correctly, you can use apt-xxx command in order to install/uninstall.
(notice: cmmi generates package which was named 'cmmi-xxxx')
If you put some files on .depends/ directory, You can specify dependencies of target package name for cmmi-PACKAGE-NAME package.
The package cmmi-PACKAGE-NAME depends on cmmi-aaa package.
The package cmmi-PACKAGE-NAME depends on bbb package.
If you describe a .cmmirc file correctly, you can install/uninstall with setup.exe which is distributed on cygwin site.