Skip to content

Commit

Permalink
Write a lein task for packaging the deb.
Browse files Browse the repository at this point in the history
  • Loading branch information
aphyr committed Nov 13, 2012
1 parent 9a348bd commit 4e9a581
Show file tree
Hide file tree
Showing 9 changed files with 112 additions and 326 deletions.
1 change: 1 addition & 0 deletions .lein-classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:tasks
28 changes: 0 additions & 28 deletions pkg/README.markdown

This file was deleted.

9 changes: 9 additions & 0 deletions pkg/deb/riemann
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
if [ -z "$1" ]
then
config="/etc/riemann/riemann.config"
else
config=$1
fi

java -XX:+UseConcMarkSweepGC -jar "/usr/lib/riemann/riemann.jar" "$config"
275 changes: 0 additions & 275 deletions pkg/etc/riemann.config.guide

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/etc/riemann.config → pkg/riemann.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
index (default :ttl 300 (update-index (index)))]

(streams
(with {:metric_f 1 :host nil :state "ok" :service "events/sec"}
(with {:metric 1 :host nil :state "ok" :service "events/sec"}
(rate 5 index))

(where (service #"^per")
Expand Down
1 change: 0 additions & 1 deletion pkg/bin/riemann → pkg/tar/riemann
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ else
config=$1
fi


java -XX:+UseConcMarkSweepGC -jar "$top/lib/riemann-0.1.2-standalone.jar" "$config"
22 changes: 3 additions & 19 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@

(defproject riemann "0.1.3-SNAPSHOT"
:description
"A network event stream processor. Intended for analytics, metrics, and
alerting; and to glue various monitoring systems together."
"A network event stream processor. Intended for analytics, metrics, and alerting; and to glue various monitoring systems together."
:url "http://github.com/aphyr/riemann"
; :warn-on-reflection true
; :jvm-opts ["-server" "-d64" "-Xms1024m" "-Xmx1024m" "-XX:+UseParNewGC" "-XX:+UseConcMarkSweepGC" "-XX:+CMSParallelRemarkEnabled" "-XX:+AggressiveOpts" "-XX:+UseFastAccessorMethods" "-verbose:gc" "-XX:+PrintGCDetails"]
:jvm-opts ["-server" "-d64" "-Xms1024m" "-Xmx1024m" "-XX:+UseParNewGC" "-XX:+UseConcMarkSweepGC" "-XX:+CMSParallelRemarkEnabled" "-XX:+AggressiveOpts" "-XX:+UseFastAccessorMethods"]
:repositories {
"boundary-site" "http://maven.boundary.com/artifactory/repo"
}
:maintainer {:email "aphyr@aphyr.com"}
:dependencies [
[org.clojure/clojure "1.4.0"]
[org.clojure/math.numeric-tower "0.0.1"]
Expand All @@ -43,9 +43,7 @@ alerting; and to glue various monitoring systems together."
[clj-librato "0.0.2-SNAPSHOT"]
[incanter/incanter-charts "1.3.0"]
]
:profiles {:dev {:dependencies [[clj-glob "1.0.0"]]}}
:plugins [[codox "0.6.1"]
[lein-deb "1.0.0-SNAPSHOT"]]
:plugins [[codox "0.6.1"]]
:test-selectors {:default (fn [x] (not (or (:integration x)
(:time x)
(:bench x))))
Expand All @@ -61,19 +59,5 @@ alerting; and to glue various monitoring systems together."
:java-source-path "src/riemann/"
:aot [riemann.bin]
:main riemann.bin
:deb {:maintainer {:name "Kyle Kingsbury"
:email "aphyr@aphyr.com"}
; I wish I could use relative paths here, but lein-deb complains
; "No directory specified for tarfileset", and lein macros need them
; to be strings. Arrrgh.
:filesets [{:file "/home/aphyr/riemann/riemann-0.1.3-standalone.jar"
:fullpath "/usr/lib/riemann/riemann.jar"}
{:file "/home/aphyr/riemann/riemann.config"
:fullpath "/etc/riemann/riemann.config"}
{:file "/home/aphyr/riemann/bin/riemann"
:fullpath "/usr/bin/riemann"
:fileMode "755"}]
:depends ""}
:deb-skip-jar true
:codox {:output-dir "site/api"}
)
3 changes: 1 addition & 2 deletions src/leiningen/package.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
[leiningen.deb :only [deb]]
[leiningen.pom :only [pom]]
[clojure.java.io :only [file]]
[org.satta.glob :only [glob]]
))
[org.satta.glob :only [glob]]))

(defn package [project]
; Clojars pom
Expand Down
Loading

0 comments on commit 4e9a581

Please sign in to comment.