diff options
author | Andreas Voegele <andreas@andreasvoegele.com> | 2015-08-19 22:53:25 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-08-21 03:25:03 +0700 |
commit | 1fae00e0812905d3c91fdc4644eede1def2c0739 (patch) | |
tree | 750356fc22ce1aea8766d4b2a7352a5bc7961ef5 /network | |
parent | b2462a16ff774cd936dd24b03126f8204263a98f (diff) |
network/razor-agents: Added patch.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/razor-agents/makefile_quoted_vars.diff | 13 | ||||
-rw-r--r-- | network/razor-agents/razor-agents.SlackBuild | 14 |
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 0000000000000..1099e9f18c220 --- /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 d647e55c19b30..136e3278d9066 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 \ |