Skip to content
Browse files

Initial debianisation

  • Loading branch information...
1 parent 577a258 commit ea746d393c9d8ab754495ef2819c61723bdedb08 @tonyg committed Jul 14, 2009
Showing with 78 additions and 0 deletions.
  1. +1 −0 Makefile
  2. 0 debian/changelog
  3. +1 −0 debian/compat
  4. +13 −0 debian/control
  5. +24 −0 debian/copyright
  6. +2 −0 debian/rabbitmq-xmpp.docs
  7. +1 −0 debian/rabbitmq-xmpp.install
  8. +36 −0 debian/rules
View
1 Makefile
@@ -19,6 +19,7 @@ all: mod_rabbitmq.beam documentation
clean:
rm -f mod_rabbitmq.beam
+ rm -f build-stamp install-stamp
clean-doc:
rm -rf doc/*
View
0 debian/changelog
No changes.
View
1 debian/compat
@@ -0,0 +1 @@
+5
View
13 debian/control
@@ -0,0 +1,13 @@
+Source: rabbitmq-xmpp
+Section: net
+Priority: extra
+Maintainer: Tony Garnock-Jones <tonyg@lshift.net>
+Build-Depends: debhelper (>= 7), erlang-dev, ejabberd
+Standards-Version: 3.8.1
+Homepage: http://www.rabbitmq.com/
+Vcs-Browser: http://hg.rabbitmq.com/rabbitmq-xmpp
+
+Package: rabbitmq-xmpp
+Architecture: all
+Depends: rabbitmq-server, ejabberd
+Description: An XMPP IM gateway for RabbitMQ
View
24 debian/copyright
@@ -0,0 +1,24 @@
+This package was debianized by Tony Garnock-Jones <tonyg@rabbitmq.com> on
+Tue, 14 Jul 2009 17:35:50 +0100.
+
+Upstream Author: Tony Garnock-Jones <tonyg@lshift.net>
+
+Copyright: 2009 Tony Garnock-Jones, 2009 LShift Ltd.
+
+License: The RabbitMQ XMPP gateway is free software, licensed under
+the GPL:
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA
View
2 debian/rabbitmq-xmpp.docs
@@ -0,0 +1,2 @@
+
+
View
1 debian/rabbitmq-xmpp.install
@@ -0,0 +1 @@
+usr
View
36 debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+# Common useful variables (from cdbs)
+DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))
+DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
+DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
+DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
+DEB_ISNATIVE := $(shell dpkg-parsechangelog | egrep '^Version:' | perl -ne 'print if not /^Version:\s*.*-/;')
+
+DESTDIR=$(CURDIR)/debian/tmp
+
+build: build-stamp
+build-stamp:
+ dh build
+ touch build-stamp
+
+clean:
+ dh clean
+ rm -f build-stamp
+ rm -f install-stamp
+
+install: build install-stamp
+install-stamp:
+ dh install --sourcedir=$(DESTDIR) --before=auto_install
+ install -d $(DESTDIR)/usr/lib/ejabberd/ebin
+ install mod_rabbitmq.beam $(DESTDIR)/usr/lib/ejabberd/ebin
+ dh install --sourcedir=$(DESTDIR) --after=auto_install
+ touch install-stamp
+
+binary-arch: install
+ dh binary-arch
+
+binary-indep: install
+ dh binary-indep
+
+binary: binary-arch binary-indep

0 comments on commit ea746d3

Please sign in to comment.
Something went wrong with that request. Please try again.