aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2021-01-21 12:35:27 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-01-21 12:39:08 -0300
commit5c543a4c8254502e68afb45f81901182cb8b0b8d (patch)
tree3edddbfe49db36c13570df5a76cc9e1dc69bb43b
parentb7415ec9fb42dde32333fbc1e4575f6bcf11cb32 (diff)
downloadaports-5c543a4c8254502e68afb45f81901182cb8b0b8d.tar.gz
aports-5c543a4c8254502e68afb45f81901182cb8b0b8d.tar.bz2
aports-5c543a4c8254502e68afb45f81901182cb8b0b8d.tar.xz
main/razor: fix license, manpage installation
fixes #12340
-rw-r--r--main/razor/APKBUILD25
-rw-r--r--main/razor/fix-cosmetic-pv.patch24
-rw-r--r--main/razor/fix-manpage-quoting.patch17
3 files changed, 54 insertions, 12 deletions
diff --git a/main/razor/APKBUILD b/main/razor/APKBUILD
index b429dc3ced..9d5b2d9171 100644
--- a/main/razor/APKBUILD
+++ b/main/razor/APKBUILD
@@ -3,40 +3,41 @@
pkgname=razor
_realname=razor-agents
pkgver=2.85
-pkgrel=8
+pkgrel=9
pkgdesc="Vipul's Razor is a distributed, collaborative spam detection and filtering network"
url="http://razor.sourceforge.net/"
arch="all"
-license="Artistic"
+license="Artistic-2.0"
depends="perl perl-digest-sha1 perl-getopt-long perl-uri"
makedepends="perl-dev"
subpackages="$pkgname-doc"
-source="https://downloads.sourceforge.net/razor/razor-agents/$_realname-$pkgver.tar.bz2"
+source="https://downloads.sourceforge.net/razor/razor-agents/$_realname-$pkgver.tar.bz2
+ fix-cosmetic-pv.patch
+ fix-manpage-quoting.patch
+ "
builddir="$srcdir/$_realname-$pkgver"
prepare() {
- cd "$builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ default_prepare
+
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make -j1
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
- cd "$builddir"
make test
}
-md5sums="014d08db40187cb1316482191566b012 razor-agents-2.85.tar.bz2"
-sha256sums="7fe0afe73e5b3979444dd86e2ad25ea99bc05b23d5648d357544f78f0b6eb6d7 razor-agents-2.85.tar.bz2"
-sha512sums="31dded1969dde963389a5939514c29638ad07f45dbb2f4c633cf20ebc4abab94e65e9a6d8885233cdde686ef365aab11fa5eba2ca38d79c5b8fab689143ff5db razor-agents-2.85.tar.bz2"
+sha512sums="31dded1969dde963389a5939514c29638ad07f45dbb2f4c633cf20ebc4abab94e65e9a6d8885233cdde686ef365aab11fa5eba2ca38d79c5b8fab689143ff5db razor-agents-2.85.tar.bz2
+75c18cbf22172657976eb3140e736134115c072be46c5165326237f73af592afbe49229058d9c80f8a99f486cae075e16b36822b73f194034b20e83afee382ec fix-cosmetic-pv.patch
+25b5449f4b13d3c8373ed3bb67970c187d7ea3235a6e4f0baf60618004addc124321b36bf0a4c320b5b7370498c857c6477bfecb1658e441e0edacde149d361e fix-manpage-quoting.patch"
diff --git a/main/razor/fix-cosmetic-pv.patch b/main/razor/fix-cosmetic-pv.patch
new file mode 100644
index 0000000000..6082392b31
--- /dev/null
+++ b/main/razor/fix-cosmetic-pv.patch
@@ -0,0 +1,24 @@
+Taken from Arch Linux
+
+--- a/lib/Razor2/Client/Version.pm 2007-05-10 22:32:10.000000000 +0200
++++ b/lib/Razor2/Client/Version.pm 2010-03-25 11:11:36.911409707 +0100
+@@ -14,7 +14,7 @@
+
+ $PROTOCOL = 3;
+
+-$VERSION = '2.84';
++$VERSION = '2.85';
+
+ 1;
+
+--- a/META.yml 2007-05-23 20:29:34.000000000 +0200
++++ b/META.yml 2010-03-25 11:11:43.691408628 +0100
+@@ -1,7 +1,7 @@
+ # http://module-build.sourceforge.net/META-spec.html
+ #XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
+ name: razor-agents
+-version: 2.84
++version: 2.85
+ version_from: lib/Razor2/Client/Version.pm
+ installdirs: site
+ requires:
diff --git a/main/razor/fix-manpage-quoting.patch b/main/razor/fix-manpage-quoting.patch
new file mode 100644
index 0000000000..6be965cc54
--- /dev/null
+++ b/main/razor/fix-manpage-quoting.patch
@@ -0,0 +1,17 @@
+Taken from Arch Linux
+
+diff -uprw razor-agents-2.85.orig/Makefile.PL razor-agents-2.85/Makefile.PL
+--- razor-agents-2.85.orig/Makefile.PL 2007-05-09 01:47:53.000000000 +0300
++++ razor-agents-2.85/Makefile.PL 2015-06-14 20:36:23.677213987 +0300
+@@ -140,9 +140,9 @@ sub MY::install {
+ my $inherited = $self->SUPER::install(@_);
+
+ my $man5 = q{ \\
+- $(INST_MAN5DIR) $(INSTALLMAN5DIR)};
++ "$(INST_MAN5DIR)" "$(INSTALLMAN5DIR)"};
+
+- $inherited =~ s/(\$\((?:DEST)?INSTALL\w*MAN1DIR\))/$1$man5/gm;
++ $inherited =~ s/("?\$\((?:DEST)?INSTALL\w*MAN1DIR\)"?)/$1$man5/gm;
+
+ return $inherited;
+ }