#===============================================#
# How to Install/Uninstall Make One Linux Suite #
#===============================================#

* Caution
- "$" stands for user prompt.
- "#" stands for root prompt.
- rpm binary package name of Make One Linux is mol-suite-x.x.x-rpm-i686.tar.gz
- rpm source package name of Make One Linux is mol-suite-x.x.x-rpm-src.tar.gz
- tarball package name of Make One Linux is mol-suite-x.x.x-tar-src.tar.gz
- CPU architecture is i686.
- rpm binary package installation process is tested  with Vine Linux 4.1
- rpm source and tarball packages installation are not tested.
- install squashfs before installation.
- install unionfs or aufs before installation.


* Installation of rpm binary package
1.Unpack Make One Linux Suite package.
    $ tar -zxf mol-suite-x.x.x-rpm-i686.tar.gz
2.Install the packages which depends on your distribution.
    # pushd mol-suite-x.x.x/program/<distro name>/
    # rpm -ivh *.rpm
    # popd
3.Install the others.
    # pushd mol-suite-x.x.x/program/
    # rpm -ivh *.rpm
    # popd
    # exit


* Installation of rpm source
1.Unpack Make One Linux Suite package.
    $ tar -zxf mol-suite-x.x.x-rpm-src.tar.gz
2.Make rpm build directory. If you already make this directory, you don't
  have to do.
    $ echo "%_topdir ~/rpm" >> ~/.rpmmacros
    $ mkdir -p ~/rpm
    $ pushd ~/rpm
    $ mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS}
    $ cd RPMS
    $ mkdir -p {i686,noarch}
    $ popd
3.Build the packages which depends on your distribution.
    $ pushd mol-suite-x.x.x/program/<distro name>/
    $ rpmbuild --rebuild --target=i686 *.src.rpm
    $ popd
4.Build the others
    $ pushd mol-suite-x.x.x/program/
    $ rpmbuild --rebuild --target=i686 *.src.rpm
    $ popd
5.Install built packages.
    $ pushd ~/rpm/RPMS/
    $ su
    Password:
    # rpm -ivh i686/*.rpm
    # rpm -ivh noarch/*.rpm
    # exit
    $ popd


* Installation of tarball
  1.Unpack Make One Linux Suite package.
      $ tar -zxf mol-suite-x.x.x-tar-src.tar.gz
  2.Build and install busybox-mol, hwsetup-mol, ddcxinfo-mol, xsetup-mol,
    mol-dep, and mol packages. install mol package last because it requires
    the other packages.
      $ tar -zxf mol-suite-x.x.x/program/*.tar.gz
      $ pushd (unpacked directory)/
      $ make oldconfig   # only busybox-mol
      $ make dep         # only busybox-mol
      $ make
      $ su
      Password:
      # make install
      # exit
      $ popd


* Uninstallation
  1.Run molmake with --clean option by root.
      $ su
      Password:
      # molmake --clean
  2.Uninstall all packages.
    in the case that you installed Make One Linux Suite with rpm packages.
      # rpm -e <package name>
    in the case that you installed Make One Linux Suite with tar balls.
      # cd <unpacked directory>
      # make uninstall

