davfs2-1.5.4.ebuild 958 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit user
  5. DESCRIPTION="Linux FUSE (or coda) driver that allows you to mount a WebDAV resource"
  6. HOMEPAGE="https://savannah.nongnu.org/projects/davfs2"
  7. SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
  8. LICENSE="GPL-3+"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc x86"
  11. IUSE="nls"
  12. RESTRICT="test"
  13. RDEPEND="dev-libs/libxml2
  14. net-libs/neon
  15. sys-libs/zlib
  16. nls? ( virtual/libintl virtual/libiconv )
  17. "
  18. DEPEND="${REPEND}
  19. nls? ( sys-devel/gettext )
  20. "
  21. pkg_setup() {
  22. enewgroup davfs2
  23. }
  24. src_configure() {
  25. econf dav_user=nobody --enable-largefile $(use_enable nls)
  26. }
  27. pkg_postinst() {
  28. elog
  29. elog "Quick setup:"
  30. elog " (as root)"
  31. elog " # gpasswd -a \${your_user} davfs2"
  32. elog " # echo 'http://path/to/dav /home/\${your_user}/dav davfs rw,user,noauto 0 0' >> /etc/fstab"
  33. elog " (as user)"
  34. elog " \$ mkdir -p ~/dav"
  35. elog " \$ mount ~/dav"
  36. elog
  37. }