Add sabnzbd and py-sabyenc.

Derived from sabnzbd which is now very old and does not work any more.
This commit is contained in:
Olaf Seibert 2020-02-12 22:58:07 +01:00
parent fe1b56f067
commit 4b65068bcd
11 changed files with 669 additions and 0 deletions

8
py-sabyenc/DESCR Normal file
View File

@ -0,0 +1,8 @@
SABYenc - yEnc Decoding for Python
The module was extended to do header parsing and full yEnc decoding from a
Python list of chunks, the way in which data is retrieved from usenet. This is
particularly beneficial when SSL is enabled, which limits the size of each
chunk to 16K. Parsing these chunks in python is much more costly. Additionally,
this module releases Python's GIL during decoding, greatly increasing
performance of the overall download process.

26
py-sabyenc/Makefile Normal file
View File

@ -0,0 +1,26 @@
# $NetBSD: Makefile,v 1.6 2015/02/04 10:10:53 thomasklausner Exp $
DISTNAME= sabyenc-${DISTVERSION}
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
DISTVERSION= 3.3.6
CATEGORIES= news
GIT_REPO= https://github.com/sabnzbd/sabyenc.git
GIT_REVISION= f0b4934a740549afcea8bc677d4bd9e42c179838 # 22 June 2019
CHECKOUT_DATE= 2019-06-22
#GITHUB_PROJECT= sabnzbd
GIT_BRANCH= sabyenc-python2
MAINTAINER= rhialto@NetBSD.org
HOMEPAGE= https://sabnzbd.org
COMMENT= Web-interface based binary newsgrabber in python, with nzb support
LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND modified-bsd AND mit
PYDISTUTILSPKG=YES
USE_LANGUAGES+= c
# This branch is python 2.7 only, because sabnzbd is limited to that, due to another dependency.
PYTHON_VERSIONS_ACCEPTED= 27
.include "../../lang/python/extension.mk"
.include "../../wip/mk/git-package.mk"
.include "../../mk/bsd.pkg.mk"

6
py-sabyenc/PLIST Normal file
View File

@ -0,0 +1,6 @@
@comment $NetBSD$
${PYSITELIB}/sabyenc-3.3.5-py2.7.egg-info/PKG-INFO
${PYSITELIB}/sabyenc-3.3.5-py2.7.egg-info/SOURCES.txt
${PYSITELIB}/sabyenc-3.3.5-py2.7.egg-info/dependency_links.txt
${PYSITELIB}/sabyenc-3.3.5-py2.7.egg-info/top_level.txt
${PYSITELIB}/sabyenc.so

6
sabnzbd/DESCR Normal file
View File

@ -0,0 +1,6 @@
SABnzbd is a cross-platform binary newsreader. It makes downloading
from Usenet easy by automating the whole thing. You give it an NZB
file or an RSS feed, it does the rest. Has a web-browser based UI
and an API for 3rd-party apps. Ideal for servers too.
WWW: http://sabnzbd.org/

10
sabnzbd/MESSAGE.SunOS Normal file
View File

@ -0,0 +1,10 @@
===========================================================================
$NetBSD: MESSAGE.SunOS,v 1.1 2013/10/02 11:47:48 wongk Exp $
To use sabnzbdplus on Solaris, you'll need to import and enable the service
via SMF:
svccfg import /opt/local/share/sabnzbdplus/sabnzbd.xml
svcadm enable sabnzbd
===========================================================================

69
sabnzbd/Makefile Normal file
View File

@ -0,0 +1,69 @@
# $NetBSD: Makefile,v 1.6 2015/02/04 10:10:53 thomasklausner Exp $
DISTNAME= sabnzbd-${DISTVERSION}
DISTVERSION= 2.3.9
CATEGORIES= news
MASTER_SITES= ${MASTER_SITE_GITHUB:=sabnzbd/}
GITHUB_PROJECT= sabnzbd
GITHUB_TAG= ${DISTVERSION}
MAINTAINER= rhialto@NetBSD.org
HOMEPAGE= https://sabnzbd.org
COMMENT= Web-interface based binary newsgrabber in python, with nzb support
LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND modified-bsd AND mit
DEPENDS+= ${PYPKGPREFIX}-cheetah-[0-9]*:../../devel/py-cheetah
DEPENDS+= ${PYPKGPREFIX}-cryptography-[0-9]*:../../security/py-cryptography
DEPENDS+= ${PYPKGPREFIX}-sabyenc-[0-9]*:../../wip/py-sabyenc
# DEPENDS+= ${PYPKGPREFIX}-configobj-[0-9]*:../../devel/py-configobj #??
# DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 #??
# DEPENDS+= ${PYPKGPREFIX}-xml-[0-9]*:../../textproc/py-xml #??
# in options.mk
#DEPENDS+= par2-[0-9]*:../../archivers/par2
#DEPENDS+= unrar-[0-9]*:../../archivers/unrar
DEPENDS+= unzip-[0-9]*:../../archivers/unzip
DEPENDS+= p7zip-[0-9]*:../../archivers/p7zip
NO_BUILD= yes
#PYDISTUTILSPKG=YES
USE_TOOLS= pax git
USE_LANGUAGES+= c
PYTHON_VERSIONS_ACCEPTED= 27 # py-cheetah, py-xml
.include "options.mk"
PKG_GROUPS= sabnzbd
PKG_USERS= sabnzbd:sabnzbd
PKG_HOME.sabnzbd= ${PREFIX}/sabnzbd
OWN_DIRS_PERMS= ${PREFIX}/sabnzbd sabnzbd sabnzbd 0755
INSTALLATION_DIRS+= cherrypy gntp interfaces po tools util
PY_PATCHPLIST= yes
REPLACE_PYTHON= *.py */*.py */*/*.py cherrypy/cherryd
SUBST_CLASSES+= fix-paths
SUBST_STAGE.fix-paths= pre-configure
SUBST_MESSAGE.fix-paths= Fix absolute paths.
SUBST_FILES.fix-paths= SABnzbd.py
SUBST_SED.fix-paths= -e 's,%%PREFIX%%,${PREFIX},g'
do-install:
${MKDIR} ${DESTDIR}/${PREFIX}/bin
cd ${WRKSRC} && pax -rw SABnzbd.py ${DESTDIR}/${PREFIX}/bin/
${MKDIR} ${DESTDIR}/${PREFIX}/${PYSITELIB}/
cd ${WRKSRC} && pax -rw -pmp sabnzbd ${DESTDIR}/${PREFIX}/${PYSITELIB}/
.for i in ${INSTALLATION_DIRS}
${MKDIR} ${DESTDIR}/${PREFIX}/share/sabnzbd
cd ${WRKSRC} && pax -rw -pmp ${i} ${DESTDIR}/${PREFIX}/share/sabnzbd
.endfor
cd ${.CURDIR}/files && pax -rw -pmp sabnzbd.xml ${DESTDIR}/${PREFIX}/share/sabnzbd
${CHMOD} a-x ${DESTDIR}${PREFIX}/share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/*.png
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"

384
sabnzbd/PLIST Normal file
View File

@ -0,0 +1,384 @@
@comment $NetBSD$
bin/SABnzbd.py
${PYSITELIB}/sabnzbd/__init__.py
${PYSITELIB}/sabnzbd/api.py
${PYSITELIB}/sabnzbd/articlecache.py
${PYSITELIB}/sabnzbd/assembler.py
${PYSITELIB}/sabnzbd/bpsmeter.py
${PYSITELIB}/sabnzbd/cfg.py
${PYSITELIB}/sabnzbd/config.py
${PYSITELIB}/sabnzbd/constants.py
${PYSITELIB}/sabnzbd/database.py
${PYSITELIB}/sabnzbd/decoder.py
${PYSITELIB}/sabnzbd/decorators.py
${PYSITELIB}/sabnzbd/directunpacker.py
${PYSITELIB}/sabnzbd/dirscanner.py
${PYSITELIB}/sabnzbd/downloader.py
${PYSITELIB}/sabnzbd/emailer.py
${PYSITELIB}/sabnzbd/encoding.py
${PYSITELIB}/sabnzbd/getipaddress.py
${PYSITELIB}/sabnzbd/interface.py
${PYSITELIB}/sabnzbd/lang.py
${PYSITELIB}/sabnzbd/misc.py
${PYSITELIB}/sabnzbd/newsunpack.py
${PYSITELIB}/sabnzbd/newswrapper.py
${PYSITELIB}/sabnzbd/notifier.py
${PYSITELIB}/sabnzbd/nzbqueue.py
${PYSITELIB}/sabnzbd/nzbstuff.py
${PYSITELIB}/sabnzbd/osxmenu.py
${PYSITELIB}/sabnzbd/panic.py
${PYSITELIB}/sabnzbd/par2file.py
${PYSITELIB}/sabnzbd/postproc.py
${PYSITELIB}/sabnzbd/powersup.py
${PYSITELIB}/sabnzbd/rating.py
${PYSITELIB}/sabnzbd/rss.py
${PYSITELIB}/sabnzbd/sabtray.py
${PYSITELIB}/sabnzbd/sabtraylinux.py
${PYSITELIB}/sabnzbd/scheduler.py
${PYSITELIB}/sabnzbd/skintext.py
${PYSITELIB}/sabnzbd/sorting.py
${PYSITELIB}/sabnzbd/urlgrabber.py
${PYSITELIB}/sabnzbd/utils/__init__.py
${PYSITELIB}/sabnzbd/utils/certgen.py
${PYSITELIB}/sabnzbd/utils/checkdir.py
${PYSITELIB}/sabnzbd/utils/configobj.py
${PYSITELIB}/sabnzbd/utils/diskspeed.py
${PYSITELIB}/sabnzbd/utils/feedparser.py
${PYSITELIB}/sabnzbd/utils/getperformance.py
${PYSITELIB}/sabnzbd/utils/happyeyeballs.py
${PYSITELIB}/sabnzbd/utils/json.py
${PYSITELIB}/sabnzbd/utils/kronos.py
${PYSITELIB}/sabnzbd/utils/pathbrowser.py
${PYSITELIB}/sabnzbd/utils/pybonjour.py
${PYSITELIB}/sabnzbd/utils/pystone.py
${PYSITELIB}/sabnzbd/utils/rarfile.py
${PYSITELIB}/sabnzbd/utils/rsslib.py
${PYSITELIB}/sabnzbd/utils/servertests.py
${PYSITELIB}/sabnzbd/utils/systrayiconthread.py
${PYSITELIB}/sabnzbd/utils/upload.py
${PYSITELIB}/sabnzbd/version.py
${PYSITELIB}/sabnzbd/zconfig.py
share/sabnzbd/cherrypy/VERSION.txt
share/sabnzbd/cherrypy/__init__.py
share/sabnzbd/cherrypy/__main__.py
share/sabnzbd/cherrypy/_cpchecker.py
share/sabnzbd/cherrypy/_cpcompat.py
share/sabnzbd/cherrypy/_cpconfig.py
share/sabnzbd/cherrypy/_cpdispatch.py
share/sabnzbd/cherrypy/_cperror.py
share/sabnzbd/cherrypy/_cplogging.py
share/sabnzbd/cherrypy/_cpmodpy.py
share/sabnzbd/cherrypy/_cpnative_server.py
share/sabnzbd/cherrypy/_cpreqbody.py
share/sabnzbd/cherrypy/_cprequest.py
share/sabnzbd/cherrypy/_cpserver.py
share/sabnzbd/cherrypy/_cptools.py
share/sabnzbd/cherrypy/_cptree.py
share/sabnzbd/cherrypy/_cpwsgi.py
share/sabnzbd/cherrypy/_cpwsgi_server.py
share/sabnzbd/cherrypy/_helper.py
share/sabnzbd/cherrypy/cherryd
share/sabnzbd/cherrypy/daemon.py
share/sabnzbd/cherrypy/favicon.ico
share/sabnzbd/cherrypy/lib/__init__.py
share/sabnzbd/cherrypy/lib/auth.py
share/sabnzbd/cherrypy/lib/auth_basic.py
share/sabnzbd/cherrypy/lib/auth_digest.py
share/sabnzbd/cherrypy/lib/caching.py
share/sabnzbd/cherrypy/lib/covercp.py
share/sabnzbd/cherrypy/lib/cpstats.py
share/sabnzbd/cherrypy/lib/cptools.py
share/sabnzbd/cherrypy/lib/encoding.py
share/sabnzbd/cherrypy/lib/gctools.py
share/sabnzbd/cherrypy/lib/httpauth.py
share/sabnzbd/cherrypy/lib/httputil.py
share/sabnzbd/cherrypy/lib/jsontools.py
share/sabnzbd/cherrypy/lib/lockfile.py
share/sabnzbd/cherrypy/lib/locking.py
share/sabnzbd/cherrypy/lib/profiler.py
share/sabnzbd/cherrypy/lib/reprconf.py
share/sabnzbd/cherrypy/lib/sessions.py
share/sabnzbd/cherrypy/lib/static.py
share/sabnzbd/cherrypy/lib/xmlrpcutil.py
share/sabnzbd/cherrypy/process/__init__.py
share/sabnzbd/cherrypy/process/plugins.py
share/sabnzbd/cherrypy/process/servers.py
share/sabnzbd/cherrypy/process/win32.py
share/sabnzbd/cherrypy/process/wspbus.py
share/sabnzbd/cherrypy/wsgiserver/__init__.py
share/sabnzbd/cherrypy/wsgiserver/ssl_builtin.py
share/sabnzbd/cherrypy/wsgiserver/ssl_pyopenssl.py
share/sabnzbd/gntp/__init__.py
share/sabnzbd/gntp/cli.py
share/sabnzbd/gntp/config.py
share/sabnzbd/gntp/core.py
share/sabnzbd/gntp/errors.py
share/sabnzbd/gntp/notifier.py
share/sabnzbd/gntp/shim.py
share/sabnzbd/gntp/version.py
share/sabnzbd/interfaces/Config/README.txt
share/sabnzbd/interfaces/Config/templates/_inc_footer_uc.tmpl
share/sabnzbd/interfaces/Config/templates/_inc_header_uc.tmpl
share/sabnzbd/interfaces/Config/templates/config.tmpl
share/sabnzbd/interfaces/Config/templates/config_cat.tmpl
share/sabnzbd/interfaces/Config/templates/config_folders.tmpl
share/sabnzbd/interfaces/Config/templates/config_general.tmpl
share/sabnzbd/interfaces/Config/templates/config_notify.tmpl
share/sabnzbd/interfaces/Config/templates/config_rss.tmpl
share/sabnzbd/interfaces/Config/templates/config_scheduling.tmpl
share/sabnzbd/interfaces/Config/templates/config_server.tmpl
share/sabnzbd/interfaces/Config/templates/config_sorting.tmpl
share/sabnzbd/interfaces/Config/templates/config_special.tmpl
share/sabnzbd/interfaces/Config/templates/config_switches.tmpl
share/sabnzbd/interfaces/Config/templates/login/main.tmpl
share/sabnzbd/interfaces/Config/templates/main.tmpl
share/sabnzbd/interfaces/Config/templates/staticcfg/bootstrap/css/bootstrap.min.css
share/sabnzbd/interfaces/Config/templates/staticcfg/bootstrap/fonts/glyphicons-halflings-regular.eot
share/sabnzbd/interfaces/Config/templates/staticcfg/bootstrap/fonts/glyphicons-halflings-regular.svg
share/sabnzbd/interfaces/Config/templates/staticcfg/bootstrap/fonts/glyphicons-halflings-regular.ttf
share/sabnzbd/interfaces/Config/templates/staticcfg/bootstrap/js/bootstrap.min.js
share/sabnzbd/interfaces/Config/templates/staticcfg/css/chartist.min.css
share/sabnzbd/interfaces/Config/templates/staticcfg/css/login.css
share/sabnzbd/interfaces/Config/templates/staticcfg/css/style.css
share/sabnzbd/interfaces/Config/templates/staticcfg/ico/android-192x192.png
share/sabnzbd/interfaces/Config/templates/staticcfg/ico/apple-touch-icon-120x120-precomposed.png
share/sabnzbd/interfaces/Config/templates/staticcfg/ico/apple-touch-icon-152x152-precomposed.png
share/sabnzbd/interfaces/Config/templates/staticcfg/ico/apple-touch-icon-180x180-precomposed.png
share/sabnzbd/interfaces/Config/templates/staticcfg/ico/apple-touch-icon-76x76-precomposed.png
share/sabnzbd/interfaces/Config/templates/staticcfg/ico/favicon.ico
share/sabnzbd/interfaces/Config/templates/staticcfg/ico/faviconpaused.ico
share/sabnzbd/interfaces/Config/templates/staticcfg/ico/safari-pinned-tab.svg
share/sabnzbd/interfaces/Config/templates/staticcfg/images/logo-arrow.svg
share/sabnzbd/interfaces/Config/templates/staticcfg/images/logo-full.svg
share/sabnzbd/interfaces/Config/templates/staticcfg/images/logo-small.svg
share/sabnzbd/interfaces/Config/templates/staticcfg/js/chartist.min.js
share/sabnzbd/interfaces/Config/templates/staticcfg/js/filesize.min.js
share/sabnzbd/interfaces/Config/templates/staticcfg/js/jquery-3.2.1.min.js
share/sabnzbd/interfaces/Config/templates/staticcfg/js/jquery-ui.min.js
share/sabnzbd/interfaces/Config/templates/staticcfg/js/jquery.tablesort.min.js
share/sabnzbd/interfaces/Config/templates/staticcfg/js/script.js
share/sabnzbd/interfaces/Glitter/licenses/LICENSE-Apache.txt
share/sabnzbd/interfaces/Glitter/licenses/LICENSE-CC.txt
share/sabnzbd/interfaces/Glitter/licenses/LICENSE-MIT.txt
share/sabnzbd/interfaces/Glitter/templates/history.tmpl
share/sabnzbd/interfaces/Glitter/templates/include_history.tmpl
share/sabnzbd/interfaces/Glitter/templates/include_menu.tmpl
share/sabnzbd/interfaces/Glitter/templates/include_messages.tmpl
share/sabnzbd/interfaces/Glitter/templates/include_overlays.tmpl
share/sabnzbd/interfaces/Glitter/templates/include_queue.tmpl
share/sabnzbd/interfaces/Glitter/templates/main.tmpl
share/sabnzbd/interfaces/Glitter/templates/nzo.tmpl
share/sabnzbd/interfaces/Glitter/templates/queue.tmpl
share/sabnzbd/interfaces/Glitter/templates/static/bootstrap/css/bootstrap.min.css
share/sabnzbd/interfaces/Glitter/templates/static/bootstrap/fonts/glyphicons-halflings-regular.eot
share/sabnzbd/interfaces/Glitter/templates/static/bootstrap/fonts/glyphicons-halflings-regular.svg
share/sabnzbd/interfaces/Glitter/templates/static/bootstrap/fonts/glyphicons-halflings-regular.ttf
share/sabnzbd/interfaces/Glitter/templates/static/bootstrap/js/bootstrap.min.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/date.min.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/glitter.basic.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/glitter.filelist.pagination.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/glitter.history.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/glitter.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/glitter.main.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/glitter.queue.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/jquery-ui.min.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/jquery.min.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/jquery.peity.min.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/knockout-extensions.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/knockout-latest.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/moment.min.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/da.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/de.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/es.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/fi.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/fr.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/he.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/nb.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/nl.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/pl.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/pt-br.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/ro.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/ru.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/sr.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/sv.js
share/sabnzbd/interfaces/Glitter/templates/static/javascripts/momentjs_locale/zh-cn.js
share/sabnzbd/interfaces/Glitter/templates/static/stylesheets/colorschemes/Default.css
share/sabnzbd/interfaces/Glitter/templates/static/stylesheets/colorschemes/Night.css
share/sabnzbd/interfaces/Glitter/templates/static/stylesheets/glitter.css
share/sabnzbd/interfaces/Glitter/templates/static/stylesheets/glitter.mobile.css
share/sabnzbd/interfaces/Glitter/templates/status.tmpl
share/sabnzbd/interfaces/Plush/README.txt
share/sabnzbd/interfaces/Plush/licenses/LICENSE-BSD.txt
share/sabnzbd/interfaces/Plush/licenses/LICENSE-CC.txt
share/sabnzbd/interfaces/Plush/licenses/LICENSE-GPL.txt
share/sabnzbd/interfaces/Plush/licenses/LICENSE-GPL3.txt
share/sabnzbd/interfaces/Plush/licenses/LICENSE-LGPL.txt
share/sabnzbd/interfaces/Plush/licenses/LICENSE-MIT.txt
share/sabnzbd/interfaces/Plush/licenses/LICENSE-WebToolkit.txt
share/sabnzbd/interfaces/Plush/templates/_inc_footer.tmpl
share/sabnzbd/interfaces/Plush/templates/_inc_header.tmpl
share/sabnzbd/interfaces/Plush/templates/_inc_modals.tmpl
share/sabnzbd/interfaces/Plush/templates/history.tmpl
share/sabnzbd/interfaces/Plush/templates/main.tmpl
share/sabnzbd/interfaces/Plush/templates/nzo.tmpl
share/sabnzbd/interfaces/Plush/templates/queue.tmpl
share/sabnzbd/interfaces/Plush/templates/static/javascripts/config.js
share/sabnzbd/interfaces/Plush/templates/static/javascripts/lib.js
share/sabnzbd/interfaces/Plush/templates/static/javascripts/plush.js
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/gold.css
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images-split.tar.gz
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/colorbox-border.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/colorbox-controls.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/loading-bar.gif
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/loading-spinner.gif
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/addnzb-grey.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/addnzb.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/config.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/connections-grey.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/connections.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/downloads-grey.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/downloads.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/help-grey.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/help.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/options.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/refresh-grey.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/refresh.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/rss-grey.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/nav/rss.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/sound16.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/sprite-config.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/sprite-main.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/sprite-tilex.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/sprite-tiley.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/thumbdown20.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/thumbup20.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/vision16.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-bg_flat_0_eeeeee_40x100.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-bg_flat_55_c0402a_40x100.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-bg_flat_55_eeeeee_40x100.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-bg_glass_35_dddddd_1x400.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-bg_glass_60_eeeeee_1x400.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-bg_inset-hard_75_999999_1x100.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-icons_3383bb_256x240.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-icons_454545_256x240.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-icons_70b2e1_256x240.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-icons_999999_256x240.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/images/ui-icons_fbc856_256x240.png
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/jqueryui/overcast/jquery-ui-1.8.15.custom.css
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/rateit/delete.gif
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/rateit/rateit.css
share/sabnzbd/interfaces/Plush/templates/static/stylesheets/rateit/star.gif
share/sabnzbd/interfaces/Plush/templates/status.tmpl
share/sabnzbd/interfaces/smpl/CreativeCommons2-5.txt
share/sabnzbd/interfaces/smpl/CreativeCommons3-0.txt
share/sabnzbd/interfaces/smpl/GPL2.txt
share/sabnzbd/interfaces/smpl/GPL3.txt
share/sabnzbd/interfaces/smpl/LICENCE-silk_icons.txt
share/sabnzbd/interfaces/smpl/LICENSE.txt
share/sabnzbd/interfaces/smpl/License-ExCanvas.txt
share/sabnzbd/interfaces/smpl/License-MochiKit.txt
share/sabnzbd/interfaces/smpl/License-Nuvola.txt
share/sabnzbd/interfaces/smpl/License-PlotKit.txt
share/sabnzbd/interfaces/smpl/License-getElementPosition.txt
share/sabnzbd/interfaces/smpl/README.txt
share/sabnzbd/interfaces/smpl/templates/history.tmpl
share/sabnzbd/interfaces/smpl/templates/main.tmpl
share/sabnzbd/interfaces/smpl/templates/nzo.tmpl
share/sabnzbd/interfaces/smpl/templates/queue.tmpl
share/sabnzbd/interfaces/smpl/templates/static/MochiKit/MochiKit.js
share/sabnzbd/interfaces/smpl/templates/static/MochiKit/__package__.js
share/sabnzbd/interfaces/smpl/templates/static/PlotKit/PlotKit.js
share/sabnzbd/interfaces/smpl/templates/static/excanvas/excanvas.js
share/sabnzbd/interfaces/smpl/templates/static/feed-icon-14x14.png
share/sabnzbd/interfaces/smpl/templates/static/images/browser.png
share/sabnzbd/interfaces/smpl/templates/static/images/bullet_arrow_down.png
share/sabnzbd/interfaces/smpl/templates/static/images/control_pause.png
share/sabnzbd/interfaces/smpl/templates/static/images/control_play.png
share/sabnzbd/interfaces/smpl/templates/static/images/down.gif
share/sabnzbd/interfaces/smpl/templates/static/images/drive.png
share/sabnzbd/interfaces/smpl/templates/static/images/drive_go.png
share/sabnzbd/interfaces/smpl/templates/static/images/favicon.ico
share/sabnzbd/interfaces/smpl/templates/static/images/key_enter.png
share/sabnzbd/interfaces/smpl/templates/static/images/messagebox_critical.png
share/sabnzbd/interfaces/smpl/templates/static/images/nuvola/kgpg.png
share/sabnzbd/interfaces/smpl/templates/static/images/up.gif
share/sabnzbd/interfaces/smpl/templates/static/sabnzbd_small4.png
share/sabnzbd/interfaces/smpl/templates/static/stylesheets/colorschemes/black.css
share/sabnzbd/interfaces/smpl/templates/static/stylesheets/colorschemes/white.css
share/sabnzbd/interfaces/smpl/templates/static/stylesheets/smpl.css
share/sabnzbd/interfaces/smpl/templates/status.tmpl
share/sabnzbd/interfaces/wizard/README.TXT
share/sabnzbd/interfaces/wizard/inc_bottom.tmpl
share/sabnzbd/interfaces/wizard/inc_top.tmpl
share/sabnzbd/interfaces/wizard/index.html
share/sabnzbd/interfaces/wizard/one.html
share/sabnzbd/interfaces/wizard/static/javascript/checkserver.js
share/sabnzbd/interfaces/wizard/static/style.css
share/sabnzbd/interfaces/wizard/two.html
share/sabnzbd/po/email/SABemail.pot
share/sabnzbd/po/email/da.po
share/sabnzbd/po/email/de.po
share/sabnzbd/po/email/en.po
share/sabnzbd/po/email/es.po
share/sabnzbd/po/email/fi.po
share/sabnzbd/po/email/fr.po
share/sabnzbd/po/email/he.po
share/sabnzbd/po/email/nb.po
share/sabnzbd/po/email/nl.po
share/sabnzbd/po/email/pl.po
share/sabnzbd/po/email/pt_BR.po
share/sabnzbd/po/email/ro.po
share/sabnzbd/po/email/ru.po
share/sabnzbd/po/email/sr.po
share/sabnzbd/po/email/sv.po
share/sabnzbd/po/email/zh_CN.po
share/sabnzbd/po/main/SABnzbd.pot
share/sabnzbd/po/main/da.po
share/sabnzbd/po/main/de.po
share/sabnzbd/po/main/en.po
share/sabnzbd/po/main/es.po
share/sabnzbd/po/main/fi.po
share/sabnzbd/po/main/fr.po
share/sabnzbd/po/main/he.po
share/sabnzbd/po/main/nb.po
share/sabnzbd/po/main/nl.po
share/sabnzbd/po/main/pl.po
share/sabnzbd/po/main/pt_BR.po
share/sabnzbd/po/main/ro.po
share/sabnzbd/po/main/ru.po
share/sabnzbd/po/main/sr.po
share/sabnzbd/po/main/sv.po
share/sabnzbd/po/main/zh_CN.po
share/sabnzbd/po/nsis/SABnsis.pot
share/sabnzbd/po/nsis/da.po
share/sabnzbd/po/nsis/de.po
share/sabnzbd/po/nsis/en.po
share/sabnzbd/po/nsis/es.po
share/sabnzbd/po/nsis/fi.po
share/sabnzbd/po/nsis/fr.po
share/sabnzbd/po/nsis/he.po
share/sabnzbd/po/nsis/nb.po
share/sabnzbd/po/nsis/nl.po
share/sabnzbd/po/nsis/pl.po
share/sabnzbd/po/nsis/pt_BR.po
share/sabnzbd/po/nsis/ro.po
share/sabnzbd/po/nsis/ru.po
share/sabnzbd/po/nsis/sr.po
share/sabnzbd/po/nsis/sv.po
share/sabnzbd/po/nsis/zh_CN.po
share/sabnzbd/sabnzbd.xml
share/sabnzbd/tools/extract_pot.py
share/sabnzbd/tools/make_mo.py
share/sabnzbd/tools/msgfmt.py
share/sabnzbd/util/__init__.py
share/sabnzbd/util/apireg.py
share/sabnzbd/util/mailslot.py
@pkgdir util
@pkgdir tools
@pkgdir po
@pkgdir interfaces
@pkgdir gntp
@pkgdir cherrypy

7
sabnzbd/distinfo Normal file
View File

@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.1 2013/10/01 20:25:20 wongk Exp $
SHA1 (sabnzbd-2.3.9.tar.gz) = eec095bdc51ab745c42fa45523cfb2bde35531f5
RMD160 (sabnzbd-2.3.9.tar.gz) = 2de2968a60b07a4f766a5cf9ecf07976753f85bf
SHA512 (sabnzbd-2.3.9.tar.gz) = d555bd2c61d075d9bd181bc9f8f7958be2edc63cb3543fd6630aba3ff2487ad936ce061078477bf32dc191c746fe4d2fb96de1ce26f3ac631a6848fbe8efe18f
Size (sabnzbd-2.3.9.tar.gz) = 4610937 bytes
SHA1 (patch-SABnzbd.py) = 7a80fb565ca7ca178c25ee752276c48904af03d5

87
sabnzbd/files/sabnzbd.xml Normal file
View File

@ -0,0 +1,87 @@
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
Assumes user=sabnzbd group=sabnzbd
Assumes '/opt/local/bin/' is installation directory
To enable/disable
svcadm enable sabnzbd
svcadm disable sabnzbd
To check logs
tail /var/svc/log/network-sabnzbd\:default.log
-->
<service_bundle type='manifest' name='sabnzbd'>
<service
name='network/sabnzbd'
type='service'
version='1'>
<create_default_instance enabled='false' />
<single_instance />
<!-- Only start in muti-user mode -->
<dependency name='multi-user'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri value='svc:/milestone/multi-user' />
</dependency>
<!-- Wait for network interfaces to be initialized. -->
<dependency name='network'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri value='svc:/milestone/network:default'/>
</dependency>
<!-- Wait for all local filesystems to be mounted. -->
<dependency name='filesystem-local'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri value='svc:/system/filesystem/local:default'/>
</dependency>
<!-- execute as user sabnzbd -->
<method_context>
<method_credential user='sabnzbd' group='sabnzbd' />
</method_context>
<exec_method
type='method'
name='start'
exec='/opt/local/bin/SABnzbd.py -d -f /opt/local/sabnzbd/sabnzbd.ini'
timeout_seconds='60'>
<method_context>
<method_environment>
<envvar name='PATH' value='/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin
'/>
</method_environment>
</method_context>
</exec_method>
<exec_method
type='method'
name='stop'
exec=':kill'
timeout_seconds='2'>
</exec_method>
<template>
<common_name>
<loctext xml:lang='C'>sabnzbd</loctext>
</common_name>
<documentation>
<doc_link name='sabnzbd'
uri='www.http://sabnzbd.org/' />
</documentation>
</template>
</service>
</service_bundle>

39
sabnzbd/options.mk Normal file
View File

@ -0,0 +1,39 @@
# $NetBSD: options.mk,v 1.3 2015/02/07 22:08:46 tnn2 Exp $
# Global and legacy options
PKG_OPTIONS_VAR= PKG_OPTIONS.sabnzbdplus
PKG_SUPPORTED_OPTIONS= par2 unrar feedparser openssl
PKG_SUGGESTED_OPTIONS= par2 unrar feedparser openssl
.include "../../mk/bsd.options.mk"
.include "../../lang/python/application.mk"
###
### par2 support
###
.if !empty(PKG_OPTIONS:Mpar2)
DEPENDS+= par2-[0-9]*:../../archivers/par2
.endif
###
### unrar support
###
.if !empty(PKG_OPTIONS:Munrar)
DEPENDS+= unrar-[0-9]*:../../archivers/unrar
.endif
###
### feedparser support
###
.if !empty(PKG_OPTIONS:Mfeedparser)
DEPENDS+= ${PYPKGPREFIX}-feedparser-[0-9]*:../../textproc/py-feedparser
.endif
###
### openssl support
###
.if !empty(PKG_OPTIONS:Mopenssl)
DEPENDS+= openssl-[0-9]*:../../security/openssl
DEPENDS+= ${PYPKGPREFIX}-OpenSSL-[0-9]*:../../security/py-OpenSSL
.endif

View File

@ -0,0 +1,27 @@
$NetBSD$
Fix path.
--- SABnzbd.py.orig 2020-02-12 20:18:12.258920844 +0000
+++ SABnzbd.py
@@ -42,6 +42,10 @@ import ssl
import time
import re
+# Force python to load the patched version of cherrypy included with the port,
+# instead of any version that may be installed otherwise.
+sys.path.insert(0,'%%PREFIX%%/share/sabnzbd')
+
try:
import Cheetah
if Cheetah.Version[0] < '2':
@@ -919,7 +923,8 @@ def main():
sabnzbd.MY_FULLNAME = os.path.normpath(os.path.abspath(sabnzbd.MY_FULLNAME))
sabnzbd.MY_NAME = os.path.basename(sabnzbd.MY_FULLNAME)
- sabnzbd.DIR_PROG = os.path.dirname(sabnzbd.MY_FULLNAME)
+ # sabnzbd.DIR_PROG = os.path.dirname(sabnzbd.MY_FULLNAME)
+ sabnzbd.DIR_PROG = "%%PREFIX%%/share/sabnzbd"
sabnzbd.DIR_INTERFACES = real_path(sabnzbd.DIR_PROG, DEF_INTERFACES)
sabnzbd.DIR_LANGUAGE = real_path(sabnzbd.DIR_PROG, DEF_LANGUAGE)
org_dir = os.getcwd()