Skip to content

Commit

Permalink
Initial Debian packaging work
Browse files Browse the repository at this point in the history
  • Loading branch information
mika committed Aug 29, 2012
1 parent 2a8e80e commit 857f39c
Show file tree
Hide file tree
Showing 7 changed files with 133 additions and 0 deletions.
17 changes: 17 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
README for backend-ircbot
=========================

This package is a quick and dirty hack to provide
the backend-ircbot project as a Debian package
for usage on the http://jenkins-ci.org/
infrastructure.

The build process doesn't use maven-debian-helper
but instead calls the main maven tool itself.

To build the binary Debian package you might want
to run something like:

yes | debuild -uc -us -I\.git

on your Debian system.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
backend-ircbot (1.0~SNAPSHOT+20120809-1) unstable; urgency=low

* Initial release.

-- Michael Prokop <github@michael-prokop.at> Thu, 09 Aug 2012 01:22:06 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
16 changes: 16 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Source: backend-ircbot
Section: java
Priority: extra
Maintainer: Michael Prokop <github@michael-prokop.at>
Build-Depends: debhelper (>= 5), openjdk-6-jdk, maven2
Standards-Version: 3.9.3
Homepage: https://github.com/jenkinsci/backend-ircbot

Package: backend-ircbot
Architecture: all
Depends: default-jre-headless | openjdk-6-jre-headless,
${misc:Depends},
${shlibs:Depends}
Description: Jenkins IRCbot
This package provides the Jenkins IRCbot for
usage on jenkins-ci.org infrastructure.
38 changes: 38 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: backend-ircbot
Upstream-Contact: Kohsuke Kawaguchi <kk@kohsuke.org>
Source: https://github.com/jenkinsci/backend-ircbot

Files: *
Copyright: 2009-2012 Kohsuke Kawaguchi <kk@kohsuke.org>
License: TODO

Files: debian/*
Copyright: 2012 Michael Prokop <github@michael-prokop.at>
License: BSD

License: BSD
Copyright (c) 2012 Michael Prokop <github@michael-prokop.at>
All rights reserved.
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1 change: 1 addition & 0 deletions debian/overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
backend-ircbot: binary-without-manpage usr/bin/ircbot
55 changes: 55 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/usr/bin/make -f

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

JAVA_HOME := /usr/lib/jvm/default-java

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp

build-stamp:
dh_testdir
mvn install
touch build-stamp

clean:
dh_testdir
dh_testroot
dh_clean
rm -f build-stamp
rm -rf debian/backend-ircbot/
rm -rf target/

install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs usr/share/ircbot/ usr/bin
cp -a target/ircbot-*-*-bin/* debian/backend-ircbot/usr/share/ircbot/
printf "#!/bin/sh\njava -jar /usr/share/ircbot/ircbot-*.jar \"\$$@\"\n" > debian/backend-ircbot/usr/bin/ircbot

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installman
dh_compress
mkdir -p debian/backend-ircbot/usr/share/lintian/overrides/
cp -av debian/overrides debian/backend-ircbot/usr/share/lintian/overrides/backend-ircbot
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install

0 comments on commit 857f39c

Please sign in to comment.