Changeset 27b407f for debian/rules


Ignore:
Timestamp:
2010-10-09T18:28:33Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6197702
Parents:
508588a
Message:

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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/rules

    r508588a r27b407f  
    88#
    99
    10 # Include the bitlbee-libpurple variant by default
     10# Include the bitlbee-libpurple variant and OTR plugin by default
    1111BITLBEE_LIBPURPLE ?= 1
     12BITLBEE_OTR ?= plugin
    1213BITLBEE_CONFIGURE_FLAGS ?=
    1314DEBUG ?= 0
     
    2223endif
    2324
     25ifneq ($(BITLBEE_OTR),plugin)
     26DH_OPTIONS += -Nbitlbee-plugin-otr
     27endif
     28
    2429build: build-stamp
    2530build-stamp:
     
    2732
    2833        mkdir -p debian/build-native
    29         ROOT=$$PWD; cd debian/build-native; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --events=libevent $(BITLBEE_CONFIGURE_FLAGS)
     34        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)
    3035        $(MAKE) -C debian/build-native
    3136
     
    5661        dh_installdirs
    5762
    58         $(MAKE) -C debian/build-native install DESTDIR=`pwd`/debian/bitlbee
    59         $(MAKE) -C debian/build-native install-etc DESTDIR=`pwd`/debian/bitlbee-common
     63        $(MAKE) -C debian/build-native install-bin DESTDIR=`pwd`/debian/bitlbee
     64        $(MAKE) -C debian/build-native install-etc install-doc DESTDIR=`pwd`/debian/bitlbee-common
    6065        $(MAKE) -C debian/build-native install-dev DESTDIR=`pwd`/debian/bitlbee-dev
    61         patch debian/bitlbee-common/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
     66        $(MAKE) -C debian/build-native install-plugins DESTDIR=`pwd`/debian/bitlbee-plugin-otr
    6267
    6368ifeq ($(BITLBEE_LIBPURPLE),1)
    64         $(MAKE) -C debian/build-libpurple install DESTDIR=`pwd`/debian/bitlbee-libpurple
     69        $(MAKE) -C debian/build-libpurple install-bin DESTDIR=`pwd`/debian/bitlbee-libpurple
    6570        ln -sf debian/bitlbee.prerm debian/bitlbee-libpurple.prerm
    6671endif
    6772
    68         mkdir -p debian/bitlbee-common/usr
    69         mv debian/bitlbee/usr/share debian/bitlbee-common/usr
    70         rm -rf debian/bitlbee-libpurple/usr/share
     73        patch debian/bitlbee-common/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
     74        chmod 640 debian/bitlbee-common/etc/bitlbee/bitlbee.conf
    7175
    7276binary-common:
     
    7983        # TODO: Restore --link-doc up here and remove the hack below once
    8084        # Hardy and Lenny are deprecated.
    81         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
     85        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
    8286        dh_installdebconf
    8387        dh_installinit --init-script=bitlbee
Note: See TracChangeset for help on using the changeset viewer.