|
|
|
@ -24,12 +24,13 @@ |
|
|
|
|
# |
|
|
|
|
# Latest sabnzbd sourcecode is available at: <http://www.sabnzbd.org/>. |
|
|
|
|
# |
|
|
|
|
# Depends: ap/par2, l/cheetah, l/sabyenc, ap/par2 |
|
|
|
|
# Recommends: ap/p7zip, ap/unrar, l/python-cryptography |
|
|
|
|
# Depends: ap/par2, ap/unrar, l/cheetah, l/cherrypy, l/python-configobj |
|
|
|
|
# Depends: l/python-cryptography, l/python-feedparser, l/sabyenc |
|
|
|
|
# Recommends: ap/p7zip |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-SABnzbd} |
|
|
|
|
VERSION=${VERSION:-2.3.9} |
|
|
|
|
VERSION=${VERSION:-3.0.0Beta2} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-src.tar.gz} |
|
|
|
|
WGET=${WGET:-https://github.com/sabnzbd/sabnzbd/releases/download/$VERSION/$ARCHIVE} |
|
|
|
|
|
|
|
|
@ -74,13 +75,13 @@ 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 email gntp icons interfaces licenses locale sabnzbd util \ |
|
|
|
|
cp -r email icons interfaces licenses locale sabnzbd \ |
|
|
|
|
$PKG/usr/libexec/sabnzbd/ |
|
|
|
|
|
|
|
|
|
# Install documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
install -m 644 ABOUT.txt COPYRIGHT.txt GPL?.txt ISSUES.txt \ |
|
|
|
|
LICENSE.txt README.txt $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
LICENSE.txt README.mkd $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
|
|
|
|
|
# Install template configuration file and control script |
|
|
|
|
mkdir -p $PKG/etc/rc.d |
|
|
|
@ -94,8 +95,13 @@ install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh |
|
|
|
|
# Add dependency infos |
|
|
|
|
cat <<EOF > $PKG/install/slack-required |
|
|
|
|
cheetah |
|
|
|
|
cherrypy |
|
|
|
|
par2 |
|
|
|
|
python-configobj |
|
|
|
|
python-cryptography |
|
|
|
|
python-feedparser |
|
|
|
|
sabyenc |
|
|
|
|
unrar |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
# Package the tree |
|
|
|
|