source: trunk/dports/net/nsd/Portfile

Last change on this file was 146517, checked in by raimue@…, 19 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                    nsd
7version                 3.2.8
8revision  1
9categories              net
10platforms               darwin
11maintainers             gmail.com:arhbkb
12description             Authoritative only, high performance, simple name server.
13long_description        NSD is an authoritative only, high performance, simple and \
14                        open source name server.
15
16set nsduser             nsd
17set nsdgroup            nsd
18
19homepage                http://www.nlnetlabs.nl/nsd/
20master_sites            http://www.nlnetlabs.nl/downloads/nsd/
21
22checksums               sha1    e8db690a09f53152f0dca6e4fbfabcc89003fced \
23                        rmd160  b3dcb965e65c4d65a7618997305ff9600b365898
24
25depends_lib             path:lib/libssl.dylib:openssl
26
27configure.args          --with-ssl=${prefix} \
28                        --with-pidfile=${prefix}/var/run/nsd/nsd.pid
29
30platform darwin {
31    configure.cppflags-append -D_DARWIN_C_SOURCE
32}
33
34pre-destroot {
35        addgroup ${nsdgroup}
36        set gid [existsgroup ${nsdgroup}]
37        adduser ${nsduser} gid=${gid} shell=/sbin/nologin \
38                {realname=NSD Server} home=${prefix}/var/db/nsd
39}
40
41post-destroot {
42        xinstall -d ${destroot}${prefix}/share/doc/nsd
43        eval xinstall -m 644 [glob ${worksrcpath}/doc/*] ${destroot}${prefix}/share/doc/nsd
44        xinstall -o ${nsduser} -g ${nsdgroup} -m 755 -d ${destroot}${prefix}/var/db/nsd
45        xinstall -o ${nsduser} -g ${nsdgroup} -m 755 -d ${destroot}${prefix}/var/run/nsd
46}
47
48destroot.keepdirs       ${destroot}${prefix}/var/run/nsd \
49                        ${destroot}${prefix}/var/db/nsd
50
51variant stats description {Enable BIND8-style statistics} {
52        configure.args-append   --enable-bind8-stats
53}
54
55variant rootserver description {Allows NSD to function as a root server} {
56        configure.args-append   --enable-root-server
57}
58
59livecheck.type  regex
60livecheck.url   ${master_sites}
61livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.