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: metadata.xml ChangeLog samba-4.0.0_alpha11.ebuild
Date: Tue, 23 Feb 2010 09:51:01
Message-Id: E1NjrPu-00009p-Up@stork.gentoo.org
1 patrick 10/02/23 09:50:58
2
3 Modified: metadata.xml ChangeLog
4 Added: samba-4.0.0_alpha11.ebuild
5 Log:
6 Adding masked samba4 alpha. Thanks to ewoud and the other people in #195703
7 (Portage version: 2.2_rc63/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.9 net-fs/samba/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/metadata.xml?rev=1.9&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/metadata.xml?rev=1.9&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/metadata.xml?r1=1.8&r2=1.9
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/metadata.xml,v
19 retrieving revision 1.8
20 retrieving revision 1.9
21 diff -u -r1.8 -r1.9
22 --- metadata.xml 27 Jun 2009 07:27:20 -0000 1.8
23 +++ metadata.xml 23 Feb 2010 09:50:58 -0000 1.9
24 @@ -20,5 +20,8 @@
25 <flag name="client">Enables the client part</flag>
26 <flag name="server">Enables the server part</flag>
27 <flag name="cifsupcall">Enables userspace upcall helper</flag>
28 + <flag name="netapi">Enable building of netapi bits</flag>
29 + <flag name="tools">Enable extra tools</flag>
30 + <flag name="dso">Enable dso support</flag>
31 </use>
32 </pkgmetadata>
33
34
35
36 1.399 net-fs/samba/ChangeLog
37
38 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?rev=1.399&view=markup
39 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?rev=1.399&content-type=text/plain
40 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?r1=1.398&r2=1.399
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v
45 retrieving revision 1.398
46 retrieving revision 1.399
47 diff -u -r1.398 -r1.399
48 --- ChangeLog 19 Feb 2010 17:19:36 -0000 1.398
49 +++ ChangeLog 23 Feb 2010 09:50:58 -0000 1.399
50 @@ -1,6 +1,13 @@
51 # ChangeLog for net-fs/samba
52 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.398 2010/02/19 17:19:36 patrick Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.399 2010/02/23 09:50:58 patrick Exp $
55 +
56 +*samba-4.0.0_alpha11 (23 Feb 2010)
57 +
58 + 23 Feb 2010; Patrick Lauer <patrick@g.o>
59 + +samba-4.0.0_alpha11.ebuild:
60 + Adding masked samba4 alpha. Thanks to ewoud and the other people in
61 + #195703
62
63 *samba-3.5.0_rc3 (19 Feb 2010)
64
65
66
67
68 1.1 net-fs/samba/samba-4.0.0_alpha11.ebuild
69
70 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/samba-4.0.0_alpha11.ebuild?rev=1.1&view=markup
71 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/samba-4.0.0_alpha11.ebuild?rev=1.1&content-type=text/plain
72
73 Index: samba-4.0.0_alpha11.ebuild
74 ===================================================================
75 # Copyright 1999-2010 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77 # $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-4.0.0_alpha11.ebuild,v 1.1 2010/02/23 09:50:58 patrick Exp $
78
79 EAPI="2"
80
81 inherit confutils
82
83 MY_PV="${PV/_alpha/alpha}"
84 MY_P="${PN}-${MY_PV}"
85
86 DESCRIPTION="Samba Server component"
87 HOMEPAGE="http://www.samba.org/"
88 SRC_URI="mirror://samba/samba4/${MY_P}.tar.gz"
89 LICENSE="GPL-3"
90 SLOT="0"
91 KEYWORDS="~amd64 ~x86"
92 IUSE="caps debug dso gnutls +netapi sqlite threads +client +server +tools +python"
93
94 DEPEND="!net-fs/samba-libs
95 !net-fs/samba-server
96 !net-fs/samba-client
97 dev-libs/popt
98 sys-libs/readline
99 virtual/libiconv
100 caps? ( sys-libs/libcap )
101 gnutls? ( net-libs/gnutls )
102 sqlite? ( >=dev-db/sqlite-3 )
103 >=sys-libs/talloc-2.0.1
104 >=sys-libs/tdb-1.2.0
105 =sys-libs/tevent-0.9.8"
106 #=sys-libs/ldb-0.9.10 No release yet
107 # See source4/min_versions.m4 for the minimal versions
108 RDEPEND="${DEPEND}"
109
110 RESTRICT="mirror"
111
112 S="${WORKDIR}/${MY_P}/source4"
113
114 SBINPROGS=""
115 if use server ; then
116 SBINPROGS="${SBINPROGS} bin/samba"
117 fi
118 if use client ; then
119 SBINPROGS="${SBINPROGS} bin/mount.cifs bin/umount.cifs"
120 fi
121
122 BINPROGS=""
123 if use client ; then
124 BINPROGS="${BINPROGS} bin/smbclient bin/net bin/nmblookup bin/ntlm_auth"
125 fi
126 if use server ; then
127 BINPROGS="${BINPROGS} bin/testparm bin/smbtorture"
128 fi
129 if use tools ; then
130 # Should be in sys-libs/ldb, but there's no ldb release yet
131 BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"
132 fi
133
134 pkg_setup() {
135 confutils_use_depend_all server python
136 }
137
138 src_configure() {
139 # Upstream refuses to make this configurable
140 use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no
141
142 econf \
143 --sysconfdir=/etc \
144 --localstatedir=/var \
145 $(use_enable debug) \
146 --enable-developer \
147 $(use_enable dso) \
148 --disable-external-heimdal \
149 --enable-external-libtalloc \
150 --enable-external-libtdb \
151 --enable-external-libtevent \
152 --disable-external-libldb \
153 --enable-fhs \
154 --enable-largefile \
155 $(use_enable gnutls) \
156 $(use_enable netapi) \
157 --enable-socket-wrapper \
158 --enable-nss-wrapper \
159 --with-modulesdir=/usr/lib/samba/modules \
160 --with-privatedir=/var/lib/samba/private \
161 --with-ntp-signd-socket-dir=/var/run/samba \
162 --with-lockdir=/var/cache/samba \
163 --with-logfilebase=/var/log/samba \
164 --with-piddir=/var/run/samba \
165 --without-included-popt \
166 $(use_with sqlite sqlite3) \
167 $(use_with threads pthreads) \
168 --with-setproctitle \
169 --with-readline
170 }
171
172 src_compile() {
173 # compile libs
174 emake basics || die "emake basics failed"
175 emake libraries || die "emake libraries failed"
176
177 # compile python
178 if use python ; then
179 emake pythonmods || die "emake pythonmods failed"
180 fi
181
182 # compile binaries tools
183 emake ${BINPROGS} || die "emake BINPROGS failed"
184 emake ${SBINPROGS} || die "emake SBINPROGS failed"
185 }
186
187 src_install() {
188 # install libs
189 emake installlib DESTDIR="${D}" || die "emake installib failed"
190 emake installheader DESTDIR="${D}" || die "emake installheader failed"
191
192 # compile python
193 if use python ; then
194 emake installpython DESTDIR="${D}" || die "emake installpython failed"
195 fi
196
197 # binaries
198 dosbin ${SBINPROGS} || die "installing SBINPROGS failed"
199 dobin ${BINPROGS} || die "installing BINPROGS failed"
200
201 # install server components
202 if use server ; then
203 # provision scripts
204 insinto /usr/share/${PN}
205 doins -r setup
206 exeinto /usr/share/${PN}/setup
207 doexe setup/{domainlevel,enableaccount,newuser,provision,pwsettings}
208 doexe setup/{setexpiry,setpassword,upgrade_from_s3}
209
210 # init script
211 newinitd "${FILESDIR}/samba.initd" samba
212 fi
213 }
214
215 src_test() {
216 emake test DESTDIR="${D}" || die "Test failed"
217 }
218
219 pkg_postinst() {
220 # Optimize the python modules so they get properly removed
221 python_mod_optimize $(python_get_sitedir)/${PN}
222
223 # Warn that it's an alpha
224 ewarn "Samba 4 is an alpha and therefore not considered stable. It's only"
225 ewarn "meant to test and experiment and definitely not for production"
226 }
227
228 pkg_postrm() {
229 # Clean up the python modules
230 python_mod_cleanup
231 }