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