diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-10 22:43:10 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-10 22:43:10 +0000 |
commit | 57da9609d3b24014813ec39af844c70c466bcd9c (patch) | |
tree | 7f319baa877a3aa5b56b44f40de04cf0325a8e1e | |
parent | 06b58933ad0f46995c2a676671f92a335dfdfe05 (diff) |
Skype module packaging.
-rw-r--r-- | Makefile | 15 | ||||
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | debian/bitlbee-plugin-skype.docs | 2 | ||||
-rw-r--r-- | debian/changelog | 10 | ||||
-rw-r--r-- | debian/control | 25 | ||||
-rwxr-xr-x | debian/rules | 13 | ||||
-rw-r--r-- | debian/skyped.README.Debian | 18 | ||||
-rw-r--r-- | debian/skyped.docs | 2 | ||||
-rw-r--r-- | protocols/skype/Makefile | 14 |
9 files changed, 89 insertions, 16 deletions
@@ -84,11 +84,11 @@ ifdef SKYPE_PI endif install-bin: - mkdir -p $(DESTDIR)$(BINDIR) - install -m 0755 $(OUTFILE) $(DESTDIR)$(BINDIR)/$(OUTFILE) + mkdir -p $(DESTDIR)$(SBINDIR) + install -m 0755 $(OUTFILE) $(DESTDIR)$(SBINDIR)/$(OUTFILE) uninstall-bin: - rm -f $(DESTDIR)$(BINDIR)/$(OUTFILE) + rm -f $(DESTDIR)$(SBINDIR)/$(OUTFILE) install-dev: mkdir -p $(DESTDIR)$(INCLUDEDIR) @@ -112,18 +112,23 @@ uninstall-etc: rm -f $(DESTDIR)$(ETCDIR)/bitlbee.conf -rmdir $(DESTDIR)$(ETCDIR) -install-plugins: +install-plugins: install-plugin-otr install-plugin-skype + +install-plugin-otr: ifdef OTR_PI mkdir -p $(DESTDIR)$(PLUGINDIR) install -m 0755 otr.so $(DESTDIR)$(PLUGINDIR) endif + +install-plugin-skype: ifdef SKYPE_PI mkdir -p $(DESTDIR)$(PLUGINDIR) install -m 0755 skype.so $(DESTDIR)$(PLUGINDIR) - mkdir -p $(DESTDIR)$(ETCDIR)/../skyped + mkdir -p $(DESTDIR)$(ETCDIR)/../skyped $(DESTDIR)$(BINDIR) install -m 0644 $(SRCDIR)protocols/skype/skyped.cnf $(DESTDIR)$(ETCDIR)/../skyped/skyped.cnf install -m 0644 $(SRCDIR)protocols/skype/skyped.conf.dist $(DESTDIR)$(ETCDIR)/../skyped/skyped.conf install -m 0755 $(SRCDIR)protocols/skype/skyped.py $(DESTDIR)$(BINDIR)/skyped + make -C protocols/skype install-doc endif systemd: @@ -8,7 +8,8 @@ ############################## prefix='/usr/local/' -bindir='$prefix/sbin/' +bindir='$prefix/bin/' +sbindir='$prefix/sbin/' etcdir='$prefix/etc/bitlbee/' mandir='$prefix/share/man/' datadir='$prefix/share/bitlbee/' @@ -58,6 +59,7 @@ Option Description Default --prefix=... Directories to put files in $prefix --bindir=... $bindir +--sbindir=... $sbindir --etcdir=... $etcdir --mandir=... $mandir --datadir=... $datadir @@ -98,6 +100,7 @@ done # Expand $prefix and get rid of double slashes bindir=`eval echo "$bindir/" | sed 's/\/\{1,\}/\//g'` +sbindir=`eval echo "$sbindir/" | sed 's/\/\{1,\}/\//g'` etcdir=`eval echo "$etcdir/" | sed 's/\/\{1,\}/\//g'` mandir=`eval echo "$mandir/" | sed 's/\/\{1,\}/\//g'` datadir=`eval echo "$datadir/" | sed 's/\/\{1,\}/\//g'` @@ -116,6 +119,7 @@ cat<<EOF>Makefile.settings ## BitlBee settings, generated by configure PREFIX=$prefix BINDIR=$bindir +SBINDIR=$sbindir ETCDIR=$etcdir MANDIR=$mandir DATADIR=$datadir diff --git a/debian/bitlbee-plugin-skype.docs b/debian/bitlbee-plugin-skype.docs new file mode 100644 index 00000000..3f99862a --- /dev/null +++ b/debian/bitlbee-plugin-skype.docs @@ -0,0 +1,2 @@ +protocols/skype/NEWS +protocols/skype/README diff --git a/debian/changelog b/debian/changelog index a7d008f3..ec78190b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,13 @@ +bitlbee (3.0.4-0) unstable; urgency=low + + * New upstream release. + * Added bitlbee-plugin-skype and skyped packages, now part of BitlBee + instead of a separate package. + * Fixed dependencies of bitlbee-plugin-otr package to not break with + binary MTUs. (Closes: #651612) + + -- Wilmer van der Gaast <wilmer@gaast.net> Sat, 10 Dec 2011 22:42:08 +0000 + bitlbee (3.0.3-1) unstable; urgency=low * New upstream release. (Skipped 3.0.2, sorry!) diff --git a/debian/control b/debian/control index 497ed91a..70be0aa6 100644 --- a/debian/control +++ b/debian/control @@ -60,7 +60,7 @@ Description: An IRC to other chat networks gateway (dev files) Package: bitlbee-plugin-otr Architecture: any -Depends: ${misc:Depends}, ${shlibs:Depends}, bitlbee (= ${bee:Version}) | bitlbee-libpurple (= ${bee:Version}), bitlbee-common (= ${bee:Version}) +Depends: ${misc:Depends}, ${shlibs:Depends}, bitlbee (>= ${bee:Version}) | bitlbee-libpurple (>= ${bee:Version}), bitlbee (<< ${bee:Version}.1~) | bitlbee-libpurple (<< ${bee:Version}.1~) Description: An IRC to other chat networks gateway (OTR plugin) 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 @@ -68,3 +68,26 @@ Description: An IRC to other chat networks gateway (OTR plugin) . This package contains a plugin that adds support for Off-The-Record encryption of instant messages. + +Package: bitlbee-plugin-skype +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, bitlbee (>= ${bee:Version}) | bitlbee-libpurple (>= ${bee:Version}), bitlbee (<< ${bee:Version}.1~) | bitlbee-libpurple (<< ${bee:Version}.1~) +Recommends: skyped +Description: An IRC to other chat networks gateway (Skype plugin) + 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 the Skype IM network. + You need to download and install the Skype client for this to work. + +Package: skyped +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, python (>= 2.5), python-gnutls, python-skype (>=0.9.28.7) +Recommends: skype +Description: Daemon to control Skype remotely + Daemon to control the GUI Skype client. Currently required to control Skype + from the BitlBee IRC2IM gateway. Skyped and Skype can run on a different + host than the BitlBee server, the communication is encrypted. + . + You need to download and install the Skype client for this to work. diff --git a/debian/rules b/debian/rules index 2afadd90..9356cb79 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,7 @@ # Include the bitlbee-libpurple variant and OTR plugin by default BITLBEE_LIBPURPLE ?= 1 BITLBEE_OTR ?= plugin +BITLBEE_SKYPE ?= plugin BITLBEE_CONFIGURE_FLAGS ?= DEBUG ?= 0 @@ -26,12 +27,16 @@ ifneq ($(BITLBEE_OTR),plugin) DH_OPTIONS += -Nbitlbee-plugin-otr endif +ifneq ($(BITLBEE_SKYPE),plugin) +DH_OPTIONS += -Nbitlbee-plugin-skype -Nskyped +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 --otr=$(BITLBEE_OTR) $(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) --skype=$(BITLBEE_SKYPE) $(BITLBEE_CONFIGURE_FLAGS) $(MAKE) -C debian/build-native ifeq ($(BITLBEE_LIBPURPLE),1) @@ -63,7 +68,11 @@ install: build $(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 - $(MAKE) -C debian/build-native install-plugins DESTDIR=`pwd`/debian/bitlbee-plugin-otr + $(MAKE) -C debian/build-native install-plugin-otr DESTDIR=`pwd`/debian/bitlbee-plugin-otr + $(MAKE) -C debian/build-native install-plugin-skype DESTDIR=`pwd`/debian/skyped + + mkdir -p debian/bitlbee-plugin-skype/usr + mv debian/skyped/usr/lib debian/bitlbee-plugin-skype/usr ifeq ($(BITLBEE_LIBPURPLE),1) $(MAKE) -C debian/build-libpurple install-bin DESTDIR=`pwd`/debian/bitlbee-libpurple diff --git a/debian/skyped.README.Debian b/debian/skyped.README.Debian new file mode 100644 index 00000000..502e6147 --- /dev/null +++ b/debian/skyped.README.Debian @@ -0,0 +1,18 @@ +bitlbee-skype for Debian +------------------------ + +The upstream package installs global configuration files in /etc. Since +configuration cannot be used by multiple users, however, the default for +Debian packages is in ~/.skyped/. Please copy the configuration files +from ./examples to ~/.skyped/. + +You will also need to change the configuration values in skyped.conf +and skyped.cnf to suit your needs and create the keys. More information +in the respective files as well as the README.gz. + +Without these measures, skyped will NOT work. + +You need to download the official skype client for this to be of any +use. Go to http://www.skype.com/. + + -- David Spreen <netzwurm@debian.org>, Thu, 2 Apr 2009 15:01:25 -0700 diff --git a/debian/skyped.docs b/debian/skyped.docs new file mode 100644 index 00000000..3f99862a --- /dev/null +++ b/debian/skyped.docs @@ -0,0 +1,2 @@ +protocols/skype/NEWS +protocols/skype/README diff --git a/protocols/skype/Makefile b/protocols/skype/Makefile index bebfe86c..1a07cd80 100644 --- a/protocols/skype/Makefile +++ b/protocols/skype/Makefile @@ -1,6 +1,6 @@ -include ../../Makefile.settings ifdef SRCDIR -SRCDIR := $(SRCDIR)protocls/skype/ +SRCDIR := $(SRCDIR)protocols/skype/ endif VERSION = 0.9.0 @@ -22,9 +22,9 @@ endif all: $(LIBS) $(MANPAGES) -skype.$(SHARED_EXT): skype.c config.mak +skype.$(SHARED_EXT): $(SRCDIR)skype.c config.mak ifeq ($(BITLBEE),yes) - $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS) + $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) $(SRCDIR)skype.c $(LDFLAGS) endif install: all @@ -46,7 +46,7 @@ ifeq ($(SKYPE4PY),yes) $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir) endif -client: client.c +client: $(SRCDIR)client.c autogen: configure.ac cp $(shell ls /usr/share/automake-*/install-sh | tail -n1) ./ @@ -56,7 +56,7 @@ clean: rm -f $(LIBS) $(MANPAGES) distclean: clean - rm -f config.log config.mak config.status + rm -f config.log config.mak config.status skyped.1 autoclean: distclean rm -rf aclocal.m4 autom4te.cache configure install-sh @@ -102,6 +102,6 @@ Changelog: .git/refs/heads/master AUTHORS: .git/refs/heads/master git shortlog -s -n |sed 's/.*\t//'> AUTHORS -%.1: %.txt asciidoc.conf - a2x --asciidoc-opts="-f asciidoc.conf" \ +%.1: $(SRCDIR)%.txt $(SRCDIR)asciidoc.conf + a2x --asciidoc-opts="-f $(SRCDIR)asciidoc.conf" \ -a bs_version=$(VERSION) -a bs_date=$(DATE) -f manpage $< |