Date: Mon, 4 Apr 2005 19:55:56 +0200 (CEST) From: Emanuel Haupt <ehaupt@critical.ch> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/79529: new port: misc/gopod Message-ID: <200504041755.j34Htucd029734@beaver.critical.ch> Resent-Message-ID: <200504041800.j34I0MoL001955@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 79529 >Category: ports >Synopsis: new port: misc/gopod >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Apr 04 18:00:21 GMT 2005 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504041755.j34Htucd029734>