Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 199769 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-fs/samba/samba-3.0.26a-r2.ebuild (-2 / +22 lines)
Lines 5-22 Link Here
5
inherit eutils pam python multilib versionator confutils
5
inherit eutils pam python multilib versionator confutils
6
6
7
MY_P=${PN}-${PV/_/}
7
MY_P=${PN}-${PV/_/}
8
8
9
VSCAN_PV="0.3.6c-beta5"
10
VSCAN_PF="${PN}-vscan-${VSCAN_PV}"
11
9
DESCRIPTION="A suite of SMB and CIFS client/server programs for UNIX"
12
DESCRIPTION="A suite of SMB and CIFS client/server programs for UNIX"
10
HOMEPAGE="http://www.samba.org/"
13
HOMEPAGE="http://www.samba.org/"
11
SRC_URI="mirror://samba/${MY_P}.tar.gz
14
SRC_URI="mirror://samba/${MY_P}.tar.gz
12
	mirror://samba/old-versions/${MY_P}.tar.gz"
15
	mirror://samba/old-versions/${MY_P}.tar.gz
16
	oav? ( http://www.openantivirus.org/download/${VSCAN_PF}.tar.gz )"
13
LICENSE="GPL-2"
17
LICENSE="GPL-2"
14
SLOT="0"
18
SLOT="0"
15
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc ~sparc-fbsd x86 ~x86-fbsd"
19
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc ~sparc-fbsd x86 ~x86-fbsd"
16
IUSE_LINGUAS="linguas_ja linguas_pl"
20
IUSE_LINGUAS="linguas_ja linguas_pl"
17
IUSE="${IUSE_LINGUAS} acl ads async automount caps cups doc examples ipv6 kernel_linux ldap fam
21
IUSE="${IUSE_LINGUAS} acl ads async automount caps cups doc examples ipv6 kernel_linux ldap fam
18
	pam python quotas readline selinux swat syslog winbind"
22
	oav pam python quotas readline selinux swat syslog winbind"
19
23
20
RDEPEND="dev-libs/popt
24
RDEPEND="dev-libs/popt
21
	virtual/libiconv
25
	virtual/libiconv
22
	acl?       ( kernel_linux? ( sys-apps/acl ) )
26
	acl?       ( kernel_linux? ( sys-apps/acl ) )
Lines 134-141 Link Here
134
138
135
	if use python ; then
139
	if use python ; then
136
		emake python_ext || die "emake python_ext failed"
140
		emake python_ext || die "emake python_ext failed"
137
	fi
141
	fi
142
	
143
	if use oav ; then
144
	    cd ${WORKDIR}/${VSCAN_PF}
145
	    econf \
146
		--with-fhs \
147
		--libdir=/usr/$(get_libdir)/samba \
148
		--with-samba-source=${S}/source \
149
		|| die "${VSCAN_PF} ./configure failed"
150
	    emake || die "Failed to make ${VSCAN_PF}"									    
151
	fi
138
}
152
}
139
153
140
src_test() {
154
src_test() {
141
	cd "${S}/source"
155
	cd "${S}/source"
Lines 260-267 Link Here
260
			rm -rf "${D}/usr/share/doc/${PF}/swat/using_samba"
274
			rm -rf "${D}/usr/share/doc/${PF}/swat/using_samba"
261
		fi
275
		fi
262
	fi
276
	fi
263
277
278
	if use oav ; then
279
	    cd ${WORKDIR}/${VSCAN_PF}
280
	    make install DESTDIR=${D} || die "VFS: vscan error"
281
	    insinto /etc/samba
282
	    doins openantivirus/*conf
283
	fi
264
}
284
}
265
285
266
pkg_preinst() {
286
pkg_preinst() {
267
	local PRIVATE_SRC=/etc/samba/private
287
	local PRIVATE_SRC=/etc/samba/private

Return to bug 199769