[erlang-questions] Release packaging (on Debian) and live upgrade
Wed Mar 23 18:26:06 CET 2011
Also available but not really released yet (in that I've use it for a few
things but not enough to warrant me calling it done), is a framewerk
template which uses rebar, and can be used to wrap and package things
from github which use rebar.
For instance I wanted proper from github so I did
% fw-init --name proper --template erlang-rebar --revision svn \
--svn_project_path https://svn-priv.openx.org/svn/trunk/vendor/erlang/proper \
--svn_tag_root https://svn-priv.openx.org/svn/tags/vendor/erlang/proper \
% cd proper
% ./bootstrap && ./configure && make package
% rpm -ivh fw-pkgout/proper-0.0.0-TEST1.noarch.rpm
Which creates a framewerk package in my svn directory which is a wrapper
package for a github tree which will compile with rebar. After the
make package command I have an rpm which will install proper into
the erlang lib dir on the machine.
Also, 'make release' publishes the rpm to my yum repo (in the case of .deb
packaging 'release' puts the package onto an apt repo).
In addition you can always 'make dist' to get a self contained .tar.gz file
which you can provide to people to install your erlang package with
'./configure && make && sudo make install'.
The automatic app/appup stuff is separable in case you just need that stuff.
On Wed, Mar 23, 2011 at 11:57:24AM +0100, Jean-S?bastien P?dron wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On 22.03.2011 22:45, Anthony Molinaro wrote:
> > Hi,
> > I use a combination of
> > http://code.google.com/p/erlrc/
> > and
> > http://code.google.com/p/fwtemplates/
> > to accomplish something similar on debian in 2008 and currently on Centos.
> > Fwtemplates supports building .debs and .rpms and creates app and appup files
> > during upgrade in an automagic fashion. erlrc integrates these into the
> > packaging system.
> > Some old blog posts are here
> > http://dukesoferl.blogspot.com/2008/02/erlang-and-automake.html
> > http://dukesoferl.blogspot.com/2008/06/im-in-ur-erlangz-upgrading-ur.html
> > http://dukesoferl.blogspot.com/2009/04/erlrc-erlang-factory-talk.html
> > http://dukesoferl.blogspot.com/2009/05/automatic-appup-file-generation.html
> > http://dukesoferl.blogspot.com/2009/05/automatic-app-file-generation.html
> > http://dukesoferl.blogspot.com/2009/12/erlrc-and-rpm.html
> I previously heard of erlrc but not fwtemplates. Thank you very much for
> the links!
> I'll study all this, especially the "appup" automatic generation which
> seems very interesting.
> - --
> Jean-Sébastien Pédron
> Yakaz (http://www.yakaz.com/)
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (FreeBSD)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> -----END PGP SIGNATURE-----
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
Anthony Molinaro <>
More information about the erlang-questions