Skip to content

leo-project/leofs_package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leofs_package

leofs_rpm is the leofs's configuration file for RPM(RedHat)/deb(Ubuntu)

How to make RPM file

  1. Prepare environment
  • Install Git, rpmbuild, erlang
  1. Make working directories
$ mkdir -p ~/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
  1. 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
  1. 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

  1. Prepare environment
  • Install Git, fakeroot, build-essential
  1. Make working directories
$ mkdir {WORK_DIRECTORY}
  1. Copy script file
$ cp deb/make_deb.sh {WORK_DIRECTORY}
$ cp common/check_version.sh {WORK_DIRECTORY}
  1. 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.