debian/0000755000000000000000000000000011737605620007175 5ustar debian/source/0000755000000000000000000000000011613350547010473 5ustar debian/source/format0000644000000000000000000000001411613350547011701 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000302411737603003011037 0ustar openresolv (3.5.2-1) unstable; urgency=low * New upstream release * Return 0 for subscribers whose init script do not exist (closes: 659760) * Support sortlist in our resolvconf hook (closes: 637285) * Updated Standards-Version to 3.9.3 (no changes needed) -- Roy Marples Fri, 06 Apr 2012 16:03:03 +0100 openresolv (3.4.4-2) unstable; urgency=low * Support dhclient IPv6, thanks to Geoffrey Sisson (closes: #635479) * Add a note about setting name_servers= in resolvconf.conf on Debian systems to README.Debian * Updated Standards-Version to 3.9.2 (no changes needed) -- Roy Marples Mon, 1 Aug 2011 19:59:34 +0100 openresolv (3.4.4-1) unstable; urgency=low * New upstream release * Patch /etc/resolvconf.conf to mirror the default locations for the resolvers dnsmasq, pdnsd and unbound (closes: #630688) -- Roy Marples Mon, 25 Jul 2011 21:30:52 +0100 openresolv (3.4.2-1) unstable; urgency=low * New upstream release -- Roy Marples Mon, 13 Jun 2011 11:46:37 +0100 openresolv (3.4.0-1) unstable; urgency=low * New upstream release * Added pdnsd support (closes: #601390) * Added abiliity to append search domains (closes: #601681) * Added hooks for ifupdown, ppp and dhclient (closes: #601312) -- Roy Marples Thu, 04 Nov 2010 19:43:33 +0100 openresolv (3.3.6-1) unstable; urgency=low * Initial upload to Debian (closes: #595081) -- Roy Marples Thu, 23 Sep 2010 10:06:38 +0100 debian/openresolv.000resolvconf.if-up0000644000000000000000000000127711613350547014737 0ustar #!/bin/sh # ifup hook script for resolvconf # Written by Roy Marples under the BSD-2 license [ -x /sbin/resolvconf ] || exit 0 case "$ADDRFAM" in inet|inet6) : ;; *) exit 0;; esac conf= [ -n "$IF_DNS_DOMAIN" ] && conf="${conf}domain $IF_DNS_DOMAIN\n" [ -n "$IF_DNS_SEARCH" ] && conf="${conf}search $IF_DNS_SEARCH\n" [ -n "$IF_DNS_SORTLIST" ] && conf="${conf}sortlist $IF_DNS_SORTLIST\n" [ -n "$IF_DNS_OPTIONS" ] && conf="${conf}options $IF_DNS_OPTIONS\n" for nameserver in $IF_DNS_NAMESERVERS; do conf="${conf}nameserver $nameserver\n" done if [ -n "$conf" ]; then conf="# Generated by ifup for $IFACE.$ADDRFAM\n$conf" printf "$conf" | /sbin/resolvconf -a "$IFACE.$ADDRFAM" fi debian/openresolv.resolvconf.if-down0000644000000000000000000000045511613350547015037 0ustar #!/bin/sh # ifdown hook script for resolvconf # Written by Roy Marples under the BSD-2 license [ -x /sbin/resolvconf ] || exit 0 case "$ADDRFAM" in inet|inet6) : ;; *) exit 0;; esac [ "$METHOD" = dhcp ] && /sbin/resolvconf -f -d "$IFACE" /sbin/resolvconf -f -d "$IFACE.$ADDRFAM" debian/openresolv.000resolvconf.ppp.ip-down0000644000000000000000000000027611613350547016070 0ustar #!/bin/sh # ppp.ip-down hook script for resolvconf # Written by Roy Marples under the BSD-2 license [ -x /sbin/resolvconf ] || exit 0 /sbin/resolvconf -f -d "$PPP_IFACE" debian/resolvconf.conf-debian0000644000000000000000000000035411613350547013444 0ustar # Mirror the Debian package defaults for the below resolvers # so that resolvconf integrates seemlessly. dnsmasq_resolv=/var/run/dnsmasq/resolv.conf pdnsd_conf=/etc/pdnsd.conf unbound_conf=/var/cache/unbound/resolvconf_resolvers.conf debian/openresolv.000resolvconf.ppp.ip-up0000644000000000000000000000061711613350547015544 0ustar #!/bin/sh # ppp.ip-up hook script for resolvconf # Written by Roy Marples under the BSD-2 license [ -x /sbin/resolvconf ] || exit 0 if [ -n "$DNS1" -o -n "$DNS2" ]; then conf="# Generated by ppp.ip-up for $PPP_IFACE\n" [ -n "$DNS1" ] && conf="${conf}nameserver $DNS1\n" [ -n "$DNS2" ] && conf="${conf}nameserver $DNS2\n" printf "$conf" | /sbin/resolvconf -a "$PPP_IFACE" fi debian/rules0000755000000000000000000000172211737603416010260 0ustar #!/usr/bin/make -f export LIBEXECDIR=/lib/resolvconf DESTDIR=debian/openresolv SRCDIR=debian override_dh_auto_configure: dh_auto_configure -- --prefix= --libexecdir=/lib/resolvconf \ --mandir=/usr/share/man # These hooks should be moved to the respective packages. # We supply them only to be a replacement to the resolvconf package. override_dh_install: dh_install dh_installdirs etc/dhcp/dhclient-enter-hooks.d install -p --owner=root --group=root --mode=0644 ${SRCDIR}/dhclient \ ${DESTDIR}/etc/dhcp/dhclient-enter-hooks.d/resolvconf dh_installdirs etc/dhcp3/dhclient-enter-hooks.d install -p --owner=root --group=root --mode=0644 ${SRCDIR}/dhclient \ ${DESTDIR}/etc/dhcp3/dhclient-enter-hooks.d/resolvconf cat ${SRCDIR}/resolvconf.conf-debian >> ${DESTDIR}/etc/resolvconf.conf override_dh_installifupdown: dh_installifupdown --name=000resolvconf dh_installifupdown --name=resolvconf override_dh_installppp: dh_installppp --name=000resolvconf %: dh $@ debian/compat0000644000000000000000000000000211613350547010371 0ustar 7 debian/openresolv.lintian-overrides0000644000000000000000000000106211615607573014754 0ustar # The openresolv subscribers have #!/bin/sh to indicate they are shell # scripts, but they are not marked executable so that resolvconf can # source them directly instead of having to create an expensive subsell. # This is purely a performance consideration and not a bug in lintian. openresolv: script-not-executable lib/resolvconf/libc openresolv: script-not-executable lib/resolvconf/dnsmasq openresolv: script-not-executable lib/resolvconf/named openresolv: script-not-executable lib/resolvconf/pdnsd openresolv: script-not-executable lib/resolvconf/unbound debian/README.Debian0000644000000000000000000000125311615573246011242 0ustar openresolv for Debian --------------------- Most resolver init scripts automatically add 127.0.0.1 to lo.$resolver. As such you don't have to set name_servers=127.0.0.1 in /etc/resolvconf.conf if your resolver init script does this. You can easy test if yours does by as it should be listed in `resolvconf -l`. pdnsd has an option selected at install time to enable various configurations. If enabled, this silently changes the configuration file used from /etc/pdnsd.conf to /usr/share/pdnsd/pdnsd-$AUTO_MODE.conf pdnsd users are advised to follow the configuration described in resolvconf.conf(5) and set ATUO_MODE= in /etc/default/pdnsd to ensure that /etc/pdsnd.conf is used. debian/copyright0000644000000000000000000000302311736041267011126 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=174 Upstream-Contact: Roy Marples Source: http://roy.marples.name/projects/openresolv Files: * Copyright: 2007-2011 Roy Marples License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/dhclient0000644000000000000000000000242011613736135010707 0ustar # resolvconf support for dhclient3 NL=" " if [ -x /sbin/resolvconf ]; then case "$reason" in BOUND|RENEW|REBIND|REBOOT|TIMEOUT) make_resolv_conf() { local nameserver conf= if [ -n "$new_domain_name" ]; then conf="${conf}domain $new_domain_name$NL" fi if [ -n "$new_domain_search" ]; then conf="${conf}search $new_domain_search$NL" fi for nameserver in $new_domain_name_servers; do conf="${conf}nameserver $nameserver$NL" done if [ -n "$conf" -a -n "$interface" ]; then conf="# resolv.conf for $interface$NL$conf" printf %s "$conf" | \ /sbin/resolvconf -a "$interface" fi } ;; BOUND6|RENEW6|REBIND6) make_resolv_conf() { local nameserver conf= if [ -n "$new_dhcp6_domain_search" ]; then conf="${conf}search $new_dhcp6_domain_search$NL" fi for nameserver in $new_dhcp6_name_servers; do conf="${conf}nameserver $nameserver$NL" done if [ -n "$conf" -a -n "$interface" ]; then conf="# resolv.conf for $interface$NL$conf" printf %s "$conf" | \ /sbin/resolvconf -a "$interface.inet6" fi } ;; EXPIRE|FAIL|RELEASE|STOP) [ -z "$interface" ] || /sbin/resolvconf -f -d "$interface" ;; EXPIRE6|RELEASE6|STOP6) [ -z "$interface" ] || /sbin/resolvconf -f -d "$interface.inet6" ;; esac fi debian/control0000644000000000000000000000114111736041030010561 0ustar Source: openresolv Section: net Priority: optional Maintainer: Roy Marples Build-Depends: debhelper (>= 7.0.50~) Standards-Version: 3.9.3 Homepage: http://roy.marples.name/projects/openresolv Package: openresolv Provides: resolvconf Architecture: all Depends: ${misc:Depends} Conflicts: resolvconf Description: management framework for resolv.conf Allows multiple daemons to manage resolv.conf and configures local resolvers such as dnsmasq and unbound. . This package may require some manual configuration. Please read resolvconf(8) and resolvconf.conf(5) for detailed instructions. debian/watch0000644000000000000000000000013111613350547010217 0ustar version=3 ftp://roy.marples.name/pub/openresolv/openresolv-(.*)\.tar\.bz2 debian uupdate