Hi! The diff below updates our shell-fm port, which is currently broken because Last.fm has a new incompatible API now.
Btw, I cannot test it properly, as I said when I dropped maintainership: $ shell-fm Shell.FM v0.8, (C) 2006-2012 by Jonas Kramer Published under the terms of the GNU General Public License (GPL). Press ? for help. radio url> artist/Aphex+Twin Sorry, couldn't set station to artist/Aphex Twin. Radio station not supported with this country/client combination. So, I'm looking for someone who still has access to last.fm and can confirm that this update works as expected... Ciao, David Index: Makefile =================================================================== RCS file: /cvs/ports/audio/shell-fm/Makefile,v retrieving revision 1.20 diff -u -p -r1.20 Makefile --- Makefile 4 Jan 2013 15:50:26 -0000 1.20 +++ Makefile 30 Jan 2013 10:09:16 -0000 @@ -2,8 +2,7 @@ COMMENT= console based player for last.fm radio streams -DISTNAME= shell-fm-0.20120417 -REVISION= 1 +DISTNAME= shell-fm-0.20121206 CATEGORIES= audio @@ -15,7 +14,7 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB += ao c m mad stdc++ tag tag_c z +WANTLIB += ao c m mad tag tag_c MASTER_SITES= http://distfiles.nl/ Index: distinfo =================================================================== RCS file: /cvs/ports/audio/shell-fm/distinfo,v retrieving revision 1.6 diff -u -p -r1.6 distinfo --- distinfo 4 May 2012 11:05:02 -0000 1.6 +++ distinfo 30 Jan 2013 10:09:16 -0000 @@ -1,5 +1,2 @@ -MD5 (shell-fm-0.20120417.tar.gz) = 4smhfKwMQFngT8TNYI54zw== -RMD160 (shell-fm-0.20120417.tar.gz) = PrHqM6H+rXi4Ccd7faM3jQpHT8Y= -SHA1 (shell-fm-0.20120417.tar.gz) = 4Wp5oPIwldQzjUngXON30k88t8Q= -SHA256 (shell-fm-0.20120417.tar.gz) = OOrV5N43WgHt94RHyW7qrpY2djFSJnRLkglmlBejU70= -SIZE (shell-fm-0.20120417.tar.gz) = 55072 +SHA256 (shell-fm-0.20121206.tar.gz) = tcTSGfSteEGPpCNyRjzLBibVqCbcPhViiMeKQ27dvK4= +SIZE (shell-fm-0.20121206.tar.gz) = 60449 Index: patches/patch-source_readline_c =================================================================== RCS file: patches/patch-source_readline_c diff -N patches/patch-source_readline_c --- patches/patch-source_readline_c 29 Jun 2012 09:16:23 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,16 +0,0 @@ -$OpenBSD: patch-source_readline_c,v 1.1 2012/06/29 09:16:23 dcoppa Exp $ - -Nonbuffered readline -(upstream git commit b45e7b8b7968855411d6270aa36897431b8e15de) - ---- source/readline.c.orig Fri Jun 29 11:06:55 2012 -+++ source/readline.c Fri Jun 29 11:07:40 2012 -@@ -39,6 +39,8 @@ char * readline(struct prompt * setup) { - for(histsize = 0; setup->history && setup->history[histsize]; ++histsize); - index = histsize; - -+ canon(0); -+ - while(!eoln) { - int key = fgetc(stdin); - Index: patches/patch-source_tag_c =================================================================== RCS file: patches/patch-source_tag_c diff -N patches/patch-source_tag_c --- patches/patch-source_tag_c 29 Jun 2012 09:16:23 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,16 +0,0 @@ -$OpenBSD: patch-source_tag_c,v 1.1 2012/06/29 09:16:23 dcoppa Exp $ - -Fix segfault when sending empty tag strings -(upstream git commit be44e166c40e9708dbee563dbe6915a5391fe75c) - ---- source/tag.c.orig Fri Jun 29 11:07:52 2012 -+++ source/tag.c Fri Jun 29 11:08:28 2012 -@@ -222,7 +222,7 @@ void sendtag(char key, char * tagstring, struct hash d - if(tagstring) { - unsigned length = strlen(tagstring); - /* remove trailing commas */ -- while(tagstring[length-1] == ',') -+ while(length > 0 && tagstring[length-1] == ',') - tagstring[--length] = 0; - - splt = split(tagstring, ",\n", & nsplt);
