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