1 |
patrick 09/06/26 20:22:56 |
2 |
|
3 |
Added: metadata.xml ChangeLog samba-client-3.3.6.ebuild |
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-client/metadata.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/metadata.xml?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/metadata.xml?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: metadata.xml |
15 |
=================================================================== |
16 |
<?xml version="1.0" encoding="UTF-8"?> |
17 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 |
<pkgmetadata> |
19 |
<herd>samba</herd> |
20 |
<maintainer> |
21 |
<email>samba@g.o</email> |
22 |
<name>Samba Team</name> |
23 |
</maintainer> |
24 |
<longdescription> |
25 |
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. |
26 |
</longdescription> |
27 |
<use> |
28 |
<flag name="ads">Enable Active Directory support</flag> |
29 |
<flag name="aio">Enable asynchronous IO support</flag> |
30 |
<flag name="cluster">Enable support for clustering</flag> |
31 |
<flag name="winbind">Enables support for the winbind auth daemon</flag> |
32 |
</use> |
33 |
</pkgmetadata> |
34 |
|
35 |
|
36 |
|
37 |
1.1 net-fs/samba-client/ChangeLog |
38 |
|
39 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/ChangeLog?rev=1.1&view=markup |
40 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/ChangeLog?rev=1.1&content-type=text/plain |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
# ChangeLog for net-fs/samba-client |
45 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
46 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-client/ChangeLog,v 1.1 2009/06/26 20:22:56 patrick Exp $ |
47 |
|
48 |
*samba-client-3.3.6 (26 Jun 2009) |
49 |
|
50 |
26 Jun 2009; Patrick Lauer <patrick@g.o> |
51 |
+files/3.3.3-fix-as-needed.patch, +files/3.3.4-missing_includes.patch, |
52 |
+samba-client-3.3.6.ebuild, +metadata.xml: |
53 |
Initial commit. New split samba ebuilds by dev-zero. |
54 |
|
55 |
|
56 |
|
57 |
|
58 |
1.1 net-fs/samba-client/samba-client-3.3.6.ebuild |
59 |
|
60 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/samba-client-3.3.6.ebuild?rev=1.1&view=markup |
61 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-client/samba-client-3.3.6.ebuild?rev=1.1&content-type=text/plain |
62 |
|
63 |
Index: samba-client-3.3.6.ebuild |
64 |
=================================================================== |
65 |
# Copyright 1999-2009 Gentoo Foundation |
66 |
# Distributed under the terms of the GNU General Public License v2 |
67 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-client/samba-client-3.3.6.ebuild,v 1.1 2009/06/26 20:22:56 patrick Exp $ |
68 |
|
69 |
EAPI="2" |
70 |
|
71 |
inherit pam confutils versionator multilib eutils toolchain-funcs |
72 |
|
73 |
MY_P="samba-${PV}" |
74 |
|
75 |
DESCRIPTION="Libraries from Samba" |
76 |
HOMEPAGE="http://www.samba.org/" |
77 |
SRC_URI="mirror://samba/${MY_P}.tar.gz" |
78 |
LICENSE="GPL-3" |
79 |
SLOT="0" |
80 |
KEYWORDS="~amd64 ~x86" |
81 |
IUSE="ads aio avahi caps cluster cups debug ldap minimal syslog winbind zeroconf" |
82 |
|
83 |
DEPEND="!<net-fs/samba-3.3 |
84 |
!net-fs/mount-cifs |
85 |
ads? ( virtual/krb5 sys-fs/e2fsprogs |
86 |
net-fs/samba-libs[ads] sys-apps/keyutils ) |
87 |
!minimal? ( |
88 |
dev-libs/popt |
89 |
dev-libs/iniparser |
90 |
virtual/libiconv |
91 |
zeroconf? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) ) |
92 |
caps? ( sys-libs/libcap ) |
93 |
cups? ( net-print/cups ) |
94 |
ldap? ( net-nds/openldap ) |
95 |
syslog? ( virtual/logger ) |
96 |
net-fs/samba-libs[caps?,cups?,ldap?,syslog?,winbind?] |
97 |
)" |
98 |
RDEPEND="${DEPEND}" |
99 |
|
100 |
S="${WORKDIR}/${MY_P}/source" |
101 |
|
102 |
# TODO: |
103 |
# - enable iPrint on Prefix/OSX and Darwin? |
104 |
# - selftest-prefix? selftest? |
105 |
|
106 |
RESTRICT="test" |
107 |
|
108 |
CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
109 |
BINPROGS="bin/smbclient bin/net bin/smbget bin/smbtree bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas bin/ntlm_auth" |
110 |
|
111 |
pkg_setup() { |
112 |
confutils_use_depend_all ads ldap |
113 |
} |
114 |
|
115 |
src_prepare() { |
116 |
epatch \ |
117 |
"${FILESDIR}/3.3.4-missing_includes.patch" \ |
118 |
"${FILESDIR}/3.3.3-fix-as-needed.patch" |
119 |
|
120 |
sed -i \ |
121 |
-e 's|"lib32" ||' \ |
122 |
-e 's|if test -d "$i/$l" ;|if test -d "$i/$l" -o -L "$i/$l";|' \ |
123 |
configure || die "sed failed" |
124 |
|
125 |
sed -i \ |
126 |
-e 's|@LIBTALLOC_SHARED@||g' \ |
127 |
-e 's|@LIBTDB_SHARED@||g' \ |
128 |
-e 's|@LIBWBCLIENT_SHARED@||g' \ |
129 |
-e 's|@LIBNETAPI_SHARED@||g' \ |
130 |
-e 's|$(REG_SMBCONF_OBJ) @LIBNETAPI_STATIC@ $(LIBNET_OBJ)|$(REG_SMBCONF_OBJ) @LIBNETAPI_LIBS@ $(LIBNET_OBJ)|' \ |
131 |
Makefile.in || die "sed failed" |
132 |
|
133 |
# Upstream doesn't want us to link certain things dynamically, but those binaries here seem to work |
134 |
sed -i \ |
135 |
-e '/^LINK_LIBNETAPI/d' \ |
136 |
configure || die "sed failed" |
137 |
} |
138 |
|
139 |
src_configure() { |
140 |
local myconf |
141 |
|
142 |
# Filter out -fPIE |
143 |
[[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie" |
144 |
use hppa && myconf="${myconf} --disable-pie" |
145 |
|
146 |
# Upstream refuses to make this configurable |
147 |
export ac_cv_header_sys_capability_h=no |
148 |
if ! use minimal ; then |
149 |
use caps && export ac_cv_header_sys_capability_h=yes |
150 |
fi |
151 |
|
152 |
if ! use minimal || use ads; then |
153 |
# Notes: |
154 |
# - FAM is a plugin for the server |
155 |
# - DNS-SD is only used in client/server code |
156 |
# - AFS is a pw-auth-method and only used in client/server code |
157 |
# - AFSACL is a server module |
158 |
# - automount is only needed in conjunction with NIS and we don't have that |
159 |
# anymore |
160 |
# - quota-support is only needed in server-code |
161 |
# - acl-support is only used in server-code |
162 |
# - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default |
163 |
# - current DNS/SD support in the client is via the mdnsresponder-compat api in avahi |
164 |
econf ${myconf} \ |
165 |
--sysconfdir=/etc/samba \ |
166 |
--localstatedir=/var \ |
167 |
$(use_enable debug developer) \ |
168 |
--enable-largefile \ |
169 |
--enable-socket-wrapper \ |
170 |
--enable-nss-wrapper \ |
171 |
--disable-swat \ |
172 |
$(use_enable debug dmalloc) \ |
173 |
$(use minimal && echo "--disable-cups" || echo "$(use_enable cups)") \ |
174 |
--disable-iprint \ |
175 |
--disable-fam \ |
176 |
--enable-shared-libs \ |
177 |
$(use minimal && echo "--disable-dnssd" || echo "$(use_enable avahi dnssd)") \ |
178 |
--disable-avahi \ |
179 |
--with-fhs \ |
180 |
--with-privatedir=/var/lib/samba/private \ |
181 |
--with-rootsbindir=/var/cache/samba \ |
182 |
--with-lockdir=/var/cache/samba \ |
183 |
--with-swatdir=/usr/share/doc/${PF}/swat \ |
184 |
--with-configdir=/etc/samba \ |
185 |
--with-logfilebase=/var/log/samba \ |
186 |
--with-pammodulesdir=$(getpam_mod_dir) \ |
187 |
--without-afs \ |
188 |
--without-fake-kaserver \ |
189 |
--without-vfs-afsacl \ |
190 |
$(use minimal && echo "--without-ldap" || echo "$(use_with ldap)") \ |
191 |
$(use minimal && echo "--without-ads" || echo "$(use_with ads)") \ |
192 |
$(use minimal && echo "--without-krb5" || echo "$(use_with ads krb5 /usr)") \ |
193 |
$(use minimal && echo "--without-dnsupdate" || echo "$(use_with ads dnsupdate)") \ |
194 |
--without-automount \ |
195 |
--without-cifsmount \ |
196 |
--without-cifsupcall \ |
197 |
--without-pam \ |
198 |
--without-pam_smbpass \ |
199 |
$(use minimal && echo "--without-syslog" || echo "$(use_with syslog)") \ |
200 |
--without-quotas \ |
201 |
--without-sys-quotas \ |
202 |
--without-utmp \ |
203 |
--with-lib{talloc,tdb,netapi,smbclient,smbsharemodes} \ |
204 |
--without-libaddns \ |
205 |
$(use minimal && echo "--without-ctdb" || echo "$(use_with cluster ctdb /usr)") \ |
206 |
$(use minimal && echo "--without-cluster" || echo "$(use_with cluster cluster-support)") \ |
207 |
--without-acl-support \ |
208 |
$(use minimal && echo "--without-aio-support" || echo "$(use_with aio aio-support)") \ |
209 |
--with-sendfile-support \ |
210 |
$(use minimal && echo "--without-winbind" || echo "$(use_with winbind)") \ |
211 |
--without-included-popt \ |
212 |
--without-included-iniparser |
213 |
fi |
214 |
} |
215 |
|
216 |
src_compile() { |
217 |
mkdir bin |
218 |
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bin/mount.cifs client/{mount.cifs,mtab}.c || die "building mount.cifs failed" |
219 |
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bin/umount.cifs client/{umount.cifs,mtab}.c || die "building umount.cifs failed" |
220 |
|
221 |
if use ads ; then |
222 |
emake bin/cifs.upcall || die "emake cifs.upcall failed" |
223 |
fi |
224 |
|
225 |
if ! use minimal ; then |
226 |
emake ${BINPROGS} || die "emake binprogs failed" |
227 |
if use cups ; then |
228 |
emake bin/smbspool || die "emake smbspool failed" |
229 |
fi |
230 |
fi |
231 |
} |
232 |
|
233 |
src_install() { |
234 |
into / |
235 |
dosbin bin/mount.cifs bin/umount.cifs || die "u/mount.cifs not around" |
236 |
doman ../docs/manpages/{u,}mount.cifs.8 |
237 |
dohtml ../docs/htmldocs/manpages/{u,}mount.cifs.8.html |
238 |
|
239 |
into /usr |
240 |
if use ads ; then |
241 |
dosbin bin/cifs.upcall || die "cifs.upcall not around" |
242 |
doman ../docs/manpages/cifs.upcall.8 |
243 |
doman ../docs/htmldocs/cifs.upcall.8.html |
244 |
fi |
245 |
|
246 |
if ! use minimal ; then |
247 |
dobin ${BINPROGS} || die "not all bins around" |
248 |
for prog in ${BINPROGS} ; do |
249 |
doman ../docs/manpages/${prog/bin\/}* |
250 |
dohtml ../docs/htmldocs/${prog/bin\/}*.html |
251 |
done |
252 |
|
253 |
if use cups ; then |
254 |
dobin bin/smbspool || die "smbspool not around" |
255 |
doman ../docs/manpages/smbspool.8 |
256 |
dohtml ../docs/htmldocs/smbspool.8.html |
257 |
dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb |
258 |
fi |
259 |
fi |
260 |
} |