Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/samba-client: ChangeLog samba-client-3.4.4.ebuild
Date: Thu, 07 Jan 2010 13:50:51
Message-Id: E1NSslF-0003kU-Ia@stork.gentoo.org
1 patrick 10/01/07 13:50:49
2
3 Modified: ChangeLog
4 Added: samba-client-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.22 net-fs/samba-client/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/ChangeLog?rev=1.22&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/ChangeLog?rev=1.22&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/ChangeLog?r1=1.21&r2=1.22
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba-client/ChangeLog,v
19 retrieving revision 1.21
20 retrieving revision 1.22
21 diff -u -r1.21 -r1.22
22 --- ChangeLog 30 Nov 2009 16:24:14 -0000 1.21
23 +++ ChangeLog 7 Jan 2010 13:50:49 -0000 1.22
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-fs/samba-client
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-client/ChangeLog,v 1.21 2009/11/30 16:24:14 armin76 Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-client/ChangeLog,v 1.22 2010/01/07 13:50:49 patrick Exp $
30 +
31 +*samba-client-3.4.4 (07 Jan 2010)
32 +
33 + 07 Jan 2010; Patrick Lauer <patrick@g.o>
34 + +samba-client-3.4.4.ebuild:
35 + Bump
36
37 30 Nov 2009; Raúl Porcel <armin76@g.o> samba-client-3.4.3.ebuild:
38 Add ~arm/~ia64/~s390/~sh/~sparc wrt #285952
39
40
41
42 1.1 net-fs/samba-client/samba-client-3.4.4.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/samba-client-3.4.4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/samba-client-3.4.4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: samba-client-3.4.4.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-fs/samba-client/samba-client-3.4.4.ebuild,v 1.1 2010/01/07 13:50:49 patrick Exp $
52
53 EAPI="2"
54
55 inherit pam confutils versionator multilib eutils toolchain-funcs autotools
56
57 MY_P="samba-${PV}"
58
59 DESCRIPTION="Client bits of the samba network filesystem"
60 HOMEPAGE="http://www.samba.org/"
61 SRC_URI="mirror://samba/${MY_P}.tar.gz"
62 LICENSE="GPL-3"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
65 IUSE="samba4 ads aio avahi caps cluster cups debug ldap minimal syslog winbind zeroconf"
66
67 DEPEND="!<net-fs/samba-3.3
68 !net-fs/mount-cifs
69 ads? ( virtual/krb5 sys-fs/e2fsprogs
70 net-fs/samba-libs[ads] sys-apps/keyutils )
71 !minimal? (
72 dev-libs/popt
73 dev-libs/iniparser
74 virtual/libiconv
75 zeroconf? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) )
76 caps? ( sys-libs/libcap )
77 cups? ( net-print/cups )
78 debug? ( dev-libs/dmalloc )
79 ldap? ( net-nds/openldap )
80 syslog? ( virtual/logger )
81 sys-libs/tdb
82 sys-libs/talloc
83 ~net-fs/samba-libs-${PV}[caps?,cups?,ldap?,syslog?,winbind?,ads?,samba4?,netapi] )"
84 RDEPEND="${DEPEND}"
85
86 S="${WORKDIR}/${MY_P}/source3"
87
88 # TODO:
89 # - enable iPrint on Prefix/OSX and Darwin?
90 # - selftest-prefix? selftest?
91
92 RESTRICT="test"
93
94 CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
95 BINPROGS="bin/smbclient bin/net bin/smbget bin/smbtree bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas bin/ntlm_auth"
96
97 pkg_setup() {
98 confutils_use_depend_all samba4 ads
99 confutils_use_depend_all ads ldap
100 }
101
102 src_prepare() {
103
104 cd ".."
105
106 epatch \
107 "${FILESDIR}/samba-3.4.2-missing_includes.patch" \
108 "${FILESDIR}/samba-3.4.2-fix-samba4-automake.patch" \
109 "${FILESDIR}/samba-3.4.2-insert-AC_LD_VERSIONSCRIPT.patch"
110 # "${FILESDIR}/samba-3.4.2-upgrade-tevent-version.patch" \
111
112 cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "lib/tevent/python.mk"
113
114 cd "source3"
115 eautoconf -Ilibreplace -Im4 -I../m4 -I../lib/replace -I../source4
116 }
117
118 src_configure() {
119 local myconf
120
121 # compile franky samba4 hybrid
122 # http://wiki.samba.org/index.php/Franky
123 if use samba4 ; then
124 myconf="${myconf} --enable-merged-build --enable-developer"
125 if has_version app-crypt/heimdal ; then
126 myconf="${myconf} --with-krb5=/usr/"
127 elif has_version app-crypt/mit-krb5 ; then
128 die "MIT Kerberos not supported by samba 4, use heimdal"
129 else
130 die "No supported kerberos provider detected"
131 fi
132 fi
133
134 # Filter out -fPIE
135 [[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie"
136 use hppa && myconf="${myconf} --disable-pie"
137
138 # Upstream refuses to make this configurable
139 export ac_cv_header_sys_capability_h=no
140 if ! use minimal ; then
141 use caps && export ac_cv_header_sys_capability_h=yes
142 fi
143
144 if ! use minimal || use ads; then
145 # Notes:
146 # - FAM is a plugin for the server
147 # - DNS-SD is only used in client/server code
148 # - AFS is a pw-auth-method and only used in client/server code
149 # - AFSACL is a server module
150 # - automount is only needed in conjunction with NIS and we don't have that
151 # anymore
152 # - quota-support is only needed in server-code
153 # - acl-support is only used in server-code
154 # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default
155 # - current DNS/SD support in the client is via the mdnsresponder-compat api in avahi
156 econf ${myconf} \
157 --sysconfdir=/etc/samba \
158 --localstatedir=/var \
159 $(use_enable debug developer) \
160 --enable-largefile \
161 --enable-socket-wrapper \
162 --enable-nss-wrapper \
163 --disable-swat \
164 $(use_enable debug dmalloc) \
165 $(use minimal && echo "--disable-cups" || echo "$(use_enable cups)") \
166 --disable-iprint \
167 --disable-fam \
168 --enable-shared-libs \
169 $(use minimal && echo "--disable-dnssd" || echo "$(use_enable avahi dnssd)") \
170 --disable-avahi \
171 --with-fhs \
172 --with-privatedir=/var/lib/samba/private \
173 --with-rootsbindir=/var/cache/samba \
174 --with-lockdir=/var/cache/samba \
175 --with-swatdir=/usr/share/doc/${PF}/swat \
176 --with-configdir=/etc/samba \
177 --with-logfilebase=/var/log/samba \
178 --with-pammodulesdir=$(getpam_mod_dir) \
179 --without-afs \
180 --without-fake-kaserver \
181 --without-vfs-afsacl \
182 $(use minimal && echo "--without-ldap" || echo "$(use_with ldap)") \
183 $(use minimal && echo "--without-ads" || echo "$(use_with ads)") \
184 $(use minimal && echo "--without-krb5" || echo "$(use_with ads krb5 /usr)") \
185 $(use minimal && echo "--without-dnsupdate" || echo "$(use_with ads dnsupdate)") \
186 --without-automount \
187 --without-cifsmount \
188 --without-cifsupcall \
189 --without-pam \
190 --without-pam_smbpass \
191 $(use minimal && echo "--without-syslog" || echo "$(use_with syslog)") \
192 --without-quotas \
193 --without-sys-quotas \
194 --without-utmp \
195 --without-lib{talloc,tdb,netapi,smbclient,smbsharemodes} \
196 --without-libaddns \
197 $(use minimal && echo "--without-ctdb" || echo "$(use_with cluster ctdb /usr)") \
198 $(use minimal && echo "--without-cluster" || echo "$(use_with cluster cluster-support)") \
199 --without-acl-support \
200 $(use minimal && echo "--without-aio-support" || echo "$(use_with aio aio-support)") \
201 --with-sendfile-support \
202 $(use minimal && echo "--without-winbind" || echo "$(use_with winbind)") \
203 --without-included-popt \
204 --without-included-iniparser
205 fi
206 }
207
208 src_compile() {
209 mkdir bin
210 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bin/mount.cifs client/{mount.cifs,mtab}.c || die "building mount.cifs failed"
211 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bin/umount.cifs client/{umount.cifs,mtab}.c || die "building umount.cifs failed"
212
213 if use ads ; then
214 emake bin/cifs.upcall || die "emake cifs.upcall failed"
215 fi
216
217 if ! use minimal ; then
218 emake ${BINPROGS} || die "emake binprogs failed"
219 if use cups ; then
220 emake bin/smbspool || die "emake smbspool failed"
221 fi
222 fi
223 }
224
225 src_install() {
226 into /
227 dosbin bin/mount.cifs bin/umount.cifs || die "u/mount.cifs not around"
228 doman ../docs/manpages/{u,}mount.cifs.8 || die "can't create man pages"
229 dohtml ../docs/htmldocs/manpages/{u,}mount.cifs.8.html || die "dohtml failed"
230
231 into /usr
232 if use ads ; then
233 dosbin bin/cifs.upcall || die "cifs.upcall not around"
234 doman ../docs/manpages/cifs.upcall.8 || die "doman failed"
235 dohtml ../docs/htmldocs/manpages/cifs.upcall.8.html || die "doman failed"
236 fi
237
238 if ! use minimal ; then
239 dobin ${BINPROGS} || die "not all bins around"
240 for prog in ${BINPROGS} ; do
241 doman ../docs/manpages/${prog/bin\/}* || die "doman failed"
242 dohtml ../docs/htmldocs/manpages/${prog/bin\/}*.html || die "dohtml failed"
243 done
244
245 if use cups ; then
246 dobin bin/smbspool || die "smbspool not around"
247 doman ../docs/manpages/smbspool.8 || die "doman failed"
248 dohtml ../docs/htmldocs/manpages/smbspool.8.html || die "dohtml failed"
249 dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb
250 fi
251 fi
252 }