Proof of concept for using FPM
Created by: zlamalp
-
Added very naive bash script, which create deb/rpm packages for Perun services with output like:
perun-slave-base_3.0.0.0.0.86_all.deb perun-slave-[service-name]_3.0.0.0.0.86_all.deb perun-slave-meta_3.0.0.0.0.86_all.deb
or
perun-slave-base-3.0.0.0.0.86-1.noarch.rpm perun-slave-[service-name]-3.0.0.0.0.86-1.noarch.rpm perun-slave-meta-3.0.0.0.0.86-1.noarch.rpm
Usage: ./package_perun.sh [deb|rpm]
Created packages takes version from changelog file. We will probably need to add RPM compliant changelog too in order to add it into RPM package. All files related to the service are packaged, including service.d folder.
Created packages have correct deb/rpm dependencies but fixed on the same version.
FPM (ruby gem) needs to be installed on machine:
debian:
sudo apt-get install ruby ruby-dev gcc rpm sudo gem install fpm
fedora:
sudo yum install ruby ruby-devel rubygem gcc rpm rpm-build sudo gem install fpm