Date: Sat, 19 Dec 2009 04:29:39 GMT From: Raymond Wagner <raymond@wagnerrp.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/141768: Port submission for audio/mp3fs Message-ID: <200912190429.nBJ4Tdwk074188@www.freebsd.org> Resent-Message-ID: <200912190430.nBJ4U7Kr050237@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 141768 >Category: ports >Synopsis: Port submission for audio/mp3fs >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Dec 19 04:30:07 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Raymond Wagner >Release: 8.0-RELEASE >Organization: >Environment: FreeBSD fserve.wagnerrp.com 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Submission of port for audio/mp3fs, a fusefs program to transcode FLAC to mp3 on-demand. http://sourceforge.net/projects/mp3fs/ >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # mp3fs # mp3fs/distinfo # mp3fs/pkg-descr # mp3fs/pkg-message # mp3fs/Makefile # mp3fs/files # mp3fs/files/patch-mp3fs # mp3fs/files/patch-transcode # echo c - mp3fs mkdir -p mp3fs > /dev/null 2>&1 echo x - mp3fs/distinfo sed 's/^X//' >mp3fs/distinfo << '7fc39e6327569e3a4a97d6d62387aff3' XMD5 (mp3fs-0.13.tar.gz) = fb9b5eb4fb6f69f35430ff7e93a84e0b XSHA256 (mp3fs-0.13.tar.gz) = 68e9c4ec0a346889ddf2c39e4ae2e04a6409fc26bf5cd3963f450092bb54cf48 XSIZE (mp3fs-0.13.tar.gz) = 301642 7fc39e6327569e3a4a97d6d62387aff3 echo x - mp3fs/pkg-descr sed 's/^X//' >mp3fs/pkg-descr << '69333dd3e3c93ae7a3ad3b5cc0172139' XMP3FS allows you store files as lossless FLAC and access them through the Xfilesystem seamlessly as mp3s. X XWWW: http://sourceforge.net/projects/mp3fs/ 69333dd3e3c93ae7a3ad3b5cc0172139 echo x - mp3fs/pkg-message sed 's/^X//' >mp3fs/pkg-message << '53a19234fa8501abcc7f7080671fd22c' XBasic Instructions: XThere are three ways to do this: X XDaemon initiated X X1) X% mp3fs /path/to/files,<bitrate> /path/to/mount/point X Xor X X2) X% mount_fusefs auto /path/to/mount/point sshfs /path/to/files,<bitrate> X Xor X X3) X% env FUSE_DEV_NAME=/dev/fuse0 mp3fs /path/to/files,<bitrate> X% mount_fusefs /dev/fuse0 /path/to/mount/point X XFor further options see ``mp3fs -h''. 53a19234fa8501abcc7f7080671fd22c echo x - mp3fs/Makefile sed 's/^X//' >mp3fs/Makefile << 'a8b4dce720238aa5f65955bdef62ad7b' X# New ports collection makefile for: mp3fs X# Date created: 18 December 2009 X# Whom: wagnerrp X# X# $FreeBSD$ X# X XPORTNAME= mp3fs XPORTVERSION= 0.13 XCATEGORIES= audio XMASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} X XMAINTAINER= raymond@wagnerrp.com XCOMMENT= FUSE filesystem for accessing FLAC files as reduced bitrate mp3s X XLIB_DEPENDS= ogg.6:${PORTSDIR}/audio/libogg \ X FLAC.10:${PORTSDIR}/audio/flac \ X mp3lame.0:${PORTSDIR}/audio/lame \ X fuse.2:${PORTSDIR}/sysutils/fusefs-libs \ X id3tag.0:${PORTSDIR}/audio/libid3tag XRUN_DEPENDS= ${KMODDIR}/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod XBUILD_DEPENDS= fusefs-libs>2.4.1:${PORTSDIR}/sysutils/fusefs-libs X XGNU_CONFIGURE= yes XCONFIGURE_ARGS= --prefix=${PREFIX} \ X CFLAGS="-I${PREFIX}/include" \ X LDFLAGS="-L${PREFIX}/lib" X XPLIST_FILES= bin/mp3fs X X.include <bsd.port.mk> a8b4dce720238aa5f65955bdef62ad7b echo c - mp3fs/files mkdir -p mp3fs/files > /dev/null 2>&1 echo x - mp3fs/files/patch-mp3fs sed 's/^X//' >mp3fs/files/patch-mp3fs << '487d35eea3e1e9655ff4c1a59792391b' X--- src/mp3fs.c 2009-12-18 18:01:30.238840501 -0500 X+++ src/mp3fs.c 2009-06-10 02:31:34.636087031 -0400 X@@ -20,7 +20,7 @@ X Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. X */ X X-#define FUSE_USE_VERSION 22 X+#define FUSE_USE_VERSION 25 X X #include <fuse.h> X #include <stdio.h> X@@ -30,8 +30,7 @@ X #include <fcntl.h> X #include <dirent.h> X #include <errno.h> X-#include <sys/statfs.h> X- X+#include <sys/statvfs.h> X #include "transcode.h" X #include "talloc.h" X X@@ -195,16 +194,16 @@ X return f->Read(f, buf, offset, size); X } X X-static int mp3fs_statfs(const char *path, struct statfs *stbuf) { X+static int mp3fs_statvfs(const char *path, struct statvfs *stbuf) { X int res; X char name[256]; X X- DEBUG(logfd, "%s: statfs\n", path); X+ DEBUG(logfd, "%s: statvfs\n", path); X X strncpy(name, basepath, sizeof(name)); X strncat(name, path, sizeof(name) - strlen(name)); X X- res = statfs(name, stbuf); X+ res = statvfs(name, stbuf); X if(res == -1) X return -errno; X X@@ -231,7 +230,7 @@ X .readdir = mp3fs_readdir, X .open = mp3fs_open, X .read = mp3fs_read, X- .statfs = mp3fs_statfs, X+ .statfs = mp3fs_statvfs, X .release = mp3fs_release, X }; X 487d35eea3e1e9655ff4c1a59792391b echo x - mp3fs/files/patch-transcode sed 's/^X//' >mp3fs/files/patch-transcode << 'cbb648015d6e369bd305251ad71508a5' X$FreeBSD: ports/audio/mp3fs/files/patch-transcode 2008-12-14 00:24:21.000000000 -0500 $ X X--- src/transcode.c.orig X+++ src/transcode.c X@@ -24,7 +24,7 @@ X #include <fcntl.h> X #include <dirent.h> X #include <errno.h> X-#include <sys/statfs.h> X+#include <sys/statvfs.h> X X #include <FLAC/metadata.h> X #ifdef LEGACY_FLAC cbb648015d6e369bd305251ad71508a5 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912190429.nBJ4Tdwk074188>