1 |
patrick 09/06/26 20:19:45 |
2 |
|
3 |
Added: metadata.xml ChangeLog samba-libs-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-libs/metadata.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/metadata.xml?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/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-libs/ChangeLog |
38 |
|
39 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/ChangeLog?rev=1.1&view=markup |
40 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/ChangeLog?rev=1.1&content-type=text/plain |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
# ChangeLog for net-fs/samba-libs |
45 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
46 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-libs/ChangeLog,v 1.1 2009/06/26 20:19:44 patrick Exp $ |
47 |
|
48 |
*samba-libs-3.3.6 (26 Jun 2009) |
49 |
|
50 |
26 Jun 2009; Patrick Lauer <patrick@g.o> |
51 |
+files/3.3/nsswitch.conf-winbind, +files/3.3/nsswitch.conf-wins, |
52 |
+files/3.3/samba.pam, +files/3.3/system-auth-winbind.pam, |
53 |
+samba-libs-3.3.6.ebuild, +metadata.xml: |
54 |
Initial commit. New split samba ebuilds by dev-zero. |
55 |
|
56 |
|
57 |
|
58 |
|
59 |
1.1 net-fs/samba-libs/samba-libs-3.3.6.ebuild |
60 |
|
61 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/samba-libs-3.3.6.ebuild?rev=1.1&view=markup |
62 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/samba-libs-3.3.6.ebuild?rev=1.1&content-type=text/plain |
63 |
|
64 |
Index: samba-libs-3.3.6.ebuild |
65 |
=================================================================== |
66 |
# Copyright 1999-2009 Gentoo Foundation |
67 |
# Distributed under the terms of the GNU General Public License v2 |
68 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-libs/samba-libs-3.3.6.ebuild,v 1.1 2009/06/26 20:19:44 patrick Exp $ |
69 |
|
70 |
EAPI="2" |
71 |
|
72 |
inherit pam confutils versionator multilib |
73 |
|
74 |
MY_P="samba-${PV}" |
75 |
|
76 |
DESCRIPTION="Libraries from Samba" |
77 |
HOMEPAGE="http://www.samba.org/" |
78 |
SRC_URI="mirror://samba/${MY_P}.tar.gz" |
79 |
LICENSE="GPL-3" |
80 |
SLOT="0" |
81 |
KEYWORDS="~amd64 ~x86" |
82 |
IUSE="ads aio caps cluster cups debug examples ldap pam syslog winbind" |
83 |
|
84 |
DEPEND="dev-libs/popt |
85 |
virtual/libiconv |
86 |
ads? ( virtual/krb5 sys-fs/e2fsprogs ) |
87 |
caps? ( sys-libs/libcap ) |
88 |
cluster? ( dev-db/ctdb ) |
89 |
cups? ( net-print/cups ) |
90 |
ldap? ( net-nds/openldap ) |
91 |
pam? ( virtual/pam |
92 |
winbind? ( dev-libs/iniparser ) ) |
93 |
syslog? ( virtual/logger ) |
94 |
!<net-fs/samba-3.3" |
95 |
RDEPEND="${DEPEND}" |
96 |
|
97 |
# Disable tests since we don't want to build that much here |
98 |
RESTRICT="test" |
99 |
|
100 |
S="${WORKDIR}/${MY_P}/source" |
101 |
|
102 |
# TODO: |
103 |
# - enable iPrint on Prefix/OSX and Darwin? |
104 |
# - selftest-prefix? selftest? |
105 |
|
106 |
CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
107 |
|
108 |
pkg_setup() { |
109 |
confutils_use_depend_all ads ldap |
110 |
} |
111 |
|
112 |
src_prepare() { |
113 |
sed -i \ |
114 |
-e 's|"lib32" ||' \ |
115 |
-e 's|if test -d "$i/$l" ;|if test -d "$i/$l" -o -L "$i/$l";|' \ |
116 |
configure || die "sed failed" |
117 |
} |
118 |
|
119 |
src_configure() { |
120 |
local myconf |
121 |
|
122 |
# Filter out -fPIE |
123 |
[[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie" |
124 |
use hppa && myconf="${myconf} --disable-pie" |
125 |
|
126 |
# Upstream refuses to make this configurable |
127 |
use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no |
128 |
|
129 |
# Notes: |
130 |
# - FAM is a plugin for the server |
131 |
# - DNS-SD is only used in client/server code |
132 |
# - AFS is a pw-auth-method and only used in client/server code |
133 |
# - AFSACL is a server module |
134 |
# - automount is only needed in conjunction with NIS and we don't have that |
135 |
# anymore |
136 |
# - quota-support is only needed in server-code |
137 |
# - acl-support is only used in server-code |
138 |
# - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default |
139 |
econf ${myconf} \ |
140 |
--sysconfdir=/etc/samba \ |
141 |
--localstatedir=/var \ |
142 |
$(use_enable debug developer) \ |
143 |
--enable-largefile \ |
144 |
--enable-socket-wrapper \ |
145 |
--enable-nss-wrapper \ |
146 |
--disable-swat \ |
147 |
$(use_enable debug dmalloc) \ |
148 |
$(use_enable cups) \ |
149 |
--disable-iprint \ |
150 |
--disable-fam \ |
151 |
--enable-shared-libs \ |
152 |
--disable-dnssd \ |
153 |
--disable-avahi \ |
154 |
--with-fhs \ |
155 |
--with-privatedir=/var/lib/samba/private \ |
156 |
--with-rootsbindir=/var/cache/samba \ |
157 |
--with-lockdir=/var/cache/samba \ |
158 |
--with-swatdir=/usr/share/doc/${PF}/swat \ |
159 |
--with-configdir=/etc/samba \ |
160 |
--with-logfilebase=/var/log/samba \ |
161 |
--with-pammodulesdir=$(getpam_mod_dir) \ |
162 |
--without-afs \ |
163 |
--without-fake-kaserver \ |
164 |
--without-vfs-afsacl \ |
165 |
$(use_with ldap) \ |
166 |
$(use_with ads) \ |
167 |
$(use_with ads krb5 /usr) \ |
168 |
$(use_with ads dnsupdate) \ |
169 |
--without-automount \ |
170 |
--without-cifsmount \ |
171 |
--without-cifsupcall \ |
172 |
$(use_with pam) \ |
173 |
$(use_with pam pam_smbpass) \ |
174 |
$(use_with syslog) \ |
175 |
--without-quotas \ |
176 |
--without-sys-quotas \ |
177 |
--without-utmp \ |
178 |
--with-lib{talloc,tdb,netapi,smbclient,smbsharemodes} \ |
179 |
--without-libaddns \ |
180 |
$(use_with cluster ctdb /usr) \ |
181 |
$(use_with cluster cluster-support) \ |
182 |
--without-acl-support \ |
183 |
$(use_with aio aio-support) \ |
184 |
--with-sendfile-support \ |
185 |
$(use_with winbind) \ |
186 |
--without-included-popt \ |
187 |
--without-included-iniparser |
188 |
} |
189 |
|
190 |
src_compile() { |
191 |
emake libs pam_modules nss_modules || die "emake failed" |
192 |
} |
193 |
|
194 |
src_install() { |
195 |
emake DESTDIR="${D}" installlibs || die "emake installlibs failed" |
196 |
if use pam ; then |
197 |
emake DESTDIR="${D}" installpammodules || die "emake installpammodules failed" |
198 |
fi |
199 |
|
200 |
# Remove empty installation directories |
201 |
rmdir \ |
202 |
"${D}/usr/$(get_libdir)/samba" \ |
203 |
"${D}/usr"/{sbin,bin} \ |
204 |
"${D}/usr/share"/{man,locale,} \ |
205 |
"${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \ |
206 |
|| die "tried to remove non-empty dirs, this seems like a bug in the ebuild" |
207 |
|
208 |
# Nsswitch extensions. Make link for wins and winbind resolvers |
209 |
if use winbind ; then |
210 |
dolib.so nsswitch/libnss_wins.so |
211 |
dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2 |
212 |
dolib.so nsswitch/libnss_winbind.so |
213 |
dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2 |
214 |
fi |
215 |
|
216 |
if use pam ; then |
217 |
if use winbind ; then |
218 |
newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
219 |
doman ../docs/manpages/pam_winbind.7 |
220 |
dohtml ../docs/htmldocs/manpages/pam_winbind.7.html |
221 |
|
222 |
if use examples ; then |
223 |
insinto /usr/share/doc/${PF}/examples |
224 |
doins -r ../examples/pam_winbind |
225 |
fi |
226 |
fi |
227 |
|
228 |
newpamd "${CONFDIR}/samba.pam" samba |
229 |
dodoc pam_smbpass/README |
230 |
fi |
231 |
|
232 |
if use examples ; then |
233 |
insinto /usr/share/doc/${PF}/examples |
234 |
doins -r ../examples/libsmbclient |
235 |
|
236 |
use winbind && doins -r ../examples/nss |
237 |
fi |
238 |
|
239 |
} |