summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
Diffstat (limited to 'network')
-rw-r--r--network/razor-agents/makefile_quoted_vars.diff13
-rw-r--r--network/razor-agents/razor-agents.SlackBuild14
2 files changed, 21 insertions, 6 deletions
diff --git a/network/razor-agents/makefile_quoted_vars.diff b/network/razor-agents/makefile_quoted_vars.diff
new file mode 100644
index 0000000000..1099e9f18c
--- /dev/null
+++ b/network/razor-agents/makefile_quoted_vars.diff
@@ -0,0 +1,13 @@
+Recent MakeMaker versions quote variables.
+diff -ur razor-agents-2.85.orig/Makefile.PL razor-agents-2.85/Makefile.PL
+--- razor-agents-2.85.orig/Makefile.PL 2007-05-09 00:47:53.000000000 +0200
++++ razor-agents-2.85/Makefile.PL 2015-08-19 06:35:39.000000000 +0200
+@@ -142,7 +142,7 @@
+ my $man5 = q{ \\
+ $(INST_MAN5DIR) $(INSTALLMAN5DIR)};
+
+- $inherited =~ s/(\$\((?:DEST)?INSTALL\w*MAN1DIR\))/$1$man5/gm;
++ $inherited =~ s/(\$\((?:DEST)?INSTALL\w*MAN1DIR\)"?)/$1$man5/gm;
+
+ return $inherited;
+ }
diff --git a/network/razor-agents/razor-agents.SlackBuild b/network/razor-agents/razor-agents.SlackBuild
index d647e55c19..136e3278d9 100644
--- a/network/razor-agents/razor-agents.SlackBuild
+++ b/network/razor-agents/razor-agents.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for razor-agents
-# Copyright 2013 Andreas Voegele <andreas@andreasvoegele.com>
+# Copyright 2013-2015 Andreas Voegele <andreas@andreasvoegele.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@@ -18,7 +18,7 @@
PRGNAM=razor-agents
VERSION=${VERSION:-2.85}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
SRCNAM=$PRGNAM
@@ -60,10 +60,12 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+patch -p1 <$CWD/makefile_quoted_vars.diff
perl Makefile.PL \
PREFIX=/usr \