[MacPorts] #58822: Update for port nsd

MacPorts noreply at macports.org
Mon Aug 12 21:23:34 UTC 2019


#58822: Update for port nsd
---------------------+----------------------
  Reporter:  gctwnl  |      Owner:  (none)
      Type:  update  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.5.4
Resolution:          |   Keywords:  haspatch
      Port:  nsd     |
---------------------+----------------------

Comment (by gctwnl):

 Before doing the final work on the nsd Portfile, I'd like to make sure
 I've got my MacPorts contribution environment setup right.

 I've created a local repository. So, now I have

 {{{
 file:///Users/sysbh/MacPortsDev
 rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]
 }}}
 in sources.conf

 I've created a clone of the MacPorts repo in
 {{{
 /Users/sysbh/MacPortsDev/macports-ports
 }}}

 I've copied my changed Portfile over to
 {{{
 /Users/sysbh/MacPortsDev/macports-ports/net/nsd/Portfile
 }}}

 In that directory, I've ran 'git add Portfile' (it's all coming back to
 me, last time git was 2006 or so)

 And I've edited the stuff about StartupItems to say

 {{{
 startupitem.create      yes
 startupitem.executable  "${prefix}/sbin/nsd"
 }}}

 I had to put in a revision statement because otherwise the port would not
 install. I tried -f and -s to no avail.

 I installed the new revision and it works. This is the diff:



 {{{
 diff --git a/net/nsd/Portfile b/net/nsd/Portfile
 index 7fc3a3ddb05..a3b1d202688 100644
 --- a/net/nsd/Portfile
 +++ b/net/nsd/Portfile
 @@ -3,11 +3,12 @@
  PortSystem          1.0

  name                nsd
 -version             4.1.22
 +version             4.2.1
 +revision            1
  categories          net
  platforms           darwin
  license             BSD
 -maintainers         nomaintainer
 +maintainers         {rna.nl:gerben.wierda @gctwnl} openmaintainer

  description         Authoritative only, high performance, simple name
 server.
  long_description    NSD is an authoritative only, high performance,
 simple and \
 @@ -19,9 +20,9 @@ set nsdgroup        nsd
  homepage            https://www.nlnetlabs.nl/projects/nsd/about/
  master_sites        https://www.nlnetlabs.nl/downloads/nsd/

 -checksums           rmd160  f36762fa9b816ba63bf9a39a1df986b435219883 \
 -                    sha256
 f186e86705768a35ecb6ac18d1ee4eeec2745fcd1feab38e64f89c5eb5aa049c \
 -                    size    1099463
 +checksums           rmd160  79ba64d55ca1d473be16f00dbedf80e5122a13ce \
 +                    sha256
 d17c0ea3968cb0eb2be79f2f83eb299b7bfcc554b784007616eed6ece828871f \
 +                    size    1145713

  depends_lib         port:libevent \
                      path:lib/libssl.dylib:openssl
 @@ -57,3 +58,6 @@ variant stats description {Enable BIND8-style
 statistics} {
  livecheck.type  regex
  livecheck.url   ${master_sites}
  livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
 +
 +startupitem.create      yes
 +startupitem.executable  "${prefix}/sbin/nsd"
 }}}

 I think this is the moment I need to do
 {{{
 git push origin
 }}}
 right? And then create a pull request on GitHub?

-- 
Ticket URL: <https://trac.macports.org/ticket/58822#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list