diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2014-03-02 10:47:32 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2014-03-02 10:47:32 +0000 |
commit | 2008ba765c2b5dd882582c5b47c7fd1040e0f952 (patch) | |
tree | 51cfab51a7e90de33829ad974e49e740f1bde23c | |
parent | 095bfc7bbbe2862dfc2b2e0109931f880e3c52ee (diff) |
- Fix build with Clang [1]
- Convert to staging
Reported by: pkg-fallout, for months [1]
Sponsored by: Absolight
Notes
Notes:
svn path=/head/; revision=346754
-rw-r--r-- | mail/p5-Mail-ClamAV/Makefile | 6 | ||||
-rw-r--r-- | mail/p5-Mail-ClamAV/files/patch-ClamAV.pm | 29 | ||||
-rw-r--r-- | mail/p5-Mail-ClamAV/pkg-plist | 1 |
3 files changed, 30 insertions, 6 deletions
diff --git a/mail/p5-Mail-ClamAV/Makefile b/mail/p5-Mail-ClamAV/Makefile index 6ada7beff4c8..c2a4026eb96c 100644 --- a/mail/p5-Mail-ClamAV/Makefile +++ b/mail/p5-Mail-ClamAV/Makefile @@ -22,10 +22,4 @@ USE_LDCONFIG= yes USES= perl5 USE_PERL5= configure -MAN3= Mail::ClamAV.3 - -NO_STAGE= yes -post-install: - @${CAT} ${PKGMESSAGE} - .include <bsd.port.mk> diff --git a/mail/p5-Mail-ClamAV/files/patch-ClamAV.pm b/mail/p5-Mail-ClamAV/files/patch-ClamAV.pm new file mode 100644 index 000000000000..a4125b9c0f0a --- /dev/null +++ b/mail/p5-Mail-ClamAV/files/patch-ClamAV.pm @@ -0,0 +1,29 @@ +--- ./ClamAV.pm.orig 2009-04-30 01:02:43.000000000 +0200 ++++ ./ClamAV.pm 2014-03-02 11:45:39.000000000 +0100 +@@ -286,7 +286,7 @@ + reclevel = cl_engine_get_num(c->root, CL_ENGINE_MAX_RECURSION, &err); + if (err != CL_SUCCESS) { + error(err); +- return; ++ return 0; + } + return reclevel; + } +@@ -313,7 +313,7 @@ + maxfiles = cl_engine_get_num(c->root, CL_ENGINE_MAX_FILES, &err); + if (err != CL_SUCCESS) { + error(err); +- return; ++ return 0; + } + return maxfiles; + } +@@ -334,7 +334,7 @@ + maxfsize = cl_engine_get_num(c->root, CL_ENGINE_MAX_FILESIZE, &err); + if (err != CL_SUCCESS) { + error(err); +- return; ++ return 0; + } + return maxfsize; + } diff --git a/mail/p5-Mail-ClamAV/pkg-plist b/mail/p5-Mail-ClamAV/pkg-plist index 910a1543ed84..546a87ae38c2 100644 --- a/mail/p5-Mail-ClamAV/pkg-plist +++ b/mail/p5-Mail-ClamAV/pkg-plist @@ -1,3 +1,4 @@ +%%PERL5_MAN3%%/Mail::ClamAV.3.gz %%SITE_PERL%%/%%PERL_ARCH%%/Mail/ClamAV.pm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Mail/ClamAV/.packlist %%SITE_PERL%%/%%PERL_ARCH%%/auto/Mail/ClamAV/ClamAV.bs |