diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-11-20 17:58:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-11-20 17:59:50 +0000 |
commit | 3ec0623d738540d0995a51980aa0092832e287de (patch) | |
tree | 37ec62c0d0b61f7d88052e72e6dd95ab4d6aa9ef /unmaintained | |
parent | e52864ba5c3af946a9cb0a524ff275ae91747f15 (diff) | |
download | aports-3ec0623d738540d0995a51980aa0092832e287de.tar.bz2 aports-3ec0623d738540d0995a51980aa0092832e287de.tar.xz |
main/perl-mail-clamav: move to unnmaintained
it fails to build against recent clamav. move to unmaintained to unblock
the builders til there is a fix from upstream.
upstream report: https://rt.cpan.org/Public/Bug/Display.html?id=130891
Diffstat (limited to 'unmaintained')
-rw-r--r-- | unmaintained/perl-mail-clamav/0001.patch | 27 | ||||
-rw-r--r-- | unmaintained/perl-mail-clamav/APKBUILD | 39 |
2 files changed, 66 insertions, 0 deletions
diff --git a/unmaintained/perl-mail-clamav/0001.patch b/unmaintained/perl-mail-clamav/0001.patch new file mode 100644 index 0000000000..17910bd6d8 --- /dev/null +++ b/unmaintained/perl-mail-clamav/0001.patch @@ -0,0 +1,27 @@ +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -51,7 +51,23 @@ + } + + my $clver = get_cl_version(); +- return warn_cl_version_bad() if $clver lt $minclversion; ++ my @m_clver = split /\./, $clver; ++ my @m_minclversion = split /\./, $minclversion; ++ if ($m_clver[0] < $m_minclversion[0]) { ++ return warn_cl_version_bad() if $m_clver[0] lt $m_minclversion[0]; ++ } else { ++ if ($m_clver[0] = $m_minclversion[0]) { ++ if ($m_clver[1] < $m_minclversion[1]) { ++ return warn_cl_version_bad() if $m_clver[1] lt $m_minclversion[1]; ++ } else { ++ if ($m_clver[1] = $m_minclversion[1]) { ++ if ($m_clver[2] < $m_minclversion[2]) { ++ return warn_cl_version_bad() if $m_clver[2] lt $m_minclversion[2]; ++ } ++ } ++ } ++ } ++ } + + my $inc = get_cl_inc_paths(); + my $libs = get_cl_libs(); diff --git a/unmaintained/perl-mail-clamav/APKBUILD b/unmaintained/perl-mail-clamav/APKBUILD new file mode 100644 index 0000000000..03b8a070b0 --- /dev/null +++ b/unmaintained/perl-mail-clamav/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=perl-mail-clamav +_pkgname=Mail-ClamAV +pkgver=0.30 +pkgrel=1 +pkgdesc="Perl extension for the clamav virus scanner" +url="https://metacpan.org/pod/Mail::ClamAV" +arch="all" +license="Artistic-1.0-Perl OR GPL-1.0-or-later" +depends="perl clamav" +makedepends="bzip2-dev clamav-dev zlib-dev + perl-dev perl-inline perl-inline-c perl-parse-recdescent + " +options="!check" # requires clamav db in /var/lib/clamav +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/C/CA/CAVAC/Mail-ClamAV-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +prepare() { + sed -i -e 's%\(clamav-config --version\)%sh /usr/bin/\1%' Makefile.PL + default_prepare + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make -j1 +} + +check() { + make test +} +package() { + make DESTDIR="$pkgdir" INSTALLDIRS=vendor install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="0a6a029df2a46cbf09eeade22cd8b525f4e75c80f05a4833e41c52b4c1653f8f1cca6e19f6011354f053e3b4ec235d75bcf672bf91f63d0f5a92914f2e1f4e89 Mail-ClamAV-0.30.tar.gz" |