Commit ba8a99a1 authored by Leo's avatar Leo
Browse files

main/razor: fix license, manpage installation

fixes #12340
parent 346d1a13
Pipeline #68957 failed with stages
in 1 minute and 3 seconds
......@@ -3,38 +3,41 @@
pkgname=razor
_realname=razor-agents
pkgver=2.85
pkgrel=9
pkgrel=10
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
}
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"
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:
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;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment