diff options
author | gls <gls> | 2011-02-02 21:35:35 +0000 |
---|---|---|
committer | gls <gls> | 2011-02-02 21:35:35 +0000 |
commit | 8df7e5ccbbe6bc629f1ea9aff463ac5dda84caf8 (patch) | |
tree | d568a6b6801ec9365e080e0f436a3fe52199c1c4 /audio/mpdas | |
parent | 04694aab4d29f8f739e153c37b9c5aec5f8e1c3b (diff) | |
download | pkgsrc-8df7e5ccbbe6bc629f1ea9aff463ac5dda84caf8.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/mpdas')
-rw-r--r-- | audio/mpdas/DESCR | 12 | ||||
-rw-r--r-- | audio/mpdas/Makefile | 35 | ||||
-rw-r--r-- | audio/mpdas/PLIST | 6 | ||||
-rw-r--r-- | audio/mpdas/distinfo | 6 | ||||
-rwxr-xr-x | audio/mpdas/files/mpdas.sh | 20 | ||||
-rw-r--r-- | audio/mpdas/patches/patch-Makefile | 17 |
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 |