From ehaupt@beaver.critical.ch  Mon Apr  4 17:56:05 2005
Return-Path: <ehaupt@beaver.critical.ch>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0834416A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Apr 2005 17:56:05 +0000 (GMT)
Received: from beaver.critical.ch (217-162-251-247.dclient.hispeed.ch [217.162.251.247])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8E13843D55
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Apr 2005 17:56:01 +0000 (GMT)
	(envelope-from ehaupt@beaver.critical.ch)
Received: from beaver.critical.ch (localhost [127.0.0.1])
	by beaver.critical.ch (8.13.3/8.13.1) with ESMTP id j34Htuev029735
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 4 Apr 2005 19:55:57 +0200 (CEST)
	(envelope-from ehaupt@beaver.critical.ch)
Received: (from ehaupt@localhost)
	by beaver.critical.ch (8.13.3/8.13.1/Submit) id j34Htucd029734;
	Mon, 4 Apr 2005 19:55:56 +0200 (CEST)
	(envelope-from ehaupt)
Message-Id: <200504041755.j34Htucd029734@beaver.critical.ch>
Date: Mon, 4 Apr 2005 19:55:56 +0200 (CEST)
From: Emanuel Haupt <ehaupt@critical.ch>
Reply-To: Emanuel Haupt <ehaupt@critical.ch>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: new port: misc/gopod 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         79529
>Category:       ports
>Synopsis:       new port: misc/gopod
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 04 18:00:21 GMT 2005
>Closed-Date:    Tue May 31 10:22:35 GMT 2005
>Last-Modified:  Tue May 31 10:22:35 GMT 2005
>Originator:     Emanuel Haupt
>Release:        FreeBSD 5.4-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD beaver.critical.ch 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Fri Apr 1 21:39:02 CEST 2005 builduser@beaver.critical.ch:/home/build/obj/home/build/src/sys/BEAVER i386


	
>Description:
new port: misc/gopod

goPod is a program that allows you to remove the EU Volume limitation
on EU iPod's.

We can't be held responsible for the use you make with this program
or any damage it could cause to your iPod.

It is provided for information purpose only. However, uncapping your
iPod and using it is illegal in France.

goPod is not in any way affiliated with Apple Computer, Inc.

Apple(tm) iPod(tm) are trademarks of Apple Computer, Inc.

WWW: http://http://gopod.free-go.net/

--sharstart--
# 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:
#
#	gopod
#	gopod/Makefile
#	gopod/pkg-descr
#	gopod/distinfo
#	gopod/files
#	gopod/files/patch-main.c
#	gopod/pkg-message
#
echo c - gopod
mkdir -p gopod > /dev/null 2>&1
echo x - gopod/Makefile
sed 's/^X//' >gopod/Makefile << 'END-of-gopod/Makefile'
X# New ports collection makefile for:   gopod
X# Date created:		4 April 2005
X# Whom:			Emanuel Haupt <ehaupt@critical.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gopod
XPORTVERSION=	1.1
XCATEGORIES=	misc
XMASTER_SITES=	http://gopod.free-go.net/
XDISTNAME=	goPod-${PORTVERSION}_linux_bsd
X
XMAINTAINER=	ehaupt@critical.ch
XCOMMENT=	Utility to cap/uncap an iPod
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
X
XPATCH_WRKSRC=	${WRKDIR}/${DISTNAME}/gtk-version
X
XPLIST_FILES=	bin/gopod
X
X.if defined(WITH_GUI)
XUSE_X_PREFIX=	yes
XUSE_GNOME=	gtk20
XWRKSRC=		${WRKDIR}/${DISTNAME}/gtk-version
XPLIST_FILES+=	share/${PORTNAME}/capped.png \
X		share/${PORTNAME}/go.png \
X		share/${PORTNAME}/go_.png \
X		share/${PORTNAME}/mask.xpm \
X		share/${PORTNAME}/notdetected.png \
X		share/${PORTNAME}/uncapped.png
XPLIST_DIRS+=	share/${PORTNAME}
X.else
XWRKSRC=		${WRKDIR}/${DISTNAME}/console-version
X.endif
X
Xpre-everything::
X.if !defined(WITH_GUI)
X	@${ECHO_MSG}
X	@${ECHO_MSG} "You may define WITH_GUI if you want the gui version"
X	@${ECHO_MSG}
X.endif
X
Xpost-patch:
X	@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
X	${WRKSRC}/main.c > ${WRKSRC}/main.c.freebsd
X	${MV} ${WRKSRC}/main.c.freebsd ${WRKSRC}/main.c
X
Xdo-install:
X.if defined(WITH_GUI)
X	@${MKDIR} ${PREFIX}/share/${PORTNAME}
X.for file in capped.png go.png go_.png mask.xpm notdetected.png uncapped.png
X	${INSTALL_DATA} -m 0644 ${WRKSRC}/gfx/${file} ${PREFIX}/share/${PORTNAME}/${file}
X.endfor
X	${INSTALL_PROGRAM} -m 0110 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X.else
X	${INSTALL_PROGRAM} -m 0110 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X.endif
X
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README_EN ${WRKSRC}/README_FR ${DOCSDIR}
XPLIST_FILES+=	share/doc/${PORTNAME}/README_EN \
X		share/doc/${PORTNAME}/README_FR
XPLIST_DIRS+=	share/doc/${PORTNAME}
X.endif
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-gopod/Makefile
echo x - gopod/pkg-descr
sed 's/^X//' >gopod/pkg-descr << 'END-of-gopod/pkg-descr'
XgoPod is a program that allows you to remove the EU Volume limitation
Xon EU iPod's.
X
XWe can't be held responsible for the use you make with this program
Xor any damage it could cause to your iPod.
X
XIt is provided for information purpose only. However, uncapping your
XiPod and using it is illegal in France.
X
XgoPod is not in any way affiliated with Apple Computer, Inc.
X
XApple(tm) iPod(tm) are trademarks of Apple Computer, Inc.
X
XWWW: http://http://gopod.free-go.net/
END-of-gopod/pkg-descr
echo x - gopod/distinfo
sed 's/^X//' >gopod/distinfo << 'END-of-gopod/distinfo'
XMD5 (goPod-1.1_linux_bsd.tar.gz) = 569be8629845cd6f027b802d1e909841
XSIZE (goPod-1.1_linux_bsd.tar.gz) = 98330
END-of-gopod/distinfo
echo c - gopod/files
mkdir -p gopod/files > /dev/null 2>&1
echo x - gopod/files/patch-main.c
sed 's/^X//' >gopod/files/patch-main.c << 'END-of-gopod/files/patch-main.c'
X--- main.c.orig	Wed Nov  3 19:43:23 2004
X+++ main.c	Mon Apr  4 10:05:06 2005
X@@ -16,11 +16,11 @@
X #include <gtk/gtk.h>
X #include "gfx/mask.xpm"
X 
X-#define GFX_GO "gfx/go.png"
X-#define GFX_GO_ "gfx/go_.png"
X-#define GFX_NOTDETECTED "gfx/notdetected.png"
X-#define GFX_CAPPED "gfx/capped.png"
X-#define GFX_UNCAPPED "gfx/uncapped.png"
X+#define GFX_GO "%%PREFIX%%/share/gopod/go.png"
X+#define GFX_GO_ "%%PREFIX%%/share/gopod/go_.png"
X+#define GFX_NOTDETECTED "%%PREFIX%%/share/gopod/notdetected.png"
X+#define GFX_CAPPED "%%PREFIX%%/share/gopod/capped.png"
X+#define GFX_UNCAPPED "%%PREFIX%%/share/gopod/uncapped.png"
X 
X #if defined(__LINUX__)
X #define DEV "/dev/sd%c"
X@@ -69,10 +69,10 @@
X {
X     char x;
X     
X-    for (x = START; x <= END; x++)
X+    for (x = 0; x <= 15; x++)
X     {
X         char devstring[8];
X-        sprintf(devstring, DEV, x);
X+        sprintf(devstring, "/dev/da%i", x);
X         dev = open(devstring, O_RDWR);
X         lseek(dev, FIRMWARE_START, SEEK_CUR); 
X         read(dev, buffer, BLOCK_SIZE);
END-of-gopod/files/patch-main.c
echo x - gopod/pkg-message
sed 's/^X//' >gopod/pkg-message << 'END-of-gopod/pkg-message'
X===========================================================================
X
XPlease make sure you have write permissions on your iPod harddisk device.
XUsually this is da0. You can plug in your iPod and run "camcontrol devlist"
Xto figure out which device it is.
X
X===========================================================================
END-of-gopod/pkg-message
exit

--sharend--



>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: Emanuel Haupt <haupt@critical.ch>
To: bug-followup@FreeBSD.org, ehaupt@critical.ch
Cc:  
Subject: Re: ports/79529: new port: misc/gopod
Date: Tue, 19 Apr 2005 22:39:17 +0200

 wrong url in pkg-descr. new shell archive:
 
 --sharstart--
 # 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:
 #
 #	gopod
 #	gopod/Makefile
 #	gopod/pkg-descr
 #	gopod/distinfo
 #	gopod/files
 #	gopod/files/patch-main.c
 #	gopod/pkg-message
 #
 echo c - gopod
 mkdir -p gopod > /dev/null 2>&1
 echo x - gopod/Makefile
 sed 's/^X//' >gopod/Makefile << 'END-of-gopod/Makefile'
 X# New ports collection makefile for:   gopod
 X# Date created:		4 April 2005
 X# Whom:			Emanuel Haupt <ehaupt@critical.ch>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	gopod
 XPORTVERSION=	1.1
 XCATEGORIES=	misc
 XMASTER_SITES=	http://gopod.free-go.net/
 XDISTNAME=	goPod-${PORTVERSION}_linux_bsd
 X
 XMAINTAINER=	ehaupt@critical.ch
 XCOMMENT=	Utility to cap/uncap an iPod
 X
 XGNU_CONFIGURE=	yes
 XUSE_GMAKE=	yes
 X
 XPATCH_WRKSRC=	${WRKDIR}/${DISTNAME}/gtk-version
 X
 XPLIST_FILES=	bin/gopod
 X
 X.if defined(WITH_GUI)
 XUSE_X_PREFIX=	yes
 XUSE_GNOME=	gtk20
 XWRKSRC=		${WRKDIR}/${DISTNAME}/gtk-version
 XPLIST_FILES+=	share/${PORTNAME}/capped.png \
 X		share/${PORTNAME}/go.png \
 X		share/${PORTNAME}/go_.png \
 X		share/${PORTNAME}/mask.xpm \
 X		share/${PORTNAME}/notdetected.png \
 X		share/${PORTNAME}/uncapped.png
 XPLIST_DIRS+=	share/${PORTNAME}
 X.else
 XWRKSRC=		${WRKDIR}/${DISTNAME}/console-version
 X.endif
 X
 Xpre-everything::
 X.if !defined(WITH_GUI)
 X	@${ECHO_MSG}
 X	@${ECHO_MSG} "You may define WITH_GUI if you want the gui version"
 X	@${ECHO_MSG}
 X.endif
 X
 Xpost-patch:
 X	@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
 X	${WRKSRC}/main.c > ${WRKSRC}/main.c.freebsd
 X	${MV} ${WRKSRC}/main.c.freebsd ${WRKSRC}/main.c
 X
 Xdo-install:
 X.if defined(WITH_GUI)
 X	@${MKDIR} ${PREFIX}/share/${PORTNAME}
 X.for file in capped.png go.png go_.png mask.xpm notdetected.png uncapped.png
 X	${INSTALL_DATA} -m 0644 ${WRKSRC}/gfx/${file} ${PREFIX}/share/${PORTNAME}/${file}
 X.endfor
 X	${INSTALL_PROGRAM} -m 0110 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
 X.else
 X	${INSTALL_PROGRAM} -m 0110 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
 X.endif
 X
 X.if !defined(NOPORTDOCS)
 X	${MKDIR} ${DOCSDIR}
 X	${INSTALL_DATA} ${WRKSRC}/README_EN ${WRKSRC}/README_FR ${DOCSDIR}
 XPLIST_FILES+=	share/doc/${PORTNAME}/README_EN \
 X		share/doc/${PORTNAME}/README_FR
 XPLIST_DIRS+=	share/doc/${PORTNAME}
 X.endif
 X
 Xpost-install:
 X	@${CAT} ${PKGMESSAGE}
 X
 X.include <bsd.port.mk>
 END-of-gopod/Makefile
 echo x - gopod/pkg-descr
 sed 's/^X//' >gopod/pkg-descr << 'END-of-gopod/pkg-descr'
 XgoPod is a program that allows you to remove the EU Volume limitation
 Xon EU iPod's.
 X
 XWe can't be held responsible for the use you make with this program
 Xor any damage it could cause to your iPod.
 X
 XIt is provided for information purpose only. However, uncapping your
 XiPod and using it is illegal in France.
 X
 XgoPod is not in any way affiliated with Apple Computer, Inc.
 X
 XApple(tm) iPod(tm) are trademarks of Apple Computer, Inc.
 X
 XWWW: http://gopod.free-go.net/
 END-of-gopod/pkg-descr
 echo x - gopod/distinfo
 sed 's/^X//' >gopod/distinfo << 'END-of-gopod/distinfo'
 XMD5 (goPod-1.1_linux_bsd.tar.gz) = 569be8629845cd6f027b802d1e909841
 XSIZE (goPod-1.1_linux_bsd.tar.gz) = 98330
 END-of-gopod/distinfo
 echo c - gopod/files
 mkdir -p gopod/files > /dev/null 2>&1
 echo x - gopod/files/patch-main.c
 sed 's/^X//' >gopod/files/patch-main.c << 'END-of-gopod/files/patch-main.c'
 X--- main.c.orig	Wed Nov  3 19:43:23 2004
 X+++ main.c	Mon Apr  4 10:05:06 2005
 X@@ -16,11 +16,11 @@
 X #include <gtk/gtk.h>
 X #include "gfx/mask.xpm"
 X 
 X-#define GFX_GO "gfx/go.png"
 X-#define GFX_GO_ "gfx/go_.png"
 X-#define GFX_NOTDETECTED "gfx/notdetected.png"
 X-#define GFX_CAPPED "gfx/capped.png"
 X-#define GFX_UNCAPPED "gfx/uncapped.png"
 X+#define GFX_GO "%%PREFIX%%/share/gopod/go.png"
 X+#define GFX_GO_ "%%PREFIX%%/share/gopod/go_.png"
 X+#define GFX_NOTDETECTED "%%PREFIX%%/share/gopod/notdetected.png"
 X+#define GFX_CAPPED "%%PREFIX%%/share/gopod/capped.png"
 X+#define GFX_UNCAPPED "%%PREFIX%%/share/gopod/uncapped.png"
 X 
 X #if defined(__LINUX__)
 X #define DEV "/dev/sd%c"
 X@@ -69,10 +69,10 @@
 X {
 X     char x;
 X     
 X-    for (x = START; x <= END; x++)
 X+    for (x = 0; x <= 15; x++)
 X     {
 X         char devstring[8];
 X-        sprintf(devstring, DEV, x);
 X+        sprintf(devstring, "/dev/da%i", x);
 X         dev = open(devstring, O_RDWR);
 X         lseek(dev, FIRMWARE_START, SEEK_CUR); 
 X         read(dev, buffer, BLOCK_SIZE);
 END-of-gopod/files/patch-main.c
 echo x - gopod/pkg-message
 sed 's/^X//' >gopod/pkg-message << 'END-of-gopod/pkg-message'
 X===========================================================================
 X
 XPlease make sure you have write permissions on your iPod harddisk device.
 XUsually this is da0. You can plug in your iPod and run "camcontrol devlist"
 Xto figure out which device it is.
 X
 X===========================================================================
 END-of-gopod/pkg-message
 exit
 --sharend--
 
 -- 
 GnuPG key id: 0x47494C56         Download: http://pgp.mit.edu:11371
 Key fingerprint: C6BF EB8E 76C1 6738 D75C  8E66 5089 8F9D 4749 4C56
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Tue May 31 10:22:19 GMT 2005 
State-Changed-Why:  
Committed, thanks! 
Added RESTRICTED and NO_PACKAGE lines 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79529 
>Unformatted:
