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