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.5.0_rc3.ebuild
Date: Fri, 19 Feb 2010 17:20:49
Message-Id: E1NiWX1-0001qH-DT@stork.gentoo.org
1 patrick 10/02/19 17:20:47
2
3 Modified: ChangeLog
4 Added: samba-server-3.5.0_rc3.ebuild
5 Log:
6 Bump for new rc
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.34 net-fs/samba-server/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/ChangeLog?rev=1.34&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/ChangeLog?rev=1.34&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/ChangeLog?r1=1.33&r2=1.34
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba-server/ChangeLog,v
19 retrieving revision 1.33
20 retrieving revision 1.34
21 diff -u -r1.33 -r1.34
22 --- ChangeLog 26 Jan 2010 19:03:59 -0000 1.33
23 +++ ChangeLog 19 Feb 2010 17:20:46 -0000 1.34
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-fs/samba-server
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/ChangeLog,v 1.33 2010/01/26 19:03:59 patrick Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/ChangeLog,v 1.34 2010/02/19 17:20:46 patrick Exp $
29 +
30 +*samba-server-3.5.0_rc3 (19 Feb 2010)
31 +
32 + 19 Feb 2010; Patrick Lauer <patrick@g.o>
33 + +samba-server-3.5.0_rc3.ebuild:
34 + Bump for new rc
35
36 *samba-server-3.5.0_rc2 (26 Jan 2010)
37
38
39
40
41 1.1 net-fs/samba-server/samba-server-3.5.0_rc3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/samba-server-3.5.0_rc3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/samba-server-3.5.0_rc3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: samba-server-3.5.0_rc3.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-server/samba-server-3.5.0_rc3.ebuild,v 1.1 2010/02/19 17:20:46 patrick Exp $
51
52 EAPI="2"
53
54 inherit pam confutils versionator multilib autotools
55
56 MY_PV=${PV/_/}
57 MY_P="samba-${MY_PV}"
58
59 DESCRIPTION="Samba Server component"
60 HOMEPAGE="http://www.samba.org/"
61 SRC_URI="http://samba.org/samba/ftp/rc/${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 pam 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 pam? ( sys-libs/pam )
79 syslog? ( virtual/logger )
80 sys-libs/tdb
81 sys-libs/talloc
82 ~net-fs/samba-libs-${PV}[caps?,cluster?,cups?,ldap?,syslog?,winbind?,ads?,samba4?]"
83 RDEPEND="${DEPEND}"
84
85 S="${WORKDIR}/${MY_P}/source3"
86
87 RESTRICT="test"
88
89 CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
90 SBINPROGS="bin/smbd bin/nmbd"
91 BINPROGS="bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit
92 bin/profiles bin/sharesec bin/eventlogadm"
93 #bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"
94
95 pkg_setup() {
96 confutils_use_depend_all samba4 ads
97 confutils_use_depend_all ads ldap
98 }
99
100 src_prepare() {
101
102 cd ".."
103
104 cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "lib/tevent/python.mk"
105
106 cd "source3"
107 eautoconf -Ilibreplace -Im4 -I../m4 -I../lib/replace -I../source4
108 }
109
110 src_configure() {
111 local myconf
112
113 # compile franky samba4 hybrid
114 # http://wiki.samba.org/index.php/Franky
115 if use samba4 ; then
116 myconf="${myconf} --enable-merged-build --enable-developer"
117 if has_version app-crypt/heimdal ; then
118 myconf="${myconf} --with-krb5=/usr/"
119 elif has_version app-crypt/mit-krb5 ; then
120 die "MIT Kerberos not supported by samba 4, use heimdal"
121 else
122 die "No supported kerberos provider detected"
123 fi
124 fi
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 use caps && export ac_cv_header_sys_capability_h=yes
133
134 local dnssd="--disable-dnssd"
135 use zeroconf && ! use avahi && dnssd="--enable-dnssd"
136
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
148 econf ${myconf} \
149 --with-piddir=/var/run/samba \
150 --sysconfdir=/etc/samba \
151 --localstatedir=/var \
152 $(use_enable debug developer) \
153 --enable-largefile \
154 --enable-socket-wrapper \
155 --enable-nss-wrapper \
156 $(use_enable swat) \
157 $(use_enable debug dmalloc) \
158 $(use_enable cups) \
159 --disable-iprint \
160 $(use_enable fam) \
161 --enable-shared-libs \
162 ${dnssd} \
163 $(use_enable avahi) \
164 --with-fhs \
165 --with-privatedir=/var/lib/samba/private \
166 --with-rootsbindir=/var/cache/samba \
167 --with-lockdir=/var/cache/samba \
168 --with-swatdir=/usr/share/doc/${PF}/swat \
169 --with-configdir=/etc/samba \
170 --with-logfilebase=/var/log/samba \
171 --with-pammodulesdir=$(getpam_mod_dir) \
172 --without-afs \
173 --without-fake-kaserver \
174 --without-vfs-afsacl \
175 $(use_with ldap) \
176 $(use_with ads) \
177 $(use_with ads krb5 /usr) \
178 $(use_with ads dnsupdate) \
179 --without-automount \
180 --without-cifsmount \
181 --without-cifsupcall \
182 $(use_with pam ) \
183 $(use_with pam pam_smbpass ) \
184 $(use_with syslog) \
185 $(use_with quota quotas) \
186 $(use_with quota sys-quotas) \
187 --without-utmp \
188 --without-lib{talloc,tdb,netapi,smbclient,smbsharemodes} \
189 --without-libaddns \
190 $(use_with cluster ctdb /usr) \
191 $(use_with cluster cluster-support) \
192 $(use_with acl acl-support) \
193 $(use_with aio aio-support) \
194 --with-sendfile-support \
195 $(use_with winbind)
196
197 use swat && SBINPROGS="${SBINPROGS} bin/swat"
198 use winbind && SBINPROGS="${SBINPROGS} bin/winbindd"
199 use ads && use winbind && SBIN_PROGS="${SBINPROGS} bin/winbind_krb5_locator"
200
201 use winbind && BINPROGS="${BINPROGS} bin/wbinfo"
202 }
203
204 src_compile() {
205 emake ${SBINPROGS} || die "building server binaries failed"
206 emake modules || die "building modules failed"
207 emake ${BINPROGS} || die "building binaries failed"
208 }
209
210 src_install() {
211 dosbin ${SBINPROGS} || die "installing server binaries failed"
212
213 emake DESTDIR="${D}" installmodules || die "installing modules failed"
214
215 dobin ${BINPROGS} || die "installing binaries failed"
216
217 for prog in ${BINPROGS} ${SBINPROGS} ; do
218 doman ../docs/manpages/${prog/bin\/}*
219 done
220
221 doman ../docs/manpages/vfs* ../docs/manpages/samba.7 ../docs/manpages/smb.conf.5
222
223 diropts -m0700
224 keepdir /var/lib/samba/private
225
226 diropts -m1777
227 keepdir /var/spool/samba
228
229 diropts -m0755
230 keepdir /var/{cache,log}/samba
231 keepdir /var/lib/samba/{netlogon,profiles}
232 keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR}
233 keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext}
234
235 newconfd "${CONFDIR}/samba.confd" samba
236 newinitd "${CONFDIR}/samba.initd" samba
237
238 insinto /etc/samba
239 doins "${CONFDIR}"/{smbusers,lmhosts,smb.conf.default}
240
241 insinto /usr/"$(get_libdir)"/samba
242 doins ../codepages/{valid.dat,upcase.dat,lowcase.dat}
243
244 if use ldap ; then
245 insinto /etc/openldap/schema
246 doins ../examples/LDAP/samba.schema
247 fi
248
249 if use swat ; then
250 insinto /etc/xinetd.d
251 newins "${CONFDIR}/swat.xinetd" swat
252 script/installswat.sh "${D}" "${ROOT}/usr/share/doc/${PF}/swat" "${S}" \
253 || die "installing swat failed"
254 fi
255
256 dodoc ../MAINTAINERS ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS
257
258 if use doc ; then
259 dohtml -r ../docs/htmldocs/*
260 dodoc ../docs/*.pdf
261 fi
262
263 if use examples ; then
264 cd ../examples
265 insinto /usr/share/doc/${PF}/examples
266 doins -r \
267 auth autofs dce-dfs LDAP logon misc pdb perfcounter \
268 printer-accounting printing scripts tridge validchars VFS
269 fi
270 }