Changeset 5b94e9e for debian/rules


Ignore:
Timestamp:
2010-08-17T23:34:25Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
57782e4
Parents:
d20ea9f
Message:

Move scripts, debconf and /etc stuff to bitlbee-common and really have
*just* the binary in bitlbee{,-libpurple}. This should fix issues with
installing the package on a clean machine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/rules

    rd20ea9f r5b94e9e  
    4141        rm -f build-stamp
    4242
    43         rm -rf build-arch-stamp debian/build-*
     43        rm -rf build-arch-stamp debian/build-* debian/bitlbee-libpurple.prerm
    4444        $(MAKE) distclean
    4545
     
    5252        dh_installdirs
    5353
    54         $(MAKE) -C debian/build-native install install-etc DESTDIR=`pwd`/debian/bitlbee
     54        $(MAKE) -C debian/build-native install DESTDIR=`pwd`/debian/bitlbee
     55        $(MAKE) -C debian/build-native install-etc DESTDIR=`pwd`/debian/bitlbee-common
    5556        $(MAKE) -C debian/build-native install-dev DESTDIR=`pwd`/debian/bitlbee-dev
    56         patch debian/bitlbee/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
     57        patch debian/bitlbee-common/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
    5758
    5859ifeq ($(BITLBEE_LIBPURPLE),1)
    59         $(MAKE) -C debian/build-libpurple install install-etc DESTDIR=`pwd`/debian/bitlbee-libpurple
    60         patch debian/bitlbee-libpurple/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
     60        $(MAKE) -C debian/build-libpurple install DESTDIR=`pwd`/debian/bitlbee-libpurple
     61        ln -sf debian/bitlbee.prerm debian/bitlbee-libpurple.prerm
    6162endif
    6263
     
    7677        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
    7778        dh_installdebconf
    78         dh_installinit
    79 ifeq ($(BITLBEE_LIBPURPLE)$(DH_OPTIONS),1-a)
    80         cp -a debian/bitlbee/etc debian/bitlbee-libpurple
    81 endif
     79        dh_installinit --init-script=bitlbee
    8280        dh_installman
    8381        dh_strip
     
    8684        dh_fixperms
    8785        dh_installdeb
    88 ifeq ($(BITLBEE_LIBPURPLE)$(DH_OPTIONS),1-a)
    89         cp -a debian/bitlbee/DEBIAN/post* debian/bitlbee/DEBIAN/pre* debian/bitlbee-libpurple/DEBIAN
    90 endif
    9186        dh_shlibdeps
    9287ifdef BITLBEE_VERSION
Note: See TracChangeset for help on using the changeset viewer.