Skip to content

Commit

Permalink
Add packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiall Mac Innes committed Sep 27, 2013
1 parent fd84ad9 commit 96df285
Show file tree
Hide file tree
Showing 16 changed files with 156 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.pyc
*.egg
*.egg-info
*.swp
build
dist
pkg
2 changes: 2 additions & 0 deletions debian/beaver.conf.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[beaver]
files: /var/log/syslog,/var/log/*.log
3 changes: 3 additions & 0 deletions debian/beaver.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
etc
usr/share/beaver
var/lib/beaver
2 changes: 2 additions & 0 deletions debian/beaver.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/bin/beaver
debian/beaver.conf.sample usr/share/beaver
1 change: 1 addition & 0 deletions debian/beaver.ucf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/usr/share/beaver/beaver.conf.sample /etc/beaver.conf
8 changes: 8 additions & 0 deletions debian/beaver.upstart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
description "Beaver"

start on runlevel [2345]
stop on runlevel [!2345]

respawn

exec /usr/bin/beaver -c /etc/beaver.conf
24 changes: 24 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
beaver (30-1) precise; urgency=high

* New upstream release

-- Kiall Mac Innes <[email protected]> Fri, 27 Sep 2013 12:17:34 +0100

beaver (28-3) precise; urgency=low

* Include /var/log/syslog in the sample config file

-- Kiall Mac Innes <[email protected]> Mon, 01 Apr 2013 21:14:27 +0100

beaver (28-2) precise; urgency=low

* Update sample config file
* Fixup upstart script

-- Kiall Mac Innes <[email protected]> Mon, 01 Apr 2013 20:31:26 +0100

beaver (28-1) precise; urgency=low

* Initial Packaging

-- Kiall Mac Innes <[email protected]> Mon, 01 Apr 2013 19:10:32 +0100
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8
40 changes: 40 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Source: beaver
Section: python
Priority: extra
Maintainer: Kiall Mac Innes <[email protected]>
Build-Depends:
debhelper (>= 8.0.0),
python | python-all | python-dev | python-all-dev
Build-Depends-Indep:
python-setuptools
Standards-Version: 3.9.4
Homepage: https://github.com/josegonzalez/beaver

Package: beaver
Architecture: all
Depends:
python-beaver (= ${binary:Version}),
${misc:Depends}
Description: Beaver
Beaver is a python daemon that munches on logs and sends their contents
to logstash

Package: python-beaver
Architecture: all
Depends:
python | python-all,
python-simplejson,
python-daemon,
python-glob2,
python-argparse,
python-conf-d,
${misc:Depends}
Suggests:
python-pika,
python-redis,
python-zmq
Provides:
${python:Provides}
Description: Beaver Python Libraries
Beaver is a python daemon that munches on logs and sends their contents
to logstash
40 changes: 40 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Format: http://dep.debian.net/deps/dep5
Upstream-Name: beaver
Source: https://github.com/josegonzalez/beaver

Files: *
Copyright: (c) 2012-2013 Jose Diaz-Gonzalez
License: MIT
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.

Files: debian/*
Copyright: (c) 2013 Hewlett-Packard Development Company, L.P.
License: Apache 2.0
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
3 changes: 3 additions & 0 deletions debian/gbp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[DEFAULT]
pristine-tar = false
export-dir = ../build-area/
Empty file added debian/pydist-overrides
Empty file.
1 change: 1 addition & 0 deletions debian/python-beaver.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/python*/dist-packages/*
21 changes: 21 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
#
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
#
# Modified to make a template file for a multi-binary package with separated
# build-arch and build-indep targets by Bill Allombert 2001

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS


%:
dh $@ --with python2
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
2 changes: 2 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version=3
https://pypi.python.org/packages/source/B/Beaver/Beaver-(.*)\.tar\.gz

0 comments on commit 96df285

Please sign in to comment.