1 |
patrick 09/06/26 20:23:31 |
2 |
|
3 |
Added: samba-server-3.3.6.ebuild metadata.xml ChangeLog |
4 |
Log: |
5 |
Initial commit. New split samba ebuilds by dev-zero. |
6 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-fs/samba-server/samba-server-3.3.6.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/samba-server-3.3.6.ebuild?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/samba-server-3.3.6.ebuild?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: samba-server-3.3.6.ebuild |
15 |
=================================================================== |
16 |
# Copyright 1999-2009 Gentoo Foundation |
17 |
# Distributed under the terms of the GNU General Public License v2 |
18 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/samba-server-3.3.6.ebuild,v 1.1 2009/06/26 20:23:31 patrick Exp $ |
19 |
|
20 |
EAPI="2" |
21 |
|
22 |
inherit pam confutils versionator multilib |
23 |
|
24 |
MY_P="samba-${PV}" |
25 |
|
26 |
DESCRIPTION="Libraries from Samba" |
27 |
HOMEPAGE="http://www.samba.org/" |
28 |
SRC_URI="mirror://samba/${MY_P}.tar.gz" |
29 |
LICENSE="GPL-3" |
30 |
SLOT="0" |
31 |
KEYWORDS="~amd64 ~x86" |
32 |
IUSE="acl ads aio avahi caps cluster cups debug doc examples fam ldap quota swat syslog winbind zeroconf" |
33 |
|
34 |
# currently a bit broken |
35 |
RESTRICT="test" |
36 |
|
37 |
DEPEND="!<net-fs/samba-3.3 |
38 |
ads? ( virtual/krb5 sys-fs/e2fsprogs net-fs/samba-libs[ads] ) |
39 |
dev-libs/popt |
40 |
virtual/libiconv |
41 |
avahi? ( net-dns/avahi ) |
42 |
zeroconf? ( !avahi? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) ) ) |
43 |
caps? ( sys-libs/libcap ) |
44 |
cups? ( net-print/cups ) |
45 |
ldap? ( net-nds/openldap ) |
46 |
syslog? ( virtual/logger ) |
47 |
net-fs/samba-libs[caps?,cluster?,cups?,ldap?,syslog?,winbind?]" |
48 |
RDEPEND="${DEPEND}" |
49 |
|
50 |
S="${WORKDIR}/${MY_P}/source" |
51 |
|
52 |
# TODO: |
53 |
# - enable iPrint on Prefix/OSX and Darwin? |
54 |
# - selftest-prefix? selftest? |
55 |
|
56 |
CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
57 |
SBINPROGS="bin/smbd bin/nmbd" |
58 |
BINPROGS="bin/testparm bin/smbstatus bin/smbcontrol bin/tdbbackup bin/pdbedit |
59 |
bin/tdbdump bin/tdbtool bin/profiles bin/sharesec |
60 |
bin/eventlogadm bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename" |
61 |
|
62 |
pkg_setup() { |
63 |
confutils_use_depend_all ads ldap |
64 |
} |
65 |
|
66 |
src_prepare() { |
67 |
sed -i \ |
68 |
-e 's|"lib32" ||' \ |
69 |
-e 's|if test -d "$i/$l" ;|if test -d "$i/$l" -o -L "$i/$l";|' \ |
70 |
configure || die "sed failed" |
71 |
|
72 |
sed -i \ |
73 |
-e 's|@LIBTALLOC_SHARED@||g' \ |
74 |
-e 's|@LIBTDB_SHARED@||g' \ |
75 |
-e 's|@LIBWBCLIENT_SHARED@||g' \ |
76 |
-e 's|@LIBNETAPI_SHARED@||g' \ |
77 |
-e 's|$(REG_SMBCONF_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ)|$(REG_SMBCONF_OBJ) @LIBNETAPI_LIBS@ $(LIBNET_OBJ)|' \ |
78 |
Makefile.in || die "sed failed" |
79 |
|
80 |
# Upstream doesn't want us to link certain things dynamically, but those binaries here seem to work |
81 |
sed -i \ |
82 |
-e '/^LINK_LIBNETAPI/d' \ |
83 |
configure || die "sed failed" |
84 |
} |
85 |
|
86 |
src_configure() { |
87 |
local myconf |
88 |
|
89 |
# Filter out -fPIE |
90 |
[[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie" |
91 |
use hppa && myconf="${myconf} --disable-pie" |
92 |
|
93 |
# Upstream refuses to make this configurable |
94 |
export ac_cv_header_sys_capability_h=no |
95 |
use caps && export ac_cv_header_sys_capability_h=yes |
96 |
|
97 |
local dnssd="--disable-dnssd" |
98 |
use zeroconf && ! use avahi && dnssd="--enable-dnssd" |
99 |
|
100 |
# Notes: |
101 |
# - FAM is a plugin for the server |
102 |
# - DNS-SD is only used in client/server code |
103 |
# - AFS is a pw-auth-method and only used in client/server code |
104 |
# - AFSACL is a server module |
105 |
# - automount is only needed in conjunction with NIS and we don't have that |
106 |
# anymore |
107 |
# - quota-support is only needed in server-code |
108 |
# - acl-support is only used in server-code |
109 |
# - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default |
110 |
econf ${myconf} \ |
111 |
--with-piddir=/var/run/samba \ |
112 |
--sysconfdir=/etc/samba \ |
113 |
--localstatedir=/var \ |
114 |
$(use_enable debug developer) \ |
115 |
--enable-largefile \ |
116 |
--enable-socket-wrapper \ |
117 |
--enable-nss-wrapper \ |
118 |
$(use_enable swat) \ |
119 |
$(use_enable debug dmalloc) \ |
120 |
$(use_enable cups) \ |
121 |
--disable-iprint \ |
122 |
$(use_enable fam) \ |
123 |
--enable-shared-libs \ |
124 |
${dnssd} \ |
125 |
$(use_enable avahi) \ |
126 |
--with-fhs \ |
127 |
--with-privatedir=/var/lib/samba/private \ |
128 |
--with-rootsbindir=/var/cache/samba \ |
129 |
--with-lockdir=/var/cache/samba \ |
130 |
--with-swatdir=/usr/share/doc/${PF}/swat \ |
131 |
--with-configdir=/etc/samba \ |
132 |
--with-logfilebase=/var/log/samba \ |
133 |
--with-pammodulesdir=$(getpam_mod_dir) \ |
134 |
--without-afs \ |
135 |
--without-fake-kaserver \ |
136 |
--without-vfs-afsacl \ |
137 |
$(use_with ldap) \ |
138 |
$(use_with ads) \ |
139 |
$(use_with ads krb5 /usr) \ |
140 |
$(use_with ads dnsupdate) \ |
141 |
--without-automount \ |
142 |
--without-cifsmount \ |
143 |
--without-cifsupcall \ |
144 |
--without-pam \ |
145 |
--without-pam_smbpass \ |
146 |
$(use_with syslog) \ |
147 |
$(use_with quota quotas) \ |
148 |
$(use_with quota sys-quotas) \ |
149 |
--without-utmp \ |
150 |
--with-lib{talloc,tdb,netapi,smbclient,smbsharemodes} \ |
151 |
--without-libaddns \ |
152 |
$(use_with cluster ctdb /usr) \ |
153 |
$(use_with cluster cluster-support) \ |
154 |
$(use_with acl acl-support) \ |
155 |
$(use_with aio aio-support) \ |
156 |
--with-sendfile-support \ |
157 |
$(use_with winbind) |
158 |
|
159 |
use swat && SBINPROGS="${SBINPROGS} bin/swat" |
160 |
use winbind && SBINPROGS="${SBINPROGS} bin/winbindd" |
161 |
use ads && use winbind && SBIN_PROGS="${SBINPROGS} bin/winbind_krb5_locator" |
162 |
|
163 |
use winbind && BINPROGS="${BINPROGS} bin/wbinfo" |
164 |
} |
165 |
|
166 |
src_compile() { |
167 |
emake ${SBINPROGS} || die "building server binaries failed" |
168 |
emake modules || die "building modules failed" |
169 |
emake ${BINPROGS} || die "building binaries failed" |
170 |
} |
171 |
|
172 |
src_install() { |
173 |
dosbin ${SBINPROGS} || die "installing server binaries failed" |
174 |
|
175 |
emake DESTDIR="${D}" installmodules || die "installing modules failed" |
176 |
|
177 |
dobin ${BINPROGS} || die "installing binaries failed" |
178 |
|
179 |
for prog in ${BINPROGS} ${SBINPROGS} ; do |
180 |
doman ../docs/manpages/${prog/bin\/}* |
181 |
done |
182 |
|
183 |
doman ../docs/manpages/vfs* ../docs/manpages/samba.7 ../docs/manpages/smb.conf.5 |
184 |
|
185 |
diropts -m0700 |
186 |
keepdir /var/lib/samba/private |
187 |
|
188 |
diropts -m1777 |
189 |
keepdir /var/spool/samba |
190 |
|
191 |
diropts -m0755 |
192 |
keepdir /var/{cache,log}/samba |
193 |
keepdir /var/lib/samba/{netlogon,profiles} |
194 |
keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR} |
195 |
keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext} |
196 |
|
197 |
newconfd "${CONFDIR}/samba.confd" samba |
198 |
newinitd "${CONFDIR}/samba.initd" samba |
199 |
|
200 |
insinto /etc/samba |
201 |
doins "${CONFDIR}"/{smbusers,lmhosts,smb.conf.default} |
202 |
|
203 |
insinto /usr/"$(get_libdir)"/samba |
204 |
doins codepages/{valid.dat,upcase.dat,lowcase.dat} |
205 |
|
206 |
if use ldap ; then |
207 |
insinto /etc/openldap/schema |
208 |
doins ../examples/LDAP/samba.schema |
209 |
fi |
210 |
|
211 |
if use swat ; then |
212 |
insinto /etc/xinetd.d |
213 |
newins "${CONFDIR}/swat.xinetd" swat |
214 |
fi |
215 |
|
216 |
dodoc ../MAINTAINERS ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS |
217 |
|
218 |
if use doc ; then |
219 |
dohtml -r ../docs/htmldocs/* |
220 |
dodoc ../docs/*.pdf |
221 |
fi |
222 |
|
223 |
if use examples ; then |
224 |
cd ../examples |
225 |
insinto /usr/share/doc/${PF}/examples |
226 |
doins -r \ |
227 |
auth autofs dce-dfs LDAP logon misc pdb perfcounter \ |
228 |
printer-accounting printing scripts tridge validchars VFS |
229 |
fi |
230 |
} |
231 |
|
232 |
|
233 |
|
234 |
1.1 net-fs/samba-server/metadata.xml |
235 |
|
236 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/metadata.xml?rev=1.1&view=markup |
237 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/metadata.xml?rev=1.1&content-type=text/plain |
238 |
|
239 |
Index: metadata.xml |
240 |
=================================================================== |
241 |
<?xml version="1.0" encoding="UTF-8"?> |
242 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
243 |
<pkgmetadata> |
244 |
<herd>samba</herd> |
245 |
<maintainer> |
246 |
<email>samba@g.o</email> |
247 |
<name>Samba Team</name> |
248 |
</maintainer> |
249 |
<longdescription> |
250 |
Samba is an Open Source/Free Software suite that provides seamless file and print services to SMB/CIFS clients. Integration with various accounting and antivirus backends. License: GNU General Public License. |
251 |
</longdescription> |
252 |
<use> |
253 |
<flag name="ads">Enable Active Directory support</flag> |
254 |
<flag name="aio">Enable asynchronous IO support</flag> |
255 |
<flag name="cluster">Enable support for clustering</flag> |
256 |
<flag name="quota">Enables support for user quotas</flag> |
257 |
<flag name="swat">Enables support for swat configuration gui</flag> |
258 |
<flag name="winbind">Enables support for the winbind auth daemon</flag> |
259 |
</use> |
260 |
</pkgmetadata> |
261 |
|
262 |
|
263 |
|
264 |
1.1 net-fs/samba-server/ChangeLog |
265 |
|
266 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/ChangeLog?rev=1.1&view=markup |
267 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/ChangeLog?rev=1.1&content-type=text/plain |
268 |
|
269 |
Index: ChangeLog |
270 |
=================================================================== |
271 |
# ChangeLog for net-fs/samba-server |
272 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
273 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/ChangeLog,v 1.1 2009/06/26 20:23:31 patrick Exp $ |
274 |
|
275 |
*samba-server-3.3.6 (26 Jun 2009) |
276 |
|
277 |
26 Jun 2009; Patrick Lauer <patrick@g.o> +files/3.3/lmhosts, |
278 |
+files/3.3/samba.confd, +files/3.3/samba.initd, |
279 |
+files/3.3/smb.conf.default, +files/3.3/smbusers, +files/3.3/swat.xinetd, |
280 |
+samba-server-3.3.6.ebuild, +metadata.xml: |
281 |
Initial commit. New split samba ebuilds by dev-zero. |