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