Added fuse-2.8.1 build template.

--HG--
extra : convert_revision : 40572a03b6891841f12b408c746ef00df86ce370
This commit is contained in:
Juan RP 2009-11-30 07:35:37 +01:00
parent 53a8e6d10d
commit 05d506a28b
4 changed files with 79 additions and 0 deletions

1
srcpkgs/fuse-devel Symbolic link
View File

@ -0,0 +1 @@
fuse

View File

@ -0,0 +1,30 @@
#!/sbin/runscript
FUSECTL_SYSFS=/sys/fs/fuse/connections
depend()
{
need localmount
}
start()
{
ebegin "Starting fuse"
if ! grep -qw fuse /proc/filesystems; then
modprobe fuse >/dev/null 2>&1 || eend $?
fi
if grep -qw fusectl /proc/filesystems && \
! grep -qw $FUSECTL_SYSFS /proc/mounts; then
mount -t fusectl none $FUSECTL_SYSFS >/dev/null 2>&1 || eend $?
fi
eend
}
stop()
{
ebegin "Stopping fuse"
if grep -qw $FUSECTL_SYSFS /proc/mounts; then
umount $FUSECTL_SYSFS >/dev/null 2>&1 || eend $?
fi
eend
}

View File

@ -0,0 +1,17 @@
# Template file for 'fuse-devel'.
#
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run fuse
do_install()
{
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
}

31
srcpkgs/fuse/template Normal file
View File

@ -0,0 +1,31 @@
# Template file for 'fuse'
pkgname=fuse
version=2.8.1
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--enable-lib --enable-util --bindir=/bin"
short_desc="Filesystem in Userspace"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=007f1056ce329a7c9976ab7b68d3361991261e188f36364d0406f8ee457d2eaf
long_desc="
With FUSE it is possible to implement a fully functional filesystem in
a userspace program. Features include:
* Simple library API
* Simple installation (no need to patch or recompile the kernel)
* Secure implementation
* Userspace - kernel interface is very efficient
* Usable by non privileged users
* Runs on Linux kernels 2.4.X and 2.6.X
* Has proven very stable over time"
subpackages="$pkgname-devel"
openrc_services="fuse default"
Add_dependency full glibc
post_install()
{
# Remove provided init script, we use our own.
rm -f ${DESTDIR}/etc/init.d/fuse
install -m755 ${FILESDIR}/fuse.rc ${DESTDIR}/etc/init.d/fuse
}