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

Collapse All | Expand All

(-)pdnsd-1.1.8_p8.err.ebuild (-9 / +9 lines)
Lines 17-41 Link Here
17
17
18
SLOT="0"
18
SLOT="0"
19
LICENSE="BSD | GPL-2"
19
LICENSE="BSD | GPL-2"
20
KEYWORDS="~x86 ~ppc ~sparc "
20
KEYWORDS="~x86 ~ppc ~sparc"
21
S=${WORKDIR}/${PN}-${PV/_p*/b1}
21
S=${WORKDIR}/${PN}-${PV/_p*/b1}
22
22
23
src_compile() {
23
src_compile() {
24
	cd ${S} || die
24
	cd ${S} || die
25
	local conf
25
	local myconf
26
	use ipv6 && conf="${conf} --enable-ipv6"
26
	use ipv6 && myconf="${myconf} --enable-ipv6"
27
27
28
	use isdn && conf="${conf} --enable-isdn"
28
	use isdn && myconf="${myconf} --enable-isdn"
29
29
30
	use debug && conf="${conf} --with-debug=3"
30
	use debug && myconf="${myconf} --with-debug=3"
31
31
32
# causes compile error - may get fixed later
32
	if [ -c /dev/urandom ]; then myconf="${myconf} --with-random-device=/dev/urandom"
33
#	if [ -c /dev/urandom ]; then conf="${conf} --with-random-device=/dev/urandom" ; fi
33
	fi
34
34
35
	econf \
35
	econf \
36
		--sysconfdir=/etc/pdnsd \
36
		--sysconfdir=/etc/pdnsd \
37
		--with-cachedir=/var/lib/pdnsd \
37
		--with-cachedir=/var/lib/pdnsd \
38
		${conf} \
38
		${myconf} \
39
		|| die "bad configure"
39
		|| die "bad configure"
40
40
41
	emake all || die "compile problem"
41
	emake all || die "compile problem"
Lines 48-54 Link Here
48
	enewuser pdnsd -1 /bin/false /var/lib/pdnsd pdnsd
48
	enewuser pdnsd -1 /bin/false /var/lib/pdnsd pdnsd
49
	fowners pdnsd:pdnsd /var/lib/pdnsd /var/lib/pdnsd/pdnsd.cache
49
	fowners pdnsd:pdnsd /var/lib/pdnsd /var/lib/pdnsd/pdnsd.cache
50
50
51
	sed -i 's/run_as=.*/run_as="pdnsd"/' ${D}/etc/pdnsd/pdnsd.conf.sample
51
	sed -i 's/run_as=.*/run_as="pdnsd";/' ${D}/etc/pdnsd/pdnsd.conf.sample
52
52
53
	dodoc AUTHORS COPYING* ChangeLog* NEWS README THANKS TODO README.par
53
	dodoc AUTHORS COPYING* ChangeLog* NEWS README THANKS TODO README.par
54
	docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl}
54
	docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl}

Return to bug 20450