[net-nntp/sabnzbd] Not needed anymore
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST SABnzbd-0.6.1-src.tar.gz 1888233 SHA256 b9b7e15c3e774aae42e248f19bc97bdbc17afe6bf27e236a7d565ddf5e11ae58
|
||||
@@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
# /etc/conf.d/sabnzbd
|
||||
# Config file for sabnzbd init script
|
||||
|
||||
# Which user to run sabnzbd as, you should change this.
|
||||
SAB_USER="sabnzbd"
|
||||
|
||||
# This overrides the contents of /etc/sabnzbd.conf, needed for wget shutdown to work in init (short of writing some crazy regex for the config)
|
||||
SAB_HOSTNAME="localhost"
|
||||
SAB_PORT="8081"
|
||||
|
||||
# Location of config file.
|
||||
# Make sure the user specified above can read this file. (if you want to change options from the webUI, give it write)
|
||||
SAB_CFG="/etc/sabnzbd/sabnzbd.ini"
|
||||
|
||||
SAB_PATH=/usr/share/sabnzbd/
|
||||
SAB_PY=SABnzbd.py
|
||||
|
||||
SAB_PID=/var/run/sabnzbd/sabnzbd-${SAB_PORT}.pid
|
||||
@@ -1,131 +0,0 @@
|
||||
__version__ = 19
|
||||
[misc]
|
||||
log_dir = /var/log/sabnzbd
|
||||
auto_browser = 0
|
||||
permissions = 0775
|
||||
check_new_rel = 1
|
||||
replace_spaces = 0
|
||||
fail_on_crc = 0
|
||||
enable_filejoin = 0
|
||||
enable_unzip = 1
|
||||
enable_unrar = 1
|
||||
enable_par_cleanup = 1
|
||||
par_option = ""
|
||||
config_lock = 0
|
||||
safe_postproc = 0
|
||||
pause_on_post_processing = 0
|
||||
cleanup_list = ""
|
||||
ignore_samples = 0
|
||||
send_group = 0
|
||||
download_free = 0
|
||||
admin_dir = /var/lib/sabnzbd/admin
|
||||
cache_dir = /var/lib/sabnzbd/cache
|
||||
complete_dir = /var/lib/sabnzbd/complete
|
||||
download_dir = /var/lib/sabnzbd/download
|
||||
dirscan_dir = /var/lib/sabnzbd/dirscan
|
||||
incomplete_dir = /var/lib/sabnzbd/incomplete
|
||||
nzb_backup_dir = /var/lib/sabnzbd/nzb_backup
|
||||
script_dir = /var/lib/sabnzbd/scripts
|
||||
dirscan_speed = 5
|
||||
refresh_rate = 0
|
||||
rss_rate = 60
|
||||
bandwith_limit = 0
|
||||
cache_limit = 0
|
||||
email_server = ""
|
||||
email_to = ""
|
||||
email_from = ""
|
||||
email_account = ""
|
||||
email_pwd = ""
|
||||
email_endjob = 0
|
||||
email_full = 0
|
||||
schedlines = ,
|
||||
dirscan_opts = 3
|
||||
dirscan_script = ""
|
||||
top_only = 1
|
||||
auto_sort = 0
|
||||
enable_tv_sorting = 0
|
||||
tv_sort_string = ""
|
||||
web_color = ""
|
||||
web_color2 = ""
|
||||
host = 0.0.0.0
|
||||
port = 8080
|
||||
web_dir = smpl
|
||||
web_dir2 = ""
|
||||
username = sabnzbd
|
||||
password = secret
|
||||
api_key = ""
|
||||
[logging]
|
||||
enable_cherrypy_logging = 1
|
||||
log_level = 1
|
||||
max_log_size = 5M
|
||||
log_backups = 5
|
||||
[newzbin]
|
||||
username = ""
|
||||
password = ""
|
||||
bookmarks = 0
|
||||
unbookmark = 0
|
||||
bookmark_rate = 60
|
||||
[servers]
|
||||
##example
|
||||
#[[news-europe.giganews.com:119]]
|
||||
#host = news-europe.giganews.com
|
||||
#port = 119
|
||||
#username = changeme
|
||||
#password = changeme
|
||||
#timeout = 120
|
||||
#connections = 5
|
||||
#fillserver = 0
|
||||
## 0 to disable SSL
|
||||
#ssl = 0
|
||||
## example using SSL
|
||||
#[[news-europe.giganews.com:563]]
|
||||
#host = news-europe.giganews.com
|
||||
#port = 563
|
||||
#username = changeme
|
||||
#password = changeme
|
||||
#timeout = 120
|
||||
#connections = 5
|
||||
#fillserver = 0
|
||||
## 0 to disable SSL
|
||||
#ssl = 1
|
||||
[rss]
|
||||
[categories]
|
||||
[[unknown]]
|
||||
newzbin = Unknown
|
||||
dir = Unknown
|
||||
[[anime]]
|
||||
newzbin = Anime
|
||||
dir = Anime
|
||||
[[apps]]
|
||||
newzbin = Apps
|
||||
dir = Apps
|
||||
[[books]]
|
||||
newzbin = Books
|
||||
dir = Books
|
||||
[[consoles]]
|
||||
newzbin = Consoles
|
||||
dir = Consoles
|
||||
[[emulation]]
|
||||
newzbin = Emulation
|
||||
dir = Emulation
|
||||
[[games]]
|
||||
newzbin = Games
|
||||
dir = Games
|
||||
[[misc]]
|
||||
newzbin = Misc
|
||||
dir = Misc
|
||||
[[movies]]
|
||||
newzbin = Movies
|
||||
dir = Movies
|
||||
[[music]]
|
||||
newzbin = Music
|
||||
dir = Music
|
||||
[[pda]]
|
||||
newzbin = PDA
|
||||
dir = PDA
|
||||
[[resources]]
|
||||
newzbin = Resources
|
||||
dir = Resources
|
||||
[[tv]]
|
||||
newzbin = TV
|
||||
dir = TV
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
opts="start stop"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting SABnzbd"
|
||||
start-stop-daemon --start --quiet --user "${SAB_USER}" --pidfile "${SAB_PID}" -d "${SAB_PATH}" --exec python "${SAB_PY}" -- -d -f "${SAB_CFG}" --pid /var/run/sabnzbd/
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping SABnzbd"
|
||||
start-stop-daemon --stop --retry 30 --pidfile "${SAB_PID}"
|
||||
eend $?
|
||||
}
|
||||
@@ -1,121 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="3"
|
||||
inherit eutils multilib python
|
||||
|
||||
PYTHON_DEPEND="2:2.5"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
|
||||
MY_P="$P"
|
||||
MY_P="${MY_P/sab/SAB}"
|
||||
MY_P="${MY_P/_beta/Beta}"
|
||||
MY_P="${MY_P/_rc/RC}"
|
||||
|
||||
DESCRIPTION="Binary Newsgrabber written in Python"
|
||||
HOMEPAGE="http://www.sabnzbd.org/"
|
||||
SRC_URI="mirror://sourceforge/sabnzbdplus/${MY_P}-src.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+rar unzip rss +yenc ssl"
|
||||
|
||||
RDEPEND="
|
||||
>=app-arch/par2cmdline-0.4
|
||||
>=dev-python/celementtree-1.0.5
|
||||
>=dev-python/cheetah-2.0.1
|
||||
>=dev-python/cherrypy-3.2
|
||||
dev-python/pysqlite:2
|
||||
rar? ( >=app-arch/unrar-3.9.0 )
|
||||
unzip? ( >=app-arch/unzip-5.5.2 )
|
||||
yenc? ( >=dev-python/yenc-0.3 )
|
||||
ssl? ( >=dev-python/pyopenssl-0.7
|
||||
dev-libs/openssl )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/dos2unix"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
HOMEDIR="${ROOT}var/lib/${PN}"
|
||||
DHOMEDIR="/var/lib/${PN}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup "${PN}"
|
||||
enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
cp "${FILESDIR}/${PN}.ini" "${S}" \
|
||||
|| die "copying sample ${PN}.ini"
|
||||
|
||||
dodoc CHANGELOG.txt ISSUES.txt INSTALL.txt README.txt \
|
||||
Sample-PostProc.sh Sample-PostProc.cmd || die
|
||||
|
||||
insopts -m0660 -o root -g ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.conf" "${PN}" || die
|
||||
newinitd "${FILESDIR}/${PN}.init" "${PN}" || die
|
||||
|
||||
diropts -m0770 -o root -g ${PN}
|
||||
dodir /etc/${PN} || die
|
||||
|
||||
insinto /etc/${PN}/
|
||||
insopts -m0660 -o root -g ${PN}
|
||||
doins "${PN}.ini" || die "newins ${PN}.ini"
|
||||
|
||||
keepdir ${DHOMEDIR}
|
||||
for i in admin cache complete download dirscan incomplete \
|
||||
nzb_backup scripts; do
|
||||
keepdir ${DHOMEDIR}/${i} || die
|
||||
done
|
||||
|
||||
fowners -R root:${PN} ${DHOMEDIR} || die
|
||||
fperms -R 770 ${DHOMEDIR} || die
|
||||
|
||||
keepdir /var/log/${PN} || die
|
||||
fowners -R root:${PN} /var/log/${PN} || die
|
||||
fperms -R 770 /var/log/${PN} || die
|
||||
|
||||
keepdir /var/run/${PN} || die
|
||||
fowners -R root:${PN} /var/run/${PN} || die
|
||||
fperms -R 770 /var/run/${PN} || die
|
||||
|
||||
dodir /usr/share/${P} || die
|
||||
insinto /usr/share/${P}
|
||||
for i in interfaces sabnzbd email locale po tools util;do
|
||||
doins -r $i || die
|
||||
done
|
||||
|
||||
doins SABnzbd.py || die
|
||||
|
||||
dosym /usr/share/${P} /usr/share/${PN} || die
|
||||
|
||||
fowners -R root:${PN} /usr/share/${P} || die
|
||||
fperms -R 770 /usr/share/${P} || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize /usr/share/${P}/sabnzbd
|
||||
|
||||
einfo "SABnzbd has been installed with default directories in ${HOMEDIR}"
|
||||
einfo "Email templates can be found in: ${ROOT}usr/share/${P}/email"
|
||||
einfo ""
|
||||
einfo "By default, SABnzbd runs as the unprivileged user \"sabnzbd\""
|
||||
einfo "on port 8081 with no API key."
|
||||
einfo ""
|
||||
einfo "Be sure to that the \"sabnzbd\" user has the appropriate"
|
||||
einfo "permissions to read/write to any non-default directories"
|
||||
einfo "if changed in ${PN}.ini"
|
||||
einfo ""
|
||||
einfo "Configuration files are accessible only to users in the \"sabnzbd\" group"
|
||||
einfo "Run 'gpasswd -a <user> sabnzbd' to add a user to the sabnzbd group"
|
||||
einfo "so it can edit the appropriate configuration files"
|
||||
einfo ""
|
||||
ewarn "Please configure /etc/conf.d/${PN} before starting!"
|
||||
ewarn ""
|
||||
ewarn "Start with ${ROOT}etc/init.d/${PN} start"
|
||||
ewarn "Visit http://<host ip>:8081 to configure SABnzbd"
|
||||
ewarn "Default web username/password : sabnzbd/secret"
|
||||
}
|
||||
Reference in New Issue
Block a user