Lines 5-11
Link Here
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
PYTHON_DEPEND="2" |
6 |
PYTHON_DEPEND="2" |
7 |
|
7 |
|
8 |
inherit confutils python waf-utils multilib linux-info |
8 |
inherit python 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 59-66
Link Here
|
59 |
WAF_BINARY="${S}/buildtools/bin/waf" |
59 |
WAF_BINARY="${S}/buildtools/bin/waf" |
60 |
|
60 |
|
61 |
pkg_setup() { |
61 |
pkg_setup() { |
62 |
confutils_use_depend_all fulltest test |
|
|
63 |
|
64 |
python_set_active_version 2 |
62 |
python_set_active_version 2 |
65 |
python_pkg_setup |
63 |
python_pkg_setup |
66 |
|
64 |
|
Lines 80-92
Link Here
|
80 |
|
78 |
|
81 |
src_configure() { |
79 |
src_configure() { |
82 |
local myconf='' |
80 |
local myconf='' |
83 |
if use "debug"; then |
81 |
use "debug" && myconf+=" --enable-developer" |
84 |
myconf="${myconf} --enable-developer" |
82 |
use "cluster" && myconf+=" --with-ctdb-dir=/usr" |
85 |
fi |
83 |
myconf+=" |
86 |
if use "cluster"; then |
|
|
87 |
myconf="${myconf} --with-ctdb-dir=/usr" |
88 |
fi |
89 |
myconf="${myconf} \ |
90 |
--enable-fhs \ |
84 |
--enable-fhs \ |
91 |
--sysconfdir=/etc \ |
85 |
--sysconfdir=/etc \ |
92 |
--localstatedir=/var \ |
86 |
--localstatedir=/var \ |
Lines 113-119
Link Here
|
113 |
$(use_with quota) \ |
107 |
$(use_with quota) \ |
114 |
$(use_with syslog) \ |
108 |
$(use_with syslog) \ |
115 |
$(use_with swat) \ |
109 |
$(use_with swat) \ |
116 |
$(use_with winbind)" |
110 |
$(use_with winbind) |
|
|
111 |
" |
117 |
CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" \ |
112 |
CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" \ |
118 |
waf-utils_src_configure ${myconf} |
113 |
waf-utils_src_configure ${myconf} |
119 |
} |
114 |
} |
Lines 129-141
Link Here
|
129 |
mv "${D}"/usr/$(get_libdir)/ldb/*.so "${D}"/usr/$(get_libdir)/ldb/modules/ldb |
124 |
mv "${D}"/usr/$(get_libdir)/ldb/*.so "${D}"/usr/$(get_libdir)/ldb/modules/ldb |
130 |
|
125 |
|
131 |
# Install init script and conf.d file |
126 |
# Install init script and conf.d file |
132 |
newinitd "${CONFDIR}/samba4.initd-r1" samba || die "newinitd failed" |
127 |
newinitd "${CONFDIR}/samba4.initd-r1" samba |
133 |
newconfd "${CONFDIR}/samba4.confd" samba || die "newconfd failed" |
128 |
newconfd "${CONFDIR}/samba4.confd" samba |
134 |
} |
129 |
} |
135 |
|
130 |
|
136 |
src_test() { |
131 |
src_test() { |
137 |
local extra_opts="" |
132 |
local extra_opts="" |
138 |
use fulltest || extra_opts+="--quick" |
133 |
use fulltest || extra_opts+=" --quick" |
139 |
"${WAF_BINARY}" test ${extra_opts} || die "test failed" |
134 |
"${WAF_BINARY}" test ${extra_opts} || die "test failed" |
140 |
} |
135 |
} |
141 |
|
136 |
|