diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-04-30 21:16:53 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-04-30 21:16:53 +0000 |
commit | 43e0b7238a9e597ca22856b242e789984371c32a (patch) | |
tree | 2a8173832fb8557a29d43a60f5835fcc247a21b0 /audio/mpdscribble/files | |
parent | 8ff604a26b61988a318e4e93f66b7e010ee9ca00 (diff) | |
download | ports-43e0b7238a9e597ca22856b242e789984371c32a.tar.gz ports-43e0b7238a9e597ca22856b242e789984371c32a.zip |
- Update to 0.17
PR: 133341
Submitted by: Julien Laffaye <kimelto@gmail.com>
Approved by: maintainer timeout
Notes
Notes:
svn path=/head/; revision=233005
Diffstat (limited to 'audio/mpdscribble/files')
-rw-r--r-- | audio/mpdscribble/files/mpdscribble.in | 26 | ||||
-rw-r--r-- | audio/mpdscribble/files/patch-setup.sh | 43 |
2 files changed, 26 insertions, 43 deletions
diff --git a/audio/mpdscribble/files/mpdscribble.in b/audio/mpdscribble/files/mpdscribble.in new file mode 100644 index 000000000000..af7b046bb095 --- /dev/null +++ b/audio/mpdscribble/files/mpdscribble.in @@ -0,0 +1,26 @@ +#!/bin/sh +# + +# PROVIDE: mpdscribble +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf to enable mpdscribble: +# +#mpdscribble_enable="YES" + +. %%RC_SUBR%% + +name=mpdscribble +rcvar=`set_rcvar` + +command=%%PREFIX%%/bin/mpdscribble + +load_rc_config $name + +: ${mpdscribble_enable="NO"} +: ${mpdscribble_user="nobody"} + +command_args="--daemon-user ${mpdscribble_user}" + +run_rc_command "$1" diff --git a/audio/mpdscribble/files/patch-setup.sh b/audio/mpdscribble/files/patch-setup.sh deleted file mode 100644 index aaedc2cd6381..000000000000 --- a/audio/mpdscribble/files/patch-setup.sh +++ /dev/null @@ -1,43 +0,0 @@ ---- setup.sh.orig 2005-04-17 16:53:46.000000000 +0200 -+++ setup.sh 2008-07-22 02:30:33.000000000 +0200 -@@ -1,6 +1,6 @@ - #!/bin/sh - --if [ $UID = "0" ]; then -+if [ $(id -u) -eq 0 ]; then - echo "user root, system-wide installation assumed." - echo - CONF_DIR=/etc -@@ -25,8 +25,8 @@ - echo "log file: $LOG" - echo - echo "press ctrl-c to cancel if this is not intended." --echo "continue..." --read -s -+echo "press enter to continue..." -+read junk - - mkdir -p $CONF_DIR - mkdir -p $CACHE_DIR -@@ -35,17 +35,19 @@ - echo -n "Please enter your audioscrobbler username: " - read -e USERNAME - echo -n "and password: " --read -s -e PASSWORD -+read -e PASSWORD - - echo "username = $USERNAME" > $LOGIN - chmod 600 $LOGIN --MD5=`echo -n $PASSWORD | md5sum | awk '{print $1}'` -+MD5=$(echo -n $PASSWORD | md5 -q) - echo "password = $MD5" >> $LOGIN - - echo "cache = $CACHE" >> $LOGIN - echo "log = $LOG" >> $LOGIN - echo "verbose = 2" >> $LOGIN - -+touch $CACHE -+ - echo "" - echo "Thank you." - echo "You can try running mpdscribble now." |