aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/Makefile1
-rw-r--r--audio/cmus-post.fm/Makefile36
-rw-r--r--audio/cmus-post.fm/distinfo3
-rw-r--r--audio/cmus-post.fm/files/pkg-message.in11
-rw-r--r--audio/cmus-post.fm/pkg-descr7
5 files changed, 58 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 27a599ad22e1..0a4372431ea9 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -83,6 +83,7 @@
SUBDIR += cmp3
SUBDIR += cmt
SUBDIR += cmus
+ SUBDIR += cmus-post.fm
SUBDIR += coverhunter
SUBDIR += cowbell
SUBDIR += cpige
diff --git a/audio/cmus-post.fm/Makefile b/audio/cmus-post.fm/Makefile
new file mode 100644
index 000000000000..c642b3c8c276
--- /dev/null
+++ b/audio/cmus-post.fm/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: cmus-post.fm
+# Date created: 8 March 2007
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= post.fm
+PORTVERSION= 0.1
+CATEGORIES= audio
+MASTER_SITES= CENKES
+PKGNAMEPREFIX= cmus-
+
+MAINTAINER= infofarmer@FreeBSD.org
+COMMENT= Last.fm submitter
+
+RUN_DEPENDS= p5-libwww>=5.805:${PORTSDIR}/www/p5-libwww
+
+USE_BZIP2= yes
+USE_PERL5_RUN= yes
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+NO_BUILD= yes
+PLIST_FILES= libexec/${PORTNAME} %%EXAMPLESDIR%%/${PORTNAME}.conf
+PLIST_DIRS= %%EXAMPLESDIR%%
+
+post-patch:
+ @${REINPLACE_CMD} -e '1s|#!.*|#!${PERL5}|' ${WRKSRC}/${PORTNAME}
+
+do-install:
+ @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec/
+ @${INSTALL} -d ${EXAMPLESDIR}/
+ @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${EXAMPLESDIR}/
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/audio/cmus-post.fm/distinfo b/audio/cmus-post.fm/distinfo
new file mode 100644
index 000000000000..78987b74257d
--- /dev/null
+++ b/audio/cmus-post.fm/distinfo
@@ -0,0 +1,3 @@
+MD5 (post.fm-0.1.tar.bz2) = 6030990a3f336b38101815e3111165a5
+SHA256 (post.fm-0.1.tar.bz2) = 7f89339d472a31c27831bff7fde6986391cf68be07203097481b1047f7262be1
+SIZE (post.fm-0.1.tar.bz2) = 2621
diff --git a/audio/cmus-post.fm/files/pkg-message.in b/audio/cmus-post.fm/files/pkg-message.in
new file mode 100644
index 000000000000..8caa86487d7f
--- /dev/null
+++ b/audio/cmus-post.fm/files/pkg-message.in
@@ -0,0 +1,11 @@
+=====================================================================
+
+To start using post.fm, please complete the following steps:
+
+1. Configure it by copying %%EXAMPLESDIR%%/post.fm.conf
+ into ~/.cmus/ and editing it to your liking
+
+2. Enable it by appending this setting to your ~/.cmus/rc:
+ set status_display_program=/usr/local/libexec/post.fm
+
+=====================================================================
diff --git a/audio/cmus-post.fm/pkg-descr b/audio/cmus-post.fm/pkg-descr
new file mode 100644
index 000000000000..8e38d9e467d4
--- /dev/null
+++ b/audio/cmus-post.fm/pkg-descr
@@ -0,0 +1,7 @@
+Post.FM is a Perl script that submits information about your currently
+played track to Last.FM / Audioscrobbler. It's primarily made for CMUS,
+a ncurses based music player, but could be used as a general purpose
+scrobbler with only minor modifications.
+
+Author: Jonas Kramer <lizer@gmx.net>
+WWW: http://nex.scrapping.cc/post-fm/