Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2005 20:40:27 GMT
From:      Emanuel Haupt <haupt@critical.ch>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/79529: new port: misc/gopod
Message-ID:  <200504192040.j3JKeRKv013504@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/79529; it has been noted by GNATS.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504192040.j3JKeRKv013504>