Ticket #50591: rancid-port.patch

File rancid-port.patch, 5.0 KB (added by pokui@…, 9 years ago)

patch to Portfile and files/*

  • Portfile

    diff --git a/../rancid.orig/Portfile b/./Portfile
    index 817c050..6929d20 100644
    old new PortSystem 1.0 
    55PortGroup           perl5 1.0
    66
    77name                rancid
    8 version             2.3.8
    9 revision            3
     8version             3.4.1
     9revision            0
    1010categories          net
    1111license             BSD-old
    1212maintainers         nomaintainer
    platforms darwin 
    1414
    1515description         Really Awesome New Cisco confIg Differ
    1616
    17 long_description    Rancid maintains a CVS repository of router and \
     17long_description    Rancid maintains a CVS/SVN/git repository of router and \
    1818                    device config files.  It emails you when changes \
    1919                    occur and tells you what commands were changed.
    2020
    2121homepage            http://www.shrubbery.net/rancid
    2222master_sites        ftp://ftp.shrubbery.net/pub/rancid/
    2323
    24 checksums           rmd160  6105398f85617bce2053d7219e7586c1b80b76ab \
    25                     sha256  44e44c87a22968d5229c01d60aa46960da023a24846eef43f9e3c8d70fd5b3fb
     24checksums           rmd160  87e72f1b839a9177b6d36dc6054750efbb503add \
     25                    sha256  572964f01969bd18b198110a75013ec31ec2aba6ca582ebf6cd208c422fe3bfe
     26
    2627
    2728perl5.branches      5.22
    2829depends_lib         port:perl${perl5.major} \
    2930                    port:p${perl5.major}-lockfile-simple \
    3031                    path:lib/libssl.dylib:openssl
    3132
    32 patchfiles          patch-etc-Makefile.in
     33patchfiles          patch-etc-Makefile.am.diff
    3334
    3435post-patch {
    3536# Set path for lg.conf.sample so Looking Glass will work
    perform these steps: 
    9293
    9394
    94953) Goto url http://localhost/lg with a web browser to use the looking glass.
     96
     97#### WARNING DATABASE FORMAT CHANGE ####
     98
     99Note that the router.db format has changed. The file separator is now a \
     100semicolon from a colon.
     101
     102This is to better support IPv6 addresses in the file.
     103
     104#### WARNING DATABASE FORMAT CHANGE ####
     105
    95106"
    96107
    97108livecheck.type      regex
  • new file ./files/patch-etc-Makefile.am.diff

    diff --git a/./files/patch-etc-Makefile.am.diff b/./files/patch-etc-Makefile.am.diff
    new file mode 100644
    index 0000000..8e04c0d
    - +  
     1--- etc/Makefile.am.orig        2015-06-24 02:33:20.000000000 +0300
     2+++ etc/Makefile.am     2015-06-24 02:46:38.000000000 +0300
     3@@ -26,27 +26,9 @@
     4
     5 install-data-local: all
     6        @if test "$(DO_CONF_INSTALL)" = "yes"; then \
     7-       if test -f $(DESTDIR)$(sysconfdir)/rancid.conf ; then \
     8-           echo ""; \
     9-           echo "WARNING: *** $(DESTDIR)$(sysconfdir)/rancid.conf exists.  See "; \
     10-           echo "         *** $(pkgdatadir)/rancid.conf.sample for new"; \
     11-           echo "         *** examples."; \
     12-           echo ""; \
     13-       else \
     14-           $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)/rancid.conf; \
     15-       fi; \
     16-       if test ! -f $(DESTDIR)$(sysconfdir)/rancid.types.conf ; then \
     17-           $(INSTALL_DATA) rancid.types.conf $(DESTDIR)$(sysconfdir)/rancid.types.conf; \
     18-       fi; \
     19-       if test -f $(DESTDIR)$(sysconfdir)/lg.conf ; then \
     20-           echo ""; \
     21-           echo "WARNING: *** $(DESTDIR)$(sysconfdir)/lg.conf exists.  See "; \
     22-           echo "         *** $(pkgdatadir)/lg.conf.sample for new"; \
     23-           echo "         *** examples."; \
     24-           echo ""; \
     25-       else \
     26-           $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)/lg.conf; \
     27-       fi; \
     28+           $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)/rancid.conf.sample; \
     29+           $(INSTALL_DATA) rancid.types.conf $(DESTDIR)$(sysconfdir)/rancid.types.conf.sample; \
     30+           $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)/lg.conf.sample; \
     31        fi; \
     32        $(INSTALL_DATA) rancid.types.base $(DESTDIR)$(sysconfdir)/rancid.types.base
  • deleted file ../rancid.orig/files/patch-etc-Makefile.in

    diff --git a/../rancid.orig/files/patch-etc-Makefile.in b/../rancid.orig/files/patch-etc-Makefile.in
    deleted file mode 100644
    index dd43336..0000000
    + -  
    1 --- etc/Makefile.in.org 2007-01-13 13:56:24.000000000 -0800
    2 +++ etc/Makefile.in     2008-10-28 11:26:08.000000000 -0700
    3 @@ -376,24 +376,8 @@
    4  
    5  install-data-local: all
    6         @if test "$(DO_CONF_INSTALL)" = "yes"; then \
    7 -       if test -f $(DESTDIR)$(sysconfdir)/rancid.conf ; then \
    8 -           echo ""; \
    9 -           echo "WARNING: *** $(DESTDIR)$(sysconfdir)/rancid.conf exists.  See "; \
    10 -           echo "         *** $(pkgdatadir)/rancid.conf.sample for new"; \
    11 -           echo "         *** examples."; \
    12 -           echo ""; \
    13 -       else \
    14 -           $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)/rancid.conf; \
    15 -       fi; \
    16 -       if test -f $(DESTDIR)$(sysconfdir)/lg.conf ; then \
    17 -           echo ""; \
    18 -           echo "WARNING: *** $(DESTDIR)$(sysconfdir)/lg.conf exists.  See "; \
    19 -           echo "         *** $(pkgdatadir)/lg.conf.sample for new"; \
    20 -           echo "         *** examples."; \
    21 -           echo ""; \
    22 -       else \
    23 -           $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)/lg.conf; \
    24 -       fi; \
    25 +           $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)/rancid.conf.sample; \
    26 +           $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)/lg.conf.sample; \
    27         fi
    28  
    29  lg.conf.sample: Makefile $(srcdir)/lg.conf.sample.in