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-server: samba-server-3.3.9.ebuild ChangeLog samba-server-3.4.3.ebuild samba-server-3.4.2.ebuild samba-server-3.3.8.ebuild
Date: Thu, 29 Oct 2009 20:39:06
Message-Id: E1N3blw-0002tl-Ly@stork.gentoo.org
1 patrick 09/10/29 20:39:04
2
3 Modified: samba-server-3.3.9.ebuild ChangeLog
4 Added: samba-server-3.4.3.ebuild
5 Removed: samba-server-3.4.2.ebuild samba-server-3.3.8.ebuild
6 Log:
7 Bump, remove old
8 (Portage version: 2.2_rc46/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.2 net-fs/samba-server/samba-server-3.3.9.ebuild
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/samba-server-3.3.9.ebuild?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/samba-server-3.3.9.ebuild?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/samba-server-3.3.9.ebuild?r1=1.1&r2=1.2
16
17 Index: samba-server-3.3.9.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba-server/samba-server-3.3.9.ebuild,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- samba-server-3.3.9.ebuild 22 Oct 2009 18:52:41 -0000 1.1
24 +++ samba-server-3.3.9.ebuild 29 Oct 2009 20:39:03 -0000 1.2
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2009 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/samba-server-3.3.9.ebuild,v 1.1 2009/10/22 18:52:41 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/samba-server-3.3.9.ebuild,v 1.2 2009/10/29 20:39:03 patrick Exp $
30
31 EAPI="2"
32
33 @@ -13,7 +13,7 @@
34 SRC_URI="mirror://samba/${MY_P}.tar.gz"
35 LICENSE="GPL-3"
36 SLOT="0"
37 -KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
38 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~x86"
39 IUSE="acl ads aio avahi caps cluster cups debug doc examples fam ldap quota swat syslog winbind zeroconf"
40
41 # currently a bit broken
42
43
44
45 1.22 net-fs/samba-server/ChangeLog
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/ChangeLog?rev=1.22&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/ChangeLog?rev=1.22&content-type=text/plain
49 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/ChangeLog?r1=1.21&r2=1.22
50
51 Index: ChangeLog
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba-server/ChangeLog,v
54 retrieving revision 1.21
55 retrieving revision 1.22
56 diff -u -r1.21 -r1.22
57 --- ChangeLog 24 Oct 2009 11:20:05 -0000 1.21
58 +++ ChangeLog 29 Oct 2009 20:39:03 -0000 1.22
59 @@ -1,6 +1,13 @@
60 # ChangeLog for net-fs/samba-server
61 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
62 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/ChangeLog,v 1.21 2009/10/24 11:20:05 klausman Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/ChangeLog,v 1.22 2009/10/29 20:39:03 patrick Exp $
64 +
65 +*samba-server-3.4.3 (29 Oct 2009)
66 +
67 + 29 Oct 2009; Patrick Lauer <patrick@g.o>
68 + -samba-server-3.3.8.ebuild, -samba-server-3.4.2.ebuild,
69 + +samba-server-3.4.3.ebuild:
70 + Bump, remove old
71
72 24 Oct 2009; Tobias Klausmann <klausman@g.o>
73 samba-server-3.3.8.ebuild:
74
75
76
77 1.1 net-fs/samba-server/samba-server-3.4.3.ebuild
78
79 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/samba-server-3.4.3.ebuild?rev=1.1&view=markup
80 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/samba-server-3.4.3.ebuild?rev=1.1&content-type=text/plain
81
82 Index: samba-server-3.4.3.ebuild
83 ===================================================================
84 # Copyright 1999-2009 Gentoo Foundation
85 # Distributed under the terms of the GNU General Public License v2
86 # $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/samba-server-3.4.3.ebuild,v 1.1 2009/10/29 20:39:03 patrick Exp $
87
88 EAPI="2"
89
90 inherit pam confutils versionator multilib autotools
91
92 MY_P="samba-${PV}"
93
94 DESCRIPTION="Samba Server component"
95 HOMEPAGE="http://www.samba.org/"
96 SRC_URI="mirror://samba/${MY_P}.tar.gz"
97 LICENSE="GPL-3"
98 SLOT="0"
99 KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
100 IUSE="samba4 acl ads aio avahi caps cluster cups debug doc examples fam ldap quota swat syslog winbind zeroconf"
101
102 DEPEND="!<net-fs/samba-3.3
103 ads? ( virtual/krb5 sys-fs/e2fsprogs net-fs/samba-libs[ads] )
104 dev-libs/popt
105 virtual/libiconv
106 avahi? ( net-dns/avahi )
107 zeroconf? ( !avahi? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) ) )
108 caps? ( sys-libs/libcap )
109 cups? ( net-print/cups )
110 debug? ( dev-libs/dmalloc )
111 fam? ( dev-libs/libgamin )
112 ldap? ( net-nds/openldap )
113 syslog? ( virtual/logger )
114 sys-libs/tdb
115 sys-libs/talloc
116 ~net-fs/samba-libs-${PV}[caps?,cluster?,cups?,ldap?,syslog?,winbind?,ads?,samba4?]"
117 RDEPEND="${DEPEND}"
118
119 S="${WORKDIR}/${MY_P}/source3"
120
121 RESTRICT="test"
122
123 CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
124 SBINPROGS="bin/smbd bin/nmbd"
125 BINPROGS="bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit
126 bin/profiles bin/sharesec
127 bin/eventlogadm bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"
128
129 pkg_setup() {
130 confutils_use_depend_all samba4 ads
131 confutils_use_depend_all ads ldap
132 }
133
134 src_prepare() {
135
136 cd ".."
137
138 epatch \
139 "${FILESDIR}/samba-3.4.2-missing_includes.patch" \
140 "${FILESDIR}/samba-3.4.2-fix-samba4-automake.patch" \
141 "${FILESDIR}/samba-3.4.2-insert-AC_LD_VERSIONSCRIPT.patch"
142 # "${FILESDIR}/samba-3.4.2-upgrade-tevent-version.patch" \
143
144 cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "lib/tevent/python.mk"
145
146 cd "source3"
147 eautoconf -Ilibreplace -Im4 -I../m4 -I../lib/replace -I../source4
148 }
149
150 src_configure() {
151 local myconf
152
153 # compile franky samba4 hybrid
154 # http://wiki.samba.org/index.php/Franky
155 if use samba4 ; then
156 myconf="${myconf} --enable-merged-build --enable-developer"
157 if has_version app-crypt/heimdal ; then
158 myconf="${myconf} --with-krb5=/usr/"
159 elif has_version app-crypt/mit-krb5 ; then
160 die "MIT Kerberos not supported by samba 4, use heimdal"
161 else
162 die "No supported kerberos provider detected"
163 fi
164 fi
165
166 # Filter out -fPIE
167 [[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie"
168 use hppa && myconf="${myconf} --disable-pie"
169
170 # Upstream refuses to make this configurable
171 export ac_cv_header_sys_capability_h=no
172 use caps && export ac_cv_header_sys_capability_h=yes
173
174 local dnssd="--disable-dnssd"
175 use zeroconf && ! use avahi && dnssd="--enable-dnssd"
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
188 econf ${myconf} \
189 --with-piddir=/var/run/samba \
190 --sysconfdir=/etc/samba \
191 --localstatedir=/var \
192 $(use_enable debug developer) \
193 --enable-largefile \
194 --enable-socket-wrapper \
195 --enable-nss-wrapper \
196 $(use_enable swat) \
197 $(use_enable debug dmalloc) \
198 $(use_enable cups) \
199 --disable-iprint \
200 $(use_enable fam) \
201 --enable-shared-libs \
202 ${dnssd} \
203 $(use_enable avahi) \
204 --with-fhs \
205 --with-privatedir=/var/lib/samba/private \
206 --with-rootsbindir=/var/cache/samba \
207 --with-lockdir=/var/cache/samba \
208 --with-swatdir=/usr/share/doc/${PF}/swat \
209 --with-configdir=/etc/samba \
210 --with-logfilebase=/var/log/samba \
211 --with-pammodulesdir=$(getpam_mod_dir) \
212 --without-afs \
213 --without-fake-kaserver \
214 --without-vfs-afsacl \
215 $(use_with ldap) \
216 $(use_with ads) \
217 $(use_with ads krb5 /usr) \
218 $(use_with ads dnsupdate) \
219 --without-automount \
220 --without-cifsmount \
221 --without-cifsupcall \
222 --without-pam \
223 --without-pam_smbpass \
224 $(use_with syslog) \
225 $(use_with quota quotas) \
226 $(use_with quota sys-quotas) \
227 --without-utmp \
228 --without-lib{talloc,tdb,netapi,smbclient,smbsharemodes} \
229 --without-libaddns \
230 $(use_with cluster ctdb /usr) \
231 $(use_with cluster cluster-support) \
232 $(use_with acl acl-support) \
233 $(use_with aio aio-support) \
234 --with-sendfile-support \
235 $(use_with winbind)
236
237 use swat && SBINPROGS="${SBINPROGS} bin/swat"
238 use winbind && SBINPROGS="${SBINPROGS} bin/winbindd"
239 use ads && use winbind && SBIN_PROGS="${SBINPROGS} bin/winbind_krb5_locator"
240
241 use winbind && BINPROGS="${BINPROGS} bin/wbinfo"
242 }
243
244 src_compile() {
245 emake ${SBINPROGS} || die "building server binaries failed"
246 emake modules || die "building modules failed"
247 emake ${BINPROGS} || die "building binaries failed"
248 }
249
250 src_install() {
251 dosbin ${SBINPROGS} || die "installing server binaries failed"
252
253 emake DESTDIR="${D}" installmodules || die "installing modules failed"
254
255 dobin ${BINPROGS} || die "installing binaries failed"
256
257 for prog in ${BINPROGS} ${SBINPROGS} ; do
258 doman ../docs/manpages/${prog/bin\/}*
259 done
260
261 doman ../docs/manpages/vfs* ../docs/manpages/samba.7 ../docs/manpages/smb.conf.5
262
263 diropts -m0700
264 keepdir /var/lib/samba/private
265
266 diropts -m1777
267 keepdir /var/spool/samba
268
269 diropts -m0755
270 keepdir /var/{cache,log}/samba
271 keepdir /var/lib/samba/{netlogon,profiles}
272 keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR}
273 keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext}
274
275 newconfd "${CONFDIR}/samba.confd" samba
276 newinitd "${CONFDIR}/samba.initd" samba
277
278 insinto /etc/samba
279 doins "${CONFDIR}"/{smbusers,lmhosts,smb.conf.default}
280
281 insinto /usr/"$(get_libdir)"/samba
282 doins ../codepages/{valid.dat,upcase.dat,lowcase.dat}
283
284 if use ldap ; then
285 insinto /etc/openldap/schema
286 doins ../examples/LDAP/samba.schema
287 fi
288
289 if use swat ; then
290 insinto /etc/xinetd.d
291 newins "${CONFDIR}/swat.xinetd" swat
292 fi
293
294 dodoc ../MAINTAINERS ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS
295
296 if use doc ; then
297 dohtml -r ../docs/htmldocs/*
298 dodoc ../docs/*.pdf
299 fi
300
301 if use examples ; then
302 cd ../examples
303 insinto /usr/share/doc/${PF}/examples
304 doins -r \
305 auth autofs dce-dfs LDAP logon misc pdb perfcounter \
306 printer-accounting printing scripts tridge validchars VFS
307 fi
308 }