debian/0000755000000000000000000000000011555127236007175 5ustar debian/orig-tar.sh0000755000000000000000000000074011554423410011251 0ustar #!/bin/sh set -x # called by uscan with '--upstream-version' echo "version $2" package=`dpkg-parsechangelog | sed -n 's/^Source: //p'` debian_version=`dpkg-parsechangelog | sed -ne 's/^Version: \(.*+dfsg\)-.*/\1/p'` TAR="$package"_${debian_version}.orig.tar.gz DIR=$package-${debian_version}.orig # clean up the upstream tarball tar -zxvf $3 && mv $package-$2 $DIR GZIP=--best tar -c -z -f $TAR --exclude 'cocoa' --exclude 'nb_third_party' $DIR rm -rf $3 $DIR debian/namebench.rst0000644000000000000000000000643611554423410011650 0ustar =========== namebench =========== --------------------------------- open-source DNS benchmark utility --------------------------------- :Author: Thomas Strömberg :Date: 2010-11-20 :Manual section: 1 SYNOPSIS ======== **namebench [nameserver1 ... [nameserverN]]** DESCRIPTION =========== namebench searches the fastest DNS servers available for your computer to use. namebench runs a fair and thorough benchmark using your web browser history, tcpdump output, or standardized datasets in order to provide an individualized recommendation. OPTIONS ======= This program follows the usual GNU command line syntax, with long options starting with two dashes (-). A summary of options is included below. For a complete description, see the README file or visit the project's website. -h, --help Show summary of options. -r RUN_COUNT, --runs=RUN_COUNT Number of test runs to perform on each nameserver. -z CONFIG, --config=CONFIG Configuration file to use. -o OUTPUT_FILE, --output=OUTPUT_FILE Filename to write output to. -t TEMPLATE, --template=TEMPLATE Template to use for output generation (ascii, html, resolv.conf). -c CSV_FILE, --csv_output=CSV_FILE Filename to write query details to (CSV). -j HEALTH_THREAD_COUNT, --threads=HEALTH_THREAD_COUNT Number of health check threads to use. -J BENCHMARK_THREAD_COUNT, --threads=BENCHMARK_THREAD_COUNT Number of benchmark threads to use. -P PING_TIMEOUT, --ping_timeout=PING_TIMEOUT Number of seconds ping requests timeout in. -y TIMEOUT, --timeout=TIMEOUT Number of seconds general requests timeout in. -Y HEALTH_TIMEOUT, --health_timeout=HEALTH_TIMEOUT Health check timeout (in seconds). -i INPUT_SOURCE, --import=INPUT_SOURCE Import hostnames from an filename or application (alexa, cachehit, cachemiss, cachemix, camino, chrome, chromium, epiphany, firefox, flock, galeon, icab, internet_explorer, konqueror, midori, omniweb, opera, safari, seamonkey, squid, sunrise). -I, --invalidate_cache Force health cache to be invalidated. -q QUERY_COUNT, --tests=QUERY_COUNT Number of queries per run. -m SELECT_MODE, --select_mode=SELECT_MODE Selection algorithm to use (weighted, random, chunk). -s NUM_SERVERS, --num_servers=NUM_SERVERS Number of nameservers to include in test. -S, --system_only Only test the currently configured system nameservers. -w, --open_webbrowser Opens the final report in your browser. -u, --upload_results Upload anonmyized results to SITE_URL (default: False). -U SITE_URL, --site_url=SITE_URL URL to upload results to (default: http://namebench.appspot.com/). -H, --hide_results Upload results, but keep them hidden from indexes. -x, --no_gui Disable GUI. -C, --enable-censorship-checks Enable censorship checks. -6, --ipv6_only Only include IPv6 name servers. -O, --only Only test nameservers passed as arguments. COPYRIGHT ========= This manual page was written by Miguel Landaeta for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the terms of GNU General Public License, Version 2 or any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. SEE ALSO ======== **dig(1)**, **host(1)**. debian/namebench.manpages0000644000000000000000000000001411342070072012612 0ustar namebench.1 debian/source/0000755000000000000000000000000011555127236010475 5ustar debian/source/format0000644000000000000000000000001411403557263011702 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000464111555127212011046 0ustar namebench (1.3.1+dfsg-2) unstable; urgency=low * Switch from dh_pysupport to dh_python2. * Simplify rules file. * Replace Build-Depends on python with python-all (>= 2.6.6-3~). * Bump Standards-Version to 3.9.2. No changes were required. * Replace docbook-to-man with rst2man as tool to generate the manpage. * Python transition: - Add support for python2.7. - Drop support for python2.5. * Decode GeoIP results with the correct encoding to avoid crashes. (Closes: #594146). * Drop versioned dependencies since they are satisfied even in stable. * Make copyright file DEP-5 compliant. * Move comments from README.source to copyright file. * Simplify watch file. * Small fixes in Description and manpage. * Replace XS-P-V deprecated field with X-P-V. * Install libnamebench as private module. -- Miguel Landaeta Sun, 24 Apr 2011 18:43:14 -0430 namebench (1.3.1+dfsg-1) unstable; urgency=low * New upstream release. * Updated watch file. * Switched source package format to 3.0 (quilt). * Dropped unneeded version for dependence on python (>= 2.5). * Added necessary version for dependence on python-dnspython (>= 1.8.0). * Updated manpage. -- Miguel Landaeta Thu, 24 Jun 2010 09:23:04 -0430 namebench (1.2+dfsg-1) unstable; urgency=low * New upstream release. * Updated watch file and added debian/orig-tar.sh. * debian/rules: Added get-orig-source target. * Update years in copyright file. * Configuration files are now installed in /etc/namebench directory. * Removed unnecessary files from /usr/share/doc/namebench directory. * Updated XS-Python-Version, Build-Depends and Depends to python >= 2.5 since this version doesn't work with 2.4 anymore due to the use of relative imports. -- Miguel Landaeta Sun, 07 Mar 2010 13:32:50 -0430 namebench (1.1+dfsg-2) unstable; urgency=low * Fixed FTBFS with Python 2.6 as default. (Closes: #571551). * Put namebench in net section. (Closes: #571114). * Bumped Standards-Version to 3.8.4. No changes were needed. * Removed public copy of namebench.py and /usr/bin/namebench was symlinked to the private one at /usr/share/namebench. -- Miguel Landaeta Sun, 28 Feb 2010 12:17:54 -0430 namebench (1.1+dfsg-1) unstable; urgency=low * Initial release. (Closes: #559939). -- Miguel Landaeta Wed, 27 Jan 2010 19:49:17 -0430 debian/namebench.links0000644000000000000000000000016111555125434012153 0ustar etc/namebench usr/share/namebench/config usr/share/namebench/namebench.py usr/bin/namebench debian/control0000644000000000000000000000206211555122730010572 0ustar Source: namebench Maintainer: Debian Python Modules Team Uploaders: Miguel Landaeta Section: net Priority: optional Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~), python-docutils Standards-Version: 3.9.2 X-Python-Version: >= 2.5 Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/namebench/trunk Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/namebench/trunk/ Homepage: http://code.google.com/p/namebench/ Package: namebench Architecture: all Depends: python-dnspython, python-graphy, python-httplib2, python-jinja2, python-simplejson, ${misc:Depends}, ${python:Depends} Recommends: python-tk, www-browser Description: DNS benchmark utility Searches the fastest DNS servers available for your computer to use. namebench runs a fair and thorough benchmark using your web browser history, tcpdump output, or standardized datasets in order to provide an individualized recommendation. namebench is completely free and does not modify your system in any way. debian/namebench.install0000644000000000000000000000046511555125434012510 0ustar usr/bin/* usr/share/namebench usr/lib/python2.*/*-packages/libnamebench usr/share/namebench usr/namebench/config/* etc/namebench usr/namebench/data usr/share/namebench usr/namebench/templates usr/share/namebench debian/copyright0000644000000000000000000000441011554423410011117 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=174 Upstream-Name: namebench Upstream-Contact: Thomas Strömberg Source: http://code.google.com/p/namebench/ Comment: The upstream tarball has been modified as follows, to comply with DFSG: * Directory nb_third_party was removed since it contained all the dependences needed to build and run namebench. As Debian Policy dictates, those dependences were listed as Depends and/or Build-Depends. . * Directory cocoa has been removed since it contained binary files not useful at build time (those file are only needed to build namebench on Mac OS X. Also, this folder contains an unlicensed, undistributable, and unmodifieable file (cocoa/main.m). Files: * Copyright: © 2009-2010, Google Inc. License: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 /usr/share/common-licenses/Apache-2.0 (on Debian systems) . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Files: debian/* Copyright: © 2010-2011, Miguel Landaeta License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. . The full text of the GPL is distributed in /usr/share/common-licenses/GPL-2 on Debian systems. debian/namebench.postinst0000644000000000000000000000113211345013414012704 0ustar #!/bin/sh set -e # Move a conffile without triggering a dpkg question mv_conffile() { local OLDCONFFILE="$1" local NEWCONFFILE="$2" [ -e "$OLDCONFFILE" ] || return 0 echo "Preserving user changes to $NEWCONFFILE ..." mv -f "$NEWCONFFILE" "$NEWCONFFILE".dpkg-new mv -f "$OLDCONFFILE" "$NEWCONFFILE" } case "$1" in configure) if dpkg --compare-versions "$2" le "1.1+dfsg-2"; then mv_conffile "/etc/namebench.cfg" "/etc/namebench/namebench.cfg" fi ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/namebench.docs0000644000000000000000000000001311344766060011761 0ustar README.txt debian/rules0000755000000000000000000000070311555070234010250 0ustar #!/usr/bin/make -f export NO_THIRD_PARTY=yes %: dh $@ --with python2 override_dh_auto_install: dh_auto_install --destdir=debian/tmp rm debian/tmp/usr/lib/python*/*-packages/namebench.py override_dh_auto_build: dh_auto_build rst2man debian/namebench.rst namebench.1 get-orig-source: cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \ uscan \ --verbose \ --no-symlink \ --destdir $(CURDIR) \ --watchfile debian/watch \ --force-download debian/watch0000644000000000000000000000027311554423410010220 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ http://code.google.com/p/namebench/downloads/list \ http://namebench.googlecode.com/files/namebench-(.*)-source.tgz \ debian debian/orig-tar.sh debian/patches/0000755000000000000000000000000011555127236010624 5ustar debian/patches/series0000644000000000000000000000001411555070234012027 0ustar 594146.diff debian/patches/594146.diff0000644000000000000000000000153011555122730012223 0ustar Description: Decode GeoIP results with the correct encoding to avoid crashes Author: Miguel Landaeta Forwarded: no Bug-Debian: http://bugs.debian.org/594146 Last-Update: 2011-04-24 --- namebench-1.3.1+dfsg.orig/libnamebench/geoip.py +++ namebench-1.3.1+dfsg/libnamebench/geoip.py @@ -57,6 +57,8 @@ def GetFromMaxmindJSAPI(): h = httplib2.Http(tempfile.gettempdir(), timeout=10) unused_resp, content = h.request('http://j.maxmind.com/app/geoip.js', 'GET') keep = ['region_name', 'country_name', 'city', 'latitude', 'longitude', 'country_code'] + # GeoIP lookups results are encoded in latin1, please see http://bugs.debian.org/594146 + content = content.decode('ISO-8859-1') results = dict([x for x in re.findall("geoip_(.*?)\(.*?\'(.*?)\'", content) if x[0] in keep]) results.update({'source': 'mmind'}) if results: debian/compat0000644000000000000000000000000211321515774010372 0ustar 7 debian/namebench.preinst0000644000000000000000000000133111345013414012506 0ustar #!/bin/sh set -e # Prepare to move a conffile without triggering a dpkg question prep_mv_conffile() { local PKGNAME="$1" local CONFFILE="$2" [ -e "$CONFFILE" ] || return 0 local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')" local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | \ sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")" if [ "$md5sum" = "$old_md5sum" ]; then rm -f "$CONFFILE" fi } case "$1" in install|upgrade) if dpkg --compare-versions "$2" le "1.1+dfsg-2"; then prep_mv_conffile namebench "/etc/namebench.cfg" fi ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/clean0000644000000000000000000000001411321515774010174 0ustar namebench.1