leofs_rpm is the leofs's configuration file for RPM(RedHat)/deb(Ubuntu)
###How to make RPM file
- Prepare environment
- Install Git, rpmbuild, erlang
- Make working directories
$ mkdir -p ~/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- Copy spec file to 'SPECS' directory
$ cp rpm/make_rpm.sh ~/rpm/SPECS
$ cp rpm/leofs.spec ~/rpm/SPECS
- Build RPM file
$ cd ~/rpm/SPECS
$ sh make_rpm.sh VERSION
Example:
$ sh make_rpm.sh 0.14.0
- RPM file is created in the 'RPMS' directory.
##How to make deb file
- Prepare environment
- Install Git, fakeroot, build-essential
- Make working directories
$ mkdir {WORK_DIRECTORY}
- Copy script file
$ cp deb/make_deb.sh {WORK_DIRECTORY}
- Build deb file
$ cd {WORK_DIRECTORY}
$ sh make_deb.sh {LeoFS's Version}