+++ /dev/null
-# ChangeLog for net-dns/nsd
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
-*nsd-3.2.15 (05 Feb 2013)
-
- 05 Feb 2013; Tom Hendrikx (whyscream) <tom@whyscream.net>
- -nsd-3.2.14-r1.ebuild, +nsd-3.2.15.ebuild, metadata.xml:
- Version bump, minimal USE flag changes added
-
- 27 Nov 2012; Julian Ospald <hasufell@gentoo.org> nsd-3.2.14-r1.ebuild:
- drop -f switch from rm
-
-*nsd-3.2.14-r1 (26 Nov 2012)
-
- 26 Nov 2012; Tom Hendrikx (whyscream) <tom@whyscream.net> -nsd-3.2.14.ebuild,
- +nsd-3.2.14-r1.ebuild, files/nsd.initd:
- Move /var/run/nsd/ creation to init script
-
-*nsd-3.2.14 (02 Nov 2012)
-
- 02 Nov 2012; Tom Hendrikx (whyscream) <tom@whyscream.net> -nsd-3.2.13.ebuild,
- +nsd-3.2.14.ebuild:
- version bump
-
-*nsd-3.2.13 (28 Jul 2012)
-
- 28 Jul 2012; Tom Hendrikx (whyscream) <tom@whyscream.net> -nsd-3.2.12.ebuild,
- +nsd-3.2.13.ebuild:
- version bump, security release for VU#517036 / CVE-2012-2979
-
-*nsd-3.2.12 (19 Jul 2012)
-
- 19 Jul 2012; Tom Hendrikx (whyscream) <tom@whyscream.net> -nsd-3.2.11.ebuild,
- +nsd-3.2.12.ebuild:
- version bump, secure release for CVE-2012-2978 (all previous versions are
- vulnerable)
-
-*nsd-3.2.11 (09 Jul 2012)
-
- 09 Jul 2012; Tom Hendrikx (whyscream) <tom@whyscream.net> -nsd-3.2.10.ebuild,
- +nsd-3.2.11.ebuild, files/nsd.initd, metadata.xml:
- version bump, new USE flags, and minor init.d fix
-
- 22 Jun 2012; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> nsd-3.2.10.ebuild:
- inherit user eclass instead of eutils eclass for enewuser
-
-*nsd-3.2.10 (17 Feb 2012)
-
- 17 Feb 2012; Tom Hendrikx (whyscream) <tom@whyscream.net> -nsd-3.2.9.ebuild,
- +nsd-3.2.10.ebuild, files/nsd.initd:
- version bump
-
- 06 Jan 2012; Tom Hendrikx (whyscream) <tom@whyscream.net> nsd-3.2.9.ebuild,
- files/nsd.initd:
- correct $extra_commands usage
-
- 09 Dec 2011; Tom Hendrikx (whyscream) <tom@whyscream.net> files/nsd.initd:
- updated init script, replaced deprecated $opts with new $extra_commands (no
- version bump necessary)
-
- 27 Nov 2011; Tom Hendrikx (whyscream) <tom@whyscream.net>
- -nsd-3.2.8.ebuild, -files/nsd-3.2.8-configure.patch, +nsd-3.2.9.ebuild:
- version bump
-
- 02 Jun 2011; Tom Hendrikx (whyscream) <tom@whyscream.net>
- nsd-3.2.8.ebuild:
- bumped to EAPI=4
-
- 20 May 2011; Justin Lecher <jlec@gentoo.org> metadata.xml:
- Removed local use desc for largefile
-
- 20 May 2011; Justin Lecher <jlec@gentoo.org> nsd-3.2.8.ebuild:
- Enable largefile support by default
- http://archives.gentoo.org/gentoo-dev/msg_8924a26149b5a0c1ba8c97043b47e8c1.x
- ml
-
- 26 Mar 2011; Tom Hendrikx (whyscream) <tom@whyscream.net>
- -nsd-3.2.7.ebuild, +nsd-3.2.8.ebuild, +files/nsd-3.2.8-configure.patch:
- version bump, minor change in econf
-
- 26 Jan 2011; Tom Hendrikx (whyscream) <tom@whyscream.net>
- -nsd-3.2.6.ebuild, +nsd-3.2.7.ebuild, files/nsd.cron:
- version bump
-
- 07 Sep 2010; Markos Chandras <hwoarang@gentoo.org> nsd-3.2.6.ebuild:
- Drop tsig completely
-
- 02 Aug 2010; Tom Hendrikx (whyscream) <tom@whyscream.net> ChangeLog:
- version bump to nsd 3.2.6, dropping 3 USE flags due to upstream cleanup in
- configure script, minor update to init script
-
- 15 Apr 2010; Tom Hendrikx (whyscream) <tom@whyscream.net>
- -nsd-3.2.4.ebuild, +nsd-3.2.5.ebuild:
- version bump
-
- 11 Jan 2010; Tom Hendrikx (whyscream) <tom@whyscream.net>
- -nsd-3.2.3.ebuild, +nsd-3.2.4.ebuild:
- version bump for nsd 3.2.4
-
- 17 Aug 2009; Tom Hendrikx (whyscream) <tom@whyscream.net>
- -nsd-3.2.2.ebuild, -files/nsd-3.2.2-Makefile.in.patch, +nsd-3.2.3.ebuild:
- version bump
-
- 19 May 2009; Tom Hendrikx (whyscream) <tom@whyscream.net>
- -nsd-3.2.1.ebuild, +nsd-3.2.2.ebuild, +files/nsd-3.2.2-Makefile.in.patch:
- version bump for security release 3.2.2, see
- http://www.nlnetlabs.nl/publications/NSD_vulnerability_announcement.html
-
- 19 Jan 2009; Tom Hendrikx (whyscream) <tom@whyscream.net>
- -nsd-3.2.0-r1.ebuild, +nsd-3.2.1.ebuild:
- version bump
-
- 19 Jan 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
- nsd-3.2.0-r1.ebuild:
- Add suggested RDEPEND=${DEPEND}, drop unneeded die
-
- 18 Jan 2009; Tom Hendrikx (whyscream) <tom@whyscream.net>
- -nsd-3.2.0.ebuild, +nsd-3.2.0-r1.ebuild, +files/nsd.confd, files/nsd.cron,
- files/nsd.initd:
- improved ebuild and initd script
-
- 31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> metadata.xml:
- Add local useflags to metadata.xml (GLEP 56)
-
- 21 Jul 2008; Tom Hendrikx (whyscream) <tom@whyscream.net>
- -nsd-3.1.0.ebuild, +nsd-3.1.1.ebuild:
- Version bump
-
- 16 Jul 2008; Tiago Cunha (tcunha) <me@tiagocunha.org> -nsd-3.0.4.ebuild:
- Remove old version
-
- 16 Jul 2008; Tom Hendrikx (whyscream) <tom@whyscream.net>
- +nsd-3.1.0.ebuild, files/nsd.initd:
- Version bump with several ebuild changes, incorporating various changes from
- bug 128246, with thanks to dev tommy for reviewing
-
- 10 Mar 2007; Markus Ullmann <jokey@gentoo.org> -nsd-2.3.5.ebuild:
- Drop old
-
- 08 Mar 2007; Christian Faulhammer <opfer@gentoo.org> nsd-3.0.4.ebuild:
- remove trailing whitespace
-
- 07 Mar 2007; Martin Hierling <mad@cc.fh-luh.de> +nsd-3.0.4.ebuild:
- version bump
-
- 31 Jul 2006; Jakub Moc <jakub@gentoo.org> nsd-2.3.5.ebuild:
- Do not mix ewarn/einfo, add quoting
-
- 28 Jun 2006; Martin Hierling <mad@cc.fh-luh.de> ChangeLog:
- New Ebuild for bug 128246 net-dns/nsd thanks to Albert Holm
-
+++ /dev/null
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-#
-extra_commands="rebuild"
-extra_started_commands="reload"
-description="NSD is an authoritative only, high performance, open source name server"
-description_rebuild="Rebuild zone database"
-description_reload="Rebuild zone database and reload it"
-
-config_file=${config_file:-/etc/nsd/nsd.conf}
-my_nsdc="/usr/sbin/nsdc"
-my_nsd_checkconf="/usr/sbin/nsd-checkconf"
-
-depend() {
- need net
- use logger
- provide auth-dns
-}
-
-_checkconf() {
- if ! test -e "${config_file}"; then
- eerror "You need to create an appropriate config file."
- eerror "An example can be found in /etc/nsd/nsd.conf.sample"
- return 1
- fi
-
- if ! ${my_nsd_checkconf} "${config_file}"; then
- eerror "You have errors in your configfile (${config_file})"
- return 1
- fi
- return 0
-}
-
-_checkdb() {
- local database=$(${my_nsd_checkconf} -o database ${config_file})
- if ! test -f $database; then
- eerror "You have no database file in ${database}, will try to rebuild"
- rebuild
- fi
- return 0
-}
-
-_patch() {
- local difffile=$(${my_nsd_checkconf} -o difffile ${config_file})
- if test -s ${difffile}; then
- ebegin "Patching NSD zone files"
- ${my_nsdc} patch > /dev/null
- eend $?
- fi
-}
-
-rebuild() {
- ebegin "Rebuilding NSD zone database"
- if ! ${my_nsdc} rebuild > /dev/null; then
- eerror "There was an error rebuilding the database. Please review your zone files."
- return 1
- fi
- eend $?
-}
-
-start() {
- ebegin "Starting NSD"
-
- local pidfile=$(${my_nsd_checkconf} -o pidfile ${config_file})
- checkpath -d -o nsd:nsd $(dirname ${pidfile})
-
- _checkconf || return 1
- _checkdb || return 1
- ${my_nsdc} start
- ${my_nsdc} running
- eend $?
-}
-
-stop() {
- ebegin "Stopping NSD"
- _patch
- ${my_nsdc} stop
- eend $?
-}
-
-reload() {
- _checkconf || return 1
- rebuild || return 1
- ebegin "Reloading NSD zone database"
- ${my_nsdc} reload
- eend $?
-}
+++ /dev/null
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-
-inherit user versionator
-
-DESCRIPTION="An authoritative only, high performance, open source name server"
-HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd"
-SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="bind8-stats ipv6 minimal-responses mmap +nsec3 ratelimit root-server runtime-checks zone-stats"
-
-RDEPEND="
- dev-libs/openssl
- virtual/yacc
-"
-DEPEND="
- ${RDEPEND}
- sys-devel/flex
-"
-
-pkg_setup() {
- enewgroup nsd
- enewuser nsd -1 -1 -1 nsd
-}
-
-src_configure() {
- # ebuild.sh sets localstatedir to /var/lib, but nsd expects /var in several locations
- # some of these cannot be changed by arguments to econf/configure, f.i. logfile
- econf \
- --localstatedir="${EPREFIX}/var" \
- --with-pidfile="${EPREFIX}/var/run/nsd/nsd.pid" \
- --with-zonesdir="${EPREFIX}/var/lib/nsd" \
- --enable-largefile \
- $(use_enable bind8-stats) \
- $(use_enable ipv6) \
- $(use_enable minimal-responses) \
- $(use_enable mmap) \
- $(use_enable nsec3) \
- $(use_enable ratelimit) \
- $(use_enable root-server) \
- $(use_enable runtime-checks checking) \
- $(use_enable zone-stats)
-}
-
-src_install() {
- emake DESTDIR="${D}" install
-
- dodoc doc/{ChangeLog,CREDITS,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS}
-
- insinto /usr/share/nsd
- doins contrib/nsd.zones2nsd.conf
-
- exeinto /etc/cron.daily
- doexe "${FILESDIR}"/nsd.cron
-
- newinitd "${FILESDIR}"/nsd.initd nsd
- newconfd "${FILESDIR}"/nsd.confd nsd
-
- # database directory, writable by nsd for ixfr.db file
- dodir /var/db/nsd
- fowners nsd:nsd /var/db/nsd
- fperms 750 /var/db/nsd
-
- # zones directory, writable by root for 'nsdc patch'
- dodir /var/lib/nsd
- fowners root:nsd /var/lib/nsd
- fperms 750 /var/lib/nsd
-
- # remove /var/run data created by Makefile, handled by initd script
- rm -r "${D}"/var/run || die "could not remove /var/run/ directory"
-
-}
-
-pkg_postinst() {
- version_compare "3.2.9" "${REPLACING_VERSIONS}"
- if test $? -eq 3; then
- ewarn "In ${PN}-3.2.9, the database format was changed."
- ewarn "Please run '/etc/init.d/nsd rebuild' to rebuild the database, then restart nsd."
- fi
-}