From saska@fysgr387.sn.umu.se Wed Sep 22 15:58:17 1999
Return-Path: <saska@fysgr387.sn.umu.se>
Received: from fysgr387.sn.umu.se (fysgr387.sn.umu.se [130.239.128.239])
	by hub.freebsd.org (Postfix) with ESMTP id 1A94415510
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 22 Sep 1999 15:58:14 -0700 (PDT)
	(envelope-from saska@fysgr387.sn.umu.se)
Received: (from saska@localhost)
	by fysgr387.sn.umu.se (8.9.3/8.9.2) id AAA07695;
	Thu, 23 Sep 1999 00:59:09 +0200 (CEST)
	(envelope-from saska)
Message-Id: <199909222259.AAA07695@fysgr387.sn.umu.se>
Date: Thu, 23 Sep 1999 00:59:09 +0200 (CEST)
From: saska@acc.umu.se
Sender: saska@fysgr387.sn.umu.se
Reply-To: saska@acc.umu.se
To: FreeBSD-gnats-submit@freebsd.org
Subject: new port "mpmf20" under audio category
X-Send-Pr-Version: 3.2

>Number:         13911
>Category:       ports
>Synopsis:       new port "mpmf20" under audio category
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 22 16:00:01 PDT 1999
>Closed-Date:    Mon Sep 27 10:51:54 PDT 1999
>Last-Modified:  Mon Sep 27 10:52:02 PDT 1999
>Originator:     Markus Holmberg
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
n/a 
>Environment:

	n/a
	

>Description:

	*Forgot to attach the actual "shar:ed" port in the previous send-pr!*

        New port under suggested category "audio". Tool for transfering
        files to and from a portable MP3 player MPMan MP-F20.

        There exists a port for Rio-players, and the software for the 
        Rio-player was made by the same people that made the MPMan-tool.
        The sources don't differ much, therefore the patches for this
        port were based on the patches for the rio port. 

>How-To-Repeat:

	n/a
	

>Fix:
	
	n/a
	

# 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:
#
#	mpmf20/
#	mpmf20/pkg
#	mpmf20/pkg/COMMENT
#	mpmf20/pkg/DESCR
#	mpmf20/pkg/PLIST
#	mpmf20/pkg/MESSAGE
#	mpmf20/files
#	mpmf20/files/md5
#	mpmf20/patches
#	mpmf20/patches/patch-aa
#	mpmf20/patches/patch-ab
#	mpmf20/patches/patch-ac
#	mpmf20/Makefile
#
echo c - mpmf20/
mkdir -p mpmf20/ > /dev/null 2>&1
echo c - mpmf20/pkg
mkdir -p mpmf20/pkg > /dev/null 2>&1
echo x - mpmf20/pkg/COMMENT
sed 's/^X//' >mpmf20/pkg/COMMENT << 'END-of-mpmf20/pkg/COMMENT'
XFile transfer tool for the MPMan MP-F20 portable MP3-player
END-of-mpmf20/pkg/COMMENT
echo x - mpmf20/pkg/DESCR
sed 's/^X//' >mpmf20/pkg/DESCR << 'END-of-mpmf20/pkg/DESCR'
XThis software is a command line utility used used for transfering audio files
Xin the MP3 format to and from the portable MP3 player MPMan MP-F20.
XIt enables you to upload (specifying the files with wildcards or from a
Xtextfile), download, delete, reorder already uploaded files and more on your
XMPMan MP-F20.
X
XWWW: http://www.world.co.uk/sba/
X
X- Markus Holmberg
Xsaska@acc.umu.se
END-of-mpmf20/pkg/DESCR
echo x - mpmf20/pkg/PLIST
sed 's/^X//' >mpmf20/pkg/PLIST << 'END-of-mpmf20/pkg/PLIST'
Xbin/mpmf20
END-of-mpmf20/pkg/PLIST
echo x - mpmf20/pkg/MESSAGE
sed 's/^X//' >mpmf20/pkg/MESSAGE << 'END-of-mpmf20/pkg/MESSAGE'
X
XThe software has now been installed!
XIt can now be invoked using the command "mpmf20".
X
XYou need to have read/write access to /dev/io to use this, which mostly
Xmeans the program has to be run by root, or setuid root. It is by default
Xnot installed as setuid root, but you may do it yourself to enable a normal
Xuser to use it. Find which directory the binary was installed in, probably /usr/local/bin, and use this command:
X
Xchmod +s mpmf20
X
XBeware of security implications!
X
END-of-mpmf20/pkg/MESSAGE
echo c - mpmf20/files
mkdir -p mpmf20/files > /dev/null 2>&1
echo x - mpmf20/files/md5
sed 's/^X//' >mpmf20/files/md5 << 'END-of-mpmf20/files/md5'
XMD5 (mpmf20.tgz) = c51b6938a8c67106d460c31ee271943c
END-of-mpmf20/files/md5
echo c - mpmf20/patches
mkdir -p mpmf20/patches > /dev/null 2>&1
echo x - mpmf20/patches/patch-aa
sed 's/^X//' >mpmf20/patches/patch-aa << 'END-of-mpmf20/patches/patch-aa'
X--- app.cpp.orig	Wed Sep 22 22:55:41 1999
X+++ app.cpp	Wed Sep 22 22:27:06 1999
X@@ -22,6 +22,12 @@
X 	#define		SIZE_MAXPATH			_MAX_PATH
X 	#define		DELETEARRAY				delete[]
X 
X+#elif defined(__FreeBSD__)
X+	// FreeBSD g++
X+	#include	<unistd.h>
X+	#include	<sys/syslimits.h>
X+	#define		SIZE_MAXPATH				PATH_MAX
X+
X #elif defined(__linux__)
X 	// linux g++
X 	#include	<unistd.h>
END-of-mpmf20/patches/patch-aa
echo x - mpmf20/patches/patch-ab
sed 's/^X//' >mpmf20/patches/patch-ab << 'END-of-mpmf20/patches/patch-ab'
X--- mpmf20.cpp.orig	Wed Sep 22 22:55:50 1999
X+++ mpmf20.cpp	Wed Sep 22 22:47:45 1999
X@@ -23,6 +23,17 @@
X 	#define		DELETEARRAY				delete[]
X 	#define		STRICMP					stricmp
X 
X+#elif defined(__FreeBSD__)
X+	// FreeBSD g++
X+	#include	<fcntl.h>
X+	#include	<unistd.h>
X+	#include	<machine/cpufunc.h>
X+	#define		OUTPORT(p,v)			outb( (p), (v) )
X+	#define		INPORT(p)				inb( p )
X+	#define		CLOCK_SECOND			CLOCKS_PER_SEC
X+	#define		DELETEARRAY				delete[]
X+	#define		STRICMP					strcasecmp
X+
X #elif defined(__linux__)
X 	// linux g++
X 	#include	<unistd.h>
X@@ -237,6 +248,15 @@
X 	// init error
X 	m_szError[ 0 ] = 0;
X 	m_iIDError = CMPMF20_ERROR_NONE;
X+
X+	// if FreeBSD
X+	#if defined(__FreeBSD__)
X+		// request access to required ports
X+		if (open("/dev/io", O_RDONLY) < 0) {
X+			LogError( CMPMF20_ERROR_IOPRERM, "open(\"/dev/io\") failed, reason '%s'", SZERROR );
X+			return FALSE;
X+		}
X+	#endif
X 
X 	// if linux
X 	#if defined(__linux__)
END-of-mpmf20/patches/patch-ab
echo x - mpmf20/patches/patch-ac
sed 's/^X//' >mpmf20/patches/patch-ac << 'END-of-mpmf20/patches/patch-ac'
X--- makefile.orig	Wed Sep 22 23:39:56 1999
X+++ makefile	Wed Sep 22 23:40:14 1999
X@@ -10,7 +10,6 @@
X 
X mpmf20:		app.cpp mpmf20.cpp
X 		g++ -O1 -o mpmf20 app.cpp mpmf20.cpp
X-		chmod +s mpmf20
X 
X clean:
X 		rm -f mpmf20
END-of-mpmf20/patches/patch-ac
echo x - mpmf20/Makefile
sed 's/^X//' >mpmf20/Makefile << 'END-of-mpmf20/Makefile'
X# New ports collection makefile for:	mpmf20
X# Version required:	1.01
X# Date created:		22 September 1999
X# Whom:			Markus Holmberg <saska@acc.umu.se>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	mpmf20
XPKGNAME=	mpmf20-1.01
XCATEGORIES=	audio
XMASTER_SITES=	http://www.world.co.uk/sba/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	ports@freebsd.org
X
XMAKEFILE=	makefile
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/mpmf20 ${PREFIX}/bin
X
Xpost-install:
X	@${CAT} ${PKGDIR}/MESSAGE
X
X.include <bsd.port.mk>
END-of-mpmf20/Makefile
exit


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed  
State-Changed-By: cpiazza 
State-Changed-When: Mon Sep 27 10:51:54 PDT 1999 
State-Changed-Why:  
New port committed, thanks! 
>Unformatted:
