basho / node_package

RPM/Debian/FreeBSD/SmartOS/Solaris/OSX packaging templates for Erlang Nodes
Apache License 2.0
89 stars 63 forks source link

deb template cleanup + systemd support #204

Closed ian-mi closed 8 years ago

ian-mi commented 8 years ago

Cleanup the deb template to use the debhelper scripts when possible. This greatly simplifies the rules file and ensures that things like man pages are installed correctly w/ proper permissions.

In addition, as /var/run is a tmpfs in recent Debian releases, avoid installing to this directory and instead create the runtime directory dynamically.

Finally, add a systemd unit file which will automatically be installed by dh_installinit when needed.

These changes have been tested with riak_ee on debian 8 as well as debian 7 to ensure backwards compatibility with non-systemd releases.

nickelization commented 8 years ago

:+1: 2a8bf3f Awesome work @ian-mi, really nice to have all those loose ends cleaned up.