From: Gerfried Fuchs Date: Wed, 17 Feb 2010 19:54:45 +0000 (+0100) Subject: Merge branch 'upstream' X-Git-Tag: debian/2.8-1~1 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=df1906dbe2c8ab01af53ec5fb6cb70230e076412;hp=b14abd9a9b018a23bfd8b89e8c1d9fd16077dab3;p=pkg%2Ft-prot.git Merge branch 'upstream' --- diff --git a/debian/Muttrc b/debian/Muttrc new file mode 100644 index 0000000..63584ba --- /dev/null +++ b/debian/Muttrc @@ -0,0 +1,14 @@ +set display_filter='t-prot -cmekatlS --max-lines=250 --bigq --pgp-move-vrf -Mmutt -L/etc/t-prot/footers -A/etc/t-prot/ads' +# set it to '' to turn it off by default + +# toggle TOFU protection with ESC-0 (off) and ESC-1 (on) +macro generic \e0 ":unset display_filter\n" "Turn TOFU protection off" +macro generic \e1 ":set display_filter='t-prot -cmekatlS --max-lines=250 --bigq --pgp-move-vrf -Mmutt -L/etc/t-prot/footers -A/etc/t-prot/ads'\n" "Turn TOFU protection on" + +# same in pager mode - ugly but what the hell... +macro pager \e0 ":unset display_filter; exec exit\n:exec display-message\n" "Turn TOFU protection off" +macro pager \e1 ":set display_filter='t-prot -cmekatlS --max-lines=250 --bigq --pgp-move-vrf -Mmutt -L/etc/t-prot/footers -A/etc/t-prot/ads'; exec exit\n:exec display-message\n" "Turn TOFU protection on" + +# highlight TOFU protection: +color body brightmagenta black "^\\[---.*" +color body green black "^#v[-+]" diff --git a/debian/NEWS.Debian b/debian/NEWS.Debian new file mode 100644 index 0000000..3f0f4ac --- /dev/null +++ b/debian/NEWS.Debian @@ -0,0 +1,12 @@ +t-prot (2.1-2) unstable; urgency=low + + * t-prot moved its muttrc snippet to /etc/t-prot/Muttrc. You might need to + check /etc/Muttrc.t-prot* for changes and incorporate them appropriately. + + * Furthermore t-prot now offers you two directories: /etc/t-prot/footers for + mailinglist footers and /etc/t-prot/ads for ad footers. Please notice + that many files in these directories have a serious impact on the speed + of t-prot and thus it is suggested to create by mail folder directories + and use mutt's folder-hook feature to use them. + + -- Gerfried Fuchs Mon, 26 Jun 2006 03:30:47 -0500 diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..da6556f --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,29 @@ +t-prot for Debian +================= + + This nice script was done by a dear friend of mine and is quite useful to +not lose temper when receiving mails that are TOFU (see the manual page for +an explanation of that abbreviation). I personally think it's really helpful. + + debconf asks for systemwide inclusion, you can always revert that change with +"dpkg-reconfigure t-prot" or simply remove the symlink /etc/Muttrc.d/t-prot.rc + + A user who doesn't like it can turn it off in his own ~/.muttrc file with this +line: + +set display_filter="" + + Of course if it isn't enabled in the systemwide file the users can source the +line in their .muttrc. :) + + There is option to enable it with slrn, too. The script is installed next to +the other slang macros in /usr/share/slrn/macros/t-prot.sl and can be sourced +from there. + + You can dump your list footers and ad footers into /etc/t-prot/footers and +/etc/t-prot/ads respectively, just be aware that many files in these +directories have a serious impact on the speed of t-prot. It is advices to use +folder-hook and enable the list footer and ad footers for the appropriate list +only instead. + + -- Gerfried Fuchs Mon, 26 Jun 2006 03:19:06 -0500 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..3556bbc --- /dev/null +++ b/debian/README.source @@ -0,0 +1,2 @@ +This package uses quilt for its patch management, see +/usr/share/doc/quilt/README.source if you are unfamiliar with it. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..de12623 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,794 @@ +t-prot (2.7.1-1) unstable; urgency=low + + * New upstream release. + * Added debconf translations: + - Russian by Yuri Kozlov (closes: #543189) + - Estonian by Mattias Põldaru + - Euskara (Basque) by Piarres Beobide (closes: #543637) + - Italian by Luca Monducci (closes: #544159) + * Bumped Standards-Version to 3.8.3. + * Fixed typo in copyright file noticed by lintian: s/explicitely/explicitly/ + * Switch debianization licensing to BSD style. + + -- Gerfried Fuchs Sat, 29 Aug 2009 11:36:28 +0200 + +t-prot (2.5-2) unstable; urgency=low + + * Added debconf translation: Swedish by Martin Ågren (closes: #492062) + * Add quilt to Build-Depends and the following patch: + - fix-manpage: Escape hyphens in manpage where they mean the minus sign + * Updated Standards-Version to 3.8.0: + - Added Homepage: source control field. + - Added README.source referencing quilt's. + * Added copyright informations to maintainer scripts, too. + * Fix spelling in package description: s/german/German/ + + -- Gerfried Fuchs Thu, 24 Jul 2008 12:50:55 +0200 + +t-prot (2.5-1) unstable; urgency=low + + * New upstream release with new option --groupware, not activated by + default. + * Updated year in debian/copyright. + * Updated debian-private footer. + + -- Gerfried Fuchs Wed, 19 Sep 2007 13:59:35 +0200 + +t-prot (2.4-2) unstable; urgency=low + + * Added debconf translations: Dutch by Bart Cornelis (closes: 419403), + Portuguese by Miguel Figueiredo (closes: #425081) + + -- Gerfried Fuchs Mon, 21 May 2007 16:48:54 +0200 + +t-prot (2.4-1) unstable; urgency=low + + * New upstream release which supports --max-lines for not scanning long + mails. + + -- Gerfried Fuchs Mon, 12 Mar 2007 09:01:50 +0100 + +t-prot (2.3-1) unstable; urgency=low + + * New upstream release, only documentation fixes. + + -- Gerfried Fuchs Mon, 08 Jan 2007 21:08:08 +0100 + +t-prot (2.2-1) unstable; urgency=low + + * New upstream release which catches GMX TOFU. + + -- Gerfried Fuchs Sun, 10 Dec 2006 16:55:50 +0100 + +t-prot (2.1.1-3) unstable; urgency=low + + * Added debconf translations: Català by Jordà Polo (closes: #381361) + * Updated copyright year. + * Applied little patch in manpage sent in by upstream author. + + -- Gerfried Fuchs Wed, 30 Aug 2006 11:26:50 -0500 + +t-prot (2.1.1-2) unstable; urgency=low + + * Improved handling of preserving configuration during only remove of the + package and reinstall. + * Added debconf translations: Czech by Miroslav Kure, Vietnamese by Clytie + Siddall. + + -- Gerfried Fuchs Fri, 04 Aug 2006 11:02:12 -0500 + +t-prot (2.1.1-1) unstable; urgency=low + + * New upstream release: Doku fixes. + * Fixed some typos in README.Debian noticed by Upstream. Thanks! :) + * Removed some cruft that was lying around from #344479 bugfix. + + -- Gerfried Fuchs Wed, 12 Jul 2006 06:01:43 -0500 + +t-prot (2.1-2) unstable; urgency=low + + * The "t-prot for the masses" release. + * After looking into /etc/Muttrc I reverted the background change (#339898) + from default to black to match with default mutt colouring. + * Move listfooter examples to /etc/t-prot/footers and add empty adfooter + directory /etc/t-prot/ads (closes: #374671) + * Enable hiding both list and ad footers in the Muttrc file. + * Move the mutt configuration snippet to /etc/t-prot/Muttrc and update the + symlink if already available. + * Add NEWS.Debian item about these new configuration setup. + * Updated README.Debian, too. + * Simplified the footers, having a generalized mailman footer. + * Added French debconf translation by Christian Perrier (closes: #375944) + + -- Gerfried Fuchs Thu, 06 Jul 2006 03:03:23 -0500 + +t-prot (2.1-1) unstable; urgency=low + + * New upstream release, which fixes: + - wrong logic when checking for mutt_ssloutstart in MS TOFU + (closes: #368162) + * Change background for highlighting to default (closes: #339898) + * Applied slang2 contrib patch (closes: #344479) + * Added debconf handling for enabling t-prot in mutt through /etc/Muttrc.d/. + * Bumped standards version to 3.7.2, no changes needed. + + -- Gerfried Fuchs Sun, 18 Jun 2006 16:49:11 -0500 + +t-prot (2.0.2-1) unstable; urgency=low + + * New upstream release: No changes to debian version 2.0.1-2, only the + changes were incorporated upstream. + + -- Gerfried Fuchs Fri, 07 Oct 2005 20:25:53 +0200 + +t-prot (2.0.1-2) unstable; urgency=medium + + * Locale string fix which rendered quite some features unusable. + + -- Gerfried Fuchs Tue, 06 Sep 2005 00:07:23 +0200 + +t-prot (2.0.1-1) unstable; urgency=low + + * New upstream release: doku update only. + * Bumped standards version, no changes required. + * Changed priority to optional, there is no need for it to be in extra. + * Fixed bashism in postinst. + + -- Gerfried Fuchs Mon, 05 Sep 2005 09:43:36 +0200 + +t-prot (2.0-1) unstable; urgency=low + + * New upstream release. + * Added README.examples to examples files, removed BUGS file from docs (not + there anymore). + * Removed the sarge transition note from NEWS.Debian, not needed anymore. + + -- Gerfried Fuchs Mon, 30 May 2005 16:31:29 +0200 + +t-prot (1.99.1+2.0-rc2-1) unstable; urgency=low + + * New upstream release: Bugfixes for inn and multipart handling. + + -- Gerfried Fuchs Fri, 29 Apr 2005 15:12:02 +0200 + +t-prot (1.99.1-1) unstable; urgency=low + + * New upstream release: slang macro fixes. + + -- Gerfried Fuchs Mon, 04 Apr 2005 17:04:58 +0200 + +t-prot (1.99-1) unstable; urgency=low + + * New upstream release. + + -- Gerfried Fuchs Fri, 25 Mar 2005 16:57:32 +0100 + +t-prot (1.98-1) unstable; urgency=low + + * New upstream release. + + -- Gerfried Fuchs Tue, 8 Mar 2005 13:04:54 +0100 + +t-prot (1.96-1) unstable; urgency=low + + * New upstream release: v2.0 pre-release, uses Locale::gettext from now on. + Added a note to NEWS.Debian.gz about this. + * debconf removed from Depends, forgotten. + * Change long description a bit. + + -- Gerfried Fuchs Tue, 15 Feb 2005 15:12:57 +0100 + +t-prot (1.49-1) unstable; urgency=medium + + * New upstream release, fixes problem with multiline From: headers. + + -- Gerfried Fuchs Tue, 08 Feb 2005 14:03:02 +0100 + +t-prot (1.48.1-2) unstable; urgency=medium + + * gpg 1.2.5 will be accepted into sarge, so this uses the 1.2.5 patch now. + Only some locale strings are different, no code. + + -- Gerfried Fuchs Wed, 02 Feb 2005 12:01:46 +0100 + +t-prot (1.48.1-1) unstable; urgency=low + + * New upstream release, fixes t-prot.sl (closes: #288888) + + -- Gerfried Fuchs Sun, 09 Jan 2005 12:15:18 +0100 + +t-prot (1.48-1) unstable; urgency=medium + + * New upstream release: Fixes off-by-one error in TOFU code. + + -- Gerfried Fuchs Mon, 3 Jan 2005 09:10:01 +0100 + +t-prot (1.47-2) unstable; urgency=medium + + * Removed debconf mutt handling: 10.7.4. says we must not modify + "conffile"s. Sorry for the bad response, weasel. + (closes: #284887, #284878) + * Added NEWS.Debian about the removal of the handling, so people are aware + of it (at least, if they read it....) + * Added hint in README.Debian about how to enable it. + + -- Gerfried Fuchs Thu, 09 Dec 2004 12:25:17 +0100 + +t-prot (1.47-1) unstable; urgency=low + + * New upstream release: Quite some fixes in the contrib/filter_innd.pl file + which is now included in the examples section. + * Some docu cleanup in debian/README.Debian too, not only upstream. + + -- Gerfried Fuchs Thu, 21 Oct 2004 18:26:22 +0200 + +t-prot (1.45-1) unstable; urgency=high + + * New upstream release: Doesn't hang with empty footer files anymore. + + -- Gerfried Fuchs Mon, 11 Oct 2004 09:44:53 +0200 + +t-prot (1.44-1) unstable; urgency=medium + + * New upstream release with important fix for not detected TOFU. + + -- Gerfried Fuchs Tue, 28 Sep 2004 13:53:45 +0200 + +t-prot (1.41.2-1) unstable; urgency=high + + * New upstream release: Fixes mutt 1.5.6 strings and has gnupg 1.2.4 support + back in, which is in sarge. No code change, just locale sync with the + sarge versions. + + -- Gerfried Fuchs Wed, 15 Sep 2004 17:02:39 +0200 + +t-prot (1.41-2) unstable; urgency=low + + * Apply the contrib/t-prot-r1.190-gpg125.diff patch, too -- sarge won't + release with gnupg 1.2.6. + + -- Gerfried Fuchs Sun, 29 Aug 2004 13:22:33 +0200 + +t-prot (1.41-1) unstable; urgency=low + + * New upstream release. + * Fixed a typo in the long description (closes: #268547) + * The contrib patches are not in the upstream source anymore -- no feedback + came in about those and thus they are removed. + + -- Gerfried Fuchs Sat, 28 Aug 2004 22:22:34 +0200 + +t-prot (1.39-1) unstable; urgency=low + + * New upstream release. + * Patch the t-prot file on install target. Requires Build-Depends on patch, + but reduces the diff. + + -- Gerfried Fuchs Mon, 2 Aug 2004 09:23:29 +0200 + +t-prot (1.38.4-1) unstable; urgency=low + + * New upstream release which fixes --pgp-move-vrf for current mutt. + * debian/rules: t-prot.sl moved to contrib. + + -- Gerfried Fuchs Mon, 26 Apr 2004 09:24:27 +0200 + +t-prot (1.38.2-1) unstable; urgency=low + + * New upstream release: Previous changelog entry wasn't really right: + --ftr is now --ftr-ad, --ftr-ml is new. + + -- Gerfried Fuchs Sun, 15 Feb 2004 20:00:43 +0000 + +t-prot (1.38.1-1) unstable; urgency=low + + * New upstream release: --ftr was split into --ftr-ad and --ftr-ml. + * adjtz patch was removed, so don't install it anymore. + + -- Gerfried Fuchs Sun, 01 Feb 2004 21:43:07 +0000 + +t-prot (1.37-1) unstable; urgency=low + + * New upstream release: Use t-prot-r1.172-mutt1551.diff now for unstable + (and testing, FWIW) has 1.5.5.1 already. + + -- Gerfried Fuchs Mon, 26 Jan 2004 09:43:26 +0000 + +t-prot (1.36-1) unstable; urgency=low + + * New upstream release. + * Updated to t-prot-r1.172-mutt1551.diff patch for that is what we have in + unstable now. Updated the Recommends in debian/control, too. + + -- Gerfried Fuchs Thu, 15 Jan 2004 16:59:58 +0000 + +t-prot (1.35.1-1) unstable; urgency=low + + * New upstream release. + * Applied t-prot-r1.168-mutt154.diff patch from contrib directory. + * Standard bumped to 3.6.1 (no changes needed). + * Happy christmas, everybody! + + -- Gerfried Fuchs Wed, 24 Dec 2003 11:42:57 +0000 + +t-prot (1.33.2-1) unstable; urgency=low + + * New upstream release: Only doku updates wrt/ t-prot.sl. + + -- Gerfried Fuchs Wed, 10 Sep 2003 12:06:21 +0000 + +t-prot (1.33-1) unstable; urgency=low + + * New upstream release: new option --mutt-ver needed because of locale + changed. Default changed to fit current testing/unstable mutt version. + + -- Gerfried Fuchs Thu, 14 Aug 2003 16:38:42 +0200 + +t-prot (1.31-1) unstable; urgency=low + + * New upstream release: Some SIGINT problems fixed. + + -- Gerfried Fuchs Mon, 11 Aug 2003 07:26:27 +0200 + +t-prot (1.30-1) unstable; urgency=low + + * New upstream release: locale handling fixed. + + -- Gerfried Fuchs Thu, 7 Aug 2003 12:12:08 +0200 + +t-prot (1.29-1) unstable; urgency=low + + * New upstream release: partly locale support through %ENV, email adress + verification inside pgp() fixed. + * Bump standards version to 3.6.0, no changes needed. + + -- Gerfried Fuchs Thu, 17 Jul 2003 14:57:36 +0200 + +t-prot (1.27-1) unstable; urgency=high + + * New upstream release: Fixes a DoS bug when used with -Mmutt. + * Includes a t-prot.sl script for the slrn NUA. Cool :) + Currently just install it to /usr/share/slrn/macros and offer NO support + to include it by default on startup -- this update must go out immediately + with minimal changes because of the DoS problem mentioned above. + * Bump standards version to 3.5.10, no changes needed. + + -- Gerfried Fuchs Thu, 03 Jul 2003 16:21:11 +0200 + +t-prot (1.26.1-1) unstable; urgency=low + + * New upstream release: new contrib patch for s/Getopt::Mixed/Getopt::Long/ + Please let us know if you applied the patch and prefer it. + + -- Gerfried Fuchs Tue, 10 Jun 2003 10:04:38 +0200 + +t-prot (1.26-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Mon, 5 May 2003 09:44:32 +0200 + +t-prot (1.25.1-1) unstable; urgency=low + + * New upstream release, new contrib patch. + * gzip -9 the adjtz patch. + * Added french debconf translation done by Christian Perrier (closes: #190850) + + -- Gerfried Fuchs Mon, 28 Apr 2003 10:04:07 +0200 + +t-prot (1.25-1) unstable; urgency=low + + * New upstream release. + + -- Gerfried Fuchs Wed, 23 Apr 2003 17:55:53 +0200 + +t-prot (1.24-1) unstable; urgency=low + + * New upstream release. + + -- Gerfried Fuchs Thu, 20 Mar 2003 10:09:08 +0100 + +t-prot (1.23-1) unstable; urgency=low + + * New upstream release, SIGINT works with --pgp-move correctly now. + + -- Gerfried Fuchs Mon, 10 Mar 2003 10:06:03 +0100 + +t-prot (1.22.1-1) unstable; urgency=low + + * New upstream release: Ignore SIGINT when used with -Mmutt (to display + message even when you hit ^C (like to interrupt PGP check)). + * New patch (in contrib doc directory): Changes displayed Date: header to + localtime. Please report if you like to have it applied by default. + * debian/rules: Changed to po-debconf, generalized the file while I'm + already in it. + + -- Gerfried Fuchs Sat, 08 Mar 2003 17:37:22 +0100 + +t-prot (1.21-1) unstable; urgency=low + + * New upstream release, performance/bugfix release. + * No patches anymore, so remove that contrib directory. + * debian/README.Debian: Removed paragraph about debug patch which isn't + available anymore for some time now... + + -- Gerfried Fuchs Thu, 06 Mar 2003 11:15:55 +0100 + +t-prot (1.20.1-1) unstable; urgency=low + + * New upstream release, just documentation changes. + + -- Gerfried Fuchs Tue, 04 Mar 2003 11:03:21 +0100 + +t-prot (1.20-1) unstable; urgency=low + + * New upstream release, almost made it this time. + + -- Gerfried Fuchs Wed, 26 Feb 2003 18:27:39 +0100 + +t-prot (1.19-1) unstable; urgency=low + + * New upstream release: "It takes two, baby..." + + -- Gerfried Fuchs Mon, 17 Feb 2003 16:31:20 +0100 + +t-prot (1.18-1) unstable; urgency=low + + * New upstream release, testing was never that far away :) + + -- Gerfried Fuchs Mon, 17 Feb 2003 08:53:52 +0100 + +t-prot (1.16-1) unstable; urgency=low + + * New upstream release. + + -- Gerfried Fuchs Fri, 14 Feb 2003 16:10:47 +0100 + +t-prot (1.15-1) unstable; urgency=low + + * New upstream release, --bigq fix for at the end of the text. + + -- Gerfried Fuchs Wed, 12 Feb 2003 10:06:43 +0100 + +t-prot (1.14-1) unstable; urgency=low + + * New upstream release: ad footers in signed messages had problems. + + -- Gerfried Fuchs Tue, 11 Feb 2003 15:07:57 +0100 + +t-prot (1.13-1) unstable; urgency=low + + * New upstream release: All but one contrib patches merged into + vanilla/removed, kammquoting fixes. + + -- Gerfried Fuchs Mon, 10 Feb 2003 09:57:33 +0100 + +t-prot (1.10-1) unstable; urgency=low + + * New upstream release: BAD signatures aren't moved anymore *oops*. + + -- Gerfried Fuchs Fri, 7 Feb 2003 16:25:15 +0100 + +t-prot (1.9-1) unstable; urgency=low + + * New upstream release: signature length check works again. + + -- Gerfried Fuchs Thu, 6 Feb 2003 19:19:31 +0100 + +t-prot (1.8-1) unstable; urgency=low + + * New upstream release: --help works again ;-) + + -- Gerfried Fuchs Wed, 05 Feb 2003 19:17:34 +0100 + +t-prot (1.7-1) unstable; urgency=low + + * New upstream release: New option: --spass to detect some false positives + generated with Spam-Assassin when writing into body. Not enabled by + default. + + -- Gerfried Fuchs Mon, 30 Dec 2002 14:13:03 +0100 + +t-prot (1.6.1-1) unstable; urgency=low + + * New upstream release: No code changes, just another contrib patch for + usage with sigtrace. + + -- Gerfried Fuchs Fri, 27 Dec 2002 13:17:10 +0100 + +t-prot (1.6-1) unstable; urgency=low + + * New upstream release. + + -- Gerfried Fuchs Thu, 12 Dec 2002 11:51:58 +0100 + +t-prot (1.5-1) unstable; urgency=low + + * New upstream release. + + -- Gerfried Fuchs Wed, 11 Dec 2002 08:44:46 +0100 + +t-prot (1.4-1) unstable; urgency=low + + * New upstream release. + + -- Gerfried Fuchs Mon, 09 Dec 2002 09:38:51 +0100 + +t-prot (1.3-1) unstable; urgency=low + + * New upstream release. + + -- Gerfried Fuchs Thu, 5 Dec 2002 10:14:28 +0100 + +t-prot (1.2-1) unstable; urgency=low + + * New upstream release: internationalization for --pgp-move-vrf added. + + -- Gerfried Fuchs Wed, 04 Dec 2002 09:31:48 +0100 + +t-prot (1.1-1) unstable; urgency=low + + * New upstream release: Added new option --pgp-move-vrf to ocnfiguration. + * Raised to policy version 3.5.8. + * Changed perl dependency to >= 5.6.0-16 for consistency with what dh_perl + would produce. + + -- Gerfried Fuchs Tue, 03 Dec 2002 10:51:30 +0100 + +t-prot (1.0-1) unstable; urgency=low + + * New upstream release: 1.0 now, no code changes to previous 0.94. + + -- Gerfried Fuchs Mon, 11 Nov 2002 09:50:27 +0100 + +t-prot (0.94-1) unstable; urgency=low + + * New upstream release: Really secuity fix, previous made it only a + race-condition. + * pgphack now in vanilla source. + * Big version jump for this is considered release candidate. Feature + request NOW or keep silent.... + + -- Gerfried Fuchs Wed, 06 Nov 2002 15:15:12 +0100 + +t-prot (0.70-1) unstable; urgency=medium + + * New upstream release, which fixes a security problem. + * Removed debian/prerm for it was a missing part of the policy 3.5.7 + transition. + * Added a new listfooter: spi-www + + -- Gerfried Fuchs Thu, 31 Oct 2002 16:29:05 +0100 + +t-prot (0.69-1) unstable; urgency=low + + * New upstream release. + * Reworked debian/rules a little bit. + + -- Gerfried Fuchs Mon, 21 Oct 2002 09:49:13 +0200 + +t-prot (0.68.2-1) unstable; urgency=low + + * New upstream release. + * debian/control: + - Updated to policy 3.5.7 (no changes needed). + - Moved mutt to Recommends again finally. + - Enhances: mutt: + * Fixed README.Debian file about location of the patches. + * Removed /usr/doc -> /usr/share/doc linking from postinst (left it in the + postrm to really get rid of it). + + -- Gerfried Fuchs Mon, 16 Sep 2002 11:12:12 +0200 + +t-prot (0.67.1-1) unstable; urgency=low + + * New upstream release + * Moved contrib stuff into it's own contrib directory. + + -- Gerfried Fuchs Tue, 13 Aug 2002 10:35:56 +0200 + +t-prot (0.67-1) unstable; urgency=low + + * New upstream release: New pgphack patch for the script. + Feedback on that patch is welcome, to help considering to enable it by + default. + + -- Gerfried Fuchs Wed, 10 Jul 2002 10:30:32 +0200 + +t-prot (0.66-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Fri, 28 Jun 2002 22:04:24 +0200 + +t-prot (0.63-1) unstable; urgency=low + + * New upstream release. + * Switched de-kammquote-option on in /etc/Muttrc.t-prot. + + -- Gerfried Fuchs Mon, 17 Jun 2002 12:41:25 +0200 + +t-prot (0.61.1-1) unstable; urgency=low + + * New upstream release with just some textual changes, no code change. + + -- Gerfried Fuchs Tue, 11 Jun 2002 08:49:00 +0200 + +t-prot (0.61-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Mon, 3 Jun 2002 08:10:05 +0200 + +t-prot (0.60-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Fri, 31 May 2002 08:31:43 +0200 + +t-prot (0.59-1) unstable; urgency=low + + * New upstream release + * Added spi-private footer. + + -- Gerfried Fuchs Mon, 6 May 2002 14:09:35 +0200 + +t-prot (0.58-4) unstable; urgency=high + + * Install the postrm file, too -- thank you THOUSAND TIMES for noticing, + Lazarus Long! (closes: #144946) + * urgency=high for no other changes were made and this a real problem that + should be fixed soon. + + -- Gerfried Fuchs Tue, 30 Apr 2002 20:19:19 +0200 + +t-prot (0.58-3) unstable; urgency=medium + + * Aplied another quick patch by upstream to the debug patch. + * Remove Muttrc-snippet on remove *and* purge, inspired by Bug #144946 + + -- Gerfried Fuchs Mon, 29 Apr 2002 12:27:40 +0200 + +t-prot (0.58-2) unstable; urgency=low + + * The "first read all mails you get before building a package" release. + * Applied patch supplied by upstream to boost performance for new --bigq + option. + + -- Gerfried Fuchs Wed, 24 Apr 2002 17:08:39 +0200 + +t-prot (0.58-1) unstable; urgency=low + + * New upstream release, added new option --bigq to /etc/Muttrc.t-prot file. + + -- Gerfried Fuchs Wed, 24 Apr 2002 16:51:31 +0200 + +t-prot (0.57-2) unstable; urgency=low + + * Fixed some typos in the README.Debian (thanks to Thomas Bliesener for + noticing it!) + + -- Gerfried Fuchs Wed, 24 Apr 2002 08:34:24 +0200 + +t-prot (0.57-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Mon, 22 Apr 2002 08:38:16 +0200 + +t-prot (0.55-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Mon, 15 Apr 2002 12:15:41 +0200 + +t-prot (0.54.1-2) unstable; urgency=low + + * Updated debian-at listfooter. + + -- Gerfried Fuchs Tue, 09 Apr 2002 13:03:54 +0200 + +t-prot (0.54.1-1) unstable; urgency=low + + * New upstream release + * Two more files for the doc directory. + + -- Gerfried Fuchs Fri, 29 Mar 2002 09:13:22 +0100 + +t-prot (0.54-1) unstable; urgency=low + + * New upstream release + * New README file added to the docs, cleaned up rules file a little bit + while I was already in it. + + -- Gerfried Fuchs Fri, 22 Mar 2002 08:19:55 +0100 + +t-prot (0.53-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Thu, 21 Mar 2002 08:33:29 +0100 + +t-prot (0.52-1) unstable; urgency=medium + + * New upstream release -- fixes a security hole (/tmp symlink attack) in the + debug patch. + + -- Gerfried Fuchs Wed, 20 Mar 2002 09:37:27 +0100 + +t-prot (0.51-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Tue, 19 Mar 2002 15:29:55 +0100 + +t-prot (0.50-1) unstable; urgency=low + + * New upstream release + * Cleaned up debian/rules a bit to not have to tweak it with each upload for + the debug patch. Debug patch has to be gzipped, btw. + + -- Gerfried Fuchs Tue, 19 Mar 2002 08:13:22 +0100 + +t-prot (0.49-1) unstable; urgency=low + + * New upstream release + * Updated watchfile to uscan version=2. + + -- Gerfried Fuchs Mon, 18 Mar 2002 17:56:24 +0100 + +t-prot (0.48-2) unstable; urgency=low + + * Moved the *correct* debug patch directly into the doc directory, not + examples (thanks, Jochen, for noticing...) + * Applied a small initialisation patch from Jochen. + + -- Gerfried Fuchs Fri, 15 Mar 2002 17:28:15 +0100 + +t-prot (0.48-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Fri, 15 Mar 2002 10:19:58 +0100 + +t-prot (0.47-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Thu, 14 Mar 2002 09:27:07 +0100 + +t-prot (0.46-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Tue, 12 Mar 2002 09:04:24 +0100 + +t-prot (0.45-1) unstable; urgency=low + + * New upstream release + * Had to change the debian/Muttrc.t-prot file to represent changes in + program. + + -- Gerfried Fuchs Mon, 11 Mar 2002 09:58:14 +0100 + +t-prot (0.43-1) unstable; urgency=low + + * New upstream release + * Added hilight color to the Muttrc.t-prot script. + + -- Gerfried Fuchs Tue, 05 Mar 2002 13:04:09 +0100 + +t-prot (0.42-1) unstable; urgency=low + + * New upstream release + + -- Gerfried Fuchs Tue, 26 Feb 2002 08:30:11 +0100 + +t-prot (0.40-1) unstable; urgency=low + + * New upstream release + * Initial upload to debian (closes: #134598) + * Moved mutt from Recommends: to Suggests: to make it into main (raise it + later when crypto is in main). + + -- Gerfried Fuchs Mon, 25 Feb 2002 09:55:29 +0100 diff --git a/debian/conffiles b/debian/conffiles new file mode 100644 index 0000000..4655b57 --- /dev/null +++ b/debian/conffiles @@ -0,0 +1,4 @@ +/etc/t-prot/Muttrc +/etc/t-prot/footers/debian- +/etc/t-prot/footers/debian-private +/etc/t-prot/footers/mailman diff --git a/debian/config b/debian/config new file mode 100644 index 0000000..987f311 --- /dev/null +++ b/debian/config @@ -0,0 +1,13 @@ +#!/bin/sh -e +# debconf config file for t-prot +# Copyright 2002-2009 by Gerfried Fuchs +# Licenced BSD style + +# Source debconf library. +. /usr/share/debconf/confmodule + +# make the /etc/Muttrc.d/ symlink? +db_input medium t-prot/muttrc.d || true +db_go + +exit 0 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..befe6d0 --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: t-prot +Section: mail +Priority: optional +Maintainer: Gerfried Fuchs +Build-Depends: quilt +Build-Depends-Indep: po-debconf, patch +Standards-Version: 3.8.3 +Homepage: http://www.escape.de/~tolot/mutt/ + +Package: t-prot +Architecture: all +Depends: debconf (>= 0.5) | debconf-2.0, perl (>= 5.6.0-16), libgetopt-mixed-perl, liblocale-gettext-perl +Recommends: mutt (>= 1.5.5.1) +Enhances: mutt, slrn, inn2 +Suggests: mail-transport-agent +Description: display filter for RFC822 messages + This program is a filter which shall improve the readability for messages + (email and posts) by *hiding* some annoying parts, e.g. mailing list footers, + signatures and TOFU as well as squeezing sequences of blank lines or + punctuation. + . + TOFU is an acronym that stands for "Text oben, Fullquote unten" (German + language) which means the style of sadly so many people that just leave all + the quotes in a reply and add some own lines above. This acronym is what gave + the script its name - TOFU Protection. + . + It currently offers hints how to include it within mutt, slrn or inn2. It + should be possible to do similars with other programs that allow to have a + message run through a filter before it's displayed. If you use such a program + we'd be interested if you could let us know of your setup. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ca89e37 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,49 @@ +This package was initially debianized by Gerfried Fuchs on +Tue, 29 Jan 2002 15:55:21 +0100. + +The debianization is licensed under BSD style. +See /usr/share/common-licenses/BSD. + +It was downloaded from: +======================= + + +Upstream Author: +================ + Jochen Striepe + +Copyright: +========== + All of the documentation and software included in the t-prot releases + is copyrighted by Jochen Striepe (except when explicitly stated other‐ + wise). + + Copyright (C) 2001-2009 Jochen Striepe. All rights reserved. + + Redistribution and use, with or without modification, are permitted + provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. All advertising materials mentioning features or use of this soft- + ware must display the following acknowledgement: + + This product includes software developed by Jochen Striepe and oth- + ers. + + 3. Neither the name of the author nor the names of any contributors may + be used to endorse or promote products derived from this software with- + out specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PUR- + POSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSI- + NESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/footers/debian- b/debian/footers/debian- new file mode 100644 index 0000000..3150656 --- /dev/null +++ b/debian/footers/debian- @@ -0,0 +1,3 @@ +-- +To UNSUBSCRIBE, email to debian- +with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org diff --git a/debian/footers/debian-private b/debian/footers/debian-private new file mode 100644 index 0000000..d855d1e --- /dev/null +++ b/debian/footers/debian-private @@ -0,0 +1,7 @@ +-- +Please respect the privacy of this mailing list. Some posts may be declassified +3 years after posting as per http://www.debian.org/vote/2005/vote_002 + +Archive: file://master.debian.org/~debian/archive/debian-private/ + +To UNSUBSCRIBE, use the web form at . diff --git a/debian/footers/mailman b/debian/footers/mailman new file mode 100644 index 0000000..2c08d68 --- /dev/null +++ b/debian/footers/mailman @@ -0,0 +1,4 @@ +_______________________________________________ + + +http diff --git a/debian/patches/01_fix-manpage b/debian/patches/01_fix-manpage new file mode 100644 index 0000000..2bcc7bc --- /dev/null +++ b/debian/patches/01_fix-manpage @@ -0,0 +1,180 @@ +Author: Gerfried Fuchs vim:ft=diff: +Description: Escape hyphens in manpage where they mean the minus sign + +Index: t-prot-2.7/t-prot.1 +=================================================================== +--- t-prot-2.7.orig/t-prot.1 ++++ t-prot-2.7/t-prot.1 +@@ -4,7 +4,7 @@ + .SH NAME + t-prot \- TOFU Protection - Display Filter for RFC 2822 messages + .SH SYNOPSIS +-.BI "t-prot [" OPTIONS "]..." ++.BI "t\-prot [" OPTIONS "]..." + .SH DESCRIPTION + .PP + This program is a filter to improve the readability of +@@ -22,19 +22,19 @@ is the reason for not using standard CPA + messages). + .PP + For easy usage, you can download a file to be included in your ~/.muttrc: +-.I http://www.escape.de/users/tolot/mutt/t-prot/muttrc.t-prot ++.I http://www.escape.de/users/tolot/mutt/t\-prot/muttrc.t\-prot + .br + And here is an example S-Lang macro to use t-prot from within slrn: +-.I http://www.escape.de/users/tolot/mutt/t-prot/t-prot.sl ++.I http://www.escape.de/users/tolot/mutt/t\-prot/t\-prot.sl + .SH OPTIONS + .TP + .BR "\-A" =DIRECTORY + "ad footer directory": + Defines the directory which contains the advertisement list footers (one + footer per file) which are to be tested when removing them with options +-.B -a ++.B \-a + or +-.BR --ftr-ad . ++.BR \-\-ftr\-ad . + .br + This option is also needed if you do not want signature lengths to be + counted wrong or fullquotes get undetected when an ad footer is +@@ -53,12 +53,12 @@ footer file found in the directory speci + (which is mandatory for this option). The comparison is done by perl's + .B index() + function (please try +-.I perldoc -f index ++.I perldoc \-f index + for details). + .sp + .IR NOTE : + This option is not needed if +-.B --ftr-ad ++.B \-\-ftr\-ad + is specified. + .TP + .BR "\-\-bigq" [=n[,x]] +@@ -71,7 +71,7 @@ Input consists just of the message's bod + lines. + .IP + .IR NOTE : +-This does not work with --pgp-short, and multipart messages will not ++This does not work with \-\-pgp\-short, and multipart messages will not + be detected due to missing headers. + .TP + .B "\-c" +@@ -137,7 +137,7 @@ With this option enabled t-prot makes fo + be helpful with broken list servers, or even if your email provider munges + the bodies of your messages. + .br +-Works similar to --ftr-ad, just that it is intended for mailing list footers. ++Works similar to \-\-ftr\-ad, just that it is intended for mailing list footers. + .sp + .IR NOTE : + This requires a directory with footer files to be given with option +@@ -153,7 +153,7 @@ Displays a short help text with a summar + .TP + .BR "\-i" =FILE + "input file": +-Defines a file for input; the default input is from '-' i.e. STDIN. ++Defines a file for input; the default input is from '\-' i.e. STDIN. + .TP + .B "\-k" + "anti Kammquote": +@@ -287,7 +287,7 @@ use of it when called from within your M + Hides TOFU as given by some Microsoft mailers. (You all surely know these + fullquotes beginning with + .br +-"----- Original Message -----" ++"\-\-\-\-\- Original Message \-\-\-\-\-" + .br + and some header lines...) + .TP +@@ -332,7 +332,7 @@ As an example for usage with + put this line into your alias file and invoke + .BR newaliases : + .sp +-notofu: |"/usr/local/bin/t-prot -mt -p=user@mydomain" ++notofu: |"/usr/local/bin/t\-prot \-mt \-p=user@mydomain" + .sp + This will bounce messages for if any TOFU is detected + inside the message, and deliver it to otherwise. +@@ -387,7 +387,7 @@ than 4. Consider this old-fashioned, but + conformance.) + .sp + .IR NOTE : +-The line containing "-- " ist not counted when testing for an overlong ++The line containing "\-\- " ist not counted when testing for an overlong + signature, but it is included when displaying how many lines were deleted. + .TP + .B "\-s" +@@ -439,7 +439,7 @@ The environment variables + and + .I LANG + are read and respected when interpreting output by mutt or gnupg +-(unless they are overruled by the --locale option). T-prot's own ++(unless they are overruled by the \-\-locale option). T-prot's own + output is English regardless of any locale setting. + .SH EXIT STATUS + On program exit, t-prot uses exit codes from +@@ -483,7 +483,7 @@ Please point these people to the page + There are several ways to fine-tune t-prot's performance: + .PP + Some command line options are quite grave a performance hit -- do not +-use -k and especially --ms-smart if you are content without them. ++use \-k and especially \-\-ms\-smart if you are content without them. + .PP + Checking for special footers is very costly as well. Put as few footer + files as absolutely needed in any footer directory. +@@ -513,7 +513,7 @@ your line is empty you match uncondition + .PP + .TP + .IR Q : +-I use the options -l and -L to supress mailing list footers when ++I use the options \-l and \-L to supress mailing list footers when + displaying messages in + .BR mutt (1). + This does work sometimes, but sometimes it does not: the footer is not +@@ -524,7 +524,7 @@ detected as too long (which they aren't) + This might occur if the message is badly encoded, so mutt cannot resolve + all encoded characters, e.g. if you have an encoded message on a mailing + list, and majordomo appends a mailing list footer in a different encoding +-(or even plain us-ascii). "-- " simply does not match "--=20". ++(or even plain us-ascii). "\-\- " simply does not match "\-\-=20". + .br + Another problem are non-us-ascii characters. Just avoid them, and + everything should work fine. +@@ -544,13 +544,13 @@ instruction: + .sp + #v+ + .br +-This line is protected from being filtered by t-prot !!!!!!! ++This line is protected from being filtered by t\-prot !!!!!!! + .br +-#v- ++#v\- + .br + Text coming now is not. + .SH AUTHOR +-Written by Jochen Striepe . ++Written by Jochen Striepe . + .SH COPYRIGHT + All of the documentation and software included in the t-prot releases + is copyrighted by Jochen Striepe (except when explicitly stated otherwise). +@@ -629,7 +629,7 @@ t-prot team with some useful info, pleas + .I display_filter + facility, just set display_filter to something like + .IP +-"tee ~/foobar | t-prot " ++"tee ~/foobar | t\-prot " + .PP + and include ~/foobar in the bug report -- this way we might reproduce + the bug much easier if you are using a different environment than we do. +@@ -639,7 +639,7 @@ with, what perl version t-prot runs on y + be important to enable us reproducing the bug. + .PP + Send your bug report to +-.IR . ++.IR . + Thank you. + .SH TODO + Fix bugs (see the diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..6b5e0b1 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +01_fix-manpage 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/ca.po b/debian/po/ca.po new file mode 100644 index 0000000..4461783 --- /dev/null +++ b/debian/po/ca.po @@ -0,0 +1,42 @@ +# +# Catalan translation for t-prot package. +# Copyright (C) 2006 Gerfried Fuchs. +# This file is distributed under the same license as the t-prot package. +# +# Jordà Polo , 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: 2.1.1\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2006-08-03 23:10+0200\n" +"Last-Translator: Jordà Polo \n" +"Language-Team: Català \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 "Do you want to enable t-prot system wide for mutt?" +msgstr "Voleu habilitar t-prot per a mutt a tot el sistema?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the " +"script from mutt you have to enable it. You can do this either by creating " +"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done " +"automatically for you), or let the users decide to add a \"source\" line for " +"it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question " +"the systemwide usage will be enabled." +msgstr "" +"El paquet t-prot proporciona un fitxer de configuració /etc/Muttrc.t-prot. " +"Per utilitzar l'script per a mutt, l'haureu d'activar. Podeu fer-ho ja sigui " +"creant un enllaç simbòlic a /etc/Muttrc.d/ que afectarà tot el sistema (i " +"que tanmateix por fer-se automàticament), o deixant que els usuaris " +"decideixin afegir una línia \"source\" al seu ~/.muttrc o ~/.mutt/muttrc. Si " +"accepteu aquesta pregunta s'habilitarà el seu ús a nivell de sistema." diff --git a/debian/po/cs.po b/debian/po/cs.po new file mode 100644 index 0000000..794ce66 --- /dev/null +++ b/debian/po/cs.po @@ -0,0 +1,41 @@ +# Czech translation of t-prot debconf messages. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the t-prot package. +# Miroslav Kure , 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: t-prot\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2006-07-30 17:41+0200\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \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 "Do you want to enable t-prot system wide for mutt?" +msgstr "Chcete celosystémově povolit v muttu podporu t-protu?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the " +"script from mutt you have to enable it. You can do this either by creating " +"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done " +"automatically for you), or let the users decide to add a \"source\" line for " +"it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question " +"the systemwide usage will be enabled." +msgstr "" +"Balík t-prot poskytuje konfigurační soubor /etc/Muttrc.t-prot. Abyste mohli " +"t-prot využívat přímo z muttu, musíte jej povolit. To můžete provést buď pro " +"celý systém tak, že v adresáři /etc/Muttrc.d/ vytvoříte symbolický odkaz na " +"tento soubor, nebo můžete nechat uživatele, aby se sami rozhodli, zda si do " +"svého ~/.muttrc nebo ~/.mutt/muttrc přidají přísluÅ¡ný řádek \"source\". " +"Odpovíte-li na tuto otázku kladně, povolí se spojení muttu s t-protem " +"automaticky pro vÅ¡echny uživatele systému." diff --git a/debian/po/de.po b/debian/po/de.po new file mode 100644 index 0000000..08064bc --- /dev/null +++ b/debian/po/de.po @@ -0,0 +1,41 @@ +# debconf template file for the t-prot package. +# Copyright (C) 2006 Gerfried Fuchs +# This file is distributed under the same license as the t-prot package. +# Gerfried Fuchs , 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: t-prot 2.0.2\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2006-03-27 12:45+0200\n" +"Last-Translator: Gerfried Fuchs \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Do you want to enable t-prot system wide for mutt?" +msgstr "Wollen Sie t-prot Systemweit in mutt aktivieren?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the " +"script from mutt you have to enable it. You can do this either by creating " +"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done " +"automatically for you), or let the users decide to add a \"source\" line for " +"it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question " +"the systemwide usage will be enabled." +msgstr "" +"Das t-prot-Paket bietet eine Konfigurationdatei /etc/Muttrc.t-prot an -- um " +"das Skript in mutt zu verwenden, muss es aktiviert werden. Dies kann " +"entweder durch das Erstellen eines symbolischen Links in /etc/Muttrc.d/ " +"passieren (bzw. kann dies automatisch für Sie durchgeführt werden), oder man " +"lässt die Benutzer entscheiden, sich eine »source«-Zeile in ihre ~/.muttrc " +"bzw. ~/.mutt/muttrc hinzuzufügen. Wenn Sie dieser Frage zustimmen, wird die " +"systemweite Verwendung aktiviert." diff --git a/debian/po/et.po b/debian/po/et.po new file mode 100644 index 0000000..d377ccd --- /dev/null +++ b/debian/po/et.po @@ -0,0 +1,30 @@ +# tprot Estonian translation +# Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the t-prot package. +# Mattias Põldaru , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: t-prot\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2009-08-23 11:57+0300\n" +"Last-Translator: Mattias Põldaru \n" +"Language-Team: Gnome Estonian Translation Team \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Estonian\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Do you want to enable t-prot system wide for mutt?" +msgstr "Kas rakendada t-prot mutt-i seadistus kogu süsteemis?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the script from mutt you have to enable it. You can do this either by creating a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done automatically for you), or let the users decide to add a \"source\" line for it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question the systemwide usage will be enabled." +msgstr "T-prot pakk sisaldab seadistusfaili /etc/Muttrc.t-prot -- et seda skripti mutt-iga kasutada, tuleb see lubada. Selleks võib kogu süsteemis kasutamiseks luua sümbolviida kataloogi /etc/Muttrc.d/ (või lasta selle automaatselt ära teha), või lasta kasutajatel lisada \"source\" rida nende ~/.muttrc või ~/.mutt/muttrc faili. Kui sa vastad sellele küsimusele jaatavalt, lülitatakse sisse kogu süsteemis kasutamine." + diff --git a/debian/po/eu.po b/debian/po/eu.po new file mode 100644 index 0000000..e8a6e71 --- /dev/null +++ b/debian/po/eu.po @@ -0,0 +1,44 @@ +# translation of templates.po to Euskara +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the t-prot package. +# +# Piarres Beobide , 2009. +msgid "" +msgstr "" +"Project-Id-Version: templates\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2009-08-26 10:56+0200\n" +"Last-Translator: Piarres Beobide \n" +"Language-Team: Euskara \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Do you want to enable t-prot system wide for mutt?" +msgstr "Mutt-entzat t-prot sistema osoan gaitu nahi al duzu?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the " +"script from mutt you have to enable it. You can do this either by creating " +"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done " +"automatically for you), or let the users decide to add a \"source\" line for " +"it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question " +"the systemwide usage will be enabled." +msgstr "" +"T-prot paketeak /etc/Muttrc.t-prot konfigurazio fitxategia dakar mutt-ekin " +"gaitu nahi baduzu erabiltzeko. Hau bi modutan egin dezakezu edo " +"/etc/Muttrc.d/-en sistema osorako lotura sinboliko bat sortuaz " +"(bestela hau automatikoki egin daiteke zuretzat), edo erabiltzaileei " +"beren ~/.muttrc or ~/.mutt/muttrc fitxategian \"source\" lerroa gehitzen " +"utziaz. Galdera hau onartzen baduzu sistema-osorako modua gaituko " +"da." + diff --git a/debian/po/fr.po b/debian/po/fr.po new file mode 100644 index 0000000..86bd60f --- /dev/null +++ b/debian/po/fr.po @@ -0,0 +1,40 @@ +# This file is distributed under the same license as the t-prot package. +# +# Christian Perrier , 2006. +msgid "" +msgstr "" +"Project-Id-Version: t-prot\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2006-06-28 01:10+0200\n" +"Last-Translator: Christian Perrier \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.2\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Do you want to enable t-prot system wide for mutt?" +msgstr "Faut-il activer t-prot pour l'ensemble des utilisateurs de mutt ?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the " +"script from mutt you have to enable it. You can do this either by creating " +"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done " +"automatically for you), or let the users decide to add a \"source\" line for " +"it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question " +"the systemwide usage will be enabled." +msgstr "" +"Le paquet t-prot fournit un fichier de configuration /etc/Muttrc.t-prot. " +"L'utilisation de t-prot avec mutt nécessite une activation spéficique qui " +"peut se faire en choisissant cette option. Elle créera un lien symbolique " +"dans /etc/Muttrc.d afin d'offrir cette possibilité à tous les utilisateurs " +"du système. Alternativement, si vous ne choisissez pas cette option, chaque " +"utilisateur pourra ajouter une instruction « source » vers ce fichier dans " +"son fichier ~/.muttrc ou ~/.mutt/muttrc." diff --git a/debian/po/it.po b/debian/po/it.po new file mode 100644 index 0000000..ec23350 --- /dev/null +++ b/debian/po/it.po @@ -0,0 +1,36 @@ +msgid "" +msgstr "" +"Project-Id-Version: t-prot t-prot debconf italian\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2009-08-23 14:51+0200\n" +"Last-Translator: Luca Monducci \n" +"Language-Team: Italian \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 "Do you want to enable t-prot system wide for mutt?" +msgstr "Attivare t-prot per tutto il sistema?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the " +"script from mutt you have to enable it. You can do this either by creating " +"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done " +"automatically for you), or let the users decide to add a \"source\" line for " +"it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question " +"the systemwide usage will be enabled." +msgstr "" +"Il pacchetto t-prot fornisce un file di configurazione /etc/Muttrc.t-prot ma " +"per usare tale script da mutt è necessario abilitarlo. Per abilitarlo è " +"possibile creare un collegamento simbolico in /etc/Muttrc.d/ in modo da " +"poterlo abilitare per tutto il sistema (questo può essere fatto " +"automaticamente) oppure lasciare agli utenti la decisione di aggiungere una " +"riga \"source\" nei loro file ~/.muttrc o ~/.mutt/muttrc. Accettando, verrà " +"abilitato l'uso per tutto il sistema." diff --git a/debian/po/nl.po b/debian/po/nl.po new file mode 100644 index 0000000..dcbb60f --- /dev/null +++ b/debian/po/nl.po @@ -0,0 +1,30 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the t-prot package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: t-prot\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2007-03-15 18:01+0100\n" +"Last-Translator: Bart Cornelis \n" +"Language-Team: debian-l10n-dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Dutch\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Do you want to enable t-prot system wide for mutt?" +msgstr "Wilt u t-prot gebruik in mutt systeemwijd activeren?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the script from mutt you have to enable it. You can do this either by creating a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done automatically for you), or let the users decide to add a \"source\" line for it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question the systemwide usage will be enabled." +msgstr "Het 't-prot'-pakket voorziet het configuratiebestand /etc/Muttrc.t-prot. Om dit script vanuit mutt te kunnen gebruiken dient het geactiveerd te worden. Dit kan systeemwijd door een symbolische koppeling aan te maken in /etc/Muttrd.d/ (dit kan automatisch gedaan worden), of door dit aan de gebruikers over te laten, deze dienen dan een 'source'-regel voor dit bestand toe te voegen in hun ~/.muttrc of ~/.mutt/muttrc. Als u hier positief antwoord wordt gebruik van dit script systeemwijd geactiveerd." + diff --git a/debian/po/pt.po b/debian/po/pt.po new file mode 100644 index 0000000..c6a1c0d --- /dev/null +++ b/debian/po/pt.po @@ -0,0 +1,42 @@ +# Portuguese translations for t-prot package. +# Copyright (C) 2007 Miguel Figueiredo +# This file is distributed under the same license as the t-prot package. +# Miguel Figueiredo , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: t-prot 2.4-1\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2007-05-17 22:17+0100\n" +"Last-Translator: Miguel Figueiredo \n" +"Language-Team: Portuguese \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" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Do you want to enable t-prot system wide for mutt?" +msgstr "Deseja habilitar o t-prot para todo o sistema para o mutt?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the " +"script from mutt you have to enable it. You can do this either by creating " +"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done " +"automatically for you), or let the users decide to add a \"source\" line for " +"it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question " +"the systemwide usage will be enabled." +msgstr "" +"O pacote t-prot disponibiliza um ficheiro de configuração /etc/Muttrc.t-prot " +"-- para utilizar o script a partir do mutt você tem de o habilitar. Você " +"pode fazer isto criando um link simbólico em /etc/Muttrc.d/ para ser " +"utilizado em todo o sistema (em vez disso, isto pode ser feito " +"automaticamente para si), ou deixar os utilizadores decidir acrescentar uma " +"linha \"source\" para isso, no seu ~/.muttrc ou em ~/.mutt/muttrc. Se " +"aceitar esta questão será habilitada a utilização para todo o sistema." diff --git a/debian/po/ru.po b/debian/po/ru.po new file mode 100644 index 0000000..8538fa9 --- /dev/null +++ b/debian/po/ru.po @@ -0,0 +1,44 @@ +# translation of ru.po to Russian +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the t-prot package. +# +# Yuri Kozlov , 2009. +msgid "" +msgstr "" +"Project-Id-Version: t-prot 2.5-2\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2009-08-12 20:51+0400\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\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" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Do you want to enable t-prot system wide for mutt?" +msgstr "Активировать t-prot для всех пользователей mutt?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the " +"script from mutt you have to enable it. You can do this either by creating " +"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done " +"automatically for you), or let the users decide to add a \"source\" line for " +"it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question " +"the systemwide usage will be enabled." +msgstr "" +"В пакете t-prot содержится файл настройки /etc/Muttrc.t-prot -- чтобы " +"использовать сценарий из mutt, вы должны его включить. Это можно " +"сделать создав символическую ссылку в /etc/Muttrc.d/ для общесистемного " +"использования (может быть сделано автоматически), или позволить " +"пользователям самим решить, добавлять ли строку " +"\"source\" в свои ~/.muttrc или ~/.mutt/muttrc. При утвердительном " +"ответе будет включена общесистемная настройка." + diff --git a/debian/po/sv.po b/debian/po/sv.po new file mode 100644 index 0000000..ac2f1c2 --- /dev/null +++ b/debian/po/sv.po @@ -0,0 +1,45 @@ +# translation of t-prot_2.5-1_sv.po to Swedish +# t-prot. +# Copyright (C) 2008 +# This file is distributed under the same license as the t-prot package. +# +# Martin Ågren , 2008. +msgid "" +msgstr "" +"Project-Id-Version: t-prot_2.5-1_sv\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2008-07-23 17:41+0200\n" +"Last-Translator: Martin Ågren \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Do you want to enable t-prot system wide for mutt?" +msgstr "Vill du aktivera t-prot systemtäckande för mutt?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the " +"script from mutt you have to enable it. You can do this either by creating " +"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done " +"automatically for you), or let the users decide to add a \"source\" line for " +"it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question " +"the systemwide usage will be enabled." +msgstr "" +"t-prot-paketet tillhandahÃ¥ller en konfigurationsfil /etc/Muttrc.t-prot -- för " +"att använda skriptet frÃ¥n mutt mÃ¥ste du aktivera det. Du kan göra detta " +"antingen genom att skapa en symbolisk länk i /etc/Muttrc.d/ för " +"systemtäckande användande (detta kan göras " +"automatiskt för dig), eller lÃ¥t användarna besluta att lägga till en \"source\"-rad för " +"det i deras ~/.muttrc or ~/.mutt/muttrc. Om du svarar ja pÃ¥ denna frÃ¥ga " +"kommer det systemtäckande användandet att aktiveras." + diff --git a/debian/po/templates.pot b/debian/po/templates.pot new file mode 100644 index 0000000..fa59a70 --- /dev/null +++ b/debian/po/templates.pot @@ -0,0 +1,35 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the t-prot package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: t-prot VERSION\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\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: boolean +#. Description +#: ../templates:1001 +msgid "Do you want to enable t-prot system wide for mutt?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the " +"script from mutt you have to enable it. You can do this either by creating " +"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done " +"automatically for you), or let the users decide to add a \"source\" line for " +"it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question " +"the systemwide usage will be enabled." +msgstr "" diff --git a/debian/po/vi.po b/debian/po/vi.po new file mode 100644 index 0000000..cff9cc3 --- /dev/null +++ b/debian/po/vi.po @@ -0,0 +1,42 @@ +# Vietnamese translation for t-prot. +# Copyright © 2006 Free Software Foundation, Inc. +# Clytie Siddall , 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: t-prot_2.1.1-1\n" +"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n" +"POT-Creation-Date: 2006-08-02 15:54-0500\n" +"PO-Revision-Date: 2006-07-31 18:04+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" +"X-Generator: LocFactoryEditor 1.6fc1\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Do you want to enable t-prot system wide for mutt?" +msgstr "Bạn có muốn bật chạy t-prot cho mutt trên toàn bộ hệ thống không?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the " +"script from mutt you have to enable it. You can do this either by creating " +"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done " +"automatically for you), or let the users decide to add a \"source\" line for " +"it in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question " +"the systemwide usage will be enabled." +msgstr "" +"Gói t-prot cung cấp tập tin cấu hình cần bật chạy nếu " +"bạn muốn sá»­ dụng tập lệnh từ mutt. Có thể bật chạy nó hoặc bằng cách tạo " +"liên kết tượng trÆ°ng trong thÆ° mục để sá»­ dụng trên toàn bộ " +"hệ thống (hoặc cho gói tạo nó một cách tá»± động), hoặc cho phép mỗi người " +"dùng quyết định thêm một dòng « nguồn » (source) dành cho nó vào tập tin tài " +"nguyên <~/.muttrc> hay <~/.mutt/muttrc> của họ. Nếu bạn đồng ý, gói này sẽ " +"bật chạy khả năng sá»­ dụng trên toàn bộ hệ thống." diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..428c11f --- /dev/null +++ b/debian/postinst @@ -0,0 +1,52 @@ +#!/bin/sh -e +# postinst for t-prot +# Copyright 2002-2009 by Gerfried Fuchs +# Licenced BSD style + +# Source debconf library. +if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi + +action=$1 +version=$2 +if [ "${DEBCONF_RECONFIGURE}" = "1" ]; then + # workaround until reconfigure is really available + action=reconfigure +fi + +if [ "$action" != 'configure' ] && [ "$action" != 'reconfigure' ]; then + exit 0 +fi + +# change existing symlink from ../Muttrc.t-prot to ../t-prot/Mutrc +if [ "$version" = "2.1-1" ] && [ -L /etc/Muttrc.d/t-prot.rc ]; then + cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true +fi + +# if we got reinstalled after a remove, enable the config snippet again +if [ "$action" = 'configure' ] && [ -e /etc/Muttrc.d/t-prot.rc.removed ] && [ ! -e /etc/Muttrc.d/t-prot.rc ]; then + mv /etc/Muttrc.d/t-prot.rc.removed /etc/Muttrc.d/t-prot.rc || true +fi + +# only on new install or reconfigure +if [ "x$version" = "x" ] || [ "$action" = "reconfigure" ]; then + symlink=true + if [ -e /usr/share/debconf/confmodule ]; then + db_get t-prot/muttrc.d + symlink="$RET" + fi + + case "$symlink" in + true) + mkdir /etc/Muttrc.d 2> /dev/null || true + cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true + ;; + false) + if [ -L /etc/Muttrc.d/t-prot.rc ]; then + rm /etc/Muttrc.d/t-prot.rc + rmdir /etc/Muttrc.d 2> /dev/null || true + fi + ;; + esac +fi diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..1428af4 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,25 @@ +#!/bin/sh -e +# postrm for t-prot +# Copyright 2002-2009 by Gerfried Fuchs +# Licenced BSD style + +action=$1 + +case "$action" in + remove) + if [ ! -e /etc/Muttrc.d/t-prot.rc.removed ]; then + # only disable the configuration + mv /etc/Muttrc.d/t-prot.rc /etc/Muttrc.d/t-prot.rc.removed || true + fi + ;; + purge) + rm /etc/Muttrc.d/t-prot.rc.removed || true + rm /etc/Muttrc.d/t-prot.rc || true + rmdir /etc/Muttrc.d 2> /dev/null || true + # remove debconf data on purge + if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge + fi + ;; +esac diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f886941 --- /dev/null +++ b/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f +# debian/rules for t-prot package +# Copyright 2002-2009 by Gerfried Fuchs +# Licenced BSD style + +PKG = t-prot +TMP = $(CURDIR)/debian/$(PKG) + +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -oroot -groot -m644 +INSTALL_PROGRAM = $(INSTALL) -p -oroot -groot -m755 +INSTALL_SCRIPT = $(INSTALL) -p -oroot -groot -m755 +INSTALL_DIR = $(INSTALL) -p -d -oroot -groot -m755 + + +include /usr/share/quilt/quilt.make + +clean: unpatch + $(checkdir) + $(checkroot) + -rm -rf $(TMP) debian/files build-stamp + + +build-stamp: build +build: patch + # uhm, build for a binary-indep package? Don't try to be funny ;) + touch build-stamp + + +install: build + $(checkdir) + $(checkroot) + -rm -rf $(TMP) + $(INSTALL_DIR) $(TMP) + cd $(TMP) && $(INSTALL_DIR) etc/t-prot/footers etc/t-prot/ads \ + usr/bin usr/share/man/man1 usr/share/slrn/macros \ + usr/share/doc/$(PKG)/examples + # usr/share/doc/$(PKG)/contrib + $(INSTALL_SCRIPT) t-prot $(TMP)/usr/bin + patch $(TMP)/usr/bin/t-prot \ + contrib/t-prot-r*-mutt15*.diff + -rm -f $(TMP)/usr/bin/t-prot.orig + $(INSTALL_FILE) t-prot.1 $(TMP)/usr/share/man/man1 + $(INSTALL_FILE) debian/Muttrc $(TMP)/etc/t-prot + $(INSTALL_FILE) debian/footers/* $(TMP)/etc/t-prot/footers + $(INSTALL_FILE) contrib/t-prot.sl $(TMP)/usr/share/slrn/macros + patch $(TMP)/usr/share/slrn/macros/t-prot.sl \ + contrib/t-prot.sl-slang2.diff + -rm -f $(TMP)/usr/share/slrn/macros/t-prot.sl.orig + + $(INSTALL_FILE) TODO README $(TMP)/usr/share/doc/$(PKG) + #$(INSTALL_FILE) contrib/README.patches contrib/t-prot-r*-gol.diff \ + # contrib/t-prot-r*-indentms.diff \ + # $(TMP)/usr/share/doc/$(PKG)/contrib + $(INSTALL_FILE) contrib/filter_innd.pl contrib/README.examples \ + $(TMP)/usr/share/doc/$(PKG)/examples + $(INSTALL_FILE) ChangeLog \ + $(TMP)/usr/share/doc/$(PKG)/changelog + cd $(TMP)/usr/share && gzip -9 doc/$(PKG)/changelog \ + man/man1/t-prot.1 + + +binary-indep: build install + $(checkdir) + $(checkroot) + $(INSTALL_DIR) $(TMP)/DEBIAN + $(INSTALL_FILE) debian/copyright debian/README.Debian \ + debian/NEWS.Debian $(TMP)/usr/share/doc/$(PKG) + $(INSTALL_FILE) debian/changelog \ + $(TMP)/usr/share/doc/$(PKG)/changelog.Debian + cd $(TMP)/usr/share/doc/$(PKG) && gzip -9 \ + changelog.Debian NEWS.Debian + $(INSTALL_SCRIPT) debian/postinst debian/postrm debian/config \ + $(TMP)/DEBIAN + po2debconf debian/templates > $(TMP)/DEBIAN/templates + $(INSTALL_FILE) debian/conffiles \ + $(TMP)/DEBIAN + dpkg-gencontrol -ldebian/changelog -isp -p$(PKG) -P$(TMP) + cd $(TMP) && find * -type f ! -regex '^DEBIAN/.*' -print0 | \ + xargs -r0 md5sum > DEBIAN/md5sums + dpkg --build $(TMP) .. + + +binary-arch: build install + # We have nothing to do here. + + +binary: binary-indep binary-arch + + +define checkdir + test -f debian/rules +endef + +define checkroot + test root = "`whoami`" +endef + +.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian/templates b/debian/templates new file mode 100644 index 0000000..be714b9 --- /dev/null +++ b/debian/templates @@ -0,0 +1,10 @@ +Template: t-prot/muttrc.d +Type: boolean +Default: true +_Description: Do you want to enable t-prot system wide for mutt? + The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the + script from mutt you have to enable it. You can do this either by creating a + symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done + automatically for you), or let the users decide to add a "source" line for it + in their ~/.muttrc or ~/.mutt/muttrc. If you acknowledge this question the + systemwide usage will be enabled. diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..7e3b26a --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=2 +# Site/Directory Pattern Version Script +http://www.escape.de/users/tolot/mutt/t-prot/downloads/ t-prot-([\d\.]+)\.tar\.gz debian uupdate