--- ../mpdas/Makefile 2009-10-10 14:26:48.000000000 +0200 +++ ../mpdas/Makefile 2009-10-10 14:41:59.000000000 +0200 @@ -6,8 +6,7 @@ # PORTNAME= mpdas -PORTVERSION= 0.2.4 -PORTREVISION= 2 +PORTVERSION= 0.2.5 CATEGORIES= audio MASTER_SITES= http://50hz.ws/mpdas/ @@ -20,9 +19,18 @@ USE_GNOME= pkgconfig USE_BZIP2= yes +USE_RC_SUBR= mpdas + +SUB_FILES= pkg-message + PLIST_FILES= bin/mpdas MAN1= mpdas.1 MANCOMPRESSED= no +post-install: + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} + .include --- ../mpdas/distinfo 2009-10-10 14:26:48.000000000 +0200 +++ ../mpdas/distinfo 2009-10-10 14:46:29.000000000 +0200 @@ -1,3 +1,3 @@ -MD5 (mpdas-0.2.4.tar.bz2) = 8a694691dcb5d217c46754e40152186a -SHA256 (mpdas-0.2.4.tar.bz2) = a3535cf94ba3856b28d271e265ba0131a84eb9c2d660643c3f4e88d3b473e0bc -SIZE (mpdas-0.2.4.tar.bz2) = 16842 +MD5 (mpdas-0.2.5.tar.bz2) = ea852645079be1aeedfe3e88f421917e +SHA256 (mpdas-0.2.5.tar.bz2) = e8ce00df8aa0cbbf5709d1e22ceb1f609dbd7309aed7ffd0083cc0ff5b463e21 +SIZE (mpdas-0.2.5.tar.bz2) = 17849 --- ../mpdas/files/mpdas.in 1970-01-01 01:00:00.000000000 +0100 +++ ../mpdas/files/mpdas.in 2009-10-10 14:31:53.000000000 +0200 @@ -0,0 +1,25 @@ +#!/bin/sh +# + +# PROVIDE: mpdas +# REQUIRE: musicpd +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf to enable mpdas: +# +#mpdas_enable="YES" + +. /etc/rc.subr + +name=mpdas +rcvar=`set_rcvar` + +command=/usr/local/bin/mpdas + +load_rc_config $name + +: ${mpdas_enable="NO"} + +command_args="&" + +run_rc_command "$1" --- ../mpdas/files/pkg-message.in 1970-01-01 01:00:00.000000000 +0100 +++ ../mpdas/files/pkg-message.in 2009-10-10 14:41:20.000000000 +0200 @@ -0,0 +1,28 @@ +**************************************************************** + +mpdas has been successfully installed. + +To configure mpdas, simply create a file called .mpdasrc in +your home directory or in %%PREFIX%%/etc/mpdasrc. + +Syntax is easy. Example: + +username = lastfmuser +password = 5f4dcc3b5aa765d61d8327deb882cf99 + +Use the runas variable to change the UID the process runs in. + +For more information on configuration see: +http://50hz.ws/mpdas/README.txt + +To use the rc-script add the following line to /etc/rc.conf: + + mpdas_enable="YES" + +Then start mpdas with + + %%PREFIX%%/etc/rc.d/mpdas start + +or reboot. + +****************************************************************