On 5/31/05, Binand Sethumadhavan <[EMAIL PROTECTED]> wrote:
> But that adds on an unnecessary dependency. To take my specific
> example again, the cups package is fully functional with or without
> samba. But when samba is installed, cups can provide additional
> printer options to the administrator. It sounds like overkill to me to
> make cups dependent on samba for this, though.

It can be achieved without the pre-depends. The postinst script of
samba will have a conditional block that checks to see if cups is
installed and do the needful only if cups is present.

If cups contains a binary, say /usr/sbin/add-cups-backend and samba's
postinst is going to use this to add the cups samba backend. This can
be achieved in two different ways:

[1]
if [ -x /usr/sbin/add-cups-backend ];
then
    # add samba backend to cups
fi

[2] Use predepends. You are right in saying that having samba depend
on cups being preinstalled is overkill. However, there are valid cases
where predepends is required. Take the case of a package called
cups-pdf (PDF printer for CUPS). It predepends on cupsys (the main
cups package).

Thaths
-- 
   "Good things don't end in -eum; they end in -mania or -teria"
                                   -- Homer J. Simpson


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to