Ticket #36315: postgres.patch

File postgres.patch, 967 bytes (added by singingwolfboy@…, 12 years ago)
  • Portfile

     
    4747        system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
    4848}
    4949
    50 post-install {
    51         ui_msg "\nTo create a database instance, after install do\n\
    52                 sudo mkdir -p ${dbdir}\n\
    53                 sudo chown ${dbuser}:${dbgrp} ${dbdir}\n\
    54                 sudo su ${dbuser} -c \'${libdir}/bin/initdb -D ${dbdir}\'"
    55         ui_msg "\nTo tweak your DBMS, consider increasing kern.sysv.shmmax\
    56                 by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf"
    57 }
     50notes \
     51"To create a database instance, after install do\n\
     52\tsudo mkdir -p ${dbdir}\n\
     53\tsudo chown ${dbuser}:${dbgrp} ${dbdir}\n\
     54\tsudo su ${dbuser} -c \'${libdir}/bin/initdb -D ${dbdir}\'\n\
     55To tweak your DBMS, consider increasing kern.sysv.shmmax\
     56by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf"
    5857
    5958livecheck.type  regex
    6059livecheck.url   ${homepage}