diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2008-04-04 06:20:32 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2008-04-04 06:20:32 +0000 |
commit | 34c68566ed3aca902effbb6e8fc99b3ea2e13500 (patch) | |
tree | 67169444f4031cb88c431b4b98b7b6c9c8cd98a7 | |
parent | 433fa7bd82ab25d6f36e8ace11813f1204f81c7b (diff) | |
download | ports-34c68566ed3aca902effbb6e8fc99b3ea2e13500.tar.gz ports-34c68566ed3aca902effbb6e8fc99b3ea2e13500.zip |
Notes
-rw-r--r-- | audio/musicpd/Makefile | 1 | ||||
-rw-r--r-- | audio/musicpd/files/musicpd.sh.in | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile index a06b6a696a2f..7d7d70be0dfd 100644 --- a/audio/musicpd/Makefile +++ b/audio/musicpd/Makefile @@ -7,6 +7,7 @@ PORTNAME= musicpd PORTVERSION= 0.13.1 +PORTREVISION= 1 CATEGORIES= audio ipv6 MASTER_SITES= http://musicpd.org/uploads/files/ \ http://redundancy.redundancy.org/mirror/ diff --git a/audio/musicpd/files/musicpd.sh.in b/audio/musicpd/files/musicpd.sh.in index 8b8a5f2d93d5..66684f6f3eb4 100644 --- a/audio/musicpd/files/musicpd.sh.in +++ b/audio/musicpd/files/musicpd.sh.in @@ -2,8 +2,7 @@ # # PROVIDE: musicpd -# REQUIRE: -# BEFORE: +# REQUIRE: LOGIN # KEYWORD: shutdown # Add the following line to /etc/rc.conf to enable mpd: @@ -19,11 +18,10 @@ config=%%PREFIX%%/etc/mpd.conf command=%%PREFIX%%/bin/mpd required_files=$config -musicpd_flags="$musicpd_flags $config" +load_rc_config $name -[ -z "$musicpd_enable" ] && musicpd_enable="NO" -[ -z "$musicpd_flags" ] && musicpd_flags= +: ${musicpd_enable="NO"} -load_rc_config $name +command_args="$config" run_rc_command "$1" |