Ticket #29693: ejabberd-notes.2.diff
File ejabberd-notes.2.diff, 1.7 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
Portfile
36 36 37 37 destroot.keepdirs ${destroot}${prefix}/var/log/ejabberd/ 38 38 39 set etc ${prefix}/etc/ejabberd 39 40 post-destroot { 40 41 # Create sample configuration files so they don't get overwritten by an 41 42 # update. 42 set etc ${destroot}${prefix}/etc/ejabberd43 43 foreach file ${conf_files} { 44 file rename ${ etc}/${file}${etc}/${file}.sample44 file rename ${destroot}${etc}/${file} ${destroot}${etc}/${file}.sample 45 45 } 46 46 47 47 # Install documentation. … … 50 50 file copy ${worksrcpath}/../doc ${doc}/${name}-${version} 51 51 } 52 52 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 "****************************************************************" 53 notes " 54 Before running ${name} for the first time, you must copy the sample\ 55 configuration files: 56 57 cd ${etc}/ 58 " 59 foreach file ${conf_files} { 60 notes-append "cp ${file}.sample ${file}" 66 61 } 67 62 68 63 livecheck.type regex