leofs_rpm is the leofs's configuration file for RPM(RedHat)/deb(Ubuntu)
- 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
$ cp common/check_version.sh ~/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.
- Prepare environment
- Install Git, fakeroot, build-essential
- Make working directories
$ mkdir {WORK_DIRECTORY}
- Copy script file
$ cp deb/make_deb.sh {WORK_DIRECTORY}
$ cp common/check_version.sh {WORK_DIRECTORY}
- Build deb file
$ cd {WORK_DIRECTORY}
$ sh make_deb.sh {LeoFS's Version} {use systemd}
where "use systemd" can be either "yes" for building a package for systemd-compatible distro such as Ubuntu 16.04 or "no" for making a package that doesn't support (and depends on) systemd.