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

Collapse All | Expand All

(-)net-dns/bind/bind-9.4.3_p1.ebuild (-2 / +20 lines)
Lines 15-27 Link Here
15
LICENSE="as-is"
15
LICENSE="as-is"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86"
17
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86"
18
IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads resolvconf urandom"
18
IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads resolvconf urandom geodns"
19
19
20
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
20
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
21
	mysql? ( >=virtual/mysql-4.0 )
21
	mysql? ( >=virtual/mysql-4.0 )
22
	odbc? ( >=dev-db/unixODBC-2.2.6 )
22
	odbc? ( >=dev-db/unixODBC-2.2.6 )
23
	ldap? ( net-nds/openldap )
23
	ldap? ( net-nds/openldap )
24
	idn? ( net-dns/idnkit )"
24
	idn? ( net-dns/idnkit )
25
	geodns? ( dev-libs/geoip )"
25
26
26
RDEPEND="${DEPEND}
27
RDEPEND="${DEPEND}
27
	selinux? ( sec-policy/selinux-bind )
28
	selinux? ( sec-policy/selinux-bind )
Lines 76-81 Link Here
76
77
77
	# remove useless c++ checks
78
	# remove useless c++ checks
78
	epunt_cxx
79
	epunt_cxx
80
81
	use geodns && epatch "${FILESDIR}"/${P}-geodns.patch
79
}
82
}
80
83
81
src_compile() {
84
src_compile() {
Lines 123-128 Link Here
123
		myconf="${myconf} --with-randomdev=/dev/random"
126
		myconf="${myconf} --with-randomdev=/dev/random"
124
	fi
127
	fi
125
128
129
	use geodns && export LDFLAGS="-lGeoIP"
130
126
	# bug #158664
131
	# bug #158664
127
	gcc-specs-ssp && replace-flags -O[23s] -O
132
	gcc-specs-ssp && replace-flags -O[23s] -O
128
	export BUILD_CC="${CBUILD}-gcc"
133
	export BUILD_CC="${CBUILD}-gcc"
Lines 140-145 Link Here
140
	einstall || die "failed to install bind"
145
	einstall || die "failed to install bind"
141
146
142
	dodoc CHANGES COPYRIGHT FAQ README
147
	dodoc CHANGES COPYRIGHT FAQ README
148
	use geodns && dodoc "${FILESDIR}"/geodns-README
143
149
144
	use doc && {
150
	use doc && {
145
		docinto misc
151
		docinto misc
Lines 238-243 Link Here
238
	ewarn "when it was previously optional.  If the priority is missing, BIND"
244
	ewarn "when it was previously optional.  If the priority is missing, BIND"
239
	ewarn "won't load the zone file at all."
245
	ewarn "won't load the zone file at all."
240
	echo
246
	echo
247
248
	if use geodns; then
249
		echo 
250
		elog "To use the GeoDNS feature within a chroot you must copy the GeoIP.dat"
251
		elog "from /usr/share/GeoIP into your chroot, including the directory path."
252
		elog "emerge --config will do this for you, if you do not already have a chroot."
253
		echo
254
	fi
241
}
255
}
242
256
243
pkg_config() {
257
pkg_config() {
Lines 269-274 Link Here
269
			mknod ${CHROOT}/dev/random c 1 8
283
			mknod ${CHROOT}/dev/random c 1 8
270
			chmod 666 ${CHROOT}/dev/random
284
			chmod 666 ${CHROOT}/dev/random
271
		fi
285
		fi
286
		if use geodns; then
287
			mkdir -p ${CHROOT}/usr/share/GeoIP
288
			cp /usr/share/GeoIP/* ${CHROOT}/usr/share/GeoIP/
289
		fi
272
		echo "none    ${CHROOT}/proc    proc    defaults    0 0" >>/etc/fstab
290
		echo "none    ${CHROOT}/proc    proc    defaults    0 0" >>/etc/fstab
273
		mkdir ${CHROOT}/proc
291
		mkdir ${CHROOT}/proc
274
		mount -t proc none ${CHROOT}/proc
292
		mount -t proc none ${CHROOT}/proc

Return to bug 231242