Gentoo Archives: gentoo-commits

From: "Wolfram Schlich (wschlich)" <wschlich@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/nsd: nsd-4.0.0.ebuild ChangeLog nsd-4.0.0_beta5.ebuild
Date: Wed, 30 Oct 2013 10:52:04
Message-Id: 20131030105157.5063020047@flycatcher.gentoo.org
1 wschlich 13/10/30 10:51:57
2
3 Modified: ChangeLog
4 Added: nsd-4.0.0.ebuild
5 Removed: nsd-4.0.0_beta5.ebuild
6 Log:
7 version bump, removed beta version
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
10
11 Revision Changes Path
12 1.8 net-dns/nsd/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/ChangeLog?rev=1.8&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/ChangeLog?rev=1.8&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/ChangeLog?r1=1.7&r2=1.8
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-dns/nsd/ChangeLog,v
21 retrieving revision 1.7
22 retrieving revision 1.8
23 diff -u -r1.7 -r1.8
24 --- ChangeLog 12 Aug 2013 11:23:45 -0000 1.7
25 +++ ChangeLog 30 Oct 2013 10:51:57 -0000 1.8
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-dns/nsd
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-dns/nsd/ChangeLog,v 1.7 2013/08/12 11:23:45 wschlich Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-dns/nsd/ChangeLog,v 1.8 2013/10/30 10:51:57 wschlich Exp $
31 +
32 +*nsd-4.0.0 (30 Oct 2013)
33 +
34 + 30 Oct 2013; Wolfram Schlich <wschlich@g.o> +nsd-4.0.0.ebuild,
35 + -nsd-4.0.0_beta5.ebuild:
36 + version bump, removed beta version
37
38 *nsd-3.2.16 (12 Aug 2013)
39 *nsd-4.0.0_beta5 (12 Aug 2013)
40
41
42
43 1.1 net-dns/nsd/nsd-4.0.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/nsd-4.0.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/nsd-4.0.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: nsd-4.0.0.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-dns/nsd/nsd-4.0.0.ebuild,v 1.1 2013/10/30 10:51:57 wschlich Exp $
53
54 EAPI=4
55
56 inherit user eutils
57
58 DESCRIPTION="An authoritative only, high performance, open source name server"
59 HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd"
60 # version voodoo needed only for non-release tarballs: 4.0.0_rc1 => 4.0.0rc1
61 MY_PV=${PV/_rc/rc}
62 MY_PV=${PV/_beta/b}
63 MY_P=${PN}-${MY_PV}
64 S="${WORKDIR}/${MY_P}"
65 SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz"
66
67 LICENSE="BSD"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE="bind8-stats ipv6 libevent minimal-responses mmap munin +nsec3 ratelimit root-server runtime-checks ssl"
71
72 RDEPEND="
73 dev-libs/openssl
74 virtual/yacc
75 libevent? ( dev-libs/libevent )
76 ssl? ( dev-libs/openssl )
77 munin? ( net-analyzer/munin )
78 "
79 DEPEND="
80 ${RDEPEND}
81 sys-devel/flex
82 "
83
84 pkg_setup() {
85 enewgroup nsd
86 enewuser nsd -1 -1 -1 nsd
87 }
88
89 src_prepare() {
90 # Fix the paths in the munin plugin to match our install
91 epatch "${FILESDIR}"/nsd_munin_.patch
92 }
93
94 src_configure() {
95 econf \
96 --enable-largefile \
97 --with-logfile="${EPREFIX}"/var/log/nsd.log \
98 --with-pidfile="${EPREFIX}"/run/nsd/nsd.pid \
99 --with-dbfile="${EPREFIX}"/var/db/nsd/nsd.db \
100 --with-xfrdir="${EPREFIX}"/var/db/nsd \
101 --with-xfrdfile="${EPREFIX}"/var/db/nsd/xfrd.state \
102 --with-zonelistfile="${EPREFIX}"/var/db/nsd/zone.list \
103 --with-zonesdir="${EPREFIX}"/var/lib/nsd \
104 $(use_enable bind8-stats) \
105 $(use_enable ipv6) \
106 $(use_enable minimal-responses) \
107 $(use_enable mmap) \
108 $(use_enable nsec3) \
109 $(use_enable ratelimit) \
110 $(use_enable root-server) \
111 $(use_enable runtime-checks checking) \
112 $(use_with libevent) \
113 $(use_with ssl)
114 }
115
116 src_install() {
117 emake DESTDIR="${D}" install
118
119 dodoc doc/{ChangeLog,CREDITS,NSD-4-features,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS}
120
121 newinitd "${FILESDIR}"/nsd.initd nsd
122
123 # database directory, writable by nsd for database updates and zone transfers
124 dodir /var/db/nsd
125 fowners nsd:nsd /var/db/nsd
126 fperms 750 /var/db/nsd
127
128 # zones directory, writable by nsd for zone file updates (nsd-control write)
129 dodir /var/lib/nsd
130 fowners nsd:nsd /var/lib/nsd
131 fperms 750 /var/lib/nsd
132
133 # install munin plugin and config
134 if use munin; then
135 exeinto /usr/libexec/munin/plugins
136 doexe contrib/nsd_munin_
137 insinto /etc/munin/plugin-conf.d
138 newins "${FILESDIR}"/nsd.munin-conf nsd_munin
139 fi
140
141 # remove the /run directory that usually resides on tmpfs and is
142 # being taken care of by the nsd init script anyway (checkpath)
143 rm -rf "${D}"/run || die "Failed to remove /run"
144 }