Ticket #17948: Portfile

File Portfile, 1.5 KB (added by macports@…, 15 years ago)

Portfile for unbound

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#
3#
4# $Id$
5#
6#
7
8PortSystem 1.0
9
10name            unbound
11version         1.1.1
12revision        1
13categories      net
14maintainers     <nomaintainer>
15description     Caching only namesever
16homepage        http://www.unbound.net/
17platforms       darwin
18
19set     unbounduser             unbound
20set     unboundgroup    unbound
21
22long_description        Unbound is a validating, recursive, and caching DNS \
23                                        server software product from NLnet Labs, VeriSign Inc.,\
24                                        Nominet, and Kirei. It is distributed free of charge \
25                                        in open source form under the BSD license.\
26                                        Unbound is designed as a set of modular components \
27                                        that incorporate modern features, such as enhanced \
28                                        security (DNSSEC) validation, Internet Protocol \
29                                        Version 6 (IPv6), and a client resolver library API \
30                                        as an integral part of the architecture.
31
32master_sites            http://unbound.net/downloads/
33
34checksums                       md5 43586f18b4d917887c92a35ff460c923 \
35                                        sha1 8c80e892232a05459923826f266afb770d3f7d73 \
36                                        rmd160 08299a2f31a2a01c2d5819f63abc231015074af3
37
38
39destroot {
40                addgroup ${unboundgroup}
41                set gid [existsgroup ${unboundgroup}]
42        adduser ${unbounduser} shell=/sbin/nologin gid=${gid} \
43                home=/dev/null \
44                realname=Unbound\ Resolver
45}
46
47# Make it run on boot
48startupitem.create      yes
49startupitem.name        unbound
50startupitem.start       ${prefix}/sbin/unbound
51startupitem.stop        "/bin/kill \$(cat ${prefix}/etc/unbound/unbound.pid)"
52