Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leo-project/leofs_package

leofs_rpm is a LeoFS' configuration file for RPM and DEB
https://github.com/leo-project/leofs_package

centos leofs package ubuntu

Last synced: 3 months ago
JSON representation

leofs_rpm is a LeoFS' configuration file for RPM and DEB

Awesome Lists containing this project

README

        

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

2. Make working directories
```bash
$ mkdir -p ~/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
```

3. Copy spec file to 'SPECS' directory
```bash
$ cp rpm/make_rpm.sh ~/rpm/SPECS
$ cp rpm/leofs.spec ~/rpm/SPECS
$ cp common/check_version.sh ~/rpm/SPECS
```

4. Build RPM file
```bash
$ 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

2. Make working directories
```bash
$ mkdir {WORK_DIRECTORY}
```

3. Copy script file
```bash
$ cp deb/make_deb.sh {WORK_DIRECTORY}
$ cp common/check_version.sh {WORK_DIRECTORY}
```

4. Build deb file
```bash
$ 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.