Erlang package maker is a simple tool like https://github.com/jordansissel/fpm that will build a deb or rpm package from your directory.
You may use it to build packages for Ubuntu, Debian or Centos from your Mac without installing any specific software like apt or librpm.
It claims to be a drop-in replacement for fpm, but without ruby runtime requirement.
I use it in the following way:
- create tmproot
- copy all required and compiled erlang files there
- unpack there archive with precompiled linux binaries
- cd tmproot and run following commands:
EPM="-s dir --url http://flussonic.com/ --description 'Videostreaming server' \
-m 'Max Lapshin <max@flussonic.com>' \
--vendor 'Flussonic, LLC' --license EULA --post-install ../deploy/debian/postinst \
--pre-uninstall ../deploy/debian/prerm --post-uninstall ../deploy/debian/postrm \
--config-files /etc/flussonic/flussonic.conf"
../epm.erl -f -t deb -n flussonic -v 4.1.14 $DEBIAN -a amd64 \
--category net etc/init.d etc/flussonic opt
../epm.erl -f -t rpm -n flussonic -v 4.1.14 $DEBIAN -a amd64 \
--gpg max@flussonic.com --category Server/Video etc/init.d etc/flussonic opt
Do-whatever-you-want-to-MIT, but please, make a pull request if you fix any bug in it.