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.3.8.ebuild
Date: Fri, 02 Oct 2009 13:54:45
Message-Id: E1Mtiap-0004Rp-D5@stork.gentoo.org
1 patrick 09/10/02 13:54:43
2
3 Modified: ChangeLog
4 Added: samba-client-3.3.8.ebuild
5 Log:
6 Bump
7 (Portage version: 2.2_rc42/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.8 net-fs/samba-client/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/ChangeLog?rev=1.8&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/ChangeLog?rev=1.8&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/ChangeLog?r1=1.7&r2=1.8
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba-client/ChangeLog,v
19 retrieving revision 1.7
20 retrieving revision 1.8
21 diff -u -r1.7 -r1.8
22 --- ChangeLog 30 Sep 2009 19:52:09 -0000 1.7
23 +++ ChangeLog 2 Oct 2009 13:54:42 -0000 1.8
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.7 2009/09/30 19:52:09 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-client/ChangeLog,v 1.8 2009/10/02 13:54:42 patrick Exp $
29 +
30 +*samba-client-3.3.8 (02 Oct 2009)
31 +
32 + 02 Oct 2009; Patrick Lauer <patrick@g.o>
33 + +samba-client-3.3.8.ebuild:
34 + Bump
35
36 30 Sep 2009; Jeroen Roovers <jer@g.o> samba-client-3.3.7.ebuild:
37 Marked ~hppa (bug #285952).
38
39
40
41 1.1 net-fs/samba-client/samba-client-3.3.8.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/samba-client-3.3.8.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/samba-client-3.3.8.ebuild?rev=1.1&content-type=text/plain
45
46 Index: samba-client-3.3.8.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-fs/samba-client/samba-client-3.3.8.ebuild,v 1.1 2009/10/02 13:54:42 patrick Exp $
51
52 EAPI="2"
53
54 inherit pam confutils versionator multilib eutils toolchain-funcs
55
56 MY_P="samba-${PV}"
57
58 DESCRIPTION="Libraries from Samba"
59 HOMEPAGE="http://www.samba.org/"
60 SRC_URI="mirror://samba/${MY_P}.tar.gz"
61 LICENSE="GPL-3"
62 SLOT="0"
63 KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
64 IUSE="ads aio avahi caps cluster cups debug ldap minimal syslog winbind zeroconf"
65
66 DEPEND="!<net-fs/samba-3.3
67 !net-fs/mount-cifs
68 ads? ( virtual/krb5 sys-fs/e2fsprogs
69 net-fs/samba-libs[ads] sys-apps/keyutils )
70 !minimal? (
71 dev-libs/popt
72 dev-libs/iniparser
73 virtual/libiconv
74 zeroconf? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) )
75 caps? ( sys-libs/libcap )
76 cups? ( net-print/cups )
77 debug? ( dev-libs/dmalloc )
78 ldap? ( net-nds/openldap )
79 syslog? ( virtual/logger )
80 net-fs/samba-libs[caps?,cups?,ldap?,syslog?,winbind?]
81 )"
82 RDEPEND="${DEPEND}"
83
84 S="${WORKDIR}/${MY_P}/source"
85
86 # TODO:
87 # - enable iPrint on Prefix/OSX and Darwin?
88 # - selftest-prefix? selftest?
89
90 RESTRICT="test"
91
92 CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
93 BINPROGS="bin/smbclient bin/net bin/smbget bin/smbtree bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas bin/ntlm_auth"
94
95 pkg_setup() {
96 confutils_use_depend_all ads ldap
97 }
98
99 src_prepare() {
100 epatch \
101 "${FILESDIR}/3.3.4-missing_includes.patch" \
102 "${FILESDIR}/3.3.3-fix-as-needed.patch"
103
104 sed -i \
105 -e 's|"lib32" ||' \
106 -e 's|if test -d "$i/$l" ;|if test -d "$i/$l" -o -L "$i/$l";|' \
107 configure || die "sed failed"
108
109 sed -i \
110 -e 's|@LIBTALLOC_SHARED@||g' \
111 -e 's|@LIBTDB_SHARED@||g' \
112 -e 's|@LIBWBCLIENT_SHARED@||g' \
113 -e 's|@LIBNETAPI_SHARED@||g' \
114 -e 's|$(REG_SMBCONF_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ)|$(REG_SMBCONF_OBJ) @LIBNETAPI_LIBS@ $(LIBNET_OBJ)|' \
115 Makefile.in || die "sed failed"
116
117 # Upstream doesn't want us to link certain things dynamically, but those binaries here seem to work
118 sed -i \
119 -e '/^LINK_LIBNETAPI/d' \
120 configure || die "sed failed"
121 }
122
123 src_configure() {
124 local myconf
125
126 # Filter out -fPIE
127 [[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie"
128 use hppa && myconf="${myconf} --disable-pie"
129
130 # Upstream refuses to make this configurable
131 export ac_cv_header_sys_capability_h=no
132 if ! use minimal ; then
133 use caps && export ac_cv_header_sys_capability_h=yes
134 fi
135
136 if ! use minimal || use ads; then
137 # Notes:
138 # - FAM is a plugin for the server
139 # - DNS-SD is only used in client/server code
140 # - AFS is a pw-auth-method and only used in client/server code
141 # - AFSACL is a server module
142 # - automount is only needed in conjunction with NIS and we don't have that
143 # anymore
144 # - quota-support is only needed in server-code
145 # - acl-support is only used in server-code
146 # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default
147 # - current DNS/SD support in the client is via the mdnsresponder-compat api in avahi
148 econf ${myconf} \
149 --sysconfdir=/etc/samba \
150 --localstatedir=/var \
151 $(use_enable debug developer) \
152 --enable-largefile \
153 --enable-socket-wrapper \
154 --enable-nss-wrapper \
155 --disable-swat \
156 $(use_enable debug dmalloc) \
157 $(use minimal && echo "--disable-cups" || echo "$(use_enable cups)") \
158 --disable-iprint \
159 --disable-fam \
160 --enable-shared-libs \
161 $(use minimal && echo "--disable-dnssd" || echo "$(use_enable avahi dnssd)") \
162 --disable-avahi \
163 --with-fhs \
164 --with-privatedir=/var/lib/samba/private \
165 --with-rootsbindir=/var/cache/samba \
166 --with-lockdir=/var/cache/samba \
167 --with-swatdir=/usr/share/doc/${PF}/swat \
168 --with-configdir=/etc/samba \
169 --with-logfilebase=/var/log/samba \
170 --with-pammodulesdir=$(getpam_mod_dir) \
171 --without-afs \
172 --without-fake-kaserver \
173 --without-vfs-afsacl \
174 $(use minimal && echo "--without-ldap" || echo "$(use_with ldap)") \
175 $(use minimal && echo "--without-ads" || echo "$(use_with ads)") \
176 $(use minimal && echo "--without-krb5" || echo "$(use_with ads krb5 /usr)") \
177 $(use minimal && echo "--without-dnsupdate" || echo "$(use_with ads dnsupdate)") \
178 --without-automount \
179 --without-cifsmount \
180 --without-cifsupcall \
181 --without-pam \
182 --without-pam_smbpass \
183 $(use minimal && echo "--without-syslog" || echo "$(use_with syslog)") \
184 --without-quotas \
185 --without-sys-quotas \
186 --without-utmp \
187 --with-lib{talloc,tdb,netapi,smbclient,smbsharemodes} \
188 --without-libaddns \
189 $(use minimal && echo "--without-ctdb" || echo "$(use_with cluster ctdb /usr)") \
190 $(use minimal && echo "--without-cluster" || echo "$(use_with cluster cluster-support)") \
191 --without-acl-support \
192 $(use minimal && echo "--without-aio-support" || echo "$(use_with aio aio-support)") \
193 --with-sendfile-support \
194 $(use minimal && echo "--without-winbind" || echo "$(use_with winbind)") \
195 --without-included-popt \
196 --without-included-iniparser
197 fi
198 }
199
200 src_compile() {
201 mkdir bin
202 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bin/mount.cifs client/{mount.cifs,mtab}.c || die "building mount.cifs failed"
203 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bin/umount.cifs client/{umount.cifs,mtab}.c || die "building umount.cifs failed"
204
205 if use ads ; then
206 emake bin/cifs.upcall || die "emake cifs.upcall failed"
207 fi
208
209 if ! use minimal ; then
210 emake ${BINPROGS} || die "emake binprogs failed"
211 if use cups ; then
212 emake bin/smbspool || die "emake smbspool failed"
213 fi
214 fi
215 }
216
217 src_install() {
218 into /
219 dosbin bin/mount.cifs bin/umount.cifs || die "u/mount.cifs not around"
220 doman ../docs/manpages/{u,}mount.cifs.8 || die "can't create man pages"
221 dohtml ../docs/htmldocs/manpages/{u,}mount.cifs.8.html || die "dohtml failed"
222
223 into /usr
224 if use ads ; then
225 dosbin bin/cifs.upcall || die "cifs.upcall not around"
226 doman ../docs/manpages/cifs.upcall.8 || die "doman failed"
227 dohtml ../docs/htmldocs/manpages/cifs.upcall.8.html || die "doman failed"
228 fi
229
230 if ! use minimal ; then
231 dobin ${BINPROGS} || die "not all bins around"
232 for prog in ${BINPROGS} ; do
233 doman ../docs/manpages/${prog/bin\/}* || die "doman failed"
234 dohtml ../docs/htmldocs/manpages/${prog/bin\/}*.html || die "dohtml failed"
235 done
236
237 if use cups ; then
238 dobin bin/smbspool || die "smbspool not around"
239 doman ../docs/manpages/smbspool.8 || die "doman failed"
240 dohtml ../docs/htmldocs/manpages/smbspool.8.html || die "dohtml failed"
241 dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb
242 fi
243 fi
244 }