aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-10-09 11:28:33 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2010-10-09 11:28:33 -0700
commit27b407fde1844a0e03f1a9d92d2a1c4a40435f9b (patch)
treeacd44256c9f22670067384b094626776aae7a50d
parent508588afbdf18f72b8154c3500eedd19cd15c6cc (diff)
Added Debian packaging for OTR plugin. It's built by default but this can
be disabled by setting BITLBEE_OTR to 0 (or 1 to compile it into the binary).
-rw-r--r--debian/control13
-rwxr-xr-xdebian/rules24
2 files changed, 26 insertions, 11 deletions
diff --git a/debian/control b/debian/control
index 56859a58..19c3b587 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Wilmer van der Gaast <wilmer@gaast.net>
Uploaders: Jelmer Vernooij <jelmer@samba.org>
Standards-Version: 3.8.4
-Build-Depends: libglib2.0-dev (>= 2.4), libevent-dev, libgnutls-dev | libnss-dev (>= 1.6), po-debconf, libpurple-dev, debhelper (>= 6)
+Build-Depends: libglib2.0-dev (>= 2.4), libevent-dev, libgnutls-dev | libnss-dev (>= 1.6), po-debconf, libpurple-dev, libotr2-dev, debhelper (>= 6)
Homepage: http://www.bitlbee.org/
Vcs-Bzr: http://code.bitlbee.org/bitlbee/
DM-Upload-Allowed: yes
@@ -58,3 +58,14 @@ Description: An IRC to other chat networks gateway (dev files)
and Facebook Chat), ICQ, AIM, MSN, Yahoo! and Twitter/Identica/Status.net.
.
This package holds development stuff for compiling plug-ins.
+
+Package: bitlbee-plugin-otr
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, bitlbee (= ${bee:Version}) | bitlbee-libpurple (= ${bee:Version})
+Description: An IRC to other chat networks gateway (default version)
+ This program can be used as an IRC server which forwards everything you
+ say to people on other chat networks: Jabber (which includes Google Talk
+ and Facebook Chat), ICQ, AIM, MSN, Yahoo! and Twitter/Identica/Status.net.
+ .
+ This package contains a plugin that adds support for Off-The-Record
+ encryption of instant messages.
diff --git a/debian/rules b/debian/rules
index c5397085..8cc46b87 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,8 +7,9 @@
# exercise is over now.
#
-# Include the bitlbee-libpurple variant by default
+# Include the bitlbee-libpurple variant and OTR plugin by default
BITLBEE_LIBPURPLE ?= 1
+BITLBEE_OTR ?= plugin
BITLBEE_CONFIGURE_FLAGS ?=
DEBUG ?= 0
@@ -21,12 +22,16 @@ ifneq ($(BITLBEE_LIBPURPLE),1)
DH_OPTIONS += -Nbitlbee-libpurple
endif
+ifneq ($(BITLBEE_OTR),plugin)
+DH_OPTIONS += -Nbitlbee-plugin-otr
+endif
+
build: build-stamp
build-stamp:
dh_testdir
mkdir -p debian/build-native
- ROOT=$$PWD; cd debian/build-native; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --events=libevent $(BITLBEE_CONFIGURE_FLAGS)
+ ROOT=$$PWD; cd debian/build-native; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --events=libevent --otr=$(BITLBEE_OTR) $(BITLBEE_CONFIGURE_FLAGS)
$(MAKE) -C debian/build-native
ifeq ($(BITLBEE_LIBPURPLE),1)
@@ -55,19 +60,18 @@ install: build
dh_clean -k
dh_installdirs
- $(MAKE) -C debian/build-native install DESTDIR=`pwd`/debian/bitlbee
- $(MAKE) -C debian/build-native install-etc DESTDIR=`pwd`/debian/bitlbee-common
+ $(MAKE) -C debian/build-native install-bin DESTDIR=`pwd`/debian/bitlbee
+ $(MAKE) -C debian/build-native install-etc install-doc DESTDIR=`pwd`/debian/bitlbee-common
$(MAKE) -C debian/build-native install-dev DESTDIR=`pwd`/debian/bitlbee-dev
- patch debian/bitlbee-common/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
+ $(MAKE) -C debian/build-native install-plugins DESTDIR=`pwd`/debian/bitlbee-plugin-otr
ifeq ($(BITLBEE_LIBPURPLE),1)
- $(MAKE) -C debian/build-libpurple install DESTDIR=`pwd`/debian/bitlbee-libpurple
+ $(MAKE) -C debian/build-libpurple install-bin DESTDIR=`pwd`/debian/bitlbee-libpurple
ln -sf debian/bitlbee.prerm debian/bitlbee-libpurple.prerm
endif
- mkdir -p debian/bitlbee-common/usr
- mv debian/bitlbee/usr/share debian/bitlbee-common/usr
- rm -rf debian/bitlbee-libpurple/usr/share
+ patch debian/bitlbee-common/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
+ chmod 640 debian/bitlbee-common/etc/bitlbee/bitlbee.conf
binary-common:
dh_testdir
@@ -78,7 +82,7 @@ binary-common:
dh_installdocs #--link-doc=bitlbee-common
# TODO: Restore --link-doc up here and remove the hack below once
# Hardy and Lenny are deprecated.
- for p in bitlbee bitlbee-libpurple bitlbee-dev; do rm -r debian/$$p/usr/share/doc/$$p && ln -s bitlbee-common debian/$$p/usr/share/doc/$$p; done
+ for p in bitlbee bitlbee-libpurple bitlbee-dev bitlbee-plugin-otr; do rm -r debian/$$p/usr/share/doc/$$p && ln -s bitlbee-common debian/$$p/usr/share/doc/$$p || true; done
dh_installdebconf
dh_installinit --init-script=bitlbee
dh_installman