Control: retitle -1 unblock: macchanger/1.7.0-5.2 Please unblock package macchanger
This reverts a change in the default behaviour from wheezy (#768189) and fixes a possible failure mode in randomisation (#775005), both of which bugs are RC. Now with translations for the debconf question, as previously requested by the release team. Ben. diff -Nru macchanger-1.7.0/debian/changelog macchanger-1.7.0/debian/changelog --- macchanger-1.7.0/debian/changelog 2014-11-29 12:50:42.000000000 +0000 +++ macchanger-1.7.0/debian/changelog 2015-01-17 11:47:56.000000000 +0000 @@ -1,3 +1,36 @@ +macchanger (1.7.0-5.2) unstable; urgency=medium + + * Non-maintainer upload + * Add debconf template translations for the question added for #768189: + - Czech (Michal Simunek) (Closes: #773524) + - German (Helge Kreutzmann) (Closes: #773738) + - Portugese (Américo Monteiro) (Closes: #773769) + - Russian (Yuri Kozlov) (Closes: #773819) + - French (Julien Patriarca) (Closes: #773949) + - Danish (Joe Dalton) (Closes: #775046) + + -- Ben Hutchings <b...@decadent.org.uk> Sat, 17 Jan 2015 11:46:17 +0000 + +macchanger (1.7.0-5.1) unstable; urgency=medium + + * Non-maintainer upload + * Check for random device read errors (Closes: #775005) + + -- Ben Hutchings <b...@decadent.org.uk> Fri, 16 Jan 2015 23:22:13 +0000 + +macchanger (1.7.0-5) unstable; urgency=low + + * fix maintainer-script-without-set-e config + * improved language for debconf question from Justin B Rye + + -- Hans-Christoph Steiner <h...@eds.org> Thu, 18 Dec 2014 12:50:47 +0100 + +macchanger (1.7.0-4) unstable; urgency=low + + * add debconf option to prompt whether to automatically run (Closes: #768189) + + -- Hans-Christoph Steiner <h...@eds.org> Mon, 15 Dec 2014 12:07:44 +0100 + macchanger (1.7.0-3.2) unstable; urgency=medium * Non-maintainer upload. diff -Nru macchanger-1.7.0/debian/config macchanger-1.7.0/debian/config --- macchanger-1.7.0/debian/config 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/config 2014-12-15 13:18:23.000000000 +0000 @@ -0,0 +1,25 @@ +#!/bin/sh + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + + +if [ -f /etc/default/macchanger ]; then + ENABLE_ON_POST_UP_DOWN=false + . /etc/default/macchanger + + if [ "$ENABLE_ON_POST_UP_DOWN" = "true" ]; then + db_set macchanger/automatically_run true + else + db_set macchanger/automatically_run false + fi +fi + +db_input high macchanger/automatically_run || true +db_go + +#DEBHELPER# + +exit 0 diff -Nru macchanger-1.7.0/debian/default macchanger-1.7.0/debian/default --- macchanger-1.7.0/debian/default 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/default 2014-12-15 13:11:01.000000000 +0000 @@ -0,0 +1,11 @@ +# before bringing up any network interface, run macchanger. Careful, this is +# not guaranteed to prevent leaking your real MAC address before the new one +# gets assigned! +# +ENABLE_ON_POST_UP_DOWN=false + + +# by default, macchanger runs on all network interfaces but loopback (lo). If +# you only want it to run on specific network interfaces, set them here: +# +#ENABLE_INTERFACES="wlan0" diff -Nru macchanger-1.7.0/debian/gbp.conf macchanger-1.7.0/debian/gbp.conf --- macchanger-1.7.0/debian/gbp.conf 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/gbp.conf 2014-12-18 11:53:33.000000000 +0000 @@ -0,0 +1,6 @@ +[DEFAULT] +upstream-branch = upstream +debian-branch = master +upstream-tag = upstream/%(version)s +debian-tag = debian/%(version)s +sign-tags = True diff -Nru macchanger-1.7.0/debian/if-pre-up.d/macchanger macchanger-1.7.0/debian/if-pre-up.d/macchanger --- macchanger-1.7.0/debian/if-pre-up.d/macchanger 2014-11-29 12:50:42.000000000 +0000 +++ macchanger-1.7.0/debian/if-pre-up.d/macchanger 1970-01-01 01:00:00.000000000 +0100 @@ -1,32 +0,0 @@ -#!/bin/sh -# -# randomize MAC address before connecting to wifi or ethernet -# -# This script should always be run in if-pre-up.d, but unfortunately -# NetworkManager does not run if-pre-up.d scripts before it sets up a network -# connection (https://bugzilla.gnome.org/show_bug.cgi?id=387832). -# if-post-down.d scripts are run, so there is a symlink to this script -# there. That means when running network config from the terminal, macchanger -# will be run twice, but it'll only be run in if-post-down.d when using -# NetworkManager. - -package=macchanger - -. /etc/default/${package} - -LOGFILE=/var/log/${package}.log - -if [ "$ENABLE_ON_POST_DOWN" != "yes" ]; then - echo "disabled in /etc/default/${package}" >> $LOGFILE - exit -fi - -echo "IFACE = $IFACE" >> $LOGFILE - -# quit if we're called for the loopback -if [ "$IFACE" = lo ]; then - echo "ignoring loopback" >> $LOGFILE - exit 0 -fi - -/usr/bin/${package} -e $IFACE >> $LOGFILE 2>&1 diff -Nru macchanger-1.7.0/debian/ifupdown.sh macchanger-1.7.0/debian/ifupdown.sh --- macchanger-1.7.0/debian/ifupdown.sh 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/ifupdown.sh 2014-12-15 13:07:56.000000000 +0000 @@ -0,0 +1,32 @@ +#!/bin/sh +# +# randomize MAC address before connecting to wifi or ethernet +# +# This script should always be run in if-pre-up.d, but unfortunately +# NetworkManager does not run if-pre-up.d scripts before it sets up a network +# connection (https://bugzilla.gnome.org/show_bug.cgi?id=387832). +# if-post-down.d scripts are run, so there is a symlink to this script +# there. That means when running network config from the terminal, macchanger +# will be run twice, but it'll only be run in if-post-down.d when using +# NetworkManager. + +package=macchanger + +. /etc/default/${package} + +LOGFILE=/var/log/${package}.log + +if [ "$ENABLE_ON_POST_UP_DOWN" != "true" ]; then + echo "disabled in /etc/default/${package}" >> $LOGFILE + exit +fi + +echo "IFACE = $IFACE" >> $LOGFILE + +# quit if we're called for the loopback +if [ "$IFACE" = lo ]; then + echo "ignoring loopback" >> $LOGFILE + exit 0 +fi + +/usr/bin/${package} -e $IFACE >> $LOGFILE 2>&1 diff -Nru macchanger-1.7.0/debian/install macchanger-1.7.0/debian/install --- macchanger-1.7.0/debian/install 2014-11-29 12:50:42.000000000 +0000 +++ macchanger-1.7.0/debian/install 2014-12-15 10:44:29.000000000 +0000 @@ -1,2 +1,2 @@ -debian/if-pre-up.d/macchanger etc/network/if-pre-up.d/ +debian/ifupdown.sh etc/macchanger/ debian/logrotate.d/macchanger etc/logrotate.d/ diff -Nru macchanger-1.7.0/debian/links macchanger-1.7.0/debian/links --- macchanger-1.7.0/debian/links 2014-11-29 12:50:42.000000000 +0000 +++ macchanger-1.7.0/debian/links 2014-12-15 11:07:20.000000000 +0000 @@ -1 +1,2 @@ -etc/network/if-pre-up.d/macchanger etc/network/if-post-down.d/macchanger +etc/macchanger/ifupdown.sh etc/network/if-pre-up.d/macchanger +etc/macchanger/ifupdown.sh etc/network/if-post-down.d/macchanger diff -Nru macchanger-1.7.0/debian/macchanger.default macchanger-1.7.0/debian/macchanger.default --- macchanger-1.7.0/debian/macchanger.default 2014-11-29 12:50:42.000000000 +0000 +++ macchanger-1.7.0/debian/macchanger.default 1970-01-01 01:00:00.000000000 +0100 @@ -1,11 +0,0 @@ -# before bringing up any network interface, run macchanger. Careful, this is -# not guaranteed to prevent leaking your real MAC address before the new one -# gets assigned! -# -ENABLE_ON_POST_DOWN=yes - - -# by default, macchanger runs on all network interfaces but loopback (lo). If -# you only want it to run on specific network interfaces, set them here: -# -#ENABLE_INTERFACES="wlan0" diff -Nru macchanger-1.7.0/debian/patches/check-random-device-read-errors.patch macchanger-1.7.0/debian/patches/check-random-device-read-errors.patch --- macchanger-1.7.0/debian/patches/check-random-device-read-errors.patch 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/patches/check-random-device-read-errors.patch 2015-01-16 23:03:34.000000000 +0000 @@ -0,0 +1,47 @@ +Description: Check for random device read errors + In some cases it is possible to open /dev/hwrng but not to read from it. + We need to check for errors and move on to the next possible random device + in this case. +Author: Ben Hutchings <b...@decadent.org.uk> +Bug-Debian: https://bugs.debian.org/775005 + +--- +--- a/src/main.c ++++ b/src/main.c +@@ -91,17 +91,29 @@ print_mac (const char *s, const mac_t *m + static void + random_seed (void) + { ++ static const char *const dev_names[] = { ++ "/dev/hwrng", ++ "/dev/random", ++ "/dev/urandom", ++ NULL, ++ }; + int fd; + struct timeval tv; + unsigned int seed; ++ const char *const *name; ++ ssize_t read_len = 0; + +- if ((fd = open("/dev/hwrng", O_RDONLY)) >= 0 || +- (fd = open("/dev/random", O_RDONLY)) >= 0 || +- (fd = open("/dev/urandom", O_RDONLY)) >= 0) +- { +- read (fd, &seed, sizeof(seed)); +- close (fd); +- } else { ++ for (name = dev_names; *name; name++) { ++ fd = open(*name, O_RDONLY); ++ if (fd >= 0) { ++ read_len = read (fd, &seed, sizeof(seed)); ++ close (fd); ++ if (read_len == sizeof(seed)) ++ break; ++ } ++ } ++ ++ if (read_len != sizeof(seed)) { + gettimeofday (&tv, NULL); + seed = (getpid() << 16) ^ tv.tv_sec ^ tv.tv_usec; + } diff -Nru macchanger-1.7.0/debian/patches/series macchanger-1.7.0/debian/patches/series --- macchanger-1.7.0/debian/patches/series 2014-11-29 12:50:42.000000000 +0000 +++ macchanger-1.7.0/debian/patches/series 2015-01-16 22:51:05.000000000 +0000 @@ -1,3 +1,4 @@ 02-fix_usage_message.patch 06-update_OUI_list.patch 08-fix_random_MAC_choice.patch +check-random-device-read-errors.patch diff -Nru macchanger-1.7.0/debian/po/cs.po macchanger-1.7.0/debian/po/cs.po --- macchanger-1.7.0/debian/po/cs.po 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/po/cs.po 2015-01-17 11:42:09.000000000 +0000 @@ -0,0 +1,35 @@ +# Czech PO debconf template translation of macchanger. +# Copyright (C) 2014 Michal Simunek <michal.simu...@gmail.com> +# This file is distributed under the same license as the macchanger package. +# Michal Simunek <michal.simu...@gmail.com>, 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: macchanger\n" +"Report-Msgid-Bugs-To: macchan...@packages.debian.org\n" +"POT-Creation-Date: 2014-12-18 13:38+0100\n" +"PO-Revision-Date: 2014-12-19 09:15+0200\n" +"Last-Translator: Michal Simunek <michal.simu...@gmail.com>\n" +"Language-Team: Czech <debian-l10n-cz...@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:1001 +msgid "Change MAC automatically?" +msgstr "Změnit automaticky MAC adresu?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Please specify whether macchanger should be set up to run automatically " +"every time a network device is brought up or down. This gives a new MAC " +"address whenever you attach an ethernet cable or reenable wifi." +msgstr "" +"Uveďte prosím, zda se má macchanger nastavit tak, aby se spouštěl pokaždé, " +"když je připojeno, nebo odpojeno, síťové zařízení. Tím se pokaždé, když " +"připojíte ethernetový kabel, nebo znovu zapnete wifi, získá nová MAC adresa." diff -Nru macchanger-1.7.0/debian/po/da.po macchanger-1.7.0/debian/po/da.po --- macchanger-1.7.0/debian/po/da.po 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/po/da.po 2015-01-10 17:48:17.000000000 +0000 @@ -0,0 +1,36 @@ +# Danish translation macchanger. +# Copyright (C) 2015 macchanger og nedenstående oversættere. +# This file is distributed under the same license as the macchanger package. +# Joe Hansen <joedalt...@yahoo.dk>, 2015. +# +msgid "" +msgstr "" +"Project-Id-Version: macchanger\n" +"Report-Msgid-Bugs-To: macchan...@packages.debian.org\n" +"POT-Creation-Date: 2014-12-18 13:38+0100\n" +"PO-Revision-Date: 2014-11-26 22:21+0100\n" +"Last-Translator: Joe Hansen <joedalt...@yahoo.dk>\n" +"Language-Team: Danish <debian-l10n-dan...@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:1001 +msgid "Change MAC automatically?" +msgstr "Ændr MAC automatisk?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Please specify whether macchanger should be set up to run automatically " +"every time a network device is brought up or down. This gives a new MAC " +"address whenever you attach an ethernet cable or reenable wifi." +msgstr "" +"Angiv venligst om macchanger skal sættes op til at køre automatisk " +"hver gang en netværksenhed tændes eller slukkes. Dette giver en ny " +"MAC-adresse hver gang du tilkobler et ethernetkabel eller genaktiverer " +"wifi." diff -Nru macchanger-1.7.0/debian/po/de.po macchanger-1.7.0/debian/po/de.po --- macchanger-1.7.0/debian/po/de.po 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/po/de.po 2015-01-17 11:43:40.000000000 +0000 @@ -0,0 +1,35 @@ +# Translation of macchanger debconf templates to German +# Copyright (C) Helge Kreutzmann <deb...@helgefjell.de>, 2014. +# This file is distributed under the same license as the macchanger package. +# +msgid "" +msgstr "" +"Project-Id-Version: macchanger 1.7.0-5\n" +"Report-Msgid-Bugs-To: macchan...@packages.debian.org\n" +"POT-Creation-Date: 2014-12-18 13:38+0100\n" +"PO-Revision-Date: 2014-12-20 14:10+0100\n" +"Last-Translator: Helge Kreutzmann <deb...@helgefjell.de>\n" +"Language-Team: German <debian-l10n-ger...@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:1001 +msgid "Change MAC automatically?" +msgstr "MAC automatisch ändern?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Please specify whether macchanger should be set up to run automatically " +"every time a network device is brought up or down. This gives a new MAC " +"address whenever you attach an ethernet cable or reenable wifi." +msgstr "" +"Bitte geben Sie an, ob Macchanger so eingerichtet werden soll, dass es " +"automatisch ausgeführt wird, wanimmer ein Netzgerät aktiviert oder " +"deaktiviert wird. Damit wird für eine neue MAC-Adresse gesorgt, wanimmer Sie " +"sich mit einem Ethernet-Kabel verbinden oder Wifi reaktivieren." diff -Nru macchanger-1.7.0/debian/po/fr.po macchanger-1.7.0/debian/po/fr.po --- macchanger-1.7.0/debian/po/fr.po 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/po/fr.po 2015-01-17 11:45:50.000000000 +0000 @@ -0,0 +1,37 @@ +# Translation of macchanger debconf templates to French. +# Copyright (C) 2014 Debian l10n team <debian-l10n-fre...@lists.debian.org> +# This file is distributed under the same license as the macchanger package. +# Julien Patriarca <leatherf...@debian.org>, 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: macchanger\n" +"Report-Msgid-Bugs-To: macchan...@packages.debian.org\n" +"POT-Creation-Date: 2014-12-18 13:38+0100\n" +"PO-Revision-Date: 2014-12-19 10:00+0100\n" +"Last-Translator: Julien Patriarca <leatherf...@debian.org>\n" +"Language-Team: FRENCH <debian-l10n-fre...@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" +"X-Generator: Poedit 1.6.10\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Change MAC automatically?" +msgstr "Faut-il changer l'adresse MAC automatiquement ?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Please specify whether macchanger should be set up to run automatically " +"every time a network device is brought up or down. This gives a new MAC " +"address whenever you attach an ethernet cable or reenable wifi." +msgstr "" +"Veuillez choisir si macchanger doit être paramétré pour être lancé " +"automatiquement chaque fois qu'un périphérique réseau est mis en ligne ou " +"hors ligne. Cela a pour effet d'attribuer une nouvelle adresse MAC dès que " +"vous branchez un câble Ethernet ou que vous réactivez le réseau sans fil." diff -Nru macchanger-1.7.0/debian/po/POTFILES.in macchanger-1.7.0/debian/po/POTFILES.in --- macchanger-1.7.0/debian/po/POTFILES.in 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/po/POTFILES.in 2014-12-15 11:45:10.000000000 +0000 @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff -Nru macchanger-1.7.0/debian/po/pt.po macchanger-1.7.0/debian/po/pt.po --- macchanger-1.7.0/debian/po/pt.po 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/po/pt.po 2015-01-17 11:45:08.000000000 +0000 @@ -0,0 +1,40 @@ +# Translation of macchanger's debconf messages to European Portuguese +# Copyright (C) 2014 THE macchanger'S COPYRIGHT HOLDER +# This file is distributed under the same license as the macchanger package. +# +# Américo Monteiro <a_monte...@gmx.com>, 2014. +msgid "" +msgstr "" +"Project-Id-Version: macchanger 1.7.0-5\n" +"Report-Msgid-Bugs-To: macchan...@packages.debian.org\n" +"POT-Creation-Date: 2014-12-18 13:38+0100\n" +"PO-Revision-Date: 2014-12-19 00:54+0000\n" +"Last-Translator: Américo Monteiro <a_monte...@gmx.com>\n" +"Language-Team: Portuguese <tra...@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:1001 +msgid "Change MAC automatically?" +msgstr "Mudar o MAC automaticamente?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Please specify whether macchanger should be set up to run automatically " +"every time a network device is brought up or down. This gives a new MAC " +"address whenever you attach an ethernet cable or reenable wifi." +msgstr "" +"Por favor especifique se o macchanger deve ser configurado para correr " +"automaticamente sempre que um dispositivo de rede é activado ou desactivado. " +"Isto fornece um novo endereço MAC sempre que ligar um cabo ethernet ou " +"reactivar a wifi." + + diff -Nru macchanger-1.7.0/debian/po/ru.po macchanger-1.7.0/debian/po/ru.po --- macchanger-1.7.0/debian/po/ru.po 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/po/ru.po 2015-01-17 11:44:55.000000000 +0000 @@ -0,0 +1,39 @@ +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the macchanger package. +# +# Yuri Kozlov <yu...@komyakino.ru>, 2014. +msgid "" +msgstr "" +"Project-Id-Version: macchanger 1.7.0-5\n" +"Report-Msgid-Bugs-To: macchan...@packages.debian.org\n" +"POT-Creation-Date: 2014-12-18 13:38+0100\n" +"PO-Revision-Date: 2014-12-23 19:08+0300\n" +"Last-Translator: Yuri Kozlov <yu...@komyakino.ru>\n" +"Language-Team: Russian <debian-l10n-russ...@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:1001 +msgid "Change MAC automatically?" +msgstr "Изменять MAC автоматически?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Please specify whether macchanger should be set up to run automatically " +"every time a network device is brought up or down. This gives a new MAC " +"address whenever you attach an ethernet cable or reenable wifi." +msgstr "" +"Выберите, должен ли macchanger автоматически запускаться каждый " +"раз при включении и выключении сетевого устройства. Это позволяет " +"иметь новый MAC-адрес при подключении кабеля ethernet или переподключении" +"по wifi." + diff -Nru macchanger-1.7.0/debian/po/templates.pot macchanger-1.7.0/debian/po/templates.pot --- macchanger-1.7.0/debian/po/templates.pot 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/po/templates.pot 2014-12-18 12:38:02.000000000 +0000 @@ -0,0 +1,33 @@ +# 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: macchanger\n" +"Report-Msgid-Bugs-To: macchan...@packages.debian.org\n" +"POT-Creation-Date: 2014-12-18 13:38+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <l...@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:1001 +msgid "Change MAC automatically?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Please specify whether macchanger should be set up to run automatically " +"every time a network device is brought up or down. This gives a new MAC " +"address whenever you attach an ethernet cable or reenable wifi." +msgstr "" diff -Nru macchanger-1.7.0/debian/postinst macchanger-1.7.0/debian/postinst --- macchanger-1.7.0/debian/postinst 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/postinst 2014-12-15 13:07:56.000000000 +0000 @@ -0,0 +1,50 @@ +#!/bin/sh +# postinst script for macchanger + +set -e + +. /usr/share/debconf/confmodule + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + configure) + # Update /etc/default file based on config + if [ -f /etc/default/macchanger ] ; then + # rename old variable to new name + sed -i 's,ENABLE_ON_POST_DOWN,ENABLE_ON_POST_UP_DOWN,g' /etc/default/macchanger + + db_get macchanger/automatically_run + # set variable based on $RET + if grep -E ^ENABLE_ON_POST_UP_DOWN= /etc/default/macchanger > /dev/null; then + sed -i "s/^ENABLE_ON_POST_UP_DOWN=.*$/ENABLE_ON_POST_UP_DOWN=$RET/g" /etc/default/macchanger + else + echo "ENABLE_ON_POST_UP_DOWN=$RET" >> /etc/default/macchanger + fi + else + echo "/etc/default/macchanger not found, configuration failed." >&2 + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff -Nru macchanger-1.7.0/debian/templates macchanger-1.7.0/debian/templates --- macchanger-1.7.0/debian/templates 1970-01-01 01:00:00.000000000 +0100 +++ macchanger-1.7.0/debian/templates 2014-12-15 18:31:15.000000000 +0000 @@ -0,0 +1,7 @@ +Template: macchanger/automatically_run +Type: boolean +Default: false +_Description: Change MAC automatically? + Please specify whether macchanger should be set up to run automatically + every time a network device is brought up or down. This gives a new MAC + address whenever you attach an ethernet cable or reenable wifi. --- END --- unblock macchanger/1.7.0-5.2 -- Ben Hutchings The first rule of tautology club is the first rule of tautology club.
signature.asc
Description: This is a digitally signed message part