Ticket #3694: Portfile.diff
File Portfile.diff, 1.3 KB (added by markd@…, 19 years ago) |
---|
-
Portfile
old new 36 36 37 37 startupitem.create yes 38 38 startupitem.name dhcpd 39 startupitem.init "PID= ${prefix}/var/run/dhcpd.pid"40 startupitem.start "\[ -x ${prefix}/sbin/dhcpd \] && ${prefix}/sbin/dhcpd "39 startupitem.init "PID=/var/run/dhcpd.pid" 40 startupitem.start "\[ -x ${prefix}/sbin/dhcpd \] && ${prefix}/sbin/dhcpd -cf ${prefix}/etc/dhcpd/dhcpd.conf -lf ${prefix}/var/db/dhcpd/dhcpd.leases" 41 41 startupitem.stop "\[ -r \${PID} \] && kill \$(cat \${PID})" 42 42 43 43 destroot.keepdirs ${destroot}${prefix}/var/run \ 44 44 ${destroot}${prefix}/var/db/dhcpd 45 45 post-destroot { 46 set etc ${destroot}${prefix}/etc/dhcp 46 set etc ${destroot}${prefix}/etc/dhcpd 47 47 xinstall -m 755 -d ${etc} 48 48 xinstall -m 644 ${worksrcpath}/server/dhcpd.conf ${etc}/dhcpd.conf.sample 49 49 xinstall -m 644 ${worksrcpath}/client/dhclient.conf \ … … 52 52 53 53 platform darwin 8 { build.args CC=/usr/bin/gcc-4.0 } 54 54 55 post-activate { 56 ui_msg "\n 57 58 NOTE: 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