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

Collapse All | Expand All

(-)/usr/portage/net-fs/samba/samba-4.2.0.ebuild (-2 / +12 lines)
Lines 51-57 CDEPEND="${PYTHON_DEPS} Link Here
51
	acl? ( virtual/acl )
51
	acl? ( virtual/acl )
52
	addns? ( net-dns/bind-tools[gssapi] )
52
	addns? ( net-dns/bind-tools[gssapi] )
53
	aio? ( dev-libs/libaio )
53
	aio? ( dev-libs/libaio )
54
	cluster? ( >=dev-db/ctdb-1.0.114_p1 )
54
	cluster? ( !dev-db/ctdb )
55
	cups? ( net-print/cups )
55
	cups? ( net-print/cups )
56
	dmapi? ( sys-apps/dmapi )
56
	dmapi? ( sys-apps/dmapi )
57
	fam? ( virtual/fam )
57
	fam? ( virtual/fam )
Lines 93-101 pkg_setup() { Link Here
93
	fi
93
	fi
94
}
94
}
95
95
96
src_prepare(){
97
	cd "${S}" || die
98
	sed -i -e 's:USING_SYSTEM_KDC:USING_SYSTEM_KDC_:' source4/kdc/wscript_build
99
	sed -i -e 's:/tmp/ctdb.socket:/var/run/ctdb/ctdb.socket:g' {ctdb/doc,docs-xml/smbdotconf/misc}/*ml
100
}
101
96
src_configure() {
102
src_configure() {
97
	local myconf=''
103
	local myconf=''
98
	use "cluster" && myconf+=" --with-ctdb-dir=/usr"
99
	use "test" && myconf+=" --enable-selftest"
104
	use "test" && myconf+=" --enable-selftest"
100
	myconf="${myconf} \
105
	myconf="${myconf} \
101
		--enable-fhs \
106
		--enable-fhs \
Lines 151-156 src_install() { Link Here
151
	newinitd "${CONFDIR}/samba4.initd-r1" samba
156
	newinitd "${CONFDIR}/samba4.initd-r1" samba
152
	newconfd "${CONFDIR}/samba4.confd" samba
157
	newconfd "${CONFDIR}/samba4.confd" samba
153
158
159
	if use cluster; then
160
		newinitd "${CONFDIR}/ctdb.initd" ctdb
161
		newconfd "${CONFDIR}/ctdb.confd" ctdb
162
	fi
163
154
	systemd_dotmpfilesd "${FILESDIR}"/samba.conf
164
	systemd_dotmpfilesd "${FILESDIR}"/samba.conf
155
	systemd_dounit "${FILESDIR}"/nmbd.service
165
	systemd_dounit "${FILESDIR}"/nmbd.service
156
	systemd_dounit "${FILESDIR}"/smbd.{service,socket}
166
	systemd_dounit "${FILESDIR}"/smbd.{service,socket}

Return to bug 542638