1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00

- Do not assume /bin/sh is bash in setup.sh

- Install setup.sh as mpdscribble-setup which is required at runtime
- Bump PORTREVISION

PR:		ports/122993
Submitted by:	Sokolov Alexey <sokolov at truebsd.org>
This commit is contained in:
Rong-En Fan 2008-06-01 12:34:11 +00:00
parent 628d5af293
commit 883d02d834
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214120
2 changed files with 25 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= mpdscribble
PORTVERSION= 0.2.12
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www.frob.nl/projects/scribble/
@ -18,6 +19,9 @@ LIB_DEPENDS= soup:${PORTSDIR}/devel/libsoup22
GNU_CONFIGURE= yes
MAN1= mpdscribble.1
PLIST_FILES= bin/mpdscribble
PLIST_FILES= bin/mpdscribble bin/mpdscribble-setup
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/setup.sh ${PREFIX}/bin/mpdscribble-setup
.include <bsd.port.mk>

View File

@ -0,0 +1,20 @@
--- setup.sh.orig 2008-06-01 19:53:53.000000000 +0800
+++ setup.sh 2008-06-01 19:54:16.000000000 +0800
@@ -26,7 +26,7 @@
echo
echo "press ctrl-c to cancel if this is not intended."
echo "continue..."
-read -s
+read
mkdir -p $CONF_DIR
mkdir -p $CACHE_DIR
@@ -35,7 +35,7 @@
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