/[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.6 - (hide annotations) (download)
Sun Aug 10 20:54:46 2014 UTC (4 months, 2 weeks ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 slyfox 1.6 # Copyright 1999-2014 Gentoo Foundation
2 slyfox 1.1 # Distributed under the terms of the GNU General Public License v2
3 slyfox 1.6 # $Header: /var/cvsroot/gentoo-x86/net-fs/davfs2/davfs2-1.4.5-r1.ebuild,v 1.5 2012/08/25 20:57:05 scarabeus Exp $
4 slyfox 1.1
5     EAPI="2"
6    
7 zmedico 1.4 inherit autotools eutils linux-mod user
8 slyfox 1.1
9 slyfox 1.6 DESCRIPTION="Linux FUSE (or coda) driver that allows you to mount a WebDAV resource"
10 slyfox 1.1 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 scarabeus 1.5 KEYWORDS="amd64 ppc x86"
16 slyfox 1.1 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