aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-rt-authen-externalauth/use-DESTDIR-perl-rt-authen-externalauth.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2013-12-26 09:07:46 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-12-26 09:07:46 +0000
commit8392f5d75bd9861f039d5ae6773c226d540b773f (patch)
tree11aa8de386ea918d21b3672678f307710945f1f1 /main/perl-rt-authen-externalauth/use-DESTDIR-perl-rt-authen-externalauth.patch
parent2dd523d6c18ffc6db86c29ebd7bea7b13ee4b74b (diff)
downloadaports-8392f5d75bd9861f039d5ae6773c226d540b773f.tar.bz2
aports-8392f5d75bd9861f039d5ae6773c226d540b773f.tar.xz
testing/perl-rt-authen-externalauth: move to main
Diffstat (limited to 'main/perl-rt-authen-externalauth/use-DESTDIR-perl-rt-authen-externalauth.patch')
-rw-r--r--main/perl-rt-authen-externalauth/use-DESTDIR-perl-rt-authen-externalauth.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/perl-rt-authen-externalauth/use-DESTDIR-perl-rt-authen-externalauth.patch b/main/perl-rt-authen-externalauth/use-DESTDIR-perl-rt-authen-externalauth.patch
new file mode 100644
index 0000000000..88a90876d9
--- /dev/null
+++ b/main/perl-rt-authen-externalauth/use-DESTDIR-perl-rt-authen-externalauth.patch
@@ -0,0 +1,21 @@
+diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
+index 20a354b..7e681c6 100755
+--- a/inc/Module/Install/RTx.pm
++++ b/inc/Module/Install/RTx.pm
+@@ -83,13 +83,13 @@ sub RTx {
+ if ( $RT::LocalPluginPath ) {
+ die "Because of bugs in RT 3.8.0 this extension can not be installed.\n"
+ ."Upgrade to RT 3.8.1 or newer.\n" if $RT::VERSION =~ /^3\.8\.0/;
+- $path{$_} = $RT::LocalPluginPath . "/$original_name/$_"
++ $path{$_} = '$(DESTDIR)' . $RT::LocalPluginPath . "/$original_name/$_"
+ foreach @DIRS;
+ } else {
+ foreach ( @DIRS ) {
+ no strict 'refs';
+ my $varname = "RT::Local" . ucfirst($_) . "Path";
+- $path{$_} = ${$varname} || "$RT::LocalPath/$_";
++ $path{$_} = '$(DESTDIR)' . (${$varname} || "$RT::LocalPath/$_");
+ }
+
+ $path{$_} .= "/$name" for grep $path{$_}, qw(etc po var);
+