Powered by SmartDoc
ENGLISHJAPANESE

Cmmi README

$Date: 2007/01/18 14:33:40 $
Kiyoka Nishiyama
http://www.netfort.gr.jp/~kiyoka/cmmi

What is Cmmi?

Abstract

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

Platform

How to install

  1. Do 'make install' (cmmi command will be installed to /usr/local/bin directory)
  2. Please make '~/cmmi' Direcotry
    % mkdir ~/cmmi
    
  3. You will see a following message.
    % 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'
          
    

contents of ~cmmi/

notice: Please assume PACKAGE-NAME is a particular name of any packages.

How to use

In case of current directory is other than '~/cmmi'

In case of current directory is '~/cmmi'

In case of current directory is '~/cmmi/PACKAGE-NAME/'

How to customize '~/.cmmirc' file

An example of '~/.cmmirc'

# --------------------------------------------------------------
# --- 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;

In case of '~/.cmmirc' is not existing

.cmmi file

In case of '.cmmi' is not existing

How to customize .cmmi file

Rule and Grammer

How to describe particular section

apt-get with cmmi ( for only Debian users )

If you describe a .cmmirc file correctly, you can use apt-xxx command in order to install/uninstall.

How to specify package dependencies

If you put some files on .depends/ directory, You can specify dependencies of target package name for cmmi-PACKAGE-NAME package.

setup.exe with cmmi ( for only cygwin users )

If you describe a .cmmirc file correctly, you can install/uninstall with setup.exe which is distributed on cygwin site.