source: trunk/dports/net/nsd/Portfile @ 95541

Last change on this file since 95541 was 95541, checked in by jmr@…, 7 years ago

nsd: buildfix (#32978)

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