Package: asterisk
Version: 1:1.4.20~dfsg-1
Severity: wishlist
Tags: patch

Not everyone uses VoiceTronix hardware; I have been told that the vpb channel
is still unstable, and would prefer not to install libvpb.

The attached patch sets some dh_shlibdeps options, to move the dependencies
of this one channel into 'Suggests'. Splitting it out into a separate package
seemed like overkill (c.f. #459244). It would be possible to bring it back
into 'Depends' or 'Recommends' when the module is stable.

The same method could be used to move more non-core asterisk dependencies into
'Recommends'. These would still be installed by default, but could be
removed by the administrator.

(I did have one issue where symbol versioning caused libstdc++6 to be
repeated in Suggests, but that does not seem to happen with asterisk from
pkg-voip svn.)

--
Tim Retout <[EMAIL PROTECTED]>
commit ffe5319c612cb4c49ec4f1a53ffca8e6b43d87bc
Author: Tim Retout <[EMAIL PROTECTED]>
Date:   Fri Jul 25 10:06:32 2008 +0100

    Move chan_vpb.so dependencies into 'Suggests'.

diff --git a/debian/control b/debian/control
index e0d7f11..985387e 100644
--- a/debian/control
+++ b/debian/control
@@ -16,7 +16,7 @@ Depends: ${shlibs:Depends}, asterisk-config (= 
${source:Version}) | asterisk-con
 Conflicts: asterisk-classic, asterisk-bristuff, asterisk-chan-capi (<< 
1.1.1-1~)
 Replaces: asterisk-classic, asterisk-bristuff
 Provides: asterisk-1.4
-Suggests: ekiga, ohphone, twinkle, kphone, asterisk-doc, asterisk-dev, 
asterisk-h323
+Suggests: ${shlibs:Suggests}, ekiga, ohphone, twinkle, kphone, asterisk-doc, 
asterisk-dev, asterisk-h323
 Description: Open Source Private Branch Exchange (PBX)
  Asterisk is an Open Source PBX and telephony toolkit.  It is, in a
  sense, middleware between Internet and telephony channels on the bottom,
diff --git a/debian/rules b/debian/rules
index 19c62e0..99d4032 100755
--- a/debian/rules
+++ b/debian/rules
@@ -209,7 +209,9 @@ binary-arch: install-arch
        dh_installdeb -a
        rm -f debian/asterisk/usr/lib/asterisk/modules/chan_h323.so
        dh_makeshlibs -a 
-       dh_shlibdeps -a
+       dh_shlibdeps -a -X/usr/lib/asterisk/modules/chan_vpb.so -- \
+           -dSuggests debian/asterisk/usr/lib/asterisk/modules/chan_vpb.so \
+           -dDepends
        dh_gencontrol -a
        dh_md5sums -a
        dh_builddeb -a

Reply via email to