summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchristos <christos@pkgsrc.org>2018-01-23 01:28:02 +0000
committerchristos <christos@pkgsrc.org>2018-01-23 01:28:02 +0000
commite68737f904be14bbd4d60268bd0f1bbb2a7893e4 (patch)
tree6b13d8c4aebde53566f476610ee132c8bcfda43e
parent3ec7fc6f19a2e63b93992bce594bfe44027b6b4a (diff)
downloadpkgsrc-e68737f904be14bbd4d60268bd0f1bbb2a7893e4.tar.gz
fix regex lint
-rw-r--r--mail/anomy-sanitizer/Makefile4
-rw-r--r--mail/anomy-sanitizer/distinfo3
-rw-r--r--mail/anomy-sanitizer/patches/patch-anomy_bin_Anomy_Sanitizer_MacroScanner.pm23
3 files changed, 27 insertions, 3 deletions
diff --git a/mail/anomy-sanitizer/Makefile b/mail/anomy-sanitizer/Makefile
index d62b45c0ebe..fdc4f133aa6 100644
--- a/mail/anomy-sanitizer/Makefile
+++ b/mail/anomy-sanitizer/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.34 2016/07/09 06:38:27 wiz Exp $
+# $NetBSD: Makefile,v 1.35 2018/01/23 01:28:02 christos Exp $
#
DISTNAME= anomy-sanitizer-1.76
-PKGREVISION= 7
+PKGREVISION= 8
CATEGORIES= mail
MASTER_SITES= http://mailtools.anomy.net/dist/
diff --git a/mail/anomy-sanitizer/distinfo b/mail/anomy-sanitizer/distinfo
index 90873273da0..f8f5334b82b 100644
--- a/mail/anomy-sanitizer/distinfo
+++ b/mail/anomy-sanitizer/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.11 2015/11/03 23:27:01 agc Exp $
+$NetBSD: distinfo,v 1.12 2018/01/23 01:28:02 christos Exp $
SHA1 (anomy-sanitizer-1.76.tar.gz) = 621f7ce20876d8d5f8c3d756f8756a66dcbf7950
RMD160 (anomy-sanitizer-1.76.tar.gz) = 30c005dd475442e655aaaf7c0021cf1d54107d1b
SHA512 (anomy-sanitizer-1.76.tar.gz) = 4ba805f733f291af71f6ec514274f27bedd132c8613ea5a96eb6bffce9ee6fed15eaf73562f69c77327174bb91e101ce36f2e24917af61efa1b88a8acb721b41
Size (anomy-sanitizer-1.76.tar.gz) = 172722 bytes
+SHA1 (patch-anomy_bin_Anomy_Sanitizer_MacroScanner.pm) = 92eaa4ed67b6a44712be5d34ced03a087d2ac499
diff --git a/mail/anomy-sanitizer/patches/patch-anomy_bin_Anomy_Sanitizer_MacroScanner.pm b/mail/anomy-sanitizer/patches/patch-anomy_bin_Anomy_Sanitizer_MacroScanner.pm
new file mode 100644
index 00000000000..98e6094cbcd
--- /dev/null
+++ b/mail/anomy-sanitizer/patches/patch-anomy_bin_Anomy_Sanitizer_MacroScanner.pm
@@ -0,0 +1,23 @@
+$NetBSD: patch-anomy_bin_Anomy_Sanitizer_MacroScanner.pm,v 1.1 2018/01/23 01:28:02 christos Exp $
+
+New version of perl wants escaped braces
+
+--- bin/Anomy/Sanitizer/MacroScanner.pm.orig 2001-12-21 21:47:58.000000000 -0500
++++ bin/Anomy/Sanitizer/MacroScanner.pm 2018-01-22 20:19:51.344624389 -0500
+@@ -117,14 +117,14 @@
+ $score += 99 while ($buff =~ s/\000(VirusProtection)/x$1/i);
+ $score += 99 while ($buff =~ s/\000(select\s[^\000]*shell\s*\()/x$1/i);
+ $score += 9 while ($buff =~ s/\000(regedit|SaveNormalPrompt|Outlook.Application\000)/x$1/i);
+- $score += 4 while ($buff =~ s/\000(ID="{[-0-9A-F]+)$/x$1/i);
++ $score += 4 while ($buff =~ s/\000(ID="\{[-0-9A-F]+)$/x$1/i);
+ $score += 4 while ($buff =~ s/\000(CreateObject)/x$1/i);
+ $score += 4 while ($buff =~ s/(?:\000|\004)(([a-z0-9_]\.)*(Autoexec|Workbook_(Open|BeforeClose)|Document_(Open|New|Close)))/x$1/i);
+ $score += 4 while ($buff =~ s/(?:\000|\004)(Logon|AddressLists|AddressEntries|Recipients|Subject|Body|Attachments|Logoff)/x$1/i);
+ $score += 2 while ($buff =~ s/\000(Shell|Options|CodeModule)/x$1/i);
+ $score += 2 while ($buff =~ s/\000(([a-z]+\.)?Application\000)/x$1/i);
+ $score += 2 while ($buff =~ s/(?:\000|\004)(stdole|NormalTemplate)/x$1/i);
+- $score += 1 while ($buff =~ s/\000(ID="{[-0-9A-F]+}"|ThisWorkbook\000|PrivateProfileString)/x$1/i);
++ $score += 1 while ($buff =~ s/\000(ID="\{[-0-9A-F]+}"|ThisWorkbook\000|PrivateProfileString)/x$1/i);
+ $score += 1 while ($buff =~ s/(?:\000|\004)(ActiveDocument|ThisDocument)/x$1/i);
+ $score += 1 while ($buff =~ s/\000(\[?HKEY_(CLASSES_ROOT|CURRENT_USER|LOCAL_MACHINE))/x$1/);
+