<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’ve been playing around with MacPorts and I have installed <font face="Menlo" class=""><span style="font-style: normal;" class="">nsd</span></font> as an authoritative DNS server. (<font face="Menlo" class=""><span style="font-style: normal;" class="">unbound</span></font> doesn’t handle CNAME, so it is either use BIND or have both <font face="Menlo" class=""><span style="font-style: normal;" class="">nsd</span></font> and <font face="Menlo" class=""><span style="font-style: normal;" class="">unbound</span></font>)<div class=""><br class=""></div><div class=""><font face="Menlo" class=""><span style="font-style: normal;" class="">unbound</span></font> comes with a LaunchDaemon plist, <font face="Menlo" class=""><span style="font-style: normal;" class="">nsd</span></font> doesn’t. So my first mod looks to be that I will have to change the portfile to include startupitem information.</div><div class=""><br class=""></div><div class="">As I understand it:</div><div class=""><ol class=""><li class="">I need to edit <span style="font-family: Menlo;" class="">/opt/local/var/macports/sources/<a href="http://rsync.macports.org/macports/release/tarballs/ports/net/nsd/Portfile" class="">rsync.macports.org/macports/release/tarballs/ports/net/nsd/Portfile</a></span> (with <font face="Menlo" class=""><span style="font-style: normal;" class="">port edit</span></font>) and add the startup item stuff there directly (copy original to <font face="Menlo" class="">Portfile.orig</font> first of course). <font color="#ff2600" class="">Questions: If I do that, will not MacPorts overwrite my modified <font face="Menlo" class=""><span style="font-style: normal;" class="">Portfile</span></font> in some scenarios? Will <font face="Menlo" class=""><span style="font-style: normal;" class="">port edit</span></font> create the <font face="Menlo" class=""><span style="font-style: normal;" class="">Portfile.orig</span></font>?</font></li><li class="">And everything I need to do for this change can be done by modifying the Portfile.</li><li class="">And what I gather from the documentation that I can offer the diff later as an improvement.</li></ol></div><div class=""><font color="#ff2600" class="">Correct?</font></div><div class=""><div class=""><br class=""></div><div class="">It seems to me I just have to add this to the Portfile:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">startupitem.create  yes</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">startupitem.name    nsd</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">startupitem.start   "${prefix}/sbin/nsd"</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">startupitem.stop    "/bin/kill \$(cat ${prefix}/var/run/${name}/nsd.pid)"</span></div></div><div class=""><br class=""></div><div class=""><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Gerben Wierda</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://enterprisechess.com/" class="">Chess and the Art of Enterprise Architecture</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://masteringarchimate.com/" class="">Mastering ArchiMate</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://www.infoworld.com/blog/architecture-for-real-enterprises/" class="">Architecture for Real Enterprises</a> at InfoWorld</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://eapj.org/on-slippery-ice/" class="">On Slippery Ice</a> at EAPJ</div></div>
</div>
<br class=""></div></div></body></html>