Ticket #29693: ejabberd-notes.2.diff

File ejabberd-notes.2.diff, 1.7 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

proposed patch

  • Portfile

     
    3636
    3737destroot.keepdirs   ${destroot}${prefix}/var/log/ejabberd/
    3838
     39set etc ${prefix}/etc/ejabberd
    3940post-destroot {
    4041    # Create sample configuration files so they don't get overwritten by an
    4142    # update.
    42     set etc ${destroot}${prefix}/etc/ejabberd
    4343    foreach file ${conf_files} {
    44         file rename ${etc}/${file} ${etc}/${file}.sample
     44        file rename ${destroot}${etc}/${file} ${destroot}${etc}/${file}.sample
    4545    }
    4646
    4747    # Install documentation.
     
    5050    file copy ${worksrcpath}/../doc ${doc}/${name}-${version}
    5151}
    5252
    53 post-install {
    54     ui_msg "****************************************************************"
    55     ui_msg "*                                                              *"
    56     ui_msg "* If you run ejabberd for the first time, then you must rename *"
    57     ui_msg "* the following configuration files by removing the .sample    *"
    58     ui_msg "* extension:                                                   *"
    59     ui_msg "*                                                              *"
    60     ui_msg "* cd ${prefix}/etc/ejabberd/                                  *"
    61     foreach file ${conf_files} {
    62         ui_msg "* mv ${file}.sample ${file}"
    63     }
    64     ui_msg "*                                                              *"
    65     ui_msg "****************************************************************"
     53notes "
     54Before running ${name} for the first time, you must copy the sample\
     55configuration files:
     56
     57cd ${etc}/
     58"
     59foreach file ${conf_files} {
     60    notes-append "cp ${file}.sample ${file}"
    6661}
    6762
    6863livecheck.type      regex