Ticket #30701: rsnapshot.diff

File rsnapshot.diff, 1.9 KB (added by ecronin (Eric Cronin), 13 years ago)
  • dports/sysutils/rsnapshot/Portfile

    diff --git a/dports/sysutils/rsnapshot/Portfile b/dports/sysutils/rsnapshot/Portfile
    index ac1885e..361d2d6 100644
    a b master_sites ${homepage}/downloads/ 
    1919checksums               sha1 a3aa3560dc389e1b00155a5869558522c4a29e05
    2020
    2121depends_lib             port:rsync \
    22                                 port:perl5.8 \
     22                                port:perl5 \
    2323                                bin:ssh:openssh
    2424
     25patchfiles              examples.patch
     26patch.args              -p1
     27
    2528configure.args  --mandir=${prefix}/share/man \
    2629                --with-rsync=${prefix}/bin/rsync \
    27                 --with-perl=${prefix}/bin/perl5.8
     30                --with-perl=${prefix}/bin/perl5
    2831
    2932test.run        yes
    3033
     34post-patch {
     35        reinplace "s|__PERL_BIN__|${prefix}/bin/perl5|g" \
     36                ${worksrcpath}/utils/mysqlbackup.pl\
     37                ${worksrcpath}/utils/rsnapreport.pl
     38}
     39
    3140post-destroot   {
    3241        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
    3342        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
  • new file dports/sysutils/rsnapshot/files/examples.patch

    diff --git a/dports/sysutils/rsnapshot/files/examples.patch b/dports/sysutils/rsnapshot/files/examples.patch
    new file mode 100644
    index 0000000..e8cce9c
    - +  
     1diff -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
     10diff -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