/[gentoo-x86]/net-fs/davfs2/davfs2-1.4.5-r1.ebuild
Gentoo

Contents of /net-fs/davfs2/davfs2-1.4.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Mar 13 21:01:06 2011 UTC (3 years, 3 months ago) by slyfox
Branch: MAIN
Added required davfs2 group. Fix by Urs Joss (bug #274312)

(Portage version: 2.1.9.42/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-fs/davfs2/davfs2-1.4.5.ebuild,v 1.3 2010/08/17 19:20:50 ssuominen Exp $
4
5 EAPI="2"
6
7 inherit autotools eutils linux-mod
8
9 DESCRIPTION="Linux FUSE (or coda) driver that allows you to mount a WebDAV resource."
10 HOMEPAGE="http://savannah.nongnu.org/projects/davfs2"
11 SRC_URI="http://mirror.lihnidos.org/GNU/savannah/davfs2/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86"
16 IUSE=""
17 RESTRICT="test"
18
19 DEPEND="dev-libs/libxml2
20 net-libs/neon
21 sys-libs/zlib"
22 RDEPEND="${DEPEND}"
23
24 pkg_setup() {
25 enewgroup davfs2
26 }
27
28 src_prepare() {
29 epatch "${FILESDIR}"/${P}-glibc212.patch
30 sed -e "s/^NE_REQUIRE_VERSIONS.*29/& 30/" -i configure.ac
31 eautoreconf
32 }
33
34 src_configure() {
35 econf --enable-largefile
36 }
37
38 src_compile() {
39 emake || die "emake failed"
40 }
41
42 src_install() {
43 emake DESTDIR="${D}" install || die "emake install failed"
44 dodoc AUTHORS BUGS ChangeLog FAQ NEWS README README.translators THANKS TODO
45
46 # Remove wrong locations created by install.
47 rm -fr "${D}/usr/share/doc/davfs2"
48 rm -fr "${D}/usr/share/davfs2"
49
50 dodir /var/run/mount.davfs
51 keepdir /var/run/mount.davfs
52 fowners root:davfs2 /var/run/mount.davfs
53 fperms 1774 /var/run/mount.davfs
54
55 # Ignore nobody's home
56 cat>>"${D}/etc/davfs2/davfs2.conf"<<EOF
57
58 # nobody is a system account in Gentoo
59 ignore_home nobody
60 EOF
61 }
62
63 pkg_postinst() {
64 elog
65 elog "Quick setup:"
66 elog " (as root)"
67 elog " # gpasswd -a \${your_user} davfs2"
68 elog " # echo 'http://path/to/dav /home/\${your_user}/dav davfs rw,user,noauto 0 0' >> /etc/fstab"
69 elog " (as user)"
70 elog " # mkdir -p ~/dav"
71 elog " \$ mount ~/dav"
72 elog
73 }

  ViewVC Help
Powered by ViewVC 1.1.20