[erlang-questions] deb package from erlang app release

Andre Nathan andre@REDACTED
Mon Jan 17 12:19:21 CET 2011


On Mon, 2011-01-17 at 02:50 -0800, Pablo Platt wrote:
> When I'm copying the release to /opt (in the dh-make install script) I'm getting 
> many errors and warnings:

Here's my debian/rules file, in case it helps:

#!/usr/bin/make -f
%:
  dh $@

BUILD_DIR = $(CURDIR)/debian/myapp

override_dh_auto_build:
  rebar compile
  mkdir -p rel
  cp debian/reltool.config rel
  rebar generate force=1

override_dh_auto_install:
  mkdir -p $(BUILD_DIR)/etc/init.d
  mkdir -p $(BUILD_DIR)/opt
  mkdir -p $(BUILD_DIR)/var/lib
  mkdir -p $(BUILD_DIR)/var/run
  mkdir -p $(BUILD_DIR)/var/log
  mv rel/myapp $(BUILD_DIR)/opt

  install -D -m0644 debian/vm.args $(BUILD_DIR)/opt/myapp/etc/vm.args
  install -D -m0644 debian/app.config
$(BUILD_DIR)/opt/myapp/etc/app.config
  install -D -m0755 debian/myapp.runner $(BUILD_DIR)/opt/myapp/bin/myapp




More information about the erlang-questions mailing list