diff options
-rw-r--r-- | debian/changelog | 173 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/config | 21 | ||||
-rw-r--r-- | debian/control | 26 | ||||
-rw-r--r-- | debian/copyright | 39 | ||||
-rw-r--r-- | debian/dirs | 1 | ||||
-rw-r--r-- | debian/docs | 1 | ||||
-rw-r--r-- | debian/gbp.conf | 4 | ||||
-rw-r--r-- | debian/po/POTFILES.in | 1 | ||||
-rw-r--r-- | debian/po/cs.po | 48 | ||||
-rw-r--r-- | debian/po/da.po | 47 | ||||
-rw-r--r-- | debian/po/de.po | 50 | ||||
-rw-r--r-- | debian/po/es.po | 72 | ||||
-rw-r--r-- | debian/po/fr.po | 51 | ||||
-rw-r--r-- | debian/po/it.po | 51 | ||||
-rw-r--r-- | debian/po/ja.po | 47 | ||||
-rw-r--r-- | debian/po/pl.po | 53 | ||||
-rw-r--r-- | debian/po/pt.po | 51 | ||||
-rw-r--r-- | debian/po/pt_BR.po | 51 | ||||
-rw-r--r-- | debian/po/ru.po | 50 | ||||
-rw-r--r-- | debian/po/sv.po | 50 | ||||
-rw-r--r-- | debian/po/templates.pot | 42 | ||||
-rw-r--r-- | debian/postinst | 47 | ||||
-rw-r--r-- | debian/preinst | 45 | ||||
-rw-r--r-- | debian/pyversions | 1 | ||||
-rwxr-xr-x | debian/rules | 25 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/templates | 20 | ||||
-rw-r--r-- | debian/tests/control | 3 | ||||
-rwxr-xr-x | debian/tests/smoke | 5 |
30 files changed, 1077 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..b30d1d1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,173 @@ +whatmaps (0.0.11~git0.4e704c-1) experimental; urgency=medium + + [ Santiago Garcia Mantinan ] + * [1b59d85] Respect jessie apache package rename (Closes: #791569) + + [ Guido Günther ] + * Upload to experimental + * New upstream snapshot with python3 support + * [da0a930] Switch packaging to python3 + + -- Guido Günther <agx@sigxcpu.org> Wed, 24 Feb 2016 20:04:15 +0100 + +whatmaps (0.0.10-1) unstable; urgency=medium + + * New upstream version 0.0.10: + * Add mapping for libvirt-daemon -> libvirtd. Needed for the sysv init + based systems + * Silence output if package list is empty + * Don't print overly long error message In the systemd case + * Fix assertRaises invocations. (Closes: #790372) + + -- Guido Günther <agx@sigxcpu.org> Mon, 29 Jun 2015 19:18:02 +0200 + +whatmaps (0.0.9-1) unstable; urgency=medium + + * New upstream version: + * Install apt.conf configuration on derivatives too (Closes: #761054) + * Fix service detection with newer systemd (as in Debian Jessie) + * Make logging consistent + * [36fd4ee] Avoid error message on missing file. + Don't try to get the md5sum of a nonexistent file to avoid + md5sum: /etc/apt/apt.conf.d/20servicese: No such file or directory + which is confusing. + * Drop all patches merged upstream + + -- Guido Günther <agx@sigxcpu.org> Sun, 28 Dec 2014 15:04:26 +0100 + +whatmaps (0.0.8-5) unstable; urgency=medium + + * [617fed4] Add sv Debconf translation. Thanks to Martin Bagge (Closes: + #761973) + * [1a7a8b9] Fix smoketest. The name of the libvirt service changed + + -- Guido Günther <agx@sigxcpu.org> Sat, 27 Sep 2014 13:42:48 +0200 + +whatmaps (0.0.8-4) unstable; urgency=medium + + * [47c0bfa] Don't create backup copies of 20services + and remove them if existent + Thanks to Johannes Hubertz for pointing this out + + -- Guido Günther <agx@sigxcpu.org> Tue, 09 Sep 2014 10:02:39 +0200 + +whatmaps (0.0.8-3) unstable; urgency=medium + + * [ac2e64b] Nicer wording for debconf template. + Thanks to Justin B Rye and Christian PERRIER (Closes: #756584) + * [4c73129] Add ru debconf translation. + Thanks to Yuri Kozlov (Closes: #758801) + * [7a4a474] Update debconf template + * [c9e74f8] Add da Debconf translation. + Thanks to Joe Dalton (Closes: #758841) + * [f655b57] Add pt Debconf translation. + Thanks to Paulo Tomé (Closes: #759167) + * [6a78260] Add de Debconf translation. + Thanks to Chris Leick (Closes: #759365) + * [732e071] Add cs Debconf translation. + Thanks to Michal Simunek (Closes: #760154) + * [620102c] Add pl Debconf translation. + Thanks to Michał Kułach (Closes: #760181) + * [2fd0b79] Add fr Debconf translation. + Thanks to jean-pierre giraud (Closes: #760264) + * [381411c] Add pt_BR Debconf translation. + Thanks to Adriano Rafael Gomes (Closes: #760296) + * [62fb090] Add ja Debconf translation. + Thanks to victory (Closes: #760367) + * [10377a5] Add it Debconf translation. + Thanks to Beatrice Torracca (Closes: #760398) + * [913aa63] Add es Debconf translation. + Thanks to Matias A. Bellone (Closes: #760617) + * [1c5d5f6] Reformat Debconf translations. + Thanks to Christian PERRIER (Closes: #756584) + + -- Guido Günther <agx@sigxcpu.org> Sun, 07 Sep 2014 09:12:18 +0200 + +whatmaps (0.0.8-2) unstable; urgency=medium + + * [cca6b44] Add debconf question to enable automatic service restarts + + -- Guido Günther <agx@sigxcpu.org> Tue, 29 Jul 2014 13:10:50 +0200 + +whatmaps (0.0.8-1) unstable; urgency=medium + + * [ac817c1] Print userfriendly message if not root (Closes: #751088) + * [c6168df] Add upstream-branch to gbp.conf + * [e1b9e7f] pkg_services: Check if a service is actually installed. + * [f758314] Add systemd support + * [d6dba76] Add simple autopkgtest + * [e048b5f] Abort early if we found a match. This speeds up the output and + avoids duplicate printouts + + -- Guido Günther <agx@sigxcpu.org> Mon, 14 Jul 2014 16:58:19 +0200 + +whatmaps (0.0.7-1) unstable; urgency=medium + + [ Justin B Rye ] + * [d10e47c] Improve package description (Closes: #747147) + + [ Guido Günther ] + * New upstream version 0.0.7 + * [acbf3dd] Depend on python-pkg-resources needed for the entry point + * [a049392] Drop patches applied upstream + + -- Guido Günther <agx@sigxcpu.org> Fri, 06 Jun 2014 19:42:09 +0200 + +whatmaps (0.0.6-2) unstable; urgency=medium + + * [b0fe055] Add missing import + + -- Guido Günther <agx@sigxcpu.org> Sat, 03 May 2014 11:29:16 +0200 + +whatmaps (0.0.6-1) unstable; urgency=medium + + * New upstream version 0.0.6 + * [3029ab6] Make whatmaps a non native package. It's meant for Debian + mostly but can be used on RPM based distros as well. + * [f0be66f] Drop README.Debian since it doesn't carry additional info + (Closes: #746623) + * [e98bdde] Build-depend on python-mock + + -- Guido Günther <agx@sigxcpu.org> Fri, 02 May 2014 17:40:32 +0200 + +whatmaps (0.0.5) unstable; urgency=medium + + * [8d0efd3] Improve description + * [ce27981] Add README.Debian that explains howto enable apt integration + * [1f9bde4] ship README + * [e415fe7] Ship manpage + * [b3e2fef] Bump standards version to 3.9.5 + * [38be6c5] Run tests during build + * New version 0.0.5 (Closes: #745133) + + -- Guido Günther <agx@sigxcpu.org> Fri, 18 Apr 2014 15:16:38 +0200 + +whatmaps (0.0.3~bpo70+1) wheezy-backports; urgency=medium + + * [18158e1] Adapt so Squeeze's apache 2.2 package + * [3fe7094] Check for deleted binaries before trying to stat them + * [0fa3c86] Skip already terminated processes. Thanks to Christop Göhre for + pointing this out + * [97de504] Remove duplicate detect_distro call + * [c1eef79] Don't fail if lsb_release is missing + * [d6b284e] Remove template from copyright + + -- Guido Günther <agx@sigxcpu.org> Tue, 07 Jan 2014 19:23:41 +0100 + +whatmaps (0.0.2) unstable; urgency=low + + * New upstream version: + * Fix regex. The current one only matched one letter/number SO names. + * [082b2ec] Build-depend on lsb-release so the apt configuration gets + included + * [a732594] Bump standards version + * [9bbccc9] Adapt so Squeeze's apache 2.2 package + * [47709f0] Fix grammar in description + + -- Guido Günther <agx@sigxcpu.org> Sat, 21 May 2011 13:30:06 +0200 + +whatmaps (0.0.1) unstable; urgency=low + + * Initial Release. + + -- Guido Günther <agx@sigxcpu.org> Sat, 21 May 2011 13:29:56 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/config b/debian/config new file mode 100644 index 0000000..7497f7d --- /dev/null +++ b/debian/config @@ -0,0 +1,21 @@ +#!/bin/sh -e + +APT_CONF=/etc/apt/apt.conf.d/20services + +. /usr/share/debconf/confmodule +db_version 2.0 + +if [ -f $APT_CONF ]; then + CURRENT=$(sed -ne 's,^\s*Whatmaps::Enable-Restart\s\+"\(\S\+\)"\s*;,\1,p' $APT_CONF) + case $CURRENT in + 1|true) + CURRENT="true" + ;; + *) CURRENT="false" + ;; + esac + db_set whatmaps/enable_service_restarts $CURRENT +fi + +db_input medium whatmaps/enable_service_restarts || true +db_go diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e86b485 --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: whatmaps +Section: admin +Priority: extra +Maintainer: Guido Günther <agx@sigxcpu.org> +Build-Depends: debhelper (>= 9~), lsb-release, + python3, + python3-mock, + python3-nose, + python3-setuptools, +Standards-Version: 3.9.5 +Homepage: https://honk.sigxcpu.org/piki/projects/whatmaps +Vcs-Git: git://honk.sigxcpu.org/git/whatmaps.git/ +X-Python3-Version: >= 3.4 +XS-Testsuite: autopkgtest + +Package: whatmaps +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends}, lsb-release, + python3-apt, python3-pkg-resources +Description: tool to find processes mapping shared objects + After package upgrades (especially security fixes), services using a + shared library need to be restarted to make use of the updated version. + . + Whatmaps looks for shared objects provided by upgraded packages, lists any + running processes that map them, and can integrate with APT to restart + services as needed after security upgrades. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3586516 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,39 @@ +This work was packaged for Debian by: + + Guido Günther <agx@sigxcpu.org> on Fri, 03 Sep 2010 20:38:18 +0200 + +It was downloaded from: + + https://honk.sigxcpu.org/piki/projects/whatmaps + +Upstream Author: + + Guido Günther <agx@sigxcpu.org> + +Copyright: + + Copyright (C) 2010 Guido Günther + +License: + + 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 3 of the License, or + (at your option) any later version. + + This package 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, see <http://www.gnu.org/licenses/>. + +On Debian systems, the complete text of the GNU General +Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + +The Debian packaging is: + + Copyright (C) 2010 Guido Günther <agx@sigxcpu.org> + +and is licensed under the GPL version 3, see above. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..3b3088d --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +/var/lib/whatmaps/ diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..9678e28 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +debian-branch = debian/master +upstream-tag = v%(version)s +upstream-branch = master diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in new file mode 100644 index 0000000..cef83a3 --- /dev/null +++ b/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/debian/po/cs.po b/debian/po/cs.po new file mode 100644 index 0000000..976b5b1 --- /dev/null +++ b/debian/po/cs.po @@ -0,0 +1,48 @@ +# Czech PO debconf template translation of whatmaps. +# Copyright (C) 2014 Michal Simunek <michal.simunek@gmail.com> +# This file is distributed under the same license as the whatmaps package. +# Michal Simunek <michal.simunek@gmail.com>, 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: whatmaps 0.0.8-3\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-09-01 10:16+0200\n" +"Last-Translator: Michal Simunek <michal.simunek@gmail.com>\n" +"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n" +"Language: cs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "" +"Restartovat automaticky služby po bezpečnostních aktualizacích knihovny?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"Aby služby využívaly aktualizace sdílených knihoven na kterých závisí, je " +"třeba je restartovat. V opačném případě zůstanou zranitelné vůči " +"bezpečnostním chybám, které tyto aktualizace opravují." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"Automatické restartování služeb se provádí pouze tehdy, když API obdrží " +"knihovnu ze zdroje poskytujícího bezpečnostní aktualizace. To se vztahuje " +"také na balíčky nainstalované přes \"unattended-upgrades\"." diff --git a/debian/po/da.po b/debian/po/da.po new file mode 100644 index 0000000..a837016 --- /dev/null +++ b/debian/po/da.po @@ -0,0 +1,47 @@ +# Danish translation whatmaps. +# Copyright (C) 2014 the whatmaps team. +# This file is distributed under the same license as the whatmaps package. +# Joe Hansen <joedalton2@yahoo.dk>, 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: whatmaps\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-08-21 22:21+0100\n" +"Last-Translator: Joe Hansen <joedalton2@yahoo.dk>\n" +"Language-Team: Danish <debian-l10n-danish@lists.debian.org>\n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "Automatisk genstart tjenester efter bibliotekssikkerhedsopdateringer?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"Tjenester skal genstartes for at drage fordel af opdateringer af delte " +"biblioteker, de afhænger af. Ellers forbliver de sårbare over for " +"sikkerhedsrelaterede fejl rettet i disse opdateringer." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"Automatisk tjenestegenstart udføres kun hvis APT hentede biblioteket fra en " +"kilde, der leverer sikkerhedsopdateringer. Dette påvirker også pakker " +"installeret via »unattended-upgrades«." diff --git a/debian/po/de.po b/debian/po/de.po new file mode 100644 index 0000000..f89a2da --- /dev/null +++ b/debian/po/de.po @@ -0,0 +1,50 @@ +# German debconf translation of whatmaps. +# This file is distributed under the same license as the whatmaps package. +# Copyright (C) 2010 Guido Günther <agx@sigxcpu.org>. +# Copyright (C) of this file 2014 Chris Leick <c.leick@vollbio.de>. +# +msgid "" +msgstr "" +"Project-Id-Version: whatmaps 0.0.8-3\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-08-21 11:41+0100\n" +"Last-Translator: Chris Leick <c.leick@vollbio.de>\n" +"Language-Team: German <debian-l10n-german@lists.debian.org>\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "" +"Sollen die Dienste nach den Sicherheitsaktualisierungen der Bibliotheken " +"automatisch neu gestartet werden?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"Dienste müssen neu gestartet werden, damit ihnen die Aktualisierungen der " +"gemeinsam benutzen Bibliotheken zugute kommen, von denen sie abhängen. " +"Andernfalls bleiben sie für sicherheitskritische Fehler verwundbar, die in " +"diesen Aktualisierungen behoben wurden." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"Dienste werden nur dann automatisch neu gestartet, wenn APT die Bibliothek " +"von einer Quelle bezogen hat, die Sicherheitsaktualisierungen bereitstellt. " +"Dies betrifft auch Pakete, die per »unattended-upgrades« installiert wurden." diff --git a/debian/po/es.po b/debian/po/es.po new file mode 100644 index 0000000..43b78d7 --- /dev/null +++ b/debian/po/es.po @@ -0,0 +1,72 @@ +# whatmaps po-debconf translation to Spanish +# Copyright (C) 2014 Software in the Public Interest +# This file is distributed under the same license as the whatmaps package. +# +# Changes: +# - Initial translation +# Matías A. Bellone <matiasbellone+debian@gmail.com>, 2014 +# +# Traductores, si no conocen el formato PO, merece la pena leer la +# documentación de gettext, especialmente las secciones dedicadas a este +# formato, por ejemplo ejecutando: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Equipo de traducción al español, por favor lean antes de traducir +# los siguientes documentos: +# +# - El proyecto de traducción de Debian al español +# http://www.debian.org/intl/spanish/ +# especialmente las notas y normas de traducción en +# http://www.debian.org/intl/spanish/notas +# +# - La guía de traducción de po's de debconf: +# /usr/share/doc/po-debconf/README-trans +# o http://www.debian.org/intl/l10n/po-debconf/README-trans +# +msgid "" +msgstr "" +"Project-Id-Version: whatmaps\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-08-29 21:45-0300\n" +"Last-Translator: Matías A. Bellone <matiasbellone+debian@gmail.com>\n" +"Language-Team: Debian l10n Spanish <debian-l10n-spanish@lists.debian.org>\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "" +"¿Desea reiniciar los servicios automáticamente luego de realizar las " +"actualizaciones de seguridad de las bibliotecas?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"Es necesario reiniciar los servicios para que se apliquen las " +"actualizaciones de las bibliotecas compartidas en las que dependen. De lo " +"contrario, seguirán siendo vulnerables a los errores de seguridad corregidos " +"en dichas actualizaciones." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"Sólo se reiniciarán automáticamente los servicios si APT descargó la " +"biblioteca desde una fuente que proporciona actualizaciones de seguridad. " +"Esto también afecta los paquetes instalados a través de «unattended-" +"upgrades»." diff --git a/debian/po/fr.po b/debian/po/fr.po new file mode 100644 index 0000000..160145d --- /dev/null +++ b/debian/po/fr.po @@ -0,0 +1,51 @@ +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Jean-Pierre Giraud <jean-pierregiraud@neuf.fr>, 2014. +msgid "" +msgstr "" +"Project-Id-Version: whatmaps\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-08-20 11:06+0200\n" +"Last-Translator: Jean-Pierre Giraud <jean-pierregiraud@neuf.fr>\n" +"Language-Team: French <debian-l10n-french@lists.debian.org>\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Lokalize 1.5\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "" +"Redémarrer les services après les mises à jour de sécurité des " +"bibliothèques ?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"Les services doivent être redémarrés pour bénéficier des mises à jour des " +"bibliothèques partagées dont ils dépendent. Dans le cas contraire, ils " +"restent vulnérables aux bogues de sécurité corrigés par ces mises à jour." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"Le redémarrage automatique des services ne se produit que si APT récupère " +"les bibliothèques d'une source offrant des mises à jour de sécurité. Cela " +"affecte aussi les paquets installés par l'intermédiaire d'« unattended-" +"upgrades »." diff --git a/debian/po/it.po b/debian/po/it.po new file mode 100644 index 0000000..ccdace5 --- /dev/null +++ b/debian/po/it.po @@ -0,0 +1,51 @@ +# Italian translation of whatmaps debconf messages +# Copyright (C) 2014, whatmaps package copyright holder +# This file is distributed under the same license as the whatmaps package. +# Beatrice Torracca <beatricet@libero.it>, 2014. +msgid "" +msgstr "" +"Project-Id-Version: whatmaps\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-08-20 21:12+0200\n" +"Last-Translator: Beatrice Torracca <beatricet@libero.it>\n" +"Language-Team: Italian <debian-l10n-italian@lists.debian.org>\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Virtaal 0.7.1\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "" +"Riavviare automaticamente i servizi dopo gli aggiornamenti di sicurezza " +"delle librerie?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"I servizi devono essere riavviati per poter trarre beneficio dagli " +"aggiornamenti delle librerie condivise da cui dipendono. Altrimenti " +"rimangono vulnerabili ai problemi di sicurezza risolti in quegli " +"aggiornamenti." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"I riavvii automatici vengono fatti solamente se APT ha scaricato la libreria " +"da una fonte che fornisce aggiornamenti di sicurezza. Ciò vale anche per i " +"pacchetti installati usando «unattended-upgrades»." diff --git a/debian/po/ja.po b/debian/po/ja.po new file mode 100644 index 0000000..2c274ff --- /dev/null +++ b/debian/po/ja.po @@ -0,0 +1,47 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the whatmaps package. +# victory <victory.deb@gmail.com>, 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: whatmaps\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-08-20 13:56+0900\n" +"Last-Translator: victory <victory.deb@gmail.com>\n" +"Language-Team: Japanese <debian-japanese@lists.debian.org>\n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "ライブラリのセキュリティ更新後自動的にサービスを再起動しますか?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"サービスが依存している共有ライブラリの更新を反映させるためにはサービスを再起" +"動する必要があります。それまではこの更新で修正されたセキュリティバグに対して" +"脆弱なままです。" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"サービスの自動化での再起動はセキュリティ更新を提供するソースからAPTがライブラ" +"リを取得した場合にのみ行われます。これは「unattended-upgrades」経由でインス" +"トールされたパッケージにも影響します。" diff --git a/debian/po/pl.po b/debian/po/pl.po new file mode 100644 index 0000000..e11657b --- /dev/null +++ b/debian/po/pl.po @@ -0,0 +1,53 @@ +# Translation of whatmaps debconf templates to Polish. +# Copyright (C) 2014 +# This file is distributed under the same license as the whatmaps package. +# +# Michał Kułach <michal.kulach@gmail.com>, 2014. +msgid "" +msgstr "" +"Project-Id-Version: whatmaps\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-08-31 13:39+0200\n" +"Last-Translator: Michał Kułach <michal.kulach@gmail.com>\n" +"Language-Team: Polish <debian-l10n-polish@lists.debian.org>\n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" +"X-Generator: Lokalize 1.4\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "" +"Czy automatycznie restartować usługi po aktualizacjach bezpieczeństwa " +"bibliotek?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"Usługi muszą być uruchomione ponownie, aby skorzystać z aktualizacji " +"bibliotek współdzielonych. W innym przypadku pozostaną narażone na błędy " +"związane z bezpieczeństwem, które zostały poprawione w tych aktualizacjach." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"Automatyczny restart usług ma miejsce jedynie wtedy, gdy APT pobiera " +"biblioteki ze źródła zapewniającego poprawki bezpieczeństwa. Dotyczy to " +"również pakietów instalowanych za pomocą \"unattended-upgrades" +"\" (automatycznych aktualizacji)." diff --git a/debian/po/pt.po b/debian/po/pt.po new file mode 100644 index 0000000..df5c707 --- /dev/null +++ b/debian/po/pt.po @@ -0,0 +1,51 @@ +# Portuguese translations of debconf messages for the whatmaps package. +# Copyright (C) 2014 THE whatmaps'S COPYRIGHT HOLDER +# This file is distributed under the same license as the whatmaps package. +# +# Paulo Tomé <paulo.jorge.tome@gmail.com>, 2014. +msgid "" +msgstr "" +"Project-Id-Version: whatmaps 0.0.8-3\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-08-25 00:20+0100\n" +"Last-Translator: Paulo Tomé <paulo.jorge.tome@gmail.com>\n" +"Language-Team: Portuguese <traduz@debianpt.org>\n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Lokalize 1.4\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "" +"Reiniciar automaticamente os serviços após actualizações de segurança das " +"bibliotecas?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"Os serviços necessitam de ser reiniciados de modo a beneficiarem de " +"actualizações das bibliotecas partilhadas das quais dependem. Caso contrário " +"ficam vulneráveis a erros de segurança corrigidos nestas actualizações." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"Reinicializações automáticas do serviço são apenas executadas se APT obteve " +"a biblioteca de uma fonte que forneça actualizações de segurança. Isto " +"também afecta pacotes instalados via \"unattended-upgrades\"." diff --git a/debian/po/pt_BR.po b/debian/po/pt_BR.po new file mode 100644 index 0000000..970ffa2 --- /dev/null +++ b/debian/po/pt_BR.po @@ -0,0 +1,51 @@ +# Debconf translations for whatmaps. +# Copyright (C) 2014 THE whatmaps'S COPYRIGHT HOLDER +# This file is distributed under the same license as the whatmaps package. +# Adriano Rafael Gomes <adrianorg@arg.eti.br>, 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: whatmaps\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-08-29 10:55-0300\n" +"Last-Translator: Adriano Rafael Gomes <adrianorg@arg.eti.br>\n" +"Language-Team: Brazilian Portuguese <debian-l10n-portuguese@lists.debian." +"org>\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "" +"Reiniciar serviços automaticamente após atualizações de segurança em " +"bibliotecas?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"Os serviços precisam ser reiniciados para se beneficiarem das atualizações " +"de bibliotecas compartilhadas das quais eles dependem. Caso contrário, eles " +"permanecerão vulneráveis aos bugs de segurança que foram corrigidos nessas " +"atualizações." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"Reinícios automáticos de serviços somente são feitos se o APT obtiver a " +"biblioteca de uma fonte que forneça atualizações de segurança. Isso também " +"afeta pacotes instalados via \"unattended-upgrades\"." diff --git a/debian/po/ru.po b/debian/po/ru.po new file mode 100644 index 0000000..27229a3 --- /dev/null +++ b/debian/po/ru.po @@ -0,0 +1,50 @@ +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the whatmaps package. +# +# Yuri Kozlov <yuray@komyakino.ru>, 2014. +msgid "" +msgstr "" +"Project-Id-Version: whatmaps 0.0.8-3\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-08-21 18:05+0400\n" +"Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n" +"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"X-Generator: Lokalize 1.5\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "" +"Перезапускать службы автоматически после обновлений безопасности библиотек?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"Чтобы обновления динамических библиотек начали действовать, необходимо " +"перезапустить службы, которые их используют. В противном случае дефекты " +"безопасности останутся неисправленными." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"Автоматическая служба выполняет перезапуск только, если APT получает " +"библиотеку из источника, предоставляющего обновления безопасности. Это также " +"относится к пакетам, установленным через «unattended-upgrades»." diff --git a/debian/po/sv.po b/debian/po/sv.po new file mode 100644 index 0000000..2ee931e --- /dev/null +++ b/debian/po/sv.po @@ -0,0 +1,50 @@ +# Translation of whatmaps debconf template to Swedish +# Copyright (C) 2014 Martin Bagge <brother@bsnet.se> +# This file is distributed under the same license as the XX package. +# +# Martin Bagge <brother@bsnet.se>, 2014 +msgid "" +msgstr "" +"Project-Id-Version: whatmaps\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: 2014-09-17 13:22+0100\n" +"Last-Translator: Martin Bagge / brother <brother@bsnet.se>\n" +"Language-Team: Swedish <debian-l10n-swedish@lists.debian.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.5.4\n" +"Language: Swedish\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "" +"Ska tjänster startas om automatiskt efter säkerhetsuppdateringar för " +"bibliotek?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" +"Tjänster behöver startas om för att dra nytta av uppdateringar av delade " +"bibliotek som de är beroende av. Annars kan tjänsterna fortsätta vara " +"sårbara för säkerhetsfel som lösts i dessa uppdateringar." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" +"Automatiska omstarter av tjänster görs bara om APT hämtar biblioteket från " +"en källa som tillhandahåller säkerhetsuppdateringar. Detta påverkar också " +"paket installerade voa \"unattended-upgrades\"." diff --git a/debian/po/templates.pot b/debian/po/templates.pot new file mode 100644 index 0000000..7a334fb --- /dev/null +++ b/debian/po/templates.pot @@ -0,0 +1,42 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: whatmaps\n" +"Report-Msgid-Bugs-To: whatmaps@packages.debian.org\n" +"POT-Creation-Date: 2014-08-20 06:56+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Automatically restart services after library security updates?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Services need to be restarted to benefit from updates of shared libraries " +"they depend on. Otherwise they remain vulnerable to security bugs fixed in " +"these updates." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Automatic service restarts are only done if APT fetched the library from a " +"source providing security updates. This also affects packages installed via " +"\"unattended-upgrades\"." +msgstr "" diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..8a56265 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,47 @@ +#!/bin/bash + +set -e + +APT_CONF=/etc/apt/apt.conf.d/20services + +. /usr/share/debconf/confmodule +db_version 2.0 + +case "$1" in + configure) + db_get whatmaps/enable_service_restarts || true + DBVAL="$RET" + + # Configuration file doesn't exist but user wants updates enabled so + # recreate it: + if [ ! -f $APT_CONF ] && [ $DBVAL = "true" ]; then + cat << EOF > $APT_CONF +// Set to 1 or true to enable service restarts on security updates +Whatmaps::Enable-Restart "1"; + +// What updates are considered security updates +Whatmaps::Security-Update-Origins { + "\${distro_id} stable"; + "\${distro_id} \${distro_codename}-security"; +}; +EOF + else + case $DBVAL in + "true") VAL=1;; + *) VAL=0;; + esac + sed -i -e "s,^\(\s*Whatmaps::Enable-Restart\s\+\"\)\S\+\(\"\s*;\),\1${VAL}\2," $APT_CONF + fi + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 0000000..1ea0c9f --- /dev/null +++ b/debian/preinst @@ -0,0 +1,45 @@ +#!/bin/sh +# preinst script for whatmaps +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <new-preinst> `install' +# * <new-preinst> `install' <old-version> +# * <new-preinst> `upgrade' <old-version> +# * <old-preinst> `abort-upgrade' <new-version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + if dpkg --compare-versions "$2" lt-nl "0.0.8-3~"; then + if [ -f /etc/apt/apt.conf.d/20servicese ]; then + # Remove errnoneous backup copies of services file + md5=$(md5sum /etc/apt/apt.conf.d/20servicese | sed -e 's/ .*//') + case "$md5" in + 074e684668c83b8a98c5eeb8257c88f2|509ad2c35aa4da3153dd6e70941e060b) + rm -f /etc/apt/apt.conf.d/20servicese + esac + fi + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/pyversions b/debian/pyversions new file mode 100644 index 0000000..b3dc41e --- /dev/null +++ b/debian/pyversions @@ -0,0 +1 @@ +2.5- diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f387774 --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_installman: + pod2man man/whatmaps.pod man/whatmaps.8 + dh_installman man/whatmaps.8 + +override_dh_auto_test: + python3 setup.py nosetests + dh_auto_test + +override_dh_auto_clean: + rm -f man/whatmaps.8 + dh_auto_clean diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/templates b/debian/templates new file mode 100644 index 0000000..4bc327b --- /dev/null +++ b/debian/templates @@ -0,0 +1,20 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# debian-l10n-english@lists.debian.org for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: whatmaps/enable_service_restarts +Type: boolean +Default: false +_Description: Automatically restart services after library security updates? + Services need to be restarted to benefit from updates of shared libraries they + depend on. Otherwise they remain vulnerable to security bugs fixed in these + updates. + . + Automatic service restarts are only done if APT fetched the library from a + source providing security updates. This also affects packages installed + via "unattended-upgrades". diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..a9d638a --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: smoke +Restrictions: needs-root +Depends: @ diff --git a/debian/tests/smoke b/debian/tests/smoke new file mode 100755 index 0000000..8e6d4ec --- /dev/null +++ b/debian/tests/smoke @@ -0,0 +1,5 @@ +#!/bin/sh + +whatmaps --help + +/bin/bash -c 'whatmaps --debug libncurses5 2>&1 | grep bash' |