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

Collapse All | Expand All

(-)/usr/portage/net-fs/samba/samba-4.0.1.ebuild (-17 / +16 lines)
Lines 1-11 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2013 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-4.0.1.ebuild,v 1.2 2013/01/21 21:43:47 vostorga Exp $
3
# $Header: $
4
4
5
EAPI=4
5
EAPI=5
6
PYTHON_DEPEND="2"
6
PYTHON_COMPAT="python2_7"
7
7
8
inherit python waf-utils multilib linux-info
8
inherit python-r1 waf-utils multilib linux-info
9
9
10
MY_PV="${PV/_rc/rc}"
10
MY_PV="${PV/_rc/rc}"
11
MY_P="${PN}-${MY_PV}"
11
MY_P="${PN}-${MY_PV}"
Lines 28-38 Link Here
28
IUSE="acl addns ads aio avahi client cluster cups gnutls iprint
28
IUSE="acl addns ads aio avahi client cluster cups gnutls iprint
29
ldap pam quota selinux swat syslog winbind"
29
ldap pam quota selinux swat syslog winbind"
30
30
31
RDEPEND="dev-libs/iniparser
31
RDEPEND="${PYTHON_DEPS}
32
	dev-libs/iniparser
32
	dev-libs/popt
33
	dev-libs/popt
33
	sys-libs/readline
34
	sys-libs/readline
34
	virtual/libiconv
35
	virtual/libiconv
35
	>=dev-lang/python-2.4.2
36
	dev-python/subunit
36
	dev-python/subunit
37
	sys-libs/libcap
37
	sys-libs/libcap
38
	>=sys-libs/ldb-1.1.13
38
	>=sys-libs/ldb-1.1.13
Lines 41-46 Link Here
41
	>=sys-libs/tevent-0.9.17
41
	>=sys-libs/tevent-0.9.17
42
	sys-libs/zlib
42
	sys-libs/zlib
43
	>=app-crypt/heimdal-1.5[-ssl]
43
	>=app-crypt/heimdal-1.5[-ssl]
44
	addns? ( net-dns/bind-tools[gssapi] )
44
	client? ( net-fs/cifs-utils[ads?] )
45
	client? ( net-fs/cifs-utils[ads?] )
45
	cluster? ( >=dev-db/ctdb-1.0.114_p1 )
46
	cluster? ( >=dev-db/ctdb-1.0.114_p1 )
46
	ldap? ( net-nds/openldap )
47
	ldap? ( net-nds/openldap )
Lines 60-68 Link Here
60
WAF_BINARY="${S}/buildtools/bin/waf"
61
WAF_BINARY="${S}/buildtools/bin/waf"
61
62
62
pkg_setup() {
63
pkg_setup() {
63
	python_set_active_version 2
64
	python_export_best
64
	python_pkg_setup
65
66
	if use aio; then
65
	if use aio; then
67
		if ! linux_config_exists || ! linux_chkconfig_present AIO; then
66
		if ! linux_config_exists || ! linux_chkconfig_present AIO; then
68
				ewarn "You must enable AIO support in your kernel config, "
67
				ewarn "You must enable AIO support in your kernel config, "
Lines 117-122 Link Here
117
src_install() {
116
src_install() {
118
	waf-utils_src_install
117
	waf-utils_src_install
119
118
119
	python_replicate_script \
120
		"${D}/usr/sbin/samba_upgradeprovision" \
121
		"${D}/usr/sbin/samba_dnsupdate" \
122
		"${D}/usr/sbin/samba_spnupdate" \
123
		"${D}/usr/sbin/samba_upgradedns" \
124
		"${D}/usr/sbin/samba_kcc" \
125
		"${D}/usr/bin/samba-tool"
126
120
	# Make all .so files executable
127
	# Make all .so files executable
121
	find "${D}" -type f -name "*.so" -exec chmod +x {} +
128
	find "${D}" -type f -name "*.so" -exec chmod +x {} +
122
129
Lines 134-142 Link Here
134
}
141
}
135
142
136
pkg_postinst() {
143
pkg_postinst() {
137
	# Optimize the python modules so they get properly removed
138
	python_mod_optimize "${PN}"
139
140
	elog "This is is the first stable release of Samba 4.0"
144
	elog "This is is the first stable release of Samba 4.0"
141
145
142
	ewarn "Be aware the this release contains the best of all of Samba's"
146
	ewarn "Be aware the this release contains the best of all of Samba's"
Lines 149-156 Link Here
149
	elog "http://samba.org/samba/history/${PN}-4.0.0.html and"
153
	elog "http://samba.org/samba/history/${PN}-4.0.0.html and"
150
	elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
154
	elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
151
}
155
}
152
153
pkg_postrm() {
154
	# Clean up the python modules
155
	python_mod_cleanup "${PN}"
156
}

Return to bug 195703