Ticket #3694: Portfile.diff

File Portfile.diff, 1.3 KB (added by markd@…, 18 years ago)

Portfile diff

  • Portfile

    old new  
    3636
    3737startupitem.create      yes
    3838startupitem.name        dhcpd
    39 startupitem.init        "PID=${prefix}/var/run/dhcpd.pid"
    40 startupitem.start       "\[ -x ${prefix}/sbin/dhcpd \] && ${prefix}/sbin/dhcpd"
     39startupitem.init        "PID=/var/run/dhcpd.pid"
     40startupitem.start       "\[ -x ${prefix}/sbin/dhcpd \] && ${prefix}/sbin/dhcpd -cf ${prefix}/etc/dhcpd/dhcpd.conf -lf ${prefix}/var/db/dhcpd/dhcpd.leases"
    4141startupitem.stop        "\[ -r \${PID} \] && kill \$(cat \${PID})"
    4242
    4343destroot.keepdirs       ${destroot}${prefix}/var/run \
    4444                                ${destroot}${prefix}/var/db/dhcpd
    4545post-destroot {
    46         set etc ${destroot}${prefix}/etc/dhcp
     46        set etc ${destroot}${prefix}/etc/dhcpd
    4747        xinstall -m 755 -d ${etc}
    4848        xinstall -m 644 ${worksrcpath}/server/dhcpd.conf ${etc}/dhcpd.conf.sample
    4949        xinstall -m 644 ${worksrcpath}/client/dhclient.conf \
     
    5252
    5353platform darwin 8 { build.args  CC=/usr/bin/gcc-4.0 }
    5454
     55post-activate {
     56                ui_msg "\n
     57
     58NOTE:
     59
     60-The dhcpd .conf and .leases files must be named and located as shown for dhcpd to find them:
     61        ${prefix}/etc/dhcpd/dhcpd.conf (there is a sample file)
     62        ${prefix}/var/db/dhcpd/dhcpd.leases (use the touch command to create a blank one)
     63
     64\n"
     65}
     66