Skip to content

Commit

Permalink
Initial Debian packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
dpocock committed Mar 1, 2014
1 parent dd3f5ca commit 7003eb4
Show file tree
Hide file tree
Showing 10 changed files with 92 additions and 0 deletions.
9 changes: 9 additions & 0 deletions debian/README.source
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

This builds the package:

git-buildpackage -rfakeroot \
--git-debian-branch=debian \
--git-upstream-branch=master \
--git-upstream-tag='%(version)s' \
-i"'(^.git|^target|pom.xml)'"

2 changes: 2 additions & 0 deletions debian/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
maven.test.skip=true
javadoc.dir=build/api
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
gmetric4j (1.0.6-1) unstable; urgency=low

* Initial packaging (Closes: #740430)

-- Daniel Pocock <[email protected]> Sat, 01 Mar 2014 14:36:16 +0100

1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
20 changes: 20 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Source: gmetric4j
Section: java
Priority: optional
Maintainer: Debian Java Maintainers <[email protected]>
Uploaders: Daniel Pocock <[email protected]>
Build-Depends: debhelper (>= 9), cdbs (>= 0.4.5.3), default-jdk, remotetea
Build-Depends-Indep: maven-repo-helper (>> 0.5), maven-ant-helper (>> 4), ant, ant-optional,
Standards-Version: 3.9.5
Homepage: https://github.com/ganglia/gmetric4j
Vcs-Git: https://github.com/ganglia/gmetric4j.git
Vcs-Browser: https://github.com/ganglia/gmetric4j

Package: libgmetric4j-java
Architecture: all
Depends: ${misc:Depends}, remotetea
Description: gmetric4j Ganglia metric transmission API
gmetric4j is a 100% java, configurable Ganglia agent that periodically polls
arbitrary attributes and reports their values to Ganglia.
.
It supports both the v3.1 wire format and the legacy wire format.
27 changes: 27 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: gmetric4j
Upstream-Contact: Ganglia community <[email protected]>
Source: https://github.com/ganglia/gmetric4j

Files: *
Copyright: 2008-2011, Jasper Humphrey
2012-2014, Daniel Pocock
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.

1 change: 1 addition & 0 deletions debian/libgmetric4j-java.poms
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pom.xml --no-parent
23 changes: 23 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk

PACKAGE := $(DEB_SOURCE_PACKAGE)
VERSION := $(shell echo $(DEB_UPSTREAM_VERSION))
JAVA_HOME := /usr/lib/jvm/default-java
DEB_JARS := ant-nodeps oncrpc
DEB_ANT_BUILD_TARGET := package #javadoc
DEB_ANT_BUILDFILE := /usr/share/maven-ant-helper/maven-build.xml
DEB_ANT_ARGS := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE)
#API_DOCS := build/api

#get-orig-source:
# uscan --download-version $(VERSION) --force-download --rename

binary-post-install/lib$(PACKAGE)-java::
mh_installpoms -plib$(PACKAGE)-java
mh_installjar -plib$(PACKAGE)-java -l pom.xml build/$(PACKAGE)-$(VERSION).jar

clean::
mh_clean
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://github.com/ganglia/gmetric4j/tags .*/tarball/(\d[\d\.]+)

0 comments on commit 7003eb4

Please sign in to comment.