Changeset b308cf9 for debian


Ignore:
Timestamp:
2010-06-05T23:21:02Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
1fdb0a4
Parents:
3ab1d31 (diff), e774815 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging libpurple branch into killerbee. It's fairly usable already, and
Debian packaging is now properly separated. This also picks up a load of
stuff from mainline it seems.

Location:
debian
Files:
3 added
1 deleted
6 edited
5 moved

Legend:

Unmodified
Added
Removed
  • debian/bitlbee-common.config

    • Property mode changed from 100755 to 100644
  • debian/bitlbee.init

    • Property mode changed from 100755 to 100644
    r3ab1d31 rb308cf9  
    3838d_start() {
    3939        # Make sure BitlBee can actually write its PID...
    40         touch /var/run/bitlbee.pid
    41         chown bitlbee: /var/run/bitlbee.pid
     40        touch $PIDFILE
     41        chown bitlbee: $PIDFILE
    4242       
    4343        start-stop-daemon --start --quiet --pidfile $PIDFILE \
  • debian/bitlbee.postinst

    • Property mode changed from 100755 to 100644
  • debian/bitlbee.postrm

    • Property mode changed from 100755 to 100644
  • debian/bitlbee.prerm

    • Property mode changed from 100755 to 100644
  • debian/changelog

    r3ab1d31 rb308cf9  
     1bitlbee (1.3-0) unstable; urgency=low
     2
     3  * Setting some bogus version number, fix that later.
     4  * Now using debhelper to improve maintainability.
     5  * Added a bitlbee-libpurple package, and split off docs and stuff into
     6    bitlbee-common.
     7
     8 -- Wilmer van der Gaast <wilmer@gaast.net>  Sat, 05 Jun 2010 15:16:38 +0100
     9
     10bitlbee (1.2.6a-1) unstable; urgency=low
     11
     12  * New upstream version.
     13  * Native support for Twitter.
     14  * Fixed /WHOIS response format. (Closes: #576120)
     15  * Problems with bitlbee-skype are solved by now. (Closes: #575572)
     16
     17 -- Wilmer van der Gaast <wilmer@peer.gaast.net>  Tue, 20 Apr 2010 00:34:51 +0200
     18
    119bitlbee (1.2.5-1) unstable; urgency=low
    220
  • debian/control

    r3ab1d31 rb308cf9  
    44Maintainer: Wilmer van der Gaast <wilmer@gaast.net>
    55Uploaders: Jelmer Vernooij <jelmer@samba.org>
    6 Standards-Version: 3.8.0
    7 Build-Depends: libglib2.0-dev (>= 2.4), libevent-dev, libgnutls-dev | libnss-dev (>= 1.6), debconf-2.0, po-debconf
     6Standards-Version: 3.8.4
     7Build-Depends: libglib2.0-dev (>= 2.4), libevent-dev, libgnutls-dev | libnss-dev (>= 1.6), po-debconf, libpurple-dev, debhelper (>= 7)
    88Homepage: http://www.bitlbee.org/
    99Vcs-Bzr: http://code.bitlbee.org/bitlbee/
     
    1212Package: bitlbee
    1313Architecture: any
    14 Depends: ${shlibs:Depends}, adduser, net-tools, ${debconf-depends}, debianutils (>= 1.16)
    15 Description: An IRC to other chat networks gateway
     14Depends: ${shlibs:Depends}, adduser, debianutils (>= 1.16), bitlbee-common (= ${bee:Version})
     15Conflicts: bitlbee-libpurple
     16Replaces: bitlbee-libpurple
     17Description: An IRC to other chat networks gateway (default version)
    1618 This program can be used as an IRC server which forwards everything you
    1719 say to people on other chat networks: Jabber, ICQ, AIM, MSN and Yahoo.
    1820
     21Package: bitlbee-libpurple
     22Architecture: any
     23Depends: ${shlibs:Depends}, adduser, debianutils (>= 1.16), bitlbee-common (= ${bee:Version})
     24Conflicts: bitlbee
     25Replaces: bitlbee
     26Description: An IRC to other chat networks gateway (using libpurple)
     27 This program can be used as an IRC server which forwards everything you
     28 say to people on other chat networks: Jabber, ICQ, AIM, MSN and Yahoo.
     29 .
     30 This package contains a version of BitlBee that uses the libpurple instant
     31 messaging library instead of built-in code, which adds support for more IM
     32 protocols (all protocols supported by Pidgin/Finch) and features (like file
     33 transfers), at the price of being less lightweight.
     34 .
     35 This variant may not be very suitable for BitlBee instances used by many
     36 (tens or hundreds) of clients.
     37
     38Package: bitlbee-common
     39Architecture: all
     40Depends: ${misc:Depends}, net-tools
     41Replaces: bitlbee
     42Description: An IRC to other chat networks gateway (common files/docs)
     43 This program can be used as an IRC server which forwards everything you
     44 say to people on other chat networks: Jabber, ICQ, AIM, MSN and Yahoo.
     45 .
     46 This package contains common files (mostly documentation) for bitlbee and
     47 bitlbee-libpurple.
     48
    1949Package: bitlbee-dev
    2050Architecture: all
    21 Depends: bitlbee (>= ${source:Version}), bitlbee (<< ${source:Version}.1~)
    22 Description: An IRC to other chat networks gateway
     51Depends: ${misc:Depends}, bitlbee (>= ${bee:Version}), bitlbee (<< ${bee:Version}.1~)
     52Description: An IRC to other chat networks gateway (dev files)
    2353 This program can be used as an IRC server which forwards everything you
    2454 say to people on other chat networks: Jabber, ICQ, AIM, MSN and Yahoo.
  • debian/patches/bitlbee.conf.diff

    r3ab1d31 rb308cf9  
    1 --- debian/bitlbee/etc/bitlbee/bitlbee.conf     2009-06-01 00:20:24.000000000 +0100
    2 +++ debian/bitlbee/etc/bitlbee/bitlbee.conf     2009-06-07 21:16:19.000000000 +0100
     1--- bitlbee.conf        2009-06-01 00:20:24.000000000 +0100
     2+++ bitlbee.conf        2009-06-07 21:16:19.000000000 +0100
    33@@ -23,13 +23,18 @@
    44 ## If BitlBee is started by root as a daemon, it can drop root privileges,
  • debian/po/POTFILES.in

    r3ab1d31 rb308cf9  
    1 [type: gettext/rfc822deb] templates
     1[type: gettext/rfc822deb] bitlbee-common.templates
  • debian/rules

    r3ab1d31 rb308cf9  
    11#!/usr/bin/make -f
     2#
     3# Finally switching to debhelper.
     4#
     5# Not using debhelper was an exercise suggested to me by my AM (Gergely
     6# Nagy). It was educating at the time but I finally decided that the
     7# exercise is over now.
     8#
    29
     10BITLBEE_CONFIGURE_FLAGS ?=
    311DEBUG ?= 0
    412
    5 ifdef BITLBEE_VERSION
    6 BITLBEE_FORCE_VERSION=1
    7 else
     13ifndef BITLBEE_VERSION
    814# Want to use the full package version number instead of just the release.
    9 BITLBEE_VERSION ?= "$(shell dpkg-parsechangelog | grep ^Version: | awk '{print $$2}')"
    10 export BITLBEE_VERSION
     15BITLBEE_CONFIGURE_VERSION ?= BITLBEE_VERSION=\"$(shell dpkg-parsechangelog | grep ^Version: | awk '{print $$2}')\"
    1116endif
    1217
    13 build-arch: build-arch-stamp
    14 build-arch-stamp:
    15         [ -d debian ]
    16         ./configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --events=libevent
    17         $(MAKE)
    18 #       $(MAKE) -C doc/ all
    19         touch build-arch-stamp
     18build: build-stamp
     19build-stamp:
     20        dh_testdir
     21
     22        mkdir -p debian/build-native
     23        ROOT=$$PWD; cd debian/build-native; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --events=libevent $(BITLBEE_CONFIGURE_FLAGS)
     24        $(MAKE) -C debian/build-native
     25
     26        mkdir -p debian/build-libpurple
     27        ROOT=$$PWD; cd debian/build-libpurple; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --purple=1 $(BITLBEE_CONFIGURE_FLAGS)
     28        $(MAKE) -C debian/build-libpurple
     29
     30        touch build-stamp
    2031
    2132clean:
    22         [ "`whoami`" = "root" -a -d debian ]
    23         rm -rf build-arch-stamp debian/bitlbee debian/*.substvars debian/files debian/bitlbee-dev
     33        dh_testdir
     34        dh_testroot
     35        rm -f build-stamp
     36
     37        rm -rf build-arch-stamp debian/build-*
    2438        $(MAKE) distclean
    25 #       -$(MAKE) -C doc/ clean
    26                                
    2739
    28 install-arch: build-arch
    29         [ "`whoami`" = "root" -a -d debian ]
    30         mkdir -p debian/bitlbee/DEBIAN/
    31         $(MAKE) install install-etc DESTDIR=`pwd`/debian/bitlbee
     40        dh_clean
    3241
    33         mkdir -p debian/bitlbee/usr/share/doc/bitlbee/
    34         cp doc/user-guide/user-guide.txt debian/bitlbee/usr/share/doc/bitlbee/
    35         cp doc/user-guide/user-guide.html debian/bitlbee/usr/share/doc/bitlbee/
     42install: build
     43        dh_testdir
     44        dh_testroot
     45        dh_prep
     46        dh_installdirs
    3647
    37 install-indep: install-arch
    38         [ "`whoami`" = "root" -a -d debian ]
    39         mkdir -p debian/bitlbee-dev/DEBIAN/
    40         $(MAKE) install-dev DESTDIR=`pwd`/debian/bitlbee-dev
     48        $(MAKE) -C debian/build-native install install-etc DESTDIR=`pwd`/debian/bitlbee
     49        $(MAKE) -C debian/build-libpurple install install-etc DESTDIR=`pwd`/debian/bitlbee-libpurple
     50        $(MAKE) -C debian/build-native install-dev DESTDIR=`pwd`/debian/bitlbee-dev
    4151
    42         mkdir -p debian/bitlbee-dev/usr/share/doc/bitlbee-dev/
     52        patch debian/bitlbee/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
     53        patch debian/bitlbee-libpurple/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
    4354
    44 binary-arch: build-arch install-arch
    45         [ "`whoami`" = "root" -a -d debian ]
     55        mkdir -p debian/bitlbee-common/usr
     56        mv debian/bitlbee/usr/share debian/bitlbee-common/usr
     57        rm -rf debian/bitlbee-libpurple/usr/share
    4658
    47         chmod 755 debian/post* debian/pre* debian/config debian/bitlbee.init
     59binary-common:
     60        dh_testdir
     61        dh_testroot
    4862
    49         mkdir -p debian/bitlbee/usr/share/doc/bitlbee/examples/ debian/bitlbee/etc/init.d/
    50         -cp doc/RELEASE-SPEECH* debian/bitlbee/usr/share/doc/bitlbee/ && gzip -9 debian/bitlbee/usr/share/doc/bitlbee/RELEASE-SPEECH*
    51         cp doc/CREDITS doc/AUTHORS doc/README doc/FAQ debian/README.Debian debian/bitlbee/usr/share/doc/bitlbee/
    52         cp debian/changelog debian/bitlbee/usr/share/doc/bitlbee/changelog.Debian
    53         cp debian/copyright debian/bitlbee/usr/share/doc/bitlbee/copyright
    54         cp doc/CHANGES debian/bitlbee/usr/share/doc/bitlbee/changelog
    55         cp utils/* debian/bitlbee/usr/share/doc/bitlbee/examples/
    56         cp debian/bitlbee.init debian/bitlbee/etc/init.d/bitlbee
    57         patch -p0 < debian/patches/bitlbee.conf.diff
    58         cd debian/bitlbee/usr/share/; \
    59                 gzip -9 doc/bitlbee/changelog.Debian doc/bitlbee/changelog doc/bitlbee/user-guide.txt \
    60                         doc/bitlbee/examples/* man/man8/bitlbee.8 man/man5/bitlbee.conf.5
    61        
    62         chown -R root:root debian/bitlbee/
    63         find debian/bitlbee/usr/share/ -type d -exec chmod 755 {} \;
    64         find debian/bitlbee/usr/share/ -type f -exec chmod 644 {} \;
    65        
    66         cp debian/prerm debian/bitlbee/DEBIAN/
    67         cp debian/postinst debian/bitlbee/DEBIAN/
    68         cp debian/postrm debian/bitlbee/DEBIAN/
    69         cp debian/config debian/bitlbee/DEBIAN/
     63        dh_installdocs --link-doc=bitlbee-common
     64        dh_installchangelogs doc/CHANGES
     65        dh_installexamples
     66        dh_installdebconf
     67        dh_installinit
     68ifeq ($(DH_OPTIONS),-a)
     69        cp -a debian/bitlbee/etc debian/bitlbee-libpurple
     70endif
     71        dh_installman
     72        dh_strip
     73        dh_link
     74        dh_compress
     75        dh_fixperms
     76        dh_installdeb
     77ifeq ($(DH_OPTIONS),-a)
     78        cp -a debian/bitlbee/DEBIAN/{post,pre}* debian/bitlbee-libpurple/DEBIAN
     79endif
     80        dh_shlibdeps
     81ifdef BITLBEE_VERSION
     82        echo source:Version=1:$(BITLBEE_VERSION)-0 > debian/substvars
     83        dh_gencontrol -- -v1:$(BITLBEE_VERSION)-0  -Vbee:Version=1:$(BITLBEE_VERSION)-0
     84else
     85        dh_gencontrol -- -Vbee:Version=$(shell dpkg-parsechangelog | grep ^Version: | awk '{print $$2}' | sed -e 's/+[^+]*$$//')
     86endif
     87        dh_md5sums
     88        dh_builddeb
    7089
    71         po2debconf debian/templates > debian/bitlbee/DEBIAN/templates
    72         cp debian/conffiles debian/bitlbee/DEBIAN/
    73        
    74         if [ "$(DEBUG)" = "0" ]; then strip -R .comment -R .note debian/bitlbee/usr/sbin/bitlbee; fi
     90binary-indep: build install
     91        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
    7592
    76         cd debian/bitlbee; \
    77                 find usr -type f -exec md5sum {} \; > DEBIAN/md5sums
    78         dpkg-shlibdeps -Tdebian/bitlbee.substvars -dDepends debian/bitlbee/usr/sbin/bitlbee
    79 ifdef BITLBEE_FORCE_VERSION
    80         dpkg-gencontrol -ldebian/changelog -isp -pbitlbee -Tdebian/bitlbee.substvars -Pdebian/bitlbee -v1:$(BITLBEE_VERSION)-0 -V'debconf-depends=debconf (>= 1.2.0) | debconf-2.0'
    81 else
    82         dpkg-gencontrol -ldebian/changelog -isp -pbitlbee -Tdebian/bitlbee.substvars -Pdebian/bitlbee -V'debconf-depends=debconf (>= 1.2.0) | debconf-2.0'
    83 endif
     93binary-arch: build install
     94        $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
    8495
    85         dpkg --build debian/bitlbee ..
     96binary-%: build install
     97        make -f debian/rules binary-common DH_OPTIONS=-p$*
    8698
    87 binary-indep: install-indep
    88         [ "`whoami`" = "root" -a -d debian ]
    89 
    90         chown -R root.root debian/bitlbee-dev/
    91         find debian/bitlbee-dev/usr/share/ -type d -exec chmod 755 {} \;
    92         find debian/bitlbee-dev/usr/share/ -type f -exec chmod 644 {} \;
    93 
    94         cp debian/changelog debian/bitlbee-dev/usr/share/doc/bitlbee-dev/changelog.Debian
    95         gzip -9 debian/bitlbee-dev/usr/share/doc/bitlbee-dev/changelog.Debian
    96         cp debian/copyright debian/bitlbee-dev/usr/share/doc/bitlbee-dev/copyright
    97 
    98         cd debian/bitlbee-dev; \
    99                 find usr -type f -exec md5sum {} \; > DEBIAN/md5sums
    100 
    101         dpkg-gencontrol -ldebian/changelog -isp -pbitlbee-dev -Pdebian/bitlbee-dev
    102 
    103         dpkg --build debian/bitlbee-dev ..
    104 
    105 binary: binary-arch binary-indep
    106 build: build-arch
    107 install: install-arch install-indep
    108 
    109 .PHONY: build-arch build clean binary-arch binary install-arch install binary-indep install-indep
     99binary: binary-indep binary-arch
     100.PHONY: build clean binary-indep binary-arch binary-common binary install
Note: See TracChangeset for help on using the changeset viewer.