Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137178 - change RDEPEND in net-dns/pdns-recursor ebuild
Summary: change RDEPEND in net-dns/pdns-recursor ebuild
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-18 08:27 UTC by Sergio Bevilacqua
Modified: 2006-06-18 11:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for the ebuild (patch.diff,375 bytes, patch)
2006-06-18 08:28 UTC, Sergio Bevilacqua
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Bevilacqua 2006-06-18 08:27:30 UTC
i need to install two different DNS servers on a border machine: net-dns/pdns for the authoritative responses on the internet and net-dns/pdns-recursor for the intranet.
i can't because the pdns-recursor ebuild don't permit it

i suggest to remove change the net-dns/pdns-recursor ebuild:
< RDEPEND="${DEPEND}
<       !net-dns/pdns"
---
> RDEPEND="${DEPEND}"
Comment 1 Sergio Bevilacqua 2006-06-18 08:28:02 UTC
Created attachment 89470 [details, diff]
patch for the ebuild
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2006-06-18 08:29:29 UTC
pdns already includes the recursor.
Comment 3 Sergio Bevilacqua 2006-06-18 08:35:40 UTC
(In reply to comment #2)
> pdns already includes the recursor.
> 
yes but the use of authoritative and recursor function on the same server isn't secure. this approach is more exposed to cache-poisoning attacks.
using two separate servers is a better solution
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-06-18 08:58:39 UTC
Those two things simply collide, they install same binary and same initscript, not possible to remove the blocker. Read the ebuilds, please.

Comment 5 Sergio Bevilacqua 2006-06-18 09:05:43 UTC
(In reply to comment #4)
> Those two things simply collide, they install same binary and same initscript,
> not possible to remove the blocker. Read the ebuilds, please.
> 
what? collide?
but I HAVE INSTALLED the two packages on the same machine!


this is the file list installed by pdns-recursor:

./
./usr/
./usr/sbin/
./usr/sbin/pdns_recursor
./usr/sbin/rec_control
./usr/share/
./usr/share/man/
./usr/share/man/man1/
./usr/share/man/man1/pdns_recursor.1.gz
./usr/share/man/man1/rec_control.1.gz
./etc/
./etc/powerdns/
./etc/powerdns/recursor.conf
./etc/init.d/
./etc/init.d/precursor
>>> Done.
>>> Extracting info
>>> Extracting pdns-recursor-3.1.1
>>> Merging net-dns/pdns-recursor-3.1.1 to /
--- /usr/
--- /usr/sbin/
>>> /usr/sbin/pdns_recursor
>>> /usr/sbin/rec_control
--- /usr/share/
--- /usr/share/man/
--- /usr/share/man/man1/
>>> /usr/share/man/man1/pdns_recursor.1.gz
>>> /usr/share/man/man1/rec_control.1.gz
--- /etc/
--- /etc/powerdns/
>>> /etc/powerdns/recursor.conf
--- /etc/init.d/
>>> /etc/init.d/precursor

NO ONE OF THESE FILES IS ALREADY PROVIDED BY POWERDNS!!!
please change the bug status. your answer is invalid!
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-06-18 09:14:23 UTC
pdns-2.9.20.ebuild

<snip>
doinitd "${FILESDIR}"/precursor
insinto /etc/powerdns
doins "${FILESDIR}"/recursor.conf
</snip>

Obviously won't collide, right?
Comment 7 Sven Wegener gentoo-dev 2006-06-18 10:01:35 UTC
They will collide, if the recursor USE flag is enabled. As the recursor has been split out by upstream, the plan was to make a new pdns ebuild without the recursor USE flag and without installing the recursor. I just didn't want to do that just after the recursor has been commited to the tree. I just commited the new ebuild.
Comment 8 Sergio Bevilacqua 2006-06-18 10:06:38 UTC
(In reply to comment #6)
> Obviously won't collide, right?
> 

it collides only if you compile pdns with USE="recursor". in this case it's not necessary to install pdns-recursor. but i don't want to use the same server for both functions. it's not secure!
Comment 9 Sven Wegener gentoo-dev 2006-06-18 11:11:07 UTC
That point is irrelevant. Whether you use pdns with USE="recursor" or pdns-recursor, both times the recursor will be a separate application, based on the same code. Upstream just decided to provide the recursor in it's own package.