Skip to content

Commit

Permalink
Initial rdio packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
yosh authored and kastner committed Apr 11, 2011
1 parent 153fc35 commit ba41a7a
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
statsd (0.0.1) unstable; urgency=low

* Initial rdio packaging.

-- Manish Singh <manish@rd.io> Mon, 21 Mar 2011 23:04:52 -0700
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
12 changes: 12 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Source: statsd
Section: devel
Priority: optional
Maintainer: Manish Singh <manish@rd.io>
Standards-Version: 3.9.1

Package: statsd
Architecture: any
Depends: nodejs
Description: Stats aggregation daemon
A network daemon for aggregating statistics (counters and timers),
rolling them up, then sending them to graphite.
22 changes: 22 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2010 Etsy

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
File renamed without changes.
4 changes: 4 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/make -f

%:
dh $@
3 changes: 3 additions & 0 deletions debian/scripts/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
# Called by Upstart, /etc/init/statsd.conf
/usr/bin/nodejs /usr/share/statsd/stats.js /etc/statsd/rdioConfig.js 2>&1 >> /tmp/statsd.log
4 changes: 4 additions & 0 deletions debian/statsd.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
stats.js /usr/share/statsd
config.js /usr/share/statsd
debian/rdioConfig.js /etc/statsd
debian/scripts/start /usr/share/statsd/scripts
12 changes: 12 additions & 0 deletions debian/statsd.upstart
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description "statsd"
author "rdio"

start on startup
stop on shutdown

script
# We found $HOME is needed. Without it, we ran into problems
export HOME="/root"

exec sudo -u fabric /usr/share/statsd/scripts/start
end script

0 comments on commit ba41a7a

Please sign in to comment.