aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/mauvealert-server.install43
-rwxr-xr-xdebian/rules14
2 files changed, 20 insertions, 37 deletions
diff --git a/debian/mauvealert-server.install b/debian/mauvealert-server.install
index 6d5dddf..95dce77 100644
--- a/debian/mauvealert-server.install
+++ b/debian/mauvealert-server.install
@@ -1,36 +1,7 @@
-bin/mauveserver usr/sbin/
-bin/mauveconsole usr/sbin/
-lib/dm-sqlite-adapter-with-mutex.rb usr/lib/ruby/vendor_ruby/
-lib/dm-validations-with-empty-errors-hack.rb usr/lib/ruby/vendor_ruby/
-lib/mauve/alert.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/alert_changed.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/alert_group.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/authentication.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/calendar_interface.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/configuration.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/configuration_builder.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/configuration_builders.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/configuration_builders usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/datamapper.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/generic_http_api_client.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/heartbeat.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/history.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/http_server.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/mauve_thread.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/notification.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/notifier.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/notifiers usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/notifiers.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/people_list.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/person.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/processor.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/server.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/source_list.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/udp_server.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/mauve/web_interface.rb usr/lib/ruby/vendor_ruby/mauve/
-lib/object_builder.rb usr/lib/ruby/vendor_ruby/
-lib/sinatra-partials.rb usr/lib/ruby/vendor_ruby/
-static usr/share/mauvealert
-views usr/share/mauvealert
-etc/mauveserver.conf etc/mauvealert/
-
+bin srv/mauvealert
+lib srv/mauvealert
+static srv/mauvealert
+views srv/mauvealert
+vendor srv/mauvealert
+.bundle srv/mauvealert
+etc/mauveserver.conf etc/mauvealert/
diff --git a/debian/rules b/debian/rules
index 5289f9d..04033e8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,17 @@
#!/usr/bin/make -f
+# Ugh
+export GEM_HOME := $(shell pwd)/vendor/bundle
+export PATH := ${GEM_HOME}/bin:${PATH}
+
%:
- dh $@ --with systemd
+ dh $@ --with-systemd
+
+override_dh_auto_build:
+ gem install bundler
+ bundler install --deployment --without="test development" --jobs=4
+
+override_dh_clean:
+ dh_clean
+ $(RM) -r vendor/