aboutsummaryrefslogtreecommitdiff
path: root/news/sabnzbdplus
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2011-02-24 20:18:30 +0000
committerMatthias Andree <mandree@FreeBSD.org>2011-02-24 20:18:30 +0000
commit3a4b735d9a3b71f215df1971544b105ce7a4d20a (patch)
treeea113954027738211e89be708c230fc37bbc0f5a /news/sabnzbdplus
parentfa3eef274074b54c49e6a43f93c2d1f12aba6e4f (diff)
downloadports-3a4b735d9a3b71f215df1971544b105ce7a4d20a.tar.gz
ports-3a4b735d9a3b71f215df1971544b105ce7a4d20a.zip
Notes
Diffstat (limited to 'news/sabnzbdplus')
-rw-r--r--news/sabnzbdplus/Makefile1
-rw-r--r--news/sabnzbdplus/files/sabnzbd.in2
2 files changed, 2 insertions, 1 deletions
diff --git a/news/sabnzbdplus/Makefile b/news/sabnzbdplus/Makefile
index 5e36391cf38b..32befbacb081 100644
--- a/news/sabnzbdplus/Makefile
+++ b/news/sabnzbdplus/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sabnzbdplus
PORTVERSION= 0.5.6
+PORTREVISION= 1
CATEGORIES= news
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/sabnzbd-${PORTVERSION}
DISTNAME= SABnzbd-${PORTVERSION}-src
diff --git a/news/sabnzbdplus/files/sabnzbd.in b/news/sabnzbdplus/files/sabnzbd.in
index 33abe11cbed6..bf0e9c139c75 100644
--- a/news/sabnzbdplus/files/sabnzbd.in
+++ b/news/sabnzbdplus/files/sabnzbd.in
@@ -46,7 +46,7 @@ sabnzbd_stop() {
echo "Stopping $name"
if [ -f "${sabnzbd_conf_dir}/sabnzbd.ini" ]; then
apikey=`grep ^api_key ${sabnzbd_conf_dir}/sabnzbd.ini | tr -d " _"`
- host=`grep -E '^host\ =\ [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' ${sabnzbd_conf_dir}/sabnzbd.ini | tr -dc '[0-9].'`
+ host=`grep -m1 -E '^host\ =\ [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' ${sabnzbd_conf_dir}/sabnzbd.ini | tr -dc '[0-9].'`
if [ ${host} = "0.0.0.0" ] ; then host="localhost" ; fi
port=`grep -m1 ^port ${sabnzbd_conf_dir}/sabnzbd.ini | tr -dc '[0-9]'`
fetch -o /dev/null "http://${host}:${port}/api?mode=shutdown&${apikey}" > /dev/null 2>&1