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: ChangeLog samba-server-3.4.4.ebuild
Date: Thu, 07 Jan 2010 13:51:42
Message-Id: E1NSsm3-0003p8-NI@stork.gentoo.org
1 patrick 10/01/07 13:51:39
2
3 Modified: ChangeLog
4 Added: samba-server-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.29 net-fs/samba-server/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/ChangeLog?rev=1.29&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/ChangeLog?rev=1.29&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/ChangeLog?r1=1.28&r2=1.29
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba-server/ChangeLog,v
19 retrieving revision 1.28
20 retrieving revision 1.29
21 diff -u -r1.28 -r1.29
22 --- ChangeLog 9 Dec 2009 16:29:51 -0000 1.28
23 +++ ChangeLog 7 Jan 2010 13:51:39 -0000 1.29
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-fs/samba-server
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/ChangeLog,v 1.28 2009/12/09 16:29:51 vostorga Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/ChangeLog,v 1.29 2010/01/07 13:51:39 patrick Exp $
30 +
31 +*samba-server-3.4.4 (07 Jan 2010)
32 +
33 + 07 Jan 2010; Patrick Lauer <patrick@g.o>
34 + +samba-server-3.4.4.ebuild:
35 + Bump
36
37 09 Dec 2009; VĂ­ctor Ostorga <vostorga@g.o>
38 samba-server-3.3.9.ebuild, samba-server-3.4.3-r1.ebuild:
39
40
41
42 1.1 net-fs/samba-server/samba-server-3.4.4.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/samba-server-3.4.4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/samba-server-3.4.4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: samba-server-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-server/samba-server-3.4.4.ebuild,v 1.1 2010/01/07 13:51:39 patrick Exp $
52
53 EAPI="2"
54
55 inherit pam confutils versionator multilib autotools
56
57 MY_P="samba-${PV}"
58
59 DESCRIPTION="Samba Server component"
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 acl ads aio avahi caps cluster cups debug doc examples fam ldap quota swat syslog winbind zeroconf"
66
67 DEPEND="!<net-fs/samba-3.3
68 ads? ( virtual/krb5 sys-fs/e2fsprogs net-fs/samba-libs[ads] )
69 dev-libs/popt
70 virtual/libiconv
71 avahi? ( net-dns/avahi )
72 zeroconf? ( !avahi? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) ) )
73 caps? ( sys-libs/libcap )
74 cups? ( net-print/cups )
75 debug? ( dev-libs/dmalloc )
76 fam? ( dev-libs/libgamin )
77 ldap? ( net-nds/openldap )
78 syslog? ( virtual/logger )
79 sys-libs/tdb
80 sys-libs/talloc
81 ~net-fs/samba-libs-${PV}[caps?,cluster?,cups?,ldap?,syslog?,winbind?,ads?,samba4?]"
82 RDEPEND="${DEPEND}"
83
84 S="${WORKDIR}/${MY_P}/source3"
85
86 RESTRICT="test"
87
88 CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
89 SBINPROGS="bin/smbd bin/nmbd"
90 BINPROGS="bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit
91 bin/profiles bin/sharesec bin/eventlogadm"
92 #bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"
93
94 pkg_setup() {
95 confutils_use_depend_all samba4 ads
96 confutils_use_depend_all ads ldap
97 }
98
99 src_prepare() {
100
101 cd ".."
102
103 epatch \
104 "${FILESDIR}/samba-3.4.2-missing_includes.patch" \
105 "${FILESDIR}/samba-3.4.2-fix-samba4-automake.patch" \
106 "${FILESDIR}/samba-3.4.2-insert-AC_LD_VERSIONSCRIPT.patch"
107 # "${FILESDIR}/samba-3.4.2-upgrade-tevent-version.patch" \
108
109 cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "lib/tevent/python.mk"
110
111 cd "source3"
112 eautoconf -Ilibreplace -Im4 -I../m4 -I../lib/replace -I../source4
113 }
114
115 src_configure() {
116 local myconf
117
118 # compile franky samba4 hybrid
119 # http://wiki.samba.org/index.php/Franky
120 if use samba4 ; then
121 myconf="${myconf} --enable-merged-build --enable-developer"
122 if has_version app-crypt/heimdal ; then
123 myconf="${myconf} --with-krb5=/usr/"
124 elif has_version app-crypt/mit-krb5 ; then
125 die "MIT Kerberos not supported by samba 4, use heimdal"
126 else
127 die "No supported kerberos provider detected"
128 fi
129 fi
130
131 # Filter out -fPIE
132 [[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie"
133 use hppa && myconf="${myconf} --disable-pie"
134
135 # Upstream refuses to make this configurable
136 export ac_cv_header_sys_capability_h=no
137 use caps && export ac_cv_header_sys_capability_h=yes
138
139 local dnssd="--disable-dnssd"
140 use zeroconf && ! use avahi && dnssd="--enable-dnssd"
141
142 # Notes:
143 # - FAM is a plugin for the server
144 # - DNS-SD is only used in client/server code
145 # - AFS is a pw-auth-method and only used in client/server code
146 # - AFSACL is a server module
147 # - automount is only needed in conjunction with NIS and we don't have that
148 # anymore
149 # - quota-support is only needed in server-code
150 # - acl-support is only used in server-code
151 # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default
152
153 econf ${myconf} \
154 --with-piddir=/var/run/samba \
155 --sysconfdir=/etc/samba \
156 --localstatedir=/var \
157 $(use_enable debug developer) \
158 --enable-largefile \
159 --enable-socket-wrapper \
160 --enable-nss-wrapper \
161 $(use_enable swat) \
162 $(use_enable debug dmalloc) \
163 $(use_enable cups) \
164 --disable-iprint \
165 $(use_enable fam) \
166 --enable-shared-libs \
167 ${dnssd} \
168 $(use_enable avahi) \
169 --with-fhs \
170 --with-privatedir=/var/lib/samba/private \
171 --with-rootsbindir=/var/cache/samba \
172 --with-lockdir=/var/cache/samba \
173 --with-swatdir=/usr/share/doc/${PF}/swat \
174 --with-configdir=/etc/samba \
175 --with-logfilebase=/var/log/samba \
176 --with-pammodulesdir=$(getpam_mod_dir) \
177 --without-afs \
178 --without-fake-kaserver \
179 --without-vfs-afsacl \
180 $(use_with ldap) \
181 $(use_with ads) \
182 $(use_with ads krb5 /usr) \
183 $(use_with ads dnsupdate) \
184 --without-automount \
185 --without-cifsmount \
186 --without-cifsupcall \
187 --without-pam \
188 --without-pam_smbpass \
189 $(use_with syslog) \
190 $(use_with quota quotas) \
191 $(use_with quota sys-quotas) \
192 --without-utmp \
193 --without-lib{talloc,tdb,netapi,smbclient,smbsharemodes} \
194 --without-libaddns \
195 $(use_with cluster ctdb /usr) \
196 $(use_with cluster cluster-support) \
197 $(use_with acl acl-support) \
198 $(use_with aio aio-support) \
199 --with-sendfile-support \
200 $(use_with winbind)
201
202 use swat && SBINPROGS="${SBINPROGS} bin/swat"
203 use winbind && SBINPROGS="${SBINPROGS} bin/winbindd"
204 use ads && use winbind && SBIN_PROGS="${SBINPROGS} bin/winbind_krb5_locator"
205
206 use winbind && BINPROGS="${BINPROGS} bin/wbinfo"
207 }
208
209 src_compile() {
210 emake ${SBINPROGS} || die "building server binaries failed"
211 emake modules || die "building modules failed"
212 emake ${BINPROGS} || die "building binaries failed"
213 }
214
215 src_install() {
216 dosbin ${SBINPROGS} || die "installing server binaries failed"
217
218 emake DESTDIR="${D}" installmodules || die "installing modules failed"
219
220 dobin ${BINPROGS} || die "installing binaries failed"
221
222 for prog in ${BINPROGS} ${SBINPROGS} ; do
223 doman ../docs/manpages/${prog/bin\/}*
224 done
225
226 doman ../docs/manpages/vfs* ../docs/manpages/samba.7 ../docs/manpages/smb.conf.5
227
228 diropts -m0700
229 keepdir /var/lib/samba/private
230
231 diropts -m1777
232 keepdir /var/spool/samba
233
234 diropts -m0755
235 keepdir /var/{cache,log}/samba
236 keepdir /var/lib/samba/{netlogon,profiles}
237 keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR}
238 keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext}
239
240 newconfd "${CONFDIR}/samba.confd" samba
241 newinitd "${CONFDIR}/samba.initd" samba
242
243 insinto /etc/samba
244 doins "${CONFDIR}"/{smbusers,lmhosts,smb.conf.default}
245
246 insinto /usr/"$(get_libdir)"/samba
247 doins ../codepages/{valid.dat,upcase.dat,lowcase.dat}
248
249 if use ldap ; then
250 insinto /etc/openldap/schema
251 doins ../examples/LDAP/samba.schema
252 fi
253
254 if use swat ; then
255 insinto /etc/xinetd.d
256 newins "${CONFDIR}/swat.xinetd" swat
257 script/installswat.sh "${D}" "${ROOT}/usr/share/doc/${PF}/swat" "${S}" \
258 || die "installing swat failed"
259 fi
260
261 dodoc ../MAINTAINERS ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS
262
263 if use doc ; then
264 dohtml -r ../docs/htmldocs/*
265 dodoc ../docs/*.pdf
266 fi
267
268 if use examples ; then
269 cd ../examples
270 insinto /usr/share/doc/${PF}/examples
271 doins -r \
272 auth autofs dce-dfs LDAP logon misc pdb perfcounter \
273 printer-accounting printing scripts tridge validchars VFS
274 fi
275 }