mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +00:00
new package:
- add transmission bittorent daemon
This commit is contained in:
parent
4f3970404c
commit
f8af0e6544
@ -67,6 +67,9 @@ case "$2" in
|
|||||||
# Network support
|
# Network support
|
||||||
[ "$NETWORK" = yes ] && $SCRIPTS/install network
|
[ "$NETWORK" = yes ] && $SCRIPTS/install network
|
||||||
|
|
||||||
|
# Transmission BitTorrent support
|
||||||
|
[ "$TRANSMISSION" = yes ] && $SCRIPTS/install transmission
|
||||||
|
|
||||||
# Graphic support
|
# Graphic support
|
||||||
[ ! "$DISPLAYSERVER" = no ] && $SCRIPTS/install $DISPLAYSERVER
|
[ ! "$DISPLAYSERVER" = no ] && $SCRIPTS/install $DISPLAYSERVER
|
||||||
|
|
||||||
|
31
packages/network/transmission/build
Normal file
31
packages/network/transmission/build
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
$SCRIPTS/build toolchain
|
||||||
|
$SCRIPTS/build zlib
|
||||||
|
$SCRIPTS/build openssl
|
||||||
|
$SCRIPTS/build curl
|
||||||
|
|
||||||
|
cd $PKG_BUILD
|
||||||
|
|
||||||
|
./configure --host=$TARGET_NAME \
|
||||||
|
--build=$HOST_NAME \
|
||||||
|
--prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--disable-debug \
|
||||||
|
--disable-static \
|
||||||
|
--enable-shared \
|
||||||
|
--enable-largefile \
|
||||||
|
--disable-gtk \
|
||||||
|
--disable-libnotify \
|
||||||
|
--disable-libappindicator \
|
||||||
|
--disable-libcanberra \
|
||||||
|
--disable-gconf2 \
|
||||||
|
--disable-nls \
|
||||||
|
--enable-cli \
|
||||||
|
--disable-mac \
|
||||||
|
--enable-daemon \
|
||||||
|
|
||||||
|
make
|
26
packages/network/transmission/config/transmission.conf
Normal file
26
packages/network/transmission/config/transmission.conf
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Setup Transmission BitTorrent daemon
|
||||||
|
|
||||||
|
# start transmission at boot ( yes / no )
|
||||||
|
TRANSMISSION_START="no"
|
||||||
|
|
||||||
|
# Allow RPC access to a comma-delimited whitelist of IP addresses.
|
||||||
|
# Wildcards can be specified in an address by using '*'. Default:
|
||||||
|
# "127.0.0.1" Example: "127.0.0.*,192.168.1.*"
|
||||||
|
TRANSMISSION_IP="127.0.0.1,192.168.0.*"
|
||||||
|
|
||||||
|
# use authentification for the web frontend ( yes / no )
|
||||||
|
TRANSMISSION_AUTH="yes"
|
||||||
|
|
||||||
|
# username for logging to the webfrontend
|
||||||
|
TRANSMISSION_USER="openelec"
|
||||||
|
|
||||||
|
# password for logging to the webfrontend
|
||||||
|
TRANSMISSION_PWD="openelec"
|
||||||
|
|
||||||
|
# incoming dir for not completed files (relative to downloaddir /
|
||||||
|
# "none" for disabling incoming dir)
|
||||||
|
TRANSMISSION_INCDIR="incoming"
|
||||||
|
|
||||||
|
# watch dir for .torrent files (relative to downloaddir /
|
||||||
|
# "none" for disabling watch dir)
|
||||||
|
TRANSMISSION_WATCHDIR="watch"
|
43
packages/network/transmission/init.d/43_transmission
Normal file
43
packages/network/transmission/init.d/43_transmission
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# start transmission bt daemon
|
||||||
|
#
|
||||||
|
# runlevels: openelec, textmode
|
||||||
|
|
||||||
|
[ -f /storage/.config/transmission.conf ] && . /storage/.config/transmission.conf || exit 0
|
||||||
|
|
||||||
|
(
|
||||||
|
if [ "$TRANSMISSION_START" = "yes" ]; then
|
||||||
|
|
||||||
|
progress "Starting Transmission BT daemon"
|
||||||
|
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG -w /storage/downloads"
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG -e /var/log/transmission.log"
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG -g /storage/.cache/transmission"
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG -a $TRANSMISSION_IP"
|
||||||
|
|
||||||
|
if [ "$TRANSMISSION_AUTH" = "yes" ]; then
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG -t"
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG -u $TRANSMISSION_USER"
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG -v $TRANSMISSION_PWD"
|
||||||
|
else
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG -T"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$TRANSMISSION_INCDIR" = "none" ]; then
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG --no-incomplete-dir"
|
||||||
|
else
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG --incomplete-dir \
|
||||||
|
/storage/downloads/$TRANSMISSION_INCDIR"
|
||||||
|
$IONICE mkdir -p /storage/downloads/$TRANSMISSION_INCDIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$TRANSMISSION_WATCHDIR" = "none" ]; then
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG --no-watch-dir"
|
||||||
|
else
|
||||||
|
TRANSMISSION_ARG="$TRANSMISSION_ARG --watch-dir \
|
||||||
|
/storage/downloads/$TRANSMISSION_WATCHDIR"
|
||||||
|
$IONICE mkdir -p /storage/downloads/$TRANSMISSION_WATCHDIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
transmission-daemon $TRANSMISSION_ARG
|
||||||
|
fi
|
||||||
|
)&
|
24
packages/network/transmission/install
Normal file
24
packages/network/transmission/install
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
$SCRIPTS/build zlib
|
||||||
|
$SCRIPTS/build openssl
|
||||||
|
$SCRIPTS/build curl
|
||||||
|
|
||||||
|
PKG_DIR=`find $PACKAGES -type d -name $1`
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/sbin
|
||||||
|
cp $PKG_BUILD/daemon/transmission-daemon $INSTALL/usr/sbin
|
||||||
|
cp $PKG_BUILD/daemon/transmission-remote $INSTALL/usr/sbin
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/bin
|
||||||
|
cp $PKG_BUILD/cli/transmissioncli $INSTALL/usr/bin
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/share/transmission/web
|
||||||
|
cp -R $PKG_BUILD/web/* $INSTALL/usr/share/transmission/web
|
||||||
|
find $INSTALL/usr/share/transmission/web -name "Makefile*" -exec rm -rf {} ";"
|
||||||
|
rm -rf $INSTALL/usr/share/transmission/web/LICENSE
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/config
|
||||||
|
cp $PKG_DIR/config/transmission.conf $INSTALL/usr/config
|
1
packages/network/transmission/url
Normal file
1
packages/network/transmission/url
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://mirrors.m0k.org/transmission/files/transmission-1.93.tar.bz2
|
@ -71,6 +71,9 @@
|
|||||||
# build and install Samba Server (yes / no)
|
# build and install Samba Server (yes / no)
|
||||||
SAMBA_SERVER="yes"
|
SAMBA_SERVER="yes"
|
||||||
|
|
||||||
|
# build and install Transmission BitTorrent daemon (yes / no)
|
||||||
|
TRANSMISSION="yes"
|
||||||
|
|
||||||
# todo (need for vdr?)
|
# todo (need for vdr?)
|
||||||
SERVICES="yes"
|
SERVICES="yes"
|
||||||
|
|
||||||
|
@ -71,6 +71,9 @@
|
|||||||
# build and install Samba Server (yes / no)
|
# build and install Samba Server (yes / no)
|
||||||
SAMBA_SERVER="yes"
|
SAMBA_SERVER="yes"
|
||||||
|
|
||||||
|
# build and install Transmission BitTorrent daemon (yes / no)
|
||||||
|
TRANSMISSION="yes"
|
||||||
|
|
||||||
# todo (need for vdr?)
|
# todo (need for vdr?)
|
||||||
SERVICES="yes"
|
SERVICES="yes"
|
||||||
|
|
||||||
|
@ -71,6 +71,9 @@
|
|||||||
# build and install Samba Server (yes / no)
|
# build and install Samba Server (yes / no)
|
||||||
SAMBA_SERVER="yes"
|
SAMBA_SERVER="yes"
|
||||||
|
|
||||||
|
# build and install Transmission BitTorrent daemon (yes / no)
|
||||||
|
TRANSMISSION="yes"
|
||||||
|
|
||||||
# todo (need for vdr?)
|
# todo (need for vdr?)
|
||||||
SERVICES="yes"
|
SERVICES="yes"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user