Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 80322 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-dns/pdns/ChangeLog (+5 lines)
Lines 2-7 Link Here
2
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
2
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
3
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.13 2005/01/22 12:04:50 luckyduck Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.13 2005/01/22 12:04:50 luckyduck Exp $
4
4
5
  02 Mar 2005; Christian Zoffoli <xmerlin@gentoo.org> files/pdns,
6
  pdns-2.9.16.ebuild:
7
  added virtual support in pdns script, added recursor support, added an init
8
  script for recursor
9
5
  22 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> pdns-2.9.16.ebuild:
10
  22 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> pdns-2.9.16.ebuild:
6
  added ~amd64 to KEYWORDS. fixes #78838
11
  added ~amd64 to KEYWORDS. fixes #78838
7
12
(-)/usr/portage/net-dns/pdns/files/pdns (-4 / +20 lines)
Lines 1-20 Link Here
1
#!/sbin/runscript
1
#!/sbin/runscript
2
# Copyright 1999-2004 Gentoo Foundation
2
# Copyright 1999-2005 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/files/pdns,v 1.3 2004/07/14 23:25:25 agriffis Exp $
4
# $Header:  $
5
6
opts="${opts} reload "
7
8
suffix=`echo ${myservice} | awk -F- '{print $2}'`
9
if [ $suffix ] 
10
then
11
	EXTRAOPTS=--config-name=$suffix
12
fi
5
13
6
depend() {
14
depend() {
15
	provide dns
7
	need net
16
	need net
8
}
17
}
9
18
10
start() {
19
start() {
11
	ebegin "Starting PowerDNS"
20
	ebegin "Starting PowerDNS"
12
	start-stop-daemon --start --quiet --exec /usr/bin/env -- /usr/sbin/pdns_server --daemon --guardian=yes
21
	start-stop-daemon --start --quiet --exec /usr/bin/env -- /usr/sbin/pdns_server ${EXTRAOPTS} --daemon --guardian=yes
13
	eend $?
22
	eend $?
14
}
23
}
15
24
16
stop() {
25
stop() {
17
	ebegin "Stopping PowerDNS"
26
	ebegin "Stopping PowerDNS"
18
	start-stop-daemon --stop --quiet --pidfile=/var/run/pdns.pid
27
	start-stop-daemon --stop --quiet --pidfile=/var/run/${myservice}.pid
28
	eend $?
29
}
30
31
reload() {
32
	ebegin "Reload PowerDNS"
33
	/usr/bin/pdns_control ${EXTRAOPTS} cycle &> /dev/null
19
	eend $?
34
	eend $?
20
}
35
}
36
(-)/usr/portage/net-dns/pdns/files/precursor (+20 lines)
Line 0 Link Here
1
#!/sbin/runscript
2
# Copyright 1999-2005 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header:  $
5
6
depend() {
7
	need net
8
}
9
10
start() {
11
	ebegin "Starting PowerDNS"
12
	start-stop-daemon --start --quiet --exec /usr/bin/env -- /usr/sbin/pdns_recursor --daemon
13
	eend $?
14
}
15
16
stop() {
17
	ebegin "Stopping PowerDNS"
18
	start-stop-daemon --stop --quiet --pidfile=/var/run/pdns_recursor.pid
19
	eend $?
20
}
(-)/usr/portage/net-dns/pdns/files/recursor.conf (+3 lines)
Line 0 Link Here
1
quiet=on
2
local-address=127.0.0.1
3
local-port=53
(-)/usr/portage/net-dns/pdns/pdns-2.9.16.ebuild (-2 / +8 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-2.9.16.ebuild,v 1.5 2005/01/22 12:04:50 luckyduck Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-2.9.16.ebuild,v 1.4 2004/07/14 23:37:33 agriffis Exp $
4
4
5
DESCRIPTION="The PowerDNS Daemon."
5
DESCRIPTION="The PowerDNS Daemon."
6
SRC_URI="http://downloads.powerdns.com/releases/${P}.tar.gz"
6
SRC_URI="http://downloads.powerdns.com/releases/${P}.tar.gz"
Lines 29-34 Link Here
29
	use ldap && modules="ldap $modules"
29
	use ldap && modules="ldap $modules"
30
30
31
	econf --with-modules="$modules" \
31
	econf --with-modules="$modules" \
32
		--enable-recursor \
32
		$myconf || die "Configuration failed"
33
		$myconf || die "Configuration failed"
33
34
34
	emake || die "Make failed"
35
	emake || die "Make failed"
Lines 39-45 Link Here
39
	dodoc ChangeLog HACKING INSTALL README TODO WARNING pdns/COPYING
40
	dodoc ChangeLog HACKING INSTALL README TODO WARNING pdns/COPYING
40
41
41
	exeinto /etc/init.d
42
	exeinto /etc/init.d
42
	doexe ${FILESDIR}/pdns
43
	doexe ${FILESDIR}/pdns || die
44
	doexe ${FILESDIR}/precursor || die
45
46
	insinto /etc/
47
	insopts -m 0644
48
	doins ${FILESDIR}/recursor.conf
43
49
44
	mv ${D}/etc/pdns.conf-dist ${D}/etc/pdns.conf
50
	mv ${D}/etc/pdns.conf-dist ${D}/etc/pdns.conf
45
}
51
}

Return to bug 80322