Permalink
Browse files

Customize darkbot build process

Summary:
The `build.sh` script shipped with with the repository
contains an install step. This install step overwrites
existing configuration files. So, we discard it.

Ref T1129.

Test Plan: Check /opt/odderon/darkbot isn't populated by `make install`

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T1129

Differential Revision: https://devcentral.nasqueron.org/D863
  • Loading branch information...
dereckson committed Jan 25, 2017
1 parent b5b1ad3 commit 1cd1e43522cce26c577d3da26f1d0a5dea4fa489
Showing with 18 additions and 2 deletions.
  1. +2 −2 roles/shellserver/odderon/code.sls
  2. +16 −0 roles/shellserver/odderon/files/build.sh
@@ -20,8 +20,8 @@ darkbot_repo:
- unless: test -f /opt/odderon/LOCKED
darkbot_build:
- cmd.run:
- - name: sh build.sh
+ cmd.script:
+ - source: salt://roles/shellserver/odderon/files/build.sh
- cwd: /opt/darkbot
- runas: odderon
- require:
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# Salt — Deploy Odderon (darkbot)
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-01-25
+# Authors: David Seikel, Dereckson
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+PREFIX=/opt/odderon
+
+test ! -r build/configure && sh bootstrap.sh
+
+cd build
+sh configure -C --prefix=$PREFIX "$@"
+make

0 comments on commit 1cd1e43

Please sign in to comment.