commit: 0a26412bc36949b0a1d19c694501cbe15b95fa02 Author: Tim Harder <radhermit <AT> gentoo <DOT> org> AuthorDate: Sat Jan 16 17:59:06 2016 +0000 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> CommitDate: Sat Jan 16 18:00:52 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a26412b
sys-fs/fuse: version bump to 2.9.5 Update metadata to note moving to github and add myself as a maintainer. sys-fs/fuse/Manifest | 1 + sys-fs/fuse/fuse-2.9.5.ebuild | 84 +++++++++++++++++++++++++++++++++++++++++++ sys-fs/fuse/metadata.xml | 6 +++- 3 files changed, 90 insertions(+), 1 deletion(-) diff --git a/sys-fs/fuse/Manifest b/sys-fs/fuse/Manifest index 0cd19d3..73fdeb9 100644 --- a/sys-fs/fuse/Manifest +++ b/sys-fs/fuse/Manifest @@ -1 +1,2 @@ DIST fuse-2.9.4.tar.gz 577282 SHA256 6be9c0bff6af8c677414935f31699ea5a7f8f5f791cfa5205be02ea186b97ce1 SHA512 055ec2a78793276102bc5a0afea9eebd18b151cf752d0985380ffbde1c554e9fb7bc3a43838618e3957b274aa06624303ea12f32c659365c4768dad887bb557d WHIRLPOOL 6c866ba05be5a56e1b1d8793378c0c5c683375e9baad6de22344adaf5bb35021182b15783f59911259f98cb914ef4a1cb70be0cb9b5cd6625173b3b6454c32d7 +DIST fuse-2.9.5.tar.gz 565245 SHA256 579f371cc5ffc1afca7057512bf7d52988a9ede57859a7c55e5b9f72435cdbb5 SHA512 65a7355a2e6b872ab055181222e8fb5918c3ea7b93eee3350a812a1545b2c2bee1bfc163ce1e57776d1721151223c437cfb92c4b286e075e68d0eed742447413 WHIRLPOOL 7b6b69b2b58e200e7c1957c2bbe4b57da1a400cbc695114c89566dc57b523fd513698e3d9b0e7125521f9e53b5e17c0397601bdaebe8bafc1790c363fa2f55bb diff --git a/sys-fs/fuse/fuse-2.9.5.ebuild b/sys-fs/fuse/fuse-2.9.5.ebuild new file mode 100644 index 0000000..c409bc3 --- /dev/null +++ b/sys-fs/fuse/fuse-2.9.5.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils libtool linux-info udev toolchain-funcs + +DESCRIPTION="An interface for filesystems implemented in userspace" +HOMEPAGE="https://github.com/libfuse/libfuse" +SRC_URI="https://github.com/libfuse/libfuse/releases/download/${PN}_${PV//./_}/fuse-2.9.5.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" +IUSE="examples kernel_linux kernel_FreeBSD static-libs" + +PDEPEND="kernel_FreeBSD? ( sys-fs/fuse4bsd )" +DEPEND="virtual/pkgconfig" + +pkg_setup() { + if use kernel_linux ; then + if kernel_is lt 2 6 9 ; then + die "Your kernel is too old." + fi + CONFIG_CHECK="~FUSE_FS" + FUSE_FS_WARNING="You need to have FUSE module built to use user-mode utils" + linux-info_pkg_setup + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.9.3-kernel-types.patch + # sandbox violation with mtab writability wrt #438250 + # don't sed configure.in without eautoreconf because of maintainer mode + sed -i 's:umount --fake:true --fake:' configure || die + elibtoolize +} + +src_configure() { + econf \ + INIT_D_PATH="${EPREFIX}/etc/init.d" \ + MOUNT_FUSE_PATH="${EPREFIX}/sbin" \ + UDEV_RULES_PATH="${EPREFIX}/$(get_udevdir)/rules.d" \ + $(use_enable static-libs static) \ + --disable-example +} + +src_install() { + default + + dodoc AUTHORS ChangeLog README.md \ + README.NFS NEWS doc/how-fuse-works doc/kernel.txt + + if use examples ; then + docinto examples + dodoc example/* + fi + + if use kernel_linux ; then + newinitd "${FILESDIR}"/fuse.init fuse + elif use kernel_FreeBSD ; then + insinto /usr/include/fuse + doins include/fuse_kernel.h + newinitd "${FILESDIR}"/fuse-fbsd.init fuse + else + die "We don't know what init code install for your kernel, please file a bug." + fi + + prune_libtool_files + rm -rf "${D}"/dev + + dodir /etc + cat > "${ED}"/etc/fuse.conf <<-EOF + # Set the maximum number of FUSE mounts allowed to non-root users. + # The default is 1000. + # + #mount_max = 1000 + + # Allow non-root users to specify the 'allow_other' or 'allow_root' + # mount options. + # + #user_allow_other + EOF +} diff --git a/sys-fs/fuse/metadata.xml b/sys-fs/fuse/metadata.xml index be94852..1d27443 100644 --- a/sys-fs/fuse/metadata.xml +++ b/sys-fs/fuse/metadata.xml @@ -2,8 +2,12 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>kernel-misc</herd> + <maintainer> + <email>[email protected]</email> + <name>Tim Harder</name> + </maintainer> <upstream> <remote-id type="cpe">cpe:/a:fuse:fuse</remote-id> - <remote-id type="sourceforge">fuse</remote-id> + <remote-id type="github">libfuse/libfuse</remote-id> </upstream> </pkgmetadata>
