Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 302735
Collapse All | Expand All

(-)/usr/portage/net-dns/bind/bind-9.7.2_p3-r3.ebuild (-10 / +22 lines)
Lines 6-15 Link Here
6
6
7
inherit eutils autotools toolchain-funcs flag-o-matic
7
inherit eutils autotools toolchain-funcs flag-o-matic
8
8
9
MY_PV="${PV/_p/-P}"
9
MY_PV="${PV/_beta/b}"
10
MY_P="${PN}-${MY_PV}"
10
MY_P="${PN}-${MY_PV}"
11
11
12
SDB_LDAP_VER="1.1.0"
12
SDB_LDAP_VER="1.1.0-fc14"
13
13
14
GEOIP_PV=1.3
14
GEOIP_PV=1.3
15
#GEOIP_PV_AGAINST="${MY_PV}"
15
#GEOIP_PV_AGAINST="${MY_PV}"
Lines 24-49 Link Here
24
SRC_URI="ftp://ftp.isc.org/isc/bind9/${MY_PV}/${MY_P}.tar.gz
24
SRC_URI="ftp://ftp.isc.org/isc/bind9/${MY_PV}/${MY_P}.tar.gz
25
	doc? ( mirror://gentoo/dyndns-samples.tbz2 )
25
	doc? ( mirror://gentoo/dyndns-samples.tbz2 )
26
	geoip? ( ${GEOIP_SRC_URI_BASE}/files/${GEOIP_DOC_A}
26
	geoip? ( ${GEOIP_SRC_URI_BASE}/files/${GEOIP_DOC_A}
27
			 ${GEOIP_SRC_URI_BASE}/files/${GEOIP_PATCH_A} )"
27
			 ${GEOIP_SRC_URI_BASE}/files/${GEOIP_PATCH_A} )
28
#	sdb-ldap? ( mirror://gentoo/bind-sdb-ldap-${SDB_LDAP_VER}.tar.bz2 )
28
	sdb-ldap? ( http://ftp.disconnected-by-peer.at/pub/bind-sdb-ldap-${SDB_LDAP_VER}.patch.bz2 )"
29
29
30
LICENSE="as-is"
30
LICENSE="as-is"
31
SLOT="0"
31
SLOT="0"
32
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
32
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
33
IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads
33
IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads
34
	resolvconf urandom xml geoip gssapi" # sdb-ldap
34
	resolvconf urandom xml geoip gssapi sdb-ldap"
35
35
36
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
36
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
37
	mysql? ( >=virtual/mysql-4.0 )
37
	mysql? ( >=virtual/mysql-4.0 )
38
	odbc? ( >=dev-db/unixODBC-2.2.6 )
38
	odbc? ( >=dev-db/unixODBC-2.2.6 )
39
	ldap? ( net-nds/openldap )
39
	ldap? ( net-nds/openldap )
40
	sdb-ldap? ( net-nds/openldap )
40
	idn? ( net-dns/idnkit )
41
	idn? ( net-dns/idnkit )
41
	postgres? ( dev-db/postgresql-base )
42
	postgres? ( dev-db/postgresql-base )
42
	threads? ( >=sys-libs/libcap-2.1.0 )
43
	threads? ( >=sys-libs/libcap-2.1.0 )
43
	xml? ( dev-libs/libxml2 )
44
	xml? ( dev-libs/libxml2 )
44
	geoip? ( >=dev-libs/geoip-1.4.6 )
45
	geoip? ( >=dev-libs/geoip-1.4.6 )
45
	gssapi? ( virtual/krb5 )"
46
	gssapi? ( virtual/krb5 )"
46
#	sdb-ldap? ( net-nds/openldap )
47
47
48
RDEPEND="${DEPEND}
48
RDEPEND="${DEPEND}
49
	selinux? ( sec-policy/selinux-bind )
49
	selinux? ( sec-policy/selinux-bind )
Lines 89-101 Link Here
89
89
90
	# sdb-ldap patch as per  bug #160567
90
	# sdb-ldap patch as per  bug #160567
91
	# Upstream URL: http://bind9-ldap.bayour.com/
91
	# Upstream URL: http://bind9-ldap.bayour.com/
92
	# FIXME: bug 302735
92
	if use sdb-ldap; then
93
#	use sdb-ldap && epatch "${WORKDIR}"/sdb-ldap/${PN}-sdb-ldap-${SDB_LDAP_VER}.patch
93
		# epatch "${FILESDIR}"/bind-9.8.0b1-sdb-ldap-1.patch
94
		epatch "${WORKDIR}"/${PN}-sdb-ldap-${SDB_LDAP_VER}.patch
95
		cp -fp contrib/sdb/ldap/ldapdb.[ch] bin/named
96
		cp -fp contrib/sdb/ldap/{ldap2zone.1,ldap2zone.c} bin/tools
97
		cp -fp contrib/sdb/ldap/{zone2ldap.1,zone2ldap.c} bin/tools
98
	fi
94
99
95
	if use geoip; then
100
	if use geoip; then
96
		cp "${DISTDIR}"/${GEOIP_PATCH_A} "${S}" || die
101
		cp "${DISTDIR}"/${GEOIP_PATCH_A} "${S}" || die
97
		sed -i -e 's/-RELEASEVER=2/-RELEASEVER=3/' \
102
		sed -i -e 's/ MINORVER=7/ MINORVER=8/' \
98
			-e 's/+RELEASEVER=2-geoip-1.3/+RELEASEVER=3-geoip-1.3/' \
103
			-e 's/ PATCHVER=2/ PATCHVER=0/' \
104
			-e 's/ RELEASETYPE=-P/ RELEASETYPE=b/' \
105
			-e 's/-RELEASEVER=2/-RELEASEVER=1/' \
106
			-e 's/+RELEASEVER=2-geoip-1.3/+RELEASEVER=1-geoip-1.3/' \
99
			${GEOIP_PATCH_A} || die
107
			${GEOIP_PATCH_A} || die
100
		epatch ${GEOIP_PATCH_A}
108
		epatch ${GEOIP_PATCH_A}
101
	fi
109
	fi
Lines 169-174 Link Here
169
	echo '#undef SO_BSDCOMPAT' >> config.h
177
	echo '#undef SO_BSDCOMPAT' >> config.h
170
}
178
}
171
179
180
src_compile() {
181
	emake -j1 || die
182
}
183
172
src_install() {
184
src_install() {
173
	emake DESTDIR="${D}" install || die
185
	emake DESTDIR="${D}" install || die
174
186

Return to bug 302735