--- mason-1.0.0.orig/debian/postinst +++ mason-1.0.0/debian/postinst @@ -22,9 +22,20 @@ # installation fails and the `postinst' is called with `abort-upgrade', # `abort-remove' or `abort-deconfigure'. +# We now use debconf +. /usr/share/debconf/confmodule + case "$1" in configure) - /usr/sbin/update-rc.d mason defaults 19 > /dev/null + if [ `egrep '^[:space:]*NEWRULEPOLICY' /etc/masonrc | wc -l` -eq 0 ] + then + db_get mason/newrulepolicy + echo "NEWRULEPOLICY=$RET" >> /etc/masonrc + db_get mason/defaultpolicy + echo "DEFAULTPOLICY=$RET" >> /etc/masonrc + fi + /usr/sbin/update-rc.d -f mason remove > /dev/null + /usr/sbin/update-rc.d mason start 41 S . > /dev/null ;; abort-upgrade|abort-remove|abort-deconfigure) --- mason-1.0.0.orig/debian/changelog +++ mason-1.0.0/debian/changelog @@ -1,3 +1,75 @@ +mason (1.0.0-4) unstable; urgency=low + + * Added an update of the danish template translation (Thanks to Claus Hindsgaul) (closes: #319233) + + -- Thomas Scheffczyk Fri, 22 Jul 2005 07:46:17 +0200 + +mason (1.0.0-3) unstable; urgency=low + + * Incorporated NMU changes (Thanks to Lucas Wall) (closes: #250264, + #301321) + * fix postinst to correctly install startup links (closes: #222384) + * upgrade to policy 3.6.1.0 + * Added Vietnamese debconf template translation (Thanks to Clytie + Siddall) (closes: #312752) + + -- Thomas Scheffczyk Fri, 24 Jun 2005 11:41:10 +0200 + +mason (1.0.0-2.1) unstable; urgency=low + + * Non-maintainer upload + * Switched to po-debconf. (closes: #250264) + * Added Brazilian Portuguese debconf template translation. (closes: #301321) + * Added Czech debconf template translation. + * Added French debconf template translation. + * Added Norwegian Bokmål debconf template translation. + + -- Lucas Wall Tue, 12 Apr 2005 10:17:05 -0300 + +mason (1.0.0-2) unstable; urgency=low + + * fix masonlib to support iptables static in kernel + * fix init.d levels so that mason will be startet directly after + configuring the interfaces and will not be stopped on shutdown + + -- Thomas Scheffczyk Thu, 8 May 2003 13:57:43 +0200 + +mason (1.0.0-1) unstable; urgency=low + + * New maintainer upload (closes: #143724) + * Exit if another instance of mason-gui-text is running (closes: + #186599, #169221) + * fix duplicate text in README.Debian (closes: #171709) + * add Danish debconf template (closes: #174789) + + -- Thomas Scheffczyk Tue, 15 Apr 2003 14:49:58 +0200 + +mason (1.0.0-0.1) unstable; urgency=low + + * new upstream + + -- Christoph Martin Wed, 22 May 2002 17:46:26 +0200 + +mason (0.13.0.92-2) unstable; urgency=low + + * Added config questions for default policies to prevent boot-time + questions. (closes bug #50745) + * Changed maintainer address to jive with other packages. + * Fixed problem with *-ips files being created in current directory + instead of /var/lib/mason. + * Moved baserules from /var/lib/mason to /etc/mason.baserules (by request; + so config backups of /etc work properly). + * Fixed pristine source problem (it's uploaded now :-). + + -- Jeff Licquia Wed, 24 Nov 1999 23:55:13 -0600 + +mason (0.13.0.92-1) unstable; urgency=low + + * Newer upstream version. + * Real working package, this time. :-) + + -- Jeff Licquia Thu, 28 Oct 1999 16:30:12 -0500 + mason (0.13.0.92-1) unstable; urgency=low * Newer upstream version. @@ -11,7 +83,3 @@ -- Jeff Licquia Wed, 31 Mar 1999 21:49:35 -0600 -Local variables: -mode: debian-changelog -add-log-mailing-address: "jeff@luci.org" -End: --- mason-1.0.0.orig/debian/copyright +++ mason-1.0.0/debian/copyright @@ -1,4 +1,4 @@ -This package was debianized by Jeff Licquia jeff@luci.org on +This package was debianized by Jeff Licquia on Wed, 31 Mar 1999 21:49:35 -0600. It was downloaded from http://www.pobox.com/~wstearns/mason/ @@ -20,4 +20,4 @@ GNU General Public License for more details. --- On Debian GNU/Linux systems, the complete text of the GNU General -Public License can be found in /usr/doc/copyright/GPL'. +Public License can be found in /usr/share/common-licenses/GPL'. --- mason-1.0.0.orig/debian/conffiles +++ mason-1.0.0/debian/conffiles @@ -1,3 +1,3 @@ /etc/masonrc /etc/init.d/mason -/var/lib/mason/baserules +/etc/mason.baserules --- mason-1.0.0.orig/debian/control +++ mason-1.0.0/debian/control @@ -1,12 +1,13 @@ Source: mason Section: net Priority: extra -Maintainer: Jeff Licquia -Standards-Version: 3.0.0 +Maintainer: Thomas Scheffczyk +Standards-Version: 3.6.1.0 +Build-Depends-Indep: debhelper (>= 4.1.16), po-debconf Package: mason Architecture: all -Depends: bash +Depends: bash (>= 2.04-1), debconf (>= 1.2.0) Description: Interactively creates a Linux packet filtering firewall. Mason creates a firewall that exactly matches the types of TCP/IP traffic flowing in, out and through a Linux computer. --- mason-1.0.0.orig/debian/rules +++ mason-1.0.0/debian/rules @@ -19,6 +19,7 @@ dh_testdir dh_testroot rm -f build-stamp install-stamp + debconf-updatepo # Add here commands to clean up after the build process. -$(MAKE) clean @@ -44,10 +45,14 @@ MANDIR=`pwd`/debian/tmp/usr/share/man/man1/ \ SYSVDIR=`pwd`/debian/tmp/etc/init.d/ + install samlib `pwd`/debian/tmp/var/lib/mason/ + # Miscellaneous cleanup mv debian/tmp/etc/init.d/firewall debian/tmp/etc/init.d/mason rm debian/tmp/usr/share/doc/mason/COPYING chmod +x debian/tmp/var/lib/mason/regression-test + mv debian/tmp/var/lib/mason/baserules debian/tmp/etc/mason.baserules + ln -sf /etc/mason.baserules debian/tmp/var/lib/mason/baserules touch install-stamp @@ -69,6 +74,7 @@ # dh_installmanpages # dh_undocumented dh_installchangelogs + dh_installdebconf dh_strip dh_compress dh_fixperms --- mason-1.0.0.orig/debian/po/POTFILES.in +++ mason-1.0.0/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates --- mason-1.0.0.orig/debian/po/cs.po +++ mason-1.0.0/debian/po/cs.po @@ -0,0 +1,84 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: mason\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-06-24 11:35+0200\n" +"PO-Revision-Date: 2005-03-25 18:57+0100\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Description +#: ../templates:5 +msgid "Default action for new firewall rules:" +msgstr "Vchoz akce pro nov pravidla firewallu:" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"When Mason detects a new kind of traffic and creates a rule for it, what " +"action should the rule take?" +msgstr "" +"Kdy Mason rozpozn nov druh provozu a vytvo pro nj pravidlo, jak se m " +"pravidlo chovat?" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"The \"accept\" action will allow the packet through. \"Reject\" will stop " +"the packet with a rejection reply, while \"deny\" will drop the packet " +"silently." +msgstr "" +"Akce \"povolit\" paket propust, akce \"odmtnout\" paket zastav s odpovd " +"zamtnuto a akce \"zakzat\" paket potichu zahod." + +#. Type: select +#. Choices +#: ../templates:14 +msgid "accept, reject, deny" +msgstr "povolit, odmtnout, zakzat" + +#. Type: select +#. Description +#: ../templates:16 +msgid "Default action for rulesets:" +msgstr "Vchoz akce:" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"What should the default action be when a packet does not match any of the " +"rules set up by Mason?" +msgstr "" +"Kter akce se m vykonat, jestlie paket nevyhovuje dnmu z pravidel " +"nastavench v programu Mason?" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"Again, \"accept\" allows the packet through, \"reject\" drops the packet " +"with a reply, and \"deny\" silently drops the packet." +msgstr "" +"Analogicky: \"povolit\" paket propust, \"odmtnout\" paket zahod s " +"odpovd zamtnuto a \"zakzat\" paket zahod, ani by o tom dal protistran " +"vdt." --- mason-1.0.0.orig/debian/po/templates.pot +++ mason-1.0.0/debian/po/templates.pot @@ -0,0 +1,76 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-06-24 11:35+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Description +#: ../templates:5 +msgid "Default action for new firewall rules:" +msgstr "" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"When Mason detects a new kind of traffic and creates a rule for it, what " +"action should the rule take?" +msgstr "" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"The \"accept\" action will allow the packet through. \"Reject\" will stop " +"the packet with a rejection reply, while \"deny\" will drop the packet " +"silently." +msgstr "" + +#. Type: select +#. Choices +#: ../templates:14 +msgid "accept, reject, deny" +msgstr "" + +#. Type: select +#. Description +#: ../templates:16 +msgid "Default action for rulesets:" +msgstr "" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"What should the default action be when a packet does not match any of the " +"rules set up by Mason?" +msgstr "" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"Again, \"accept\" allows the packet through, \"reject\" drops the packet " +"with a reply, and \"deny\" silently drops the packet." +msgstr "" --- mason-1.0.0.orig/debian/po/fr.po +++ mason-1.0.0/debian/po/fr.po @@ -0,0 +1,83 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: mason\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-06-24 11:35+0200\n" +"PO-Revision-Date: 2005-03-25 08:27+0100\n" +"Last-Translator: Steve Petruzzello \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Description +#: ../templates:5 +msgid "Default action for new firewall rules:" +msgstr "Action par dfaut pour les nouvelles rgles du pare-feu:" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"When Mason detects a new kind of traffic and creates a rule for it, what " +"action should the rule take?" +msgstr "" +"Veuillez choisir l'action raliser quand Mason dtecte un nouveau type de " +"trafic et cre une rgle pour celui-ci." + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"The \"accept\" action will allow the packet through. \"Reject\" will stop " +"the packet with a rejection reply, while \"deny\" will drop the packet " +"silently." +msgstr "" +"accepter laisse passer le paquet. rejeter le rejette en mettant une " +"rponse de rejet, enfin refuser le rejette silencieusement." + +#. Type: select +#. Choices +#: ../templates:14 +msgid "accept, reject, deny" +msgstr "accepter, rejeter, refuser" + +#. Type: select +#. Description +#: ../templates:16 +msgid "Default action for rulesets:" +msgstr "Action par dfaut pour les jeux de rgles:" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"What should the default action be when a packet does not match any of the " +"rules set up by Mason?" +msgstr "" +"Veuillez choisir l'action par dfaut pour un paquet qui ne correspond " +"aucune rgle tablie par Mason." + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"Again, \"accept\" allows the packet through, \"reject\" drops the packet " +"with a reply, and \"deny\" silently drops the packet." +msgstr "" +"accepter laisse passer le paquet, rejeter le rejette en mettant une " +"rponse de rejet et refuser le rejette silencieusement." --- mason-1.0.0.orig/debian/po/nb.po +++ mason-1.0.0/debian/po/nb.po @@ -0,0 +1,73 @@ +# mason +# Copyright (C) 2001 Free Software Foundation, Inc. +# Hans Fredrik Nordhaug , 2005 +msgid "" +msgstr "" +"Project-Id-Version: mason\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-06-24 11:35+0200\n" +"PO-Revision-Date: 2005-03-29 23:08+0100\n" +"Last-Translator: Hans Fredrik Nordhaug \n" +"Language-Team: Norwegian Bokml \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Description +#: ../templates:5 +msgid "Default action for new firewall rules:" +msgstr "Standard handling for nye brannmurregler:" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"When Mason detects a new kind of traffic and creates a rule for it, what " +"action should the rule take?" +msgstr "" +"Nr Mason opdager en ny type trafikk og lager en regel for det, hvilken " +"handling skal regelen s ta?" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"The \"accept\" action will allow the packet through. \"Reject\" will stop " +"the packet with a rejection reply, while \"deny\" will drop the packet " +"silently." +msgstr "" +"tillat-handlingen vil tillate pakken. avvis vil stoppe pakken med et " +"avvisningssvar, mens nekt vil droppe pakken uten melde tilbake." + +#. Type: select +#. Choices +#: ../templates:14 +msgid "accept, reject, deny" +msgstr "tillat, avvis, nekt" + +#. Type: select +#. Description +#: ../templates:16 +msgid "Default action for rulesets:" +msgstr "Standard handling for regelsett:" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"What should the default action be when a packet does not match any of the " +"rules set up by Mason?" +msgstr "" +"Hva skal vre standard handling, nr en pakke ikke passer til noen av " +"reglene satt opp av Mason?" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"Again, \"accept\" allows the packet through, \"reject\" drops the packet " +"with a reply, and \"deny\" silently drops the packet." +msgstr "" +"Igjen, tillat-handlingen vil tillate pakken. avvis vil stoppe pakken med " +"et avvisningssvar, mens nekt vil droppe pakken uten melde tilbake." --- mason-1.0.0.orig/debian/po/pt_BR.po +++ mason-1.0.0/debian/po/pt_BR.po @@ -0,0 +1,85 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: mason 1.0.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-06-24 11:35+0200\n" +"PO-Revision-Date: 2005-03-25 05:09-0300\n" +"Last-Translator: Felipe Augusto van de Wiel (faw) \n" +"Language-Team: Portuguese/Brazil \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"pt_BR\n" + +#. Type: select +#. Description +#: ../templates:5 +msgid "Default action for new firewall rules:" +msgstr "Ao \"default\" para novas regras de firewall:" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"When Mason detects a new kind of traffic and creates a rule for it, what " +"action should the rule take?" +msgstr "" +"Quando Mason detectar um novo tipo de trfego e criar uma nova regra para " +"ele, qual ao a regra deve tomar?" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"The \"accept\" action will allow the packet through. \"Reject\" will stop " +"the packet with a rejection reply, while \"deny\" will drop the packet " +"silently." +msgstr "" +"A ao \"aceitar (accept)\" permitir que o pacote passe. \"Rejeitar (reject)" +"\" vai parar o pacote com uma resposta de rejeio, enquanto \"negar (deny)" +"\" vai descartar o pacote silenciosamente." + +#. Type: select +#. Choices +#: ../templates:14 +msgid "accept, reject, deny" +msgstr "aceitar, rejeitar, negar" + +#. Type: select +#. Description +#: ../templates:16 +msgid "Default action for rulesets:" +msgstr "Ao \"default\" para os conjuntos de regras:" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"What should the default action be when a packet does not match any of the " +"rules set up by Mason?" +msgstr "" +"Qual dever ser a ao \"default\" quando um pacote no se encaixar em " +"nenhum dos conjuntos de regras configurados no Mason?" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"Again, \"accept\" allows the packet through, \"reject\" drops the packet " +"with a reply, and \"deny\" silently drops the packet." +msgstr "" +"Novamente, \"aceitar (accept)\" permite que o pacote passe, \"rejeitar " +"(reject)\" descarta o pacote com uma resposta, e \"negar (deny)\" " +"silenciosamente descarta o pacote." --- mason-1.0.0.orig/debian/po/vi.po +++ mason-1.0.0/debian/po/vi.po @@ -0,0 +1,76 @@ +# Vietnamese Translation for mason. +# Copyright © 2005 Free Software Foundation, Inc. +# Clytie Siddall , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: mason 1.0.0-2.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-06-24 11:35+0200\n" +"PO-Revision-Date: 2005-06-10 13:20+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" + +#. Type: select +#. Description +#: ../templates:5 +msgid "Default action for new firewall rules:" +msgstr "Hành động mặc định cho các quy tắc bức tường lửa mới:" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"When Mason detects a new kind of traffic and creates a rule for it, what " +"action should the rule take?" +msgstr "" +"Khi trình Mason phát hiện một cách truyền mới, và tạo một quy tắc cho nó, " +"quy tắc ấy nên làm gì?" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"The \"accept\" action will allow the packet through. \"Reject\" will stop " +"the packet with a rejection reply, while \"deny\" will drop the packet " +"silently." +msgstr "" +"Hành động «chấp nhận» sẽ cho phép gói tin ấy đến qua. «Bác bỏ» sẽ ngừng gói " +"tin ấy, và trả lời như thế, và «Từ chối» sẽ bỏ gói tin này, không xuất thông " +"tin nào." + +#. Type: select +#. Choices +#: ../templates:14 +msgid "accept, reject, deny" +msgstr "chấp nhận, bác bỏ, từ chối" + +#. Type: select +#. Description +#: ../templates:16 +msgid "Default action for rulesets:" +msgstr "Hành động mặc định cho bộ quy tắc:" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"What should the default action be when a packet does not match any of the " +"rules set up by Mason?" +msgstr "" +"Khi một gói tin không khớp với quy tắc nào do trình Mason thiết lập, Mason " +"nên làm gì?" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"Again, \"accept\" allows the packet through, \"reject\" drops the packet " +"with a reply, and \"deny\" silently drops the packet." +msgstr "" +"Lần nữa, «chấp nhận» cho phép gói tin ấy đến qua, «Bác bỏ» bỏ gói tin ấy với " +"một trả lời, và «Từ chối» chỉ bỏ nó thôi." --- mason-1.0.0.orig/debian/po/da_DK.po +++ mason-1.0.0/debian/po/da_DK.po @@ -0,0 +1,92 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# Claus Hindsgaul , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: Mason debconf\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-06-24 11:35+0200\n" +"PO-Revision-Date: 2005-07-20 18:14+0200\n" +"Last-Translator: Claus Hindsgaul \n" +"Language-Team: Danish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.9.1\n" + +#. Type: select +#. Description +#: ../templates:5 +msgid "Default action for new firewall rules:" +msgstr "Standardhandling for nye brandmurs-regler:" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"When Mason detects a new kind of traffic and creates a rule for it, what " +"action should the rule take?" +msgstr "" +"Nr Mason opdager en nye type trafik og laver en regel for det, hvilken " +"handling skal reglen s resultere i?" + +#. Type: select +#. Description +#: ../templates:5 +msgid "" +"The \"accept\" action will allow the packet through. \"Reject\" will stop " +"the packet with a rejection reply, while \"deny\" will drop the packet " +"silently." +msgstr "" +"\"Acceptr\"-handlingen vil lade pakke passere. \"Afvis\" vil stoppe pakken " +"med et afvisningssvar, imens \"Ngt\" vil smide pakken vk uden at melde " +"tilbage." + +#. Type: select +#. Choices +#: ../templates:14 +msgid "accept, reject, deny" +msgstr "Acceptr, Afvis, Ngt" + +#. Type: select +#. Description +#: ../templates:16 +msgid "Default action for rulesets:" +msgstr "Standardhandling for regelst:" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"What should the default action be when a packet does not match any of the " +"rules set up by Mason?" +msgstr "" +"Hvad skal vre standardhandlingen for en pakke, der ikke passer til nogle af " +"de regler, Mason har sat op?" + +#. Type: select +#. Description +#: ../templates:16 +msgid "" +"Again, \"accept\" allows the packet through, \"reject\" drops the packet " +"with a reply, and \"deny\" silently drops the packet." +msgstr "" +"Igen vil \"Acceptr\"-handlingen lade pakken passere, \"Afvis\" vil stoppe " +"pakken med et afvisningssvar, mens \"Ngt\" vil smide pakken ud uden at " +"melde tilbage." + +#~ msgid "Which action should Mason use by default for new firewall rules?" +#~ msgstr "" +#~ "Hvilken handling skal Mason bruge som standard for nye firewall regler?" + +#~ msgid "Which action should be Mason's default action for rulesets?" +#~ msgstr "Hvilken handling skal vre Masons standard handling for regelst?" --- mason-1.0.0.orig/debian/config +++ mason-1.0.0/debian/config @@ -0,0 +1,9 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule + +db_input medium mason/newrulepolicy || true +db_go + +db_input medium mason/defaultpolicy || true +db_go --- mason-1.0.0.orig/debian/templates +++ mason-1.0.0/debian/templates @@ -0,0 +1,21 @@ +Template: mason/newrulepolicy +Type: select +_Choices: accept, reject, deny +Default: accept +_Description: Default action for new firewall rules: + When Mason detects a new kind of traffic and creates a rule for it, what + action should the rule take? + . + The "accept" action will allow the packet through. "Reject" will stop the + packet with a rejection reply, while "deny" will drop the packet silently. + +Template: mason/defaultpolicy +Type: select +_Choices: accept, reject, deny +Default: accept +_Description: Default action for rulesets: + What should the default action be when a packet does not match any of the + rules set up by Mason? + . + Again, "accept" allows the packet through, "reject" drops the packet with + a reply, and "deny" silently drops the packet. --- mason-1.0.0.orig/Makefile +++ mason-1.0.0/Makefile @@ -90,7 +90,7 @@ docs: sgml2html --imagebuttons mason.sgml \ && sgml2txt -f mason.sgml \ - && makedoc mason.txt mason.pdb 'The Mason HOWTO' +# && makedoc mason.txt mason.pdb 'The Mason HOWTO' regress: @if ./regression-test ; then \ --- mason-1.0.0.orig/mason +++ mason-1.0.0/mason @@ -146,7 +146,7 @@ echo "export ${ONEIF}ADDR=\"0/0\" ${CMNT} ${CMNT}Use this if you want to match any address on $ONEIF." fi if [ "$DYNIFMODE" != "SPECIFICIP" ]; then echo -n "$CMNT $CMNT" ; fi - echo "export ${ONEIF}ADDR=\"\`ifconfig $ONEIF 2>/dev/null | awk '/inet addr/{print substr($2,6)}'\`$SINGLEMACHSPEC\" ${CMNT} ${CMNT}Use this if you want to match a single address on $ONEIF." + echo "export ${ONEIF}ADDR=\"\`LC_ALL=C ifconfig $ONEIF 2>/dev/null | awk '/inet addr/{print substr(\$2,6)}'\`$SINGLEMACHSPEC\" ${CMNT} ${CMNT}Use this if you want to match a single address on $ONEIF." if [ "$DYNIFMODE" != "SMALLESTRANGE" ]; then echo -n "$CMNT $CMNT" ; fi #FIXME - what if the file is empty? echo "export ${ONEIF}ADDR=\"$(encompassingnetworkof $(cat ${MASONDIR}${ONEIF}-ips | sort | uniq) || logfail $LINENO return encompassing network for $ONEIF)\" ${CMNT} ${CMNT}Use this if you want to match all addresses seen so far on $ONEIF." --- mason-1.0.0.orig/mason-decide +++ mason-1.0.0/mason-decide @@ -176,7 +176,7 @@ echo $ENH "${WARN}$0: Can't create temp file.${NORM}" else echo "$CURRLINE" >$TMPFILE - $EDITOR $TMPFILE <&10 + eval $EDITOR $TMPFILE <&10 CURRLINE=`cat $TMPFILE` rm -f $TMPFILE || : fi ;; --- mason-1.0.0.orig/mason-gui-text +++ mason-1.0.0/mason-gui-text @@ -4,6 +4,12 @@ #See top of Mason script for copyright and licensing information. #Last YYYY code used: 0019, use 0020 next +if [ "$$"x != "`/bin/pidof -x /usr/bin/mason-gui-text`"x ] +then + echo Another instance of $0 is running. Exiting .. + exit 1 +fi + CKPTMGT=" mgt: Ground0" ; #ckpt $CKPTMGT MASONDIR=${MASONDIR:-"/var/lib/mason/"} --- mason-1.0.0.orig/masonlib +++ mason-1.0.0/masonlib @@ -26,10 +26,10 @@ # || logfail $LINENO masonlib: YYYY #### the_command_that_was_supposed_to_run #Last YYYY code used: 0149, use 0150 next -if [ -f /usr/lib/samlib/samlib ]; then - . /usr/lib/samlib/samlib +if [ -f /var/lib/mason/samlib ]; then + . /var/lib/mason/samlib else - echo "/usr/lib/samlib/samlib is missing - please get it from" >/dev/stderr + echo "/var/lib/mason/samlib is missing - please get it from" >/dev/stderr echo "http://www.stearns.org/samlib/" >/dev/stderr echo "Exiting." >/dev/stderr exit 1 @@ -301,7 +301,8 @@ BLUE="\033[1;34m" PINK="\033[1;35m" TURQUOISE="\033[1;36m" - NORM="\033[1;37m" +# NORM="\033[1;37m" + NORM="`tput sgr0 2`" BRIGHT="\033[1;39m" else ENH="" @@ -448,7 +449,7 @@ [Nn][Oo]|[Nn][Oo][Nn][Ee]) ECHOCOMMAND="none" ;; *) if [ -f /proc/net/ip_fwchains ]; then ECHOCOMMAND="ipchains" elif [ -f /proc/net/ip_input ]; then ECHOCOMMAND="ipfwadm" - elif [ -n "`lsmod | grep '^ip_tables '`" ]; then ECHOCOMMAND="iptables" + elif [ -f /proc/net/ip_tables_names ]; then ECHOCOMMAND="iptables" else ECHOCOMMAND="ipchains" #Set default here fi ;; esac @@ -478,7 +479,7 @@ [Ii][Pp][Tt][Aa][Bb][Ll][Ee][Ss]) DOCOMMAND="iptables" #FIXME - how to reliably test for kernel iptables support - #if [ -z "`lsmod | grep '^ip_tables '`" ]; then + #if -z "`lsmod | grep '^ip_tables '`" ]; then # wrap ${WARN}WARNING! User has requested iptables, but it appears to be unavailable. Proceeding, but this is not likely to work.${NORM} >/dev/stderr # sleep 10 #fi @@ -716,7 +717,7 @@ exit 0 fi - if [ ! -f /proc/net/ip_fwchains ] && [ ! -f /proc/net/ip_input ] && [ -z "`lsmod | grep '^ip_tables '`" ]; then + if [ ! -f /proc/net/ip_fwchains ] && [ ! -f /proc/net/ip_input ] && [ ! -f /proc/net/ip_tables_names ]; then wrap ${WARN}This kernel does not support ipchains, ipfwadm or iptables!${NORM} >/dev/stderr #DOCOMMAND="none" #Should we force to none? fi @@ -1229,7 +1230,7 @@ dorule f "$ONECHAIN" '' '' '' '' '' '' '' '' '' '' '' '' '' || logfail $LINENO masonlib: 0039/0041/0043/0048/0050/0052 done - if [ -f /proc/net/ip_fwchains ] || [ -n "`lsmod | grep '^ip_tables '`" ]; then + if [ -f /proc/net/ip_fwchains ] || [ -f /proc/net/ip_tables_names ]; then #Flush the nolog chains if they exist, create them if not. CKPTFLUSHFIREWALL=" flushfirewall: Create or flush nolog chains." ; #ckpt $CKPTFLUSHFIREWALL if [ -n "$NOLOGSUFFIX" ]; then @@ -1262,7 +1263,7 @@ else $SUDO $IPCHAINSBIN -N $CHAINNAME >/dev/null 2>/dev/null || logfail $LINENO masonlib: 0045/0071/0090 $IPCHAINSBIN -N $CHAINNAME fi - elif [ -n "`lsmod | grep '^ip_tables '`" ]; then + elif [ -f /proc/net/ip_tables_names ]; then #FIXME, check everywhere. #if iptables -L -n >/dev/null 2>/dev/null ; then echo iptables successful ; fi if $SUDO $IPTABLESBIN -L $CHAINNAME >/dev/null 2>/dev/null ; then #If chain exists @@ -1901,7 +1902,7 @@ done else echo -n No Blockedhost blocks... ; fi - if [ -f /proc/net/ip_fwchains ] || [ -n "`lsmod | grep '^ip_tables '`" ]; then + if [ -f /proc/net/ip_fwchains ] || [ -f /proc/net/ip_tables_names ]; then CKPTRUNFIREWALL=" runfirewall: ipchains/iptables spoofblocks" ; #ckpt $CKPTRUNFIREWALL if [ "$SPOOFBLOCKS" = "YES" ]; then echo -n Spoof blocks... @@ -1913,7 +1914,7 @@ #$IPCHAINSBIN -I input -j NoSpoof || logfail $LINENO masonlib: YYYY 0072 dorule i input '' '' '' '' '' '' '' '' '' "NoSpoof" '' '' '' || logfail $LINENO masonlib: YYYY 0072 #In iptables, we have to check for spoofing on the forward chain as well. - if [ -n "`lsmod | grep '^ip_tables '`" ]; then + if [ -f /proc/net/ip_tables_names ]; then dorule i forward '' '' '' '' '' '' '' '' '' "NoSpoof" '' '' '' || logfail $LINENO masonlib: YYYY 0137 fi --- mason-1.0.0.orig/masonrc +++ mason-1.0.0/masonrc @@ -154,6 +154,7 @@ #Use ANSI escape sequences to enhance display. Default YES. #Set this to no if your terminal doesn't support ANSI colors, etc. #USEANSI="YES" +USEANSI="NO" # The range of ports considered to be IRC server ports. # Default: 6666 to 6671 @@ -458,7 +459,7 @@ #Location of runtime changeable files and configuration. #Make sure you include the trailing slash. # Default: "/var/lib/mason/" -#MASONDIR="/var/lib/mason/" +MASONDIR="/var/lib/mason/" #This is the configuration file mason uses. It can be changed while #Mason is running as long as the SIGUSR1 signal is sent to Mason afterwards. --- mason-1.0.0.orig/samlib +++ mason-1.0.0/samlib @@ -617,7 +617,7 @@ requireutil ifconfig awk || exit 1 #Checks done on the following function: ipof () { #SUDO checked - ifconfig $1 2>/dev/null | awk '/inet addr/{print substr($2,6)}' + LC_ALL=C ifconfig $1 2>/dev/null | awk '/inet addr/{print substr($2,6)}' } #End of ipof if [ "$DOREGRESSIONTEST" = "YES" ]; then echo -n ipof...