summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorgls <gls@pkgsrc.org>2011-02-02 21:35:35 +0000
committergls <gls@pkgsrc.org>2011-02-02 21:35:35 +0000
commit472956698bb6f4a0e92deb4b575d788f985c3ec3 (patch)
treed568a6b6801ec9365e080e0f436a3fe52199c1c4 /audio
parent261db414b2321f5854eac7573e98efb7ffc4ac2f (diff)
downloadpkgsrc-472956698bb6f4a0e92deb4b575d788f985c3ec3.tar.gz
Import audio/mpdas, version 0.3.0, into the NetBSD Packages Collection.
mpdas is an AudioScrobbler client for MPD written in C++. It uses libcurl and libmpd. It supports the latest AudioScrobbler protocol (2.0). In case of a downtime or connectivity problems, mpdas will cache the played songs to ~/.mpdascache. Features: - Sets now-playing status - Scrobbling (obviously) - Caching - Config files - User switching
Diffstat (limited to 'audio')
-rw-r--r--audio/mpdas/DESCR12
-rw-r--r--audio/mpdas/Makefile35
-rw-r--r--audio/mpdas/PLIST6
-rw-r--r--audio/mpdas/distinfo6
-rwxr-xr-xaudio/mpdas/files/mpdas.sh20
-rw-r--r--audio/mpdas/patches/patch-Makefile17
6 files changed, 96 insertions, 0 deletions
diff --git a/audio/mpdas/DESCR b/audio/mpdas/DESCR
new file mode 100644
index 00000000000..68762edd853
--- /dev/null
+++ b/audio/mpdas/DESCR
@@ -0,0 +1,12 @@
+mpdas is an AudioScrobbler client for MPD written in C++. It uses libcurl and
+libmpd.
+It supports the latest AudioScrobbler protocol (2.0).
+In case of a downtime or connectivity problems, mpdas will cache the played
+songs to ~/.mpdascache.
+
+Features:
+- Sets now-playing status
+- Scrobbling (obviously)
+- Caching
+- Config files
+- User switching
diff --git a/audio/mpdas/Makefile b/audio/mpdas/Makefile
new file mode 100644
index 00000000000..778a8b0fb62
--- /dev/null
+++ b/audio/mpdas/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/02/02 21:35:35 gls Exp $
+#
+
+DISTNAME= mpdas-0.3.0
+CATEGORIES= audio
+MASTER_SITES= http://50hz.ws/mpdas/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= gls@NetBSD.org
+HOMEPAGE= http://50hz.ws/mpdas/
+COMMENT= Mpdas is an AudioScrobbler client for MPD written in C++
+LICENSE= modified-bsd
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c++
+
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 ${DOCDIR} ${EGDIR}
+RCD_SCRIPTS= mpdas
+DOCDIR= share/doc/mpdas
+EGDIR= share/examples/mpdas
+
+CONF_FILES+= ${EGDIR}/mpdasrc.example \
+ ${PKG_SYSCONFDIR}/mpdasrc
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/README \
+ ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/mpdasrc.example \
+ ${DESTDIR}${PREFIX}/${EGDIR}
+
+.include "../../audio/libmpd/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/mpdas/PLIST b/audio/mpdas/PLIST
new file mode 100644
index 00000000000..4e9e465237b
--- /dev/null
+++ b/audio/mpdas/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/02 21:35:35 gls Exp $
+bin/mpdas
+man/man1/mpdas.1
+share/doc/mpdas/README
+share/examples/mpdas/mpdasrc.example
+share/examples/rc.d/mpdas
diff --git a/audio/mpdas/distinfo b/audio/mpdas/distinfo
new file mode 100644
index 00000000000..4513f3382a1
--- /dev/null
+++ b/audio/mpdas/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/02/02 21:35:35 gls Exp $
+
+SHA1 (mpdas-0.3.0.tar.bz2) = 3e389b8bb9a37b7f9527c6c4a1aaaf4ab462bf0a
+RMD160 (mpdas-0.3.0.tar.bz2) = 133c41b9debcbf68e69ed898d31e7533427f8e88
+Size (mpdas-0.3.0.tar.bz2) = 19219 bytes
+SHA1 (patch-Makefile) = ece865da0329a9a300bf5ef776a320138d239b45
diff --git a/audio/mpdas/files/mpdas.sh b/audio/mpdas/files/mpdas.sh
new file mode 100755
index 00000000000..ac2c4042ab2
--- /dev/null
+++ b/audio/mpdas/files/mpdas.sh
@@ -0,0 +1,20 @@
+# $NetBSD: mpdas.sh
+#
+# PROVIDE: mpdas
+# # REQUIRE: DAEMON network
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="mpdas"
+rcvar=$name
+command="@PREFIX@/bin/mpdas"
+command_args="-d"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n "${name}"
+ ${command} ${command_args}
+fi
diff --git a/audio/mpdas/patches/patch-Makefile b/audio/mpdas/patches/patch-Makefile
new file mode 100644
index 00000000000..a2ccb35a23a
--- /dev/null
+++ b/audio/mpdas/patches/patch-Makefile
@@ -0,0 +1,17 @@
+$NetBSD: patch-Makefile,v 1.1.1.1 2011/02/02 21:35:35 gls Exp $
+
+Fix installation dirs
+
+--- Makefile.orig 2010-11-22 01:15:12.000000000 +0000
++++ Makefile
+@@ -27,8 +27,8 @@ clean:
+ rm -rf $(OBJ) $(OUT)
+
+ install: all
+- install mpdas ${PREFIX}/bin
+- install -m 644 mpdas.1 ${MANPREFIX}/mpdas.1
++ install mpdas ${DESTDIR}${PREFIX}/bin
++ install -m 644 mpdas.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mpdas.1
+
+ uninstall:
+ -rm ${PREFIX}/bin/mpdas