diff --git a/dports/sysutils/rsnapshot/Portfile b/dports/sysutils/rsnapshot/Portfile
index ac1885e..361d2d6 100644
a
|
b
|
master_sites ${homepage}/downloads/ |
19 | 19 | checksums sha1 a3aa3560dc389e1b00155a5869558522c4a29e05 |
20 | 20 | |
21 | 21 | depends_lib port:rsync \ |
22 | | port:perl5.8 \ |
| 22 | port:perl5 \ |
23 | 23 | bin:ssh:openssh |
24 | 24 | |
| 25 | patchfiles examples.patch |
| 26 | patch.args -p1 |
| 27 | |
25 | 28 | configure.args --mandir=${prefix}/share/man \ |
26 | 29 | --with-rsync=${prefix}/bin/rsync \ |
27 | | --with-perl=${prefix}/bin/perl5.8 |
| 30 | --with-perl=${prefix}/bin/perl5 |
28 | 31 | |
29 | 32 | test.run yes |
30 | 33 | |
| 34 | post-patch { |
| 35 | reinplace "s|__PERL_BIN__|${prefix}/bin/perl5|g" \ |
| 36 | ${worksrcpath}/utils/mysqlbackup.pl\ |
| 37 | ${worksrcpath}/utils/rsnapreport.pl |
| 38 | } |
| 39 | |
31 | 40 | post-destroot { |
32 | 41 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples |
33 | 42 | xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \ |
diff --git a/dports/sysutils/rsnapshot/files/examples.patch b/dports/sysutils/rsnapshot/files/examples.patch
new file mode 100644
index 0000000..e8cce9c
-
|
+
|
|
| 1 | diff -ur rsnapshot-1.3.1.orig/utils/mysqlbackup.pl rsnapshot-1.3.1/utils/mysqlbackup.pl |
| 2 | --- rsnapshot-1.3.1.orig/utils/mysqlbackup.pl 2011-08-10 13:07:54.000000000 -0400 |
| 3 | +++ rsnapshot-1.3.1/utils/mysqlbackup.pl 2011-08-10 13:08:41.000000000 -0400 |
| 4 | @@ -1,4 +1,4 @@ |
| 5 | -#!/usr/bin/perl |
| 6 | +#!__PERL_BIN__ |
| 7 | |
| 8 | |
| 9 | =head1 |
| 10 | diff -ur rsnapshot-1.3.1.orig/utils/rsnapreport.pl rsnapshot-1.3.1/utils/rsnapreport.pl |
| 11 | --- rsnapshot-1.3.1.orig/utils/rsnapreport.pl 2011-08-10 13:07:54.000000000 -0400 |
| 12 | +++ rsnapshot-1.3.1/utils/rsnapreport.pl 2011-08-10 13:08:50.000000000 -0400 |
| 13 | @@ -1,4 +1,4 @@ |
| 14 | -#!/usr/bin/env perl |
| 15 | +#!__PERL_BIN__ |
| 16 | # this script prints a pretty report from rsnapshot output |
| 17 | # in the rsnapshot.conf you must set |
| 18 | # verbose >= 3 |