1 |
patrick 10/01/26 19:03:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: samba-libs-3.5.0_rc2.ebuild |
5 |
Log: |
6 |
Adding 3.5_rc |
7 |
(Portage version: 2.2_rc61/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.30 net-fs/samba-libs/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/ChangeLog?rev=1.30&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/ChangeLog?rev=1.30&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/ChangeLog?r1=1.29&r2=1.30 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/samba-libs/ChangeLog,v |
19 |
retrieving revision 1.29 |
20 |
retrieving revision 1.30 |
21 |
diff -u -r1.29 -r1.30 |
22 |
--- ChangeLog 19 Jan 2010 19:04:25 -0000 1.29 |
23 |
+++ ChangeLog 26 Jan 2010 19:03:35 -0000 1.30 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for net-fs/samba-libs |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-libs/ChangeLog,v 1.29 2010/01/19 19:04:25 patrick Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-libs/ChangeLog,v 1.30 2010/01/26 19:03:35 patrick Exp $ |
29 |
+ |
30 |
+*samba-libs-3.5.0_rc2 (26 Jan 2010) |
31 |
+ |
32 |
+ 26 Jan 2010; Patrick Lauer <patrick@g.o> |
33 |
+ +files/3.5/nsswitch.conf-winbind, +samba-libs-3.5.0_rc2.ebuild, |
34 |
+ +files/3.5/nsswitch.conf-wins, +files/3.5/samba.pam, |
35 |
+ +files/3.5/system-auth-winbind.pam: |
36 |
+ Adding 3.5_rc |
37 |
|
38 |
*samba-libs-3.4.5 (19 Jan 2010) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 net-fs/samba-libs/samba-libs-3.5.0_rc2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/samba-libs-3.5.0_rc2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/samba-libs-3.5.0_rc2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: samba-libs-3.5.0_rc2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-libs/samba-libs-3.5.0_rc2.ebuild,v 1.1 2010/01/26 19:03:35 patrick Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
|
56 |
inherit pam confutils versionator multilib autotools |
57 |
|
58 |
MY_PV=${PV/_/} |
59 |
MY_P="samba-${MY_PV}" |
60 |
|
61 |
DESCRIPTION="Library bits of the samba network filesystem" |
62 |
HOMEPAGE="http://www.samba.org/" |
63 |
SRC_URI="http://samba.org/samba/ftp/rc/${MY_P}.tar.gz" |
64 |
LICENSE="GPL-3" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
67 |
IUSE="samba4 ads aio caps cluster cups debug examples ldap pam syslog winbind |
68 |
ldb +netapi +smbclient smbsharemodes addns tools" |
69 |
|
70 |
DEPEND="dev-libs/popt |
71 |
sys-libs/talloc |
72 |
sys-libs/tdb |
73 |
virtual/libiconv |
74 |
ads? ( virtual/krb5 sys-fs/e2fsprogs ) |
75 |
caps? ( sys-libs/libcap ) |
76 |
cluster? ( dev-db/ctdb ) |
77 |
cups? ( net-print/cups ) |
78 |
debug? ( dev-libs/dmalloc ) |
79 |
ldap? ( net-nds/openldap ) |
80 |
pam? ( virtual/pam |
81 |
winbind? ( dev-libs/iniparser ) ) |
82 |
syslog? ( virtual/logger ) |
83 |
!<net-fs/samba-3.3 |
84 |
!=net-fs/samba-server-3.4.3[tools]" |
85 |
# last blocker is only temporary for #288516 |
86 |
|
87 |
RDEPEND="${DEPEND}" |
88 |
|
89 |
# Disable tests since we don't want to build that much here |
90 |
RESTRICT="test" |
91 |
|
92 |
BINPROGS="" |
93 |
|
94 |
if use tools ; then |
95 |
if use ldb ; then BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"; fi |
96 |
fi |
97 |
|
98 |
S="${WORKDIR}/${MY_P}/source3" |
99 |
|
100 |
# TODO: |
101 |
# - enable iPrint on Prefix/OSX and Darwin? |
102 |
# - selftest-prefix? selftest? |
103 |
|
104 |
CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
105 |
|
106 |
pkg_setup() { |
107 |
confutils_use_depend_all samba4 ads |
108 |
confutils_use_depend_all ads ldap |
109 |
} |
110 |
|
111 |
src_prepare() { |
112 |
|
113 |
cd ".." |
114 |
|
115 |
cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "lib/tevent/python.mk" |
116 |
|
117 |
cd "source3" |
118 |
eautoconf -Ilibreplace -Im4 -I../m4 -I../lib/replace -I../source4 |
119 |
|
120 |
# ensure that winbind has correct ldflags (QA notice) |
121 |
sed -i \ |
122 |
-e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \ |
123 |
configure || die "sed failed" |
124 |
} |
125 |
|
126 |
src_configure() { |
127 |
local myconf |
128 |
|
129 |
# compile franky samba4 hybrid |
130 |
# http://wiki.samba.org/index.php/Franky |
131 |
if use samba4 ; then |
132 |
myconf="${myconf} --enable-merged-build --enable-developer" |
133 |
if has_version app-crypt/heimdal ; then |
134 |
myconf="${myconf} --with-krb5=/usr/" |
135 |
elif has_version app-crypt/mit-krb5 ; then |
136 |
die "MIT Kerberos not supported by samba 4, use heimdal" |
137 |
else |
138 |
die "No supported kerberos provider detected" |
139 |
fi |
140 |
fi |
141 |
|
142 |
# Filter out -fPIE |
143 |
[[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie" |
144 |
use hppa && myconf="${myconf} --disable-pie" |
145 |
|
146 |
# Upstream refuses to make this configurable |
147 |
use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no |
148 |
|
149 |
# Notes: |
150 |
# - FAM is a plugin for the server |
151 |
# - DNS-SD is only used in client/server code |
152 |
# - AFS is a pw-auth-method and only used in client/server code |
153 |
# - AFSACL is a server module |
154 |
# - automount is only needed in conjunction with NIS and we don't have that |
155 |
# anymore |
156 |
# - quota-support is only needed in server-code |
157 |
# - acl-support is only used in server-code |
158 |
# - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default |
159 |
econf ${myconf} \ |
160 |
--sysconfdir=/etc/samba \ |
161 |
--localstatedir=/var \ |
162 |
$(use_enable debug developer) \ |
163 |
--enable-largefile \ |
164 |
--enable-socket-wrapper \ |
165 |
--enable-nss-wrapper \ |
166 |
--disable-swat \ |
167 |
$(use_enable debug dmalloc) \ |
168 |
$(use_enable cups) \ |
169 |
--disable-iprint \ |
170 |
--disable-fam \ |
171 |
--enable-shared-libs \ |
172 |
--disable-dnssd \ |
173 |
--disable-avahi \ |
174 |
--with-fhs \ |
175 |
--with-privatedir=/var/lib/samba/private \ |
176 |
--with-rootsbindir=/var/cache/samba \ |
177 |
--with-lockdir=/var/cache/samba \ |
178 |
--with-swatdir=/usr/share/doc/${PF}/swat \ |
179 |
--with-configdir=/etc/samba \ |
180 |
--with-logfilebase=/var/log/samba \ |
181 |
--with-pammodulesdir=$(getpam_mod_dir) \ |
182 |
--without-afs \ |
183 |
--without-fake-kaserver \ |
184 |
--without-vfs-afsacl \ |
185 |
$(use_with ldap) \ |
186 |
$(use_with ads) \ |
187 |
$(use_with ads krb5 /usr) \ |
188 |
$(use_with ads dnsupdate) \ |
189 |
--without-automount \ |
190 |
--without-cifsmount \ |
191 |
--without-cifsupcall \ |
192 |
$(use_with pam) \ |
193 |
$(use_with pam pam_smbpass) \ |
194 |
$(use_with syslog) \ |
195 |
--without-quotas \ |
196 |
--without-sys-quotas \ |
197 |
--without-utmp \ |
198 |
--without-libtdb \ |
199 |
$(use_with netapi libnetapi) \ |
200 |
--without-libtalloc \ |
201 |
$(use_with smbclient libsmbclient) \ |
202 |
$(use_with smbsharemodes libsmbsharemodes) \ |
203 |
$(use_with addns libaddns) \ |
204 |
$(use_with cluster ctdb /usr) \ |
205 |
$(use_with cluster cluster-support) \ |
206 |
--without-acl-support \ |
207 |
$(use_with aio aio-support) \ |
208 |
--with-sendfile-support \ |
209 |
$(use_with winbind) \ |
210 |
--without-included-popt \ |
211 |
--without-included-iniparser |
212 |
} |
213 |
|
214 |
src_compile() { |
215 |
|
216 |
# compile libs |
217 |
if use addns ; then |
218 |
einfo "make addns library" |
219 |
emake libaddns || die "emake libaddns failed" |
220 |
fi |
221 |
if use netapi ; then |
222 |
einfo "make netapi library" |
223 |
emake libnetapi || die "emake libnetapi failed" |
224 |
fi |
225 |
if use smbclient ; then |
226 |
einfo "make smbclient library" |
227 |
emake libsmbclient || die "emake libsmbclient failed" |
228 |
fi |
229 |
if use smbsharemodes ; then |
230 |
einfo "make smbsharemodes library" |
231 |
emake libsmbsharemodes || die "emake libsmbsharemodes failed" |
232 |
fi |
233 |
|
234 |
# compile modules |
235 |
if use pam ; then |
236 |
einfo "make pam modules" |
237 |
emake pam_modules || die "emake pam_modules failed"; |
238 |
fi |
239 |
if use winbind ; then |
240 |
einfo "make nss modules" |
241 |
emake nss_modules || die "emake nss_modules failed"; |
242 |
fi |
243 |
|
244 |
# compile utilities |
245 |
if use tools ; then |
246 |
einfo "make utilities" |
247 |
emake ${BINPROGS} || die "emake binprogs failed"; |
248 |
fi |
249 |
|
250 |
} |
251 |
|
252 |
src_install() { |
253 |
|
254 |
# install libs |
255 |
if use netapi ; then |
256 |
einfo "install netapi library" |
257 |
emake installlibnetapi DESTDIR="${D}" || die "emake install libnetapi failed" |
258 |
fi |
259 |
if use smbclient ; then |
260 |
einfo "install smbclient library" |
261 |
emake installlibsmbclient DESTDIR="${D}" || die "emake install libsmbclient failed" |
262 |
fi |
263 |
if use smbsharemodes ; then |
264 |
einfo "install smbsharemodes library" |
265 |
emake installlibsmbsharemodes DESTDIR="${D}" || die "emake install libsmbsharemodes failed" |
266 |
fi |
267 |
if use addns ; then |
268 |
einfo "install addns library" |
269 |
emake installlibaddns DESTDIR="${D}" || die "emake install libaddns failed" |
270 |
fi |
271 |
|
272 |
# install modules |
273 |
if use pam ; then |
274 |
einfo "install pam modules" |
275 |
emake installpammodules DESTDIR="${D}" || die "emake installpammodules failed" |
276 |
fi |
277 |
|
278 |
# Remove empty installation directories |
279 |
rmdir \ |
280 |
"${D}/usr/$(get_libdir)/samba" \ |
281 |
"${D}/usr"/{sbin,bin} \ |
282 |
"${D}/usr/share"/{man,locale,} \ |
283 |
"${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \ |
284 |
# || die "tried to remove non-empty dirs, this seems like a bug in the ebuild" |
285 |
|
286 |
# Nsswitch extensions. Make link for wins and winbind resolvers |
287 |
if use winbind ; then |
288 |
einfo "install lbwbclient" |
289 |
emake installlibwbclient DESTDIR="${D}" || die "emake installlibwbclient failed" |
290 |
dolib.so ../nsswitch/libnss_wins.so |
291 |
dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2 |
292 |
dolib.so ../nsswitch/libnss_winbind.so |
293 |
dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2 |
294 |
fi |
295 |
|
296 |
if use pam ; then |
297 |
if use winbind ; then |
298 |
newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
299 |
doman ../docs/manpages/pam_winbind.8 |
300 |
dohtml ../docs/htmldocs/manpages/pam_winbind.8.html |
301 |
|
302 |
if use examples ; then |
303 |
insinto /usr/share/doc/${PF}/examples |
304 |
doins -r ../examples/pam_winbind |
305 |
fi |
306 |
fi |
307 |
|
308 |
newpamd "${CONFDIR}/samba.pam" samba |
309 |
dodoc pam_smbpass/README |
310 |
fi |
311 |
|
312 |
# install utilities |
313 |
if use tools && [[ -n "${BINPROGS}" ]] ; then |
314 |
einfo "install utilities" |
315 |
dobin ${BINPROGS} || die "not all bins around" |
316 |
for prog in ${BINPROGS} ; do |
317 |
doman ../docs/manpages/${prog/bin\/}* || die "doman failed" |
318 |
dohtml ../docs/htmldocs/manpages/${prog/bin\/}*.html || die "dohtml failed" |
319 |
done |
320 |
fi |
321 |
|
322 |
# install examples |
323 |
if use examples ; then |
324 |
einfo "install examples" |
325 |
insinto /usr/share/doc/${PF}/examples |
326 |
doins -r ../examples/libsmbclient |
327 |
use winbind && doins -r ../examples/nss |
328 |
fi |
329 |
|
330 |
} |