[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#628846: marked as done (Please add resolvconf dpkg-event hook script)



Your message dated Sat, 02 Jul 2016 18:33:01 +0000
with message-id <[🔎] E1bJPiv-0002JD-Lx@franck.debian.org>
and subject line Bug#829218: Removed package(s) from unstable
has caused the Debian Bug report #628846,
regarding Please add resolvconf dpkg-event hook script
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
628846: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628846
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: pdnsd
Severity: wishlist

Please add the hook script /usr/lib/resolvconf/dpkg-event.d/pdnsd.

The purpose this script is to cause pdnsd to take notice of the
installation (or removal) of the resolvconf package.  If resolvconf
has been installed, for example, then pdnsd should register its
IP address with resolvconf.

See below for an except from resolvconf's README file giving
general information about resolvconf dpkg-event hook scripts.

For pdnsd the following script should suffice.

#!/bin/sh
# Resolvconf dpkg-event hook script for the pdnsd package
case "$1" in
  install) invoke-rc.d pdnsd restart ;;
esac

=== Excerpt from resolvconf 1.55 README file ===

Usage information for maintainers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[...]           [A]ll suppliers of nameserver information
[should] supply their information to resolvconf after
resolvconf has been installed.

As of resolvconf release 1.55 this is supported via the following mechanism.
Any package, foo, that supports supplying information to resolvconf should
include a hook script /usr/lib/resolvconf/dpkg-event.d/foo which, when called
with the argument "install", takes whatever actions are necessary to cause the
program(s) in foo to supply their nameserver information to resolvconf; and
when called with the argument "remove" takes whatever actions are appropriate
given that the resolvconf package has been removed (and, in being removed, may
have removed foo's nameserver information).

The hook script thus has the following form.

    #!/bin/sh
    #
    # /usr/lib/resolvconf/dpkg-event.d/foo
    #
    # The resolvconf dpkg-event hook script for the foo package
    #
    if foo_is_running ; then
        if [ "$1" = "install" ] ; then
            foo-ctrl send-nameserver-info-to-resolvconf
        elif [ "$1" = "remove" ] ; then
            ...
        fi
    fi

If foo is controlled by an initscript whose methods take appropriate actions
conditional upon resolvconf's presence then something like the following might
be appropriate.

        case "$1" in
            install|remove) invoke-rc.d foo force-reload ;;
        esac

The hook script is called (with argument "install") from resolvconf's postinst
"configure" method and (with "remove") from resolvconf's postrm "remove"
method.

Foo's hook script is called with argument "install" if and only if foo is
fully installed both when resolvconf's preinst install runs and when its
postinst configure runs.  The hook script is called with argument "remove" if
and only if foo is fully installed when resolvconf's postrm remove runs.

The hook script must be owned by root and have its execute permission bit set
and must have the same name as the package that owns it.

Arguments other than "install" and "remove" are reserved for future use and
must be silently ignored.

-- 
Thomas Hood
Resolvconf maintainers



--- End Message ---
--- Begin Message ---
Version: 1.2.9a-par-4+rm

Dear submitter,

as the package pdnsd has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/829218

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Luke Faraone (the ftpmaster behind the curtain)

--- End Message ---

Reply to: