Browse Source

n/sabnzbd: Upgraded to sabnzbd-0.7.2.

slackware-14.2
Damien Goutte-Gattat 10 years ago
parent
commit
f4a2f7758f
  1. 1
      n/sabnzbd/SABnzbd-0.5.6-src.tar.gz.sha1
  2. 1
      n/sabnzbd/SABnzbd-0.7.2-src.tar.gz.sha1
  3. 10
      n/sabnzbd/rc.sabnzbd
  4. 9
      n/sabnzbd/sabnzbd.SlackBuild

1
n/sabnzbd/SABnzbd-0.5.6-src.tar.gz.sha1

@ -1 +0,0 @@
21a9c34d8db920e17345f7bdc2afdd862756caee SABnzbd-0.5.6-src.tar.gz

1
n/sabnzbd/SABnzbd-0.7.2-src.tar.gz.sha1

@ -0,0 +1 @@
fa9b76727d56036045f8b5d02fd0b4c85ea3cd65 SABnzbd-0.7.2-src.tar.gz

10
n/sabnzbd/rc.sabnzbd

@ -1,9 +1,9 @@
#!/bin/sh
CONFIG_FILE=/etc/sabnzbd.ini
host=`sed -n -r 's/^host = (.*)$/\1/p' $CONFIG_FILE`
port=`sed -n -r 's/^port = (.*)$/\1/p' $CONFIG_FILE`
key=`sed -n -r 's/^key = (.*)$/\1/p' $CONFIG_FILE`
host=`sed -n -r 's/^host = (.*)$/\1/p' $CONFIG_FILE | head -n 1`
port=`sed -n -r 's/^port = (.*)$/\1/p' $CONFIG_FILE | head -n 1`
key=`sed -n -r 's/^api_key = (.*)$/\1/p' $CONFIG_FILE`
case "$1" in
start)
@ -20,12 +20,12 @@ start)
stop)
echo "Shutting down SABnzbd."
/usr/bin/wget -q --delete-after "http://$HOST:$PORT/sabnzbd/api?mode=shutdown&apikey=$key"
/usr/bin/wget -q --delete-after "http://$host:$port/sabnzbd/api?mode=shutdown&apikey=$key"
;;
restart)
echo "Restarting SABnzbd."
/usr/bin/wget -q --delete-after "http://$HOST:$PORT/sabnzbd/api?mode=restart&apikey=$key"
/usr/bin/wget -q --delete-after "http://$host:$port/sabnzbd/api?mode=restart&apikey=$key"
;;
*)

9
n/sabnzbd/sabnzbd.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010,2011 Damien Goutte-Gattat
# Copyright (C) 2010,2011,2012 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -29,7 +29,7 @@
# Source package infos
NAMESRC=${NAMESRC:-SABnzbd}
VERSION=${VERSION:-0.5.6}
VERSION=${VERSION:-0.7.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-src.tar.gz}
WGET=${WGET:-http://downloads.sourceforge.net/sabnzbdplus/$ARCHIVE}
@ -74,11 +74,12 @@ cd $NAME
# Install program and library files
mkdir -p $PKG/usr/libexec/sabnzbd
install -m 755 SABnzbd.py $PKG/usr/libexec/sabnzbd
cp -r cherrypy interfaces language licenses sabnzbd $PKG/usr/libexec/sabnzbd/
cp -r cherrypy email gntp icons interfaces licenses locale sabnzbd util \
$PKG/usr/libexec/sabnzbd/
# Install documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGELOG.txt COPYRIGHT.txt GPL?.txt ISSUES.txt LICENSE.txt \
install -m 644 ABOUT.txt CHANGELOG.txt COPYRIGHT.txt GPL?.txt ISSUES.txt \
README.txt Sample-PostProc.sh $PKG/usr/doc/$NAMEPKG-$VERSION
# Install template configuration file and control script

Loading…
Cancel
Save