diff --git a/s3 b/s3 index 9a85d0f..ccde274 100755 --- a/s3 +++ b/s3 @@ -100,15 +100,15 @@ else echo "fail functions"; fi; -#begin -initializeANSI; #load colors +#initialize simplebuild +initializeANSI; # load colors +auto_langset; # echo "info $txt_load_ok"; -#check system +# check system ######################################################### syscheck;[ ! "$sanity" == "1" ] && echo "sanity fail" && sleep 5 && bye; +######################################################################## -#initialize simplebuild _create_native_profile; # put native datas to toolchains and configs -auto_langset; # echo "info $txt_load_ok"; _get_config_con "$1"; # echo $addons;exit; _create_module_arrays; # fill module arrays _fill_tc_array; # get # AVAI_TCLIST # INST_TCLIST # MISS_TCLIST @@ -202,6 +202,9 @@ else upload_cam "$2"; fi; exit;; + syscheck) + syscheck silent $2; + exit;; tedit) if [ -n "$2" ];then for telement in ${INST_TCLIST[@]};do if [ "$telement" == "$2" ];then @@ -224,29 +227,24 @@ else for t in "${AVAI_TCLIST[@]}";do if [ "$t" == "$1" ];then - if [ "${2:0:3}" == "-p=" ] || [ "${2:0:3}" == "-P=" ];then if [ -f "$profdir/${2#*=}" ];then pf=$(cat "$profdir/${2#*=}"); pf_name="${2#*=}"; fi; fi; - if [ "${3:0:3}" == "-p=" ] || [ "${3:0:3}" == "-P=" ];then if [ -f "$profdir/${2#*=}" ];then pf=$(cat "$profdir/${2#*=}"); pf_name="${2#*=}"; fi; fi; - if [ "${2:0:5}" == "-upx=" ] || [ "${2:0:5}" == "-UPX=" ];then UPX=${2#*=};USE_vars[USE_COMPRESS]="USE_COMPRESS=1"; fi; - - if [ "${2:0:5}" == "-upx=" ] || [ "${2:0:5}" == "-UPX=" ];then + if [ "${3:0:5}" == "-upx=" ] || [ "${3:0:5}" == "-UPX=" ];then UPX=${2#*=};USE_vars[USE_COMPRESS]="USE_COMPRESS=1"; fi; - [ "$pf" == "empty" ] && c_m_d="$*" || c_m_d="all_off $pf $*"; # set only active module with profiles for cmd in $c_m_d;do if [ "${cmd:0:3}" == "-c=" ] || [ "${cmd:0:3}" == "-C=" ];then @@ -276,7 +274,6 @@ else USE_VERBOSE) s3cfg_vars[USE_VERBOSE]=1;; esac; done; - _pre_build "$t"; exit; fi; diff --git a/support/configs/compiler_option b/support/configs/compiler_option index 1ecfb3b..60d75b1 100644 --- a/support/configs/compiler_option +++ b/support/configs/compiler_option @@ -1 +1 @@ --Os \ No newline at end of file +-O0 \ No newline at end of file diff --git a/support/configs/config.sh.master b/support/configs/config.sh.master index 5c34610..6198a80 100644 --- a/support/configs/config.sh.master +++ b/support/configs/config.sh.master @@ -5,748 +5,4 @@ protocols="MODULE_CAMD33 MODULE_CAMD35 MODULE_CAMD35_TCP MODULE_NEWCAMD MODULE_C readers="READER_NAGRA READER_NAGRA_MERLIN READER_IRDETO READER_CONAX READER_CRYPTOWORKS READER_SECA READER_VIACCESS READER_VIDEOGUARD READER_DRE READER_TONGFANG READER_BULCRYPT READER_GRIFFIN READER_DGCRYPT" card_readers="CARDREADER_PHOENIX CARDREADER_INTERNAL CARDREADER_SC8IN1 CARDREADER_MP35 CARDREADER_SMARGO CARDREADER_DB2COM CARDREADER_STAPI CARDREADER_STAPI5 CARDREADER_STINGER CARDREADER_DRECAS" -defconfig=" -CONFIG_WEBIF=y -CONFIG_WEBIF_LIVELOG=y -CONFIG_WEBIF_JQUERY=y -CONFIG_TOUCH=y -# CONFIG_WITH_SSL=n -CONFIG_HAVE_DVBAPI=y -# CONFIG_WITH_NEUTRINO=n -CONFIG_READ_SDT_CHARSETS=y -CONFIG_IRDETO_GUESSING=y -CONFIG_CS_ANTICASC=y -CONFIG_WITH_DEBUG=y -CONFIG_MODULE_MONITOR=y -CONFIG_WITH_LB=y -CONFIG_CS_CACHEEX=y -CONFIG_CW_CYCLE_CHECK=y -# CONFIG_LCDSUPPORT=n -# CONFIG_LEDSUPPORT=n -CONFIG_CLOCKFIX=y -# CONFIG_IPV6SUPPORT=n -# CONFIG_MODULE_CAMD33=n -CONFIG_MODULE_CAMD35=y -CONFIG_MODULE_CAMD35_TCP=y -CONFIG_MODULE_NEWCAMD=y -CONFIG_MODULE_CCCAM=y -CONFIG_MODULE_CCCSHARE=y -CONFIG_MODULE_GBOX=y -CONFIG_MODULE_RADEGAST=y -CONFIG_MODULE_SERIAL=y -CONFIG_MODULE_CONSTCW=y -CONFIG_MODULE_PANDORA=y -CONFIG_MODULE_SCAM=y -CONFIG_MODULE_GHTTP=y -CONFIG_WITH_CARDREADER=y -CONFIG_READER_NAGRA_COMMON=y -CONFIG_READER_NAGRA=y -CONFIG_READER_NAGRA_MERLIN=y -CONFIG_READER_IRDETO=y -CONFIG_READER_CONAX=y -CONFIG_READER_CRYPTOWORKS=y -CONFIG_READER_SECA=y -CONFIG_READER_VIACCESS=y -CONFIG_READER_VIDEOGUARD=y -CONFIG_READER_DRE=y -CONFIG_READER_TONGFANG=y -CONFIG_READER_BULCRYPT=y -CONFIG_READER_GRIFFIN=y -CONFIG_READER_DGCRYPT=y -CARDREADER_PHOENIX=y -CARDREADER_DRECAS=y -CARDREADER_INTERNAL=y -CARDREADER_SC8IN1=y -CARDREADER_MP35=y -CARDREADER_SMARGO=y -CARDREADER_DB2COM=y -CARDREADER_STAPI=y -# CARDREADER_STAPI5=n -CARDREADER_STINGER=y -" - -usage() { - echo \ -"OSCam config -Usage: `basename $0` [parameters] - - -g, --gui Start interactive configuration - - -s, --show-enabled [param] Show enabled configuration options. - -Z, --show-disabled [param] Show disabled configuration options. - -S, --show-valid [param] Show valid configuration options. - Possible params: all, addons, protocols, - readers, card_readers - - -l, --list-config List active configuration variables. - -e, --enabled [option] Check if certain option is enabled. - -d, --disabled [option] Check if certain option is disabled. - - -E, --enable [option] Enable config option. - -D, --disable [option] Disable config option. - - The following [option]s enable or disable multiple settings. - all - Everything. - addons - All addons. - protocols - All protocols. - readers - All readers. - card_readers - All card readers. - - -R, --restore Restore default config. - - -v, --oscam-version Display OSCam version. - -r, --oscam-revision Display OSCam SVN revision. - - -O, --detect-osx-sdk-version Find where OS X SDK is located - - -h, --help Display this help text. - -Examples: - # Enable WEBIF and SSL - ./config.sh --enable WEBIF WITH_SSL - - # Disable WEBIF but enable WITH_SSL - ./config.sh --disable WEBIF --enable WITH_SSL - - # Restore defaults and disable WEBIF and READER_NAGRA - ./config.sh --restore --disable WEBIF READER_NAGRA - - # Use default config with only one enabled reader - ./config.sh --restore --disable readers --enable READER_BULCRYPT - - # Disable everything and enable webif one module and one card reader - ./config.sh --disable all --enable WEBIF MODULE_NEWCAMD READER_BULCRYPT - - # Disable all card readers except INTERNAL - ./config.sh -D card_readers -E CARDREADER_INTERNAL - -Available options: - addons: $addons - protocols: $protocols - readers: $readers - card_readers: $card_readers -" -} - -# Output directory for config.mak set by --objdir parameter -OBJDIR=. - -# Use flags set by --use-flags parameter -USE_FLAGS= - -have_flag() { - for FLAG in $USE_FLAGS - do - [ "$FLAG" = "$1" ] && return 0 - done - return 1 -} - -have_all_flags() { - for opt ; do - have_flag $opt || return 1 - done - return 0 -} - -have_any_flags() { - for opt ; do - have_flag $opt && return 0 - done - return 1 -} - -not_have_flag() { - for FLAG in $USE_FLAGS - do - [ "$FLAG" = "$1" ] && return 1 - done - return 0 -} - -not_have_all_flags() { - for opt ; do - not_have_flag $opt || return 1 - done - return 0 -} - -not_have_any_flags() { - for opt ; do - not_have_flag $opt && return 0 - done - return 1 -} - -# Config functions -enabled() { - grep "^\#define $1 1$" config.h >/dev/null 2>/dev/null - return $? -} - -disabled() { - grep "^\#define $1 1$" config.h >/dev/null 2>/dev/null - test $? = 0 && return 1 - return 0 -} - -enabled_all() { - for opt ; do - enabled $opt || return 1 - done - return 0 -} - -disabled_all() { - for opt ; do - disabled $opt || return 1 - done - return 0 -} - -enabled_any() { - for opt ; do - enabled $opt && return 0 - done - return 1 -} - -disabled_any() { - for opt ; do - disabled $opt && return 0 - done - return 1 -} - -list_enabled() { - for OPT in $@ - do - enabled $OPT && echo $OPT - done -} - -list_disabled() { - for OPT in $@ - do - disabled $OPT && echo $OPT - done -} - -write_enabled() { - defined_file="webif/is_defined.txt" - pages_c="webif/pages.c" - rm -f $defined_file $pages_c 2>/dev/null - for OPT in $(get_opts) WITH_CARDREADER - do - enabled $OPT && printf "%s\n" $OPT >> $defined_file - done -} - -valid_opt() { - [ "$1" = "WITH_CARDREADER" ] && return 0 # Special case - echo $addons $protocols $readers $card_readers | grep -w "$1" >/dev/null - return $? -} - -enable_opt() { - valid_opt $1 && disabled $1 && { - sed -e "s|//#define $1 1$|#define $1 1|g" config.h > config.h.tmp && \ - mv config.h.tmp config.h - echo "Enable $1" - } -} - -enable_opts() { - for OPT in $@ - do - enable_opt $OPT - done -} - -disable_opt() { - valid_opt $1 && enabled $1 && { - sed -e "s|#define $1 1$|//#define $1 1|g" config.h > config.h.tmp && \ - mv config.h.tmp config.h - echo "Disable $1" - } -} - -disable_opts() { - for OPT in $@ - do - disable_opt $OPT - done -} - -get_opts() { - OPTS="" - case "$1" in - 'addons') OPTS="$addons" ; ;; - 'protocols') OPTS="$protocols" ; ;; - 'readers') OPTS="$readers" ; ;; - 'card_readers') OPTS="$card_readers" ; ;; - *) OPTS="$addons $protocols $readers $card_readers" ; ;; - esac - echo $OPTS -} - -update_deps() { - # Calculate dependencies - enabled_any $(get_opts readers) $(get_opts card_readers) && enable_opt WITH_CARDREADER >/dev/null - disabled_all $(get_opts readers) $(get_opts card_readers) && disable_opt WITH_CARDREADER >/dev/null - disabled WEBIF && disable_opt WEBIF_LIVELOG >/dev/null - disabled WEBIF && disable_opt WEBIF_JQUERY >/dev/null - enabled MODULE_CCCSHARE && enable_opt MODULE_CCCAM >/dev/null - enabled_any CARDREADER_DB2COM CARDREADER_MP35 CARDREADER_SC8IN1 CARDREADER_STINGER && enable_opt CARDREADER_PHOENIX >/dev/null -} - -list_config() { - update_deps - # Handle use flags - have_flag USE_STAPI && echo "CONFIG_WITH_STAPI=y" || echo "# CONFIG_WITH_STAPI=n" - have_flag USE_STAPI5 && echo "CONFIG_WITH_STAPI5=y" || echo "# CONFIG_WITH_STAPI5=n" - have_flag USE_COOLAPI && echo "CONFIG_WITH_COOLAPI=y" || echo "# CONFIG_WITH_COOLAPI=n" - have_flag USE_COOLAPI2 && echo "CONFIG_WITH_COOLAPI2=y" || echo "# CONFIG_WITH_COOLAPI2=n" - have_flag USE_SU980 && echo "CONFIG_WITH_SU980=y" || echo "# CONFIG_WITH_SU980=n" - have_flag USE_AZBOX && echo "CONFIG_WITH_AZBOX=y" || echo "# CONFIG_WITH_AZBOX=n" - have_flag USE_MCA && echo "CONFIG_WITH_MCA=y" || echo "# CONFIG_WITH_MCA=n" - have_flag USE_LIBCRYPTO && echo "CONFIG_WITH_LIBCRYPTO=y" || echo "# CONFIG_WITH_LIBCRYPTO=n" - for OPT in $addons $protocols WITH_CARDREADER $readers - do - enabled $OPT && echo "CONFIG_$OPT=y" || echo "# CONFIG_$OPT=n" - done - for OPT in $card_readers - do - if [ $OPT = CARDREADER_INTERNAL ] - then - # Internal card reader is actually three different readers depending on USE flags - enabled $OPT && have_flag USE_AZBOX && echo "CONFIG_${OPT}_AZBOX=y" || echo "# CONFIG_${OPT}_AZBOX=n" - enabled $OPT && have_any_flags USE_COOLAPI USE_SU980 && echo "CONFIG_${OPT}_COOLAPI=y" || echo "# CONFIG_${OPT}_COOLAPI=n" - enabled $OPT && have_flag USE_COOLAPI2 && echo "CONFIG_${OPT}_COOLAPI2=y" || echo "# CONFIG_${OPT}_COOLAPI2=n" - enabled $OPT && not_have_all_flags USE_AZBOX USE_COOLAPI USE_COOLAPI2 USE_SU980 && echo "CONFIG_${OPT}_SCI=y" || echo "# CONFIG_${OPT}_SCI=n" - continue - fi - if [ $OPT = CARDREADER_STAPI ] - then - # Enable CARDREADER_STAPI only if USE_STAPI is set - enabled $OPT && have_flag USE_STAPI && echo "CONFIG_$OPT=y" || echo "# CONFIG_$OPT=n" - continue - fi - if [ $OPT = CARDREADER_STAPI5 ] - then - # Enable CARDREADER_STAPI5 only if USE_STAPI5 is set - enabled $OPT && have_flag USE_STAPI5 && echo "CONFIG_$OPT=y" || echo "# CONFIG_$OPT=n" - continue - fi - enabled $OPT && echo "CONFIG_$OPT=y" || echo "# CONFIG_$OPT=n" - done - have_flag USE_LIBUSB && echo "CONFIG_CARDREADER_SMART=y" || echo "# CONFIG_CARDREADER_SMART=n" - have_flag USE_PCSC && echo "CONFIG_CARDREADER_PCSC=y" || echo "# CONFIG_CARDREADER_PCSC=n" - # Extra modules/libraries - enabled_any MODULE_GBOX WEBIF && echo "CONFIG_LIB_MINILZO=y" || echo "# CONFIG_LIB_MINILZO=n" - not_have_flag USE_LIBCRYPTO && echo "CONFIG_LIB_AES=y" || echo "# CONFIG_LIB_AES=n" - enabled MODULE_CCCAM && echo "CONFIG_LIB_RC6=y" || echo "# CONFIG_LIB_RC6=n" - not_have_flag USE_LIBCRYPTO && enabled MODULE_CCCAM && echo "CONFIG_LIB_SHA1=y" || echo "# CONFIG_LIB_SHA1=n" - enabled_any READER_DRE MODULE_SCAM READER_VIACCESS READER_NAGRA_MERLIN && echo "CONFIG_LIB_DES=y" || echo "# CONFIG_LIB_DES=n" - enabled_any MODULE_CCCAM READER_NAGRA READER_NAGRA_MERLIN READER_SECA && echo "CONFIG_LIB_IDEA=y" || echo "# CONFIG_LIB_IDEA=n" - not_have_flag USE_LIBCRYPTO && enabled_any READER_CONAX READER_CRYPTOWORKS READER_NAGRA READER_NAGRA_MERLIN && echo "CONFIG_LIB_BIGNUM=y" || echo "# CONFIG_LIB_BIGNUM=n" - enabled READER_NAGRA_MERLIN && echo "CONFIG_LIB_MDC2=y" || echo "# CONFIG_LIB_MDC2=n" - enabled READER_NAGRA_MERLIN && echo "CONFIG_LIB_FAST_AES=y" || echo "# CONFIG_LIB_FAST_AES=n" - enabled READER_NAGRA_MERLIN && echo "CONFIG_LIB_SHA256=y" || echo "# CONFIG_LIB_SHA256=n" - enabled_any READER_NAGRA READER_NAGRA_MERLIN && echo "CONFIG_READER_NAGRA_COMMON=y" || echo "# CONFIG_READER_NAGRA_COMMON=n" -} - -make_config_c() { - OPENSSL=$(which openssl 2>/dev/null) - if [ "$OPENSSL" = "" ] - then - echo "// openssl not found!" - echo "const char *config_mak = \"CFG: openssl not found in PATH!\";" - else - echo "// This file is generated by ./config.sh --objdir $OBJDIR --make-config.mak" - echo "const char *config_mak =" - printf " \"\\\nCFG: strings FILE | sed -n 's/^CFG~//p' | openssl enc -d -base64 | gzip -d\\\n\"\n" - gzip -9 < $OBJDIR/config.mak | $OPENSSL enc -base64 | while read LINE - do - printf " \"CFG~%s\\\\n\"\n" "$LINE" - done - echo " ;" - fi -} - -make_config_mak() { - TMPFILE=$(mktemp -t config.mak.XXXXXX) || exit 1 - list_config > $TMPFILE - [ ! -d $OBJDIR ] && mkdir -p $OBJDIR 2>/dev/null - cmp $TMPFILE $OBJDIR/config.mak >/dev/null 2>/dev/null - if [ $? != 0 ] - then - cat $TMPFILE > $OBJDIR/config.mak - make_config_c > $OBJDIR/config.c - else - make_config_c > $TMPFILE - cmp $TMPFILE $OBJDIR/config.c >/dev/null 2>/dev/null - [ $? != 0 ] && cat $TMPFILE > $OBJDIR/config.c - fi - rm -rf $TMPFILE -} - -check_test() { - if [ "$(cat $tempfileconfig | grep "^#define $1 1$")" != "" ]; then - echo "on" - else - echo "off" - fi -} - -disable_all() { - for i in $1; do - sed -e "s/^#define ${i} 1$/\/\/#define ${i} 1/g" $tempfileconfig > ${tempfileconfig}.tmp && \ - mv ${tempfileconfig}.tmp $tempfileconfig - done -} - -enable_package() { - for i in $(cat $tempfile); do - strip=$(echo $i | sed "s/\"//g") - sed -e "s/\/\/#define ${strip} 1$/#define ${strip} 1/g" $tempfileconfig > ${tempfileconfig}.tmp && \ - mv ${tempfileconfig}.tmp $tempfileconfig - done -} - -print_components() { - clear - echo "You have selected the following components:" - echo - echo "Add-ons:" - for i in $addons; do - printf "\t%-20s: %s\n" $i $(check_test "$i") - done - - echo - echo "Protocols:" - for i in $protocols; do - printf "\t%-20s: %s\n" $i $(check_test "$i") - done - - echo - echo "Readers:" - for i in $readers; do - printf "\t%-20s: %s\n" $i $(check_test "$i") - done - - echo - echo "Card readers:" - for i in $card_readers; do - printf "\t%-20s: %s\n" $i $(check_test "$i") - done - - cp -f $tempfileconfig $configfile -} - -menu_addons() { - ${DIALOG} --checklist "\nChoose add-ons:\n " $height $width $listheight \ - WEBIF "Web Interface" $(check_test "WEBIF") \ - WEBIF_LIVELOG "LiveLog" $(check_test "WEBIF_LIVELOG") \ - WEBIF_JQUERY "Jquery onboard (if disabled webload)" $(check_test "WEBIF_JQUERY") \ - TOUCH "Touch Web Interface" $(check_test "TOUCH") \ - WITH_SSL "OpenSSL support" $(check_test "WITH_SSL") \ - HAVE_DVBAPI "DVB API" $(check_test "HAVE_DVBAPI") \ - WITH_NEUTRINO "Neutrino support" $(check_test "WITH_NEUTRINO") \ - READ_SDT_CHARSETS "DVB API read-sdt charsets" $(check_test "READ_SDT_CHARSETS") \ - IRDETO_GUESSING "Irdeto guessing" $(check_test "IRDETO_GUESSING") \ - CS_ANTICASC "Anti cascading" $(check_test "CS_ANTICASC") \ - WITH_DEBUG "Debug messages" $(check_test "WITH_DEBUG") \ - MODULE_MONITOR "Monitor" $(check_test "MODULE_MONITOR") \ - WITH_LB "Loadbalancing" $(check_test "WITH_LB") \ - CS_CACHEEX "Cache exchange" $(check_test "CS_CACHEEX") \ - CW_CYCLE_CHECK "CW Cycle Check" $(check_test "CW_CYCLE_CHECK") \ - LCDSUPPORT "LCD support" $(check_test "LCDSUPPORT") \ - LEDSUPPORT "LED support" $(check_test "LEDSUPPORT") \ - CLOCKFIX "Clockfix (disable on old systems!)" $(check_test "CLOCKFIX") \ - IPV6SUPPORT "IPv6 support (experimental)" $(check_test "IPV6SUPPORT") \ - 2> ${tempfile} - - opt=${?} - if [ $opt != 0 ]; then return; fi - - disable_all "$addons" - enable_package -} - -menu_protocols() { - ${DIALOG} --checklist "\nChoose protocols:\n " $height $width $listheight \ - MODULE_CAMD33 "camd 3.3" $(check_test "MODULE_CAMD33") \ - MODULE_CAMD35 "camd 3.5 UDP" $(check_test "MODULE_CAMD35") \ - MODULE_CAMD35_TCP "camd 3.5 TCP" $(check_test "MODULE_CAMD35_TCP") \ - MODULE_NEWCAMD "newcamd" $(check_test "MODULE_NEWCAMD") \ - MODULE_CCCAM "CCcam" $(check_test "MODULE_CCCAM") \ - MODULE_CCCSHARE "CCcam share" $(check_test "MODULE_CCCSHARE") \ - MODULE_GBOX "gbox" $(check_test "MODULE_GBOX") \ - MODULE_RADEGAST "radegast" $(check_test "MODULE_RADEGAST") \ - MODULE_SERIAL "Serial" $(check_test "MODULE_SERIAL") \ - MODULE_CONSTCW "constant CW" $(check_test "MODULE_CONSTCW") \ - MODULE_PANDORA "Pandora" $(check_test "MODULE_PANDORA") \ - MODULE_GHTTP "Ghttp" $(check_test "MODULE_GHTTP") \ - MODULE_SCAM "scam" $(check_test "MODULE_SCAM") \ - 2> ${tempfile} - - opt=${?} - if [ $opt != 0 ]; then return; fi - - disable_all "$protocols" - enable_package -} - -menu_readers() { - ${DIALOG} --checklist "\nChoose readers (CA systems):\n " $height $width $listheight \ - READER_NAGRA "Nagravision" $(check_test "READER_NAGRA") \ - READER_NAGRA_MERLIN "Nagra Merlin" $(check_test "READER_NAGRA_MERLIN") \ - READER_IRDETO "Irdeto" $(check_test "READER_IRDETO") \ - READER_CONAX "Conax" $(check_test "READER_CONAX") \ - READER_CRYPTOWORKS "Cryptoworks" $(check_test "READER_CRYPTOWORKS") \ - READER_SECA "Seca" $(check_test "READER_SECA") \ - READER_VIACCESS "Viaccess" $(check_test "READER_VIACCESS") \ - READER_VIDEOGUARD "NDS Videoguard" $(check_test "READER_VIDEOGUARD") \ - READER_DRE "DRE Crypt" $(check_test "READER_DRE") \ - READER_TONGFANG "Tongfang" $(check_test "READER_TONGFANG") \ - READER_BULCRYPT "Bulcrypt" $(check_test "READER_BULCRYPT") \ - READER_GRIFFIN "Griffin" $(check_test "READER_GRIFFIN") \ - READER_DGCRYPT "DGCrypt" $(check_test "READER_DGCRYPT") \ - 2> ${tempfile} - - opt=${?} - if [ $opt != 0 ]; then return; fi - - disable_all "$readers" - enable_package -} - -menu_card_readers() { - ${DIALOG} --checklist "\nChoose card reader drivers:\n " $height $width $listheight \ - CARDREADER_PHOENIX "Phoenix/mouse" $(check_test "CARDREADER_PHOENIX") \ - CARDREADER_INTERNAL "Internal (Sci,Azbox,Cool)" $(check_test "CARDREADER_INTERNAL") \ - CARDREADER_SC8IN1 "SC8in1" $(check_test "CARDREADER_SC8IN1") \ - CARDREADER_MP35 "AD-Teknik MP 3.6/USB Phoenix" $(check_test "CARDREADER_MP35") \ - CARDREADER_SMARGO "Argolis Smargo Smartreader" $(check_test "CARDREADER_SMARGO") \ - CARDREADER_DB2COM "dbox2" $(check_test "CARDREADER_DB2COM") \ - CARDREADER_STAPI "STAPI" $(check_test "CARDREADER_STAPI") \ - CARDREADER_STAPI5 "STAPI5" $(check_test "CARDREADER_STAPI5") \ - CARDREADER_STINGER "STINGER" $(check_test "CARDREADER_STINGER") \ - CARDREADER_DRECAS "DRECAS" $(check_test "CARDREADER_DRECAS") \ - 2> ${tempfile} - - opt=${?} - if [ $opt != 0 ]; then return; fi - - disable_all "$card_readers" - enable_package -} - - -config_dialog() { - height=30 - width=65 - listheight=16 - - DIALOG=${DIALOG:-`which dialog`} - if [ -z "${DIALOG}" ]; then - echo "Please install dialog package." 1>&2 - exit 1 - fi - - configfile=config.h - tempfile=$(mktemp -t oscam-config.dialog.XXXXXX) || exit 1 - tempfileconfig=$(mktemp -t oscam-config.h.XXXXXX) || exit 1 - trap 'rm -f $tempfile $tempfileconfig $tempfileconfig.bak 2>/dev/null' INT TERM EXIT - cp -f $configfile $tempfileconfig - - while true; do - ${DIALOG} --menu "\nSelect category:\n " $height $width $listheight \ - Add-ons "Add-ons" \ - Protocols "Network protocols" \ - Readers "Readers (CA systems)" \ - CardReaders "Card reader drivers" \ - Save "Save" \ - 2> ${tempfile} - - opt=${?} - if [ $opt != 0 ]; then clear; exit; fi - - menuitem=$(cat $tempfile) - case $menuitem in - Add-ons) menu_addons ;; - Protocols) menu_protocols ;; - Readers) menu_readers ;; - CardReaders) menu_card_readers ;; - Save) - print_components - update_deps - write_enabled - exit 0 - ;; - esac - done -} - -# Change working directory to the directory where the script is -cd $(dirname $0) - -if [ $# = 0 ] -then - usage - exit 1 -fi - -while [ $# -gt 0 ] -do - case "$1" in - '-g'|'--gui'|'--config'|'--menuconfig') - config_dialog - break - ;; - '-s'|'--show-enabled'|'--show') - shift - list_enabled $(get_opts $1) - # Take special care of USE_xxx flags - if [ "$1" = "card_readers" ] - then - have_flag USE_LIBUSB && echo "CARDREADER_SMART" - have_flag USE_PCSC && echo "CARDREADER_PCSC" - fi - break - ;; - '-Z'|'--show-disabled') - shift - list_disabled $(get_opts $1) - break - ;; - '-S'|'--show-valid') - shift - for OPT in $(get_opts $1) - do - echo $OPT - done - break - ;; - '-E'|'--enable') - shift - while [ "$1" != "" ] - do - case "$1" in - -*) - update_deps - continue 2 - ;; - all|addons|protocols|readers|card_readers) - enable_opts $(get_opts $1) - ;; - *) - enable_opt "$1" - ;; - esac - shift - done - update_deps - write_enabled - ;; - '-D'|'--disable') - shift - while [ "$1" != "" ] - do - case "$1" in - -*) - update_deps - continue 2 - ;; - all|addons|protocols|readers|card_readers) - disable_opts $(get_opts $1) - ;; - *) - disable_opt "$1" - ;; - esac - shift - done - update_deps - write_enabled - ;; - '-R'|'--restore') - echo $defconfig | sed -e 's|# ||g' | xargs printf "%s\n" | grep "=y$" | sed -e 's|^CONFIG_||g;s|=.*||g' | - while read OPT - do - enable_opt "$OPT" - done - echo $defconfig | sed -e 's|# ||g' | xargs printf "%s\n" | grep "=n$" | sed -e 's|^CONFIG_||g;s|=.*||g' | - while read OPT - do - disable_opt "$OPT" - done - update_deps - write_enabled - ;; - '-e'|'--enabled') - enabled $2 && echo "Y" && exit 0 || echo "N" && exit 1 - break - ;; - '-d'|'--disabled') - disabled $2 && echo "Y" && exit 0 || echo "N" && exit 1 - break - ;; - '-v'|'--oscam-version') - grep CS_VERSION globals.h | cut -d\" -f2 - break - ;; - '-r'|'--oscam-revision') - revision=`(svnversion -n . 2>/dev/null || printf 0) | sed 's/.*://; s/[^0-9]*$//; s/^$/0/'` - if [ "$revision" = "0" ] - then - which git > /dev/null 2>&1 && revision=`git log -10 --pretty=%B | grep git-svn-id | head -n 1 | sed -n -e 's/^.*trunk@\([0-9]*\) .*$/\1/p'` - fi - echo $revision - break - ;; - '-O'|'--detect-osx-sdk-version') - shift - OSX_VER=${1:-10.10} - for DIR in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX{$OSX_VER,10.10,10.9,10.8,10.7}.sdk /Developer/SDKs/MacOSX{$OSX_VER,10.6,10.5}.sdk - - do - if test -d $DIR - then - echo $DIR - exit 0 - fi - done - echo Cant_find_OSX_SDK - break - ;; - '-l'|'--list-config') - list_config - exit 0 - ;; - '-m'|'--make-config.mak') - make_config_mak - exit 0 - ;; - '--use-flags') - shift - USE_FLAGS=$1 - ;; - '--objdir') - shift - OBJDIR=$1 - ;; - '-h'|'--help') - usage - break - ;; - *) - echo "[WARN] Unknown parameter: $1" >&2 - ;; - esac - # Some shells complain when there are no more parameters to shift - test $# -gt 0 && shift -done - -exit 0 +#just fill for first start diff --git a/support/configs/simplebuild.config b/support/configs/simplebuild.config index 5e6eac0..308f5ea 100644 --- a/support/configs/simplebuild.config +++ b/support/configs/simplebuild.config @@ -1,8 +1,8 @@ DIRECTMENU=0 -NO_SVN_AUTOUPDATE=1 +NO_SVN_AUTOUPDATE=0 SAVE_LISTSMARGO=0 S3_UPDATE_CHECK=0 USE_VERBOSE=0 USE_COMPRESS=0 USE_TARGZ=0 -delete_oscamdebugbinary=1 +delete_oscamdebugbinary=0 diff --git a/support/functions/_cmd_build b/support/functions/_cmd_build index cd907d8..439216e 100644 --- a/support/functions/_cmd_build +++ b/support/functions/_cmd_build @@ -16,6 +16,7 @@ _cmd_build(){ #set build defaults CROSS="$tcdir/$_toolchainname/bin/$_compiler"; + [ "$_stagingdir" == "1" ] && export STAGING_DIR="$tcdir/$_toolchainname"; [ -f "$configdir/compiler_option" ] && co=$(cat "$configdir/compiler_option") || co="-O2"; #toolchain defaults @@ -148,10 +149,10 @@ fi; "CC_WARN=$cc_warn" \ "CROSS=$CROSS" $STAPI_LIB $USESTRING 2>&1 \ |tee -a "$ldir/$log_name" \ - |grep --line-buffered -v 'BFD' \ + |grep --line-buffered -v 'BFD\|^/' \ |grep --line-buffered '^CC\|^GEN\|UseFlags\| CONF_DIR =\|Binary\|LINK\|STRIP\|BUILD\|Addons\|Protocols\|Readers\|CardRdrs\|^/' \ |sed -e "s/^|/"$Y" |/g;s/^LINK/"$P" LINK ------->$W/g;s/^STRIP/"$P" STRIP ------>$W/g;s/^CC\|^BUILD/"$G" BUILD ------>$W/g;s/^GEN/"$C" GEN -------->/g; - s/WEBIF_//g;s/WITH_//g;s/MODULE_//g;s/CS_//g;s/HAVE_//g;s/_CHARSETS//g;s/CW_CYCLE_CHECK/CWCC/g;s/SUPPORT//g;" + s/WEBIF_//g;s/WITH_//g;s/MODULE_//g;s/CS_//g;s/HAVE_//g;s/_CHARSETS//g;s/CW_CYCLE_CHECK/CWCC/g;s/SUPPORT//g;"; #calc buildtime timer_stop; diff --git a/support/functions/_gui_build b/support/functions/_gui_build index 51cca4b..aef969d 100644 --- a/support/functions/_gui_build +++ b/support/functions/_gui_build @@ -15,6 +15,7 @@ _gui_build(){ ologo >"$ldir/$log_name"; [ -f "$configdir/max_cpus" ] && cpus="$(cat "$configdir/max_cpus")" || cpus="$(CPUS)"; CROSS="$tcdir/$_toolchainname/bin/$_compiler"; + [ "$_stagingdir" == "1" ] && export STAGING_DIR="$tcdir/$_toolchainname"; [ -f "$configdir/compiler_option" ] && co=$(cat "$configdir/compiler_option") || co="-O2"; #make clean @@ -67,7 +68,7 @@ _gui_build(){ make -j"$cpus" \ "CONF_DIR=$_oscamconfdir_default" "OSCAM_BIN=$bdir/$oscam_name" "CC_OPTS=$co $cc_opts" "CC_WARN=$cc_warn" "CROSS=$CROSS" $stapivar $USESTRING_ 2>&1 \ |tee "$ldir/$log_name" \ - |grep --line-buffered -v 'BFD' \ + |grep --line-buffered -v 'BFD\|^/' \ |grep --line-buffered '^CC\|^GEN\|UseFlags\| CONF_DIR =\|Binary\|LINK\|STRIP\|BUILD\|Addons\|Protocols\|Readers\|CardRdrs\|^/' \ |sed -u "s/^|/ |/g;s/^LINK/ LINK >/g;s/^STRIP/ STRIP >/g;s/^CC\|^BUILD/ BUILD >/g;s/^GEN/ GEN >/g;s/WEBIF_//g;s/WITH_//g;s/MODULE_//g;s/CS_//g;s/HAVE_//g;s/_CHARSETS//g;s/CW_CYCLE_CHECK/CWCC/g;s/SUPPORT//g;" timer_stop; @@ -114,4 +115,4 @@ _gui_build(){ #link log ln -sf "$ldir/$log_name" "$workdir/lastbuild.log"; [ -f "$targztmp" ] && rm -rf "$targztmp"; -}; \ No newline at end of file +}; diff --git a/support/functions/_logos b/support/functions/_logos index 47862ad..e6b0cbe 100644 --- a/support/functions/_logos +++ b/support/functions/_logos @@ -10,12 +10,7 @@ slogo(){ }; bye(){ clear; - echo -en "$re_$w_l"; - printf "\n\t\t simplebuild made for"; - echo -e "$c_l"; - slogo; - echo -e "\e[8;50H \e[8;50f" && echo -en "$g_l\t\t\t\t\t\t by gorgone $re_"; - echo -e "\n"; + s3logo; exit; }; s3logo(){ diff --git a/support/functions/_sys_check b/support/functions/_sys_check index 2a823ff..3852b64 100644 --- a/support/functions/_sys_check +++ b/support/functions/_sys_check @@ -1,12 +1,10 @@ #!/bin/bash prerequisites(){ - failed=0; missing="(not found)"; [[ $1 ]] && output=": &&" || output="echo"; - -$output -e "$w_l\n CHECK for binaries\n ==================\n"; +$output -e "$w_l CHECK for binaries\n ==================\n"; # check for a forgotten and unusable 'upx' and remove this crap [ -x "$bindir"/upx ] && "$bindir"/upx -V &>/dev/null || rm -f "$bindir"/upx &>/dev/null; @@ -14,16 +12,19 @@ $output -e "$w_l\n CHECK for binaries\n ==================\n"; for e in "${binvars[@]}"; do if hash "$e" 2>/dev/null; then - $output -e "$w_l have\t$g_l$e\t\t$y_l$(which "$e")"; + einfo=$(which "$e"); + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + $output -e "$w_l have\t$g_l$e $y_l$einfo"; else failed=1; - $output -e "$r_l need\t$w_l$e\t\t$r_l$missing"; + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + $output -e "$r_l need\t$w_l$e $r_l$missing"; fi; done; if hash upx 2>/dev/null; then upxversion=($(upx -V | awk 'NR==1 { verok=$2>=3.91; printf "%.2f %i", $2, verok }')); - $output -n -e "$w_l version$g_l upx$y_l ${upxversion[0]}"; + $output -n -e "$w_l have$g_l upx$y_l\t\t"$w_l"Version$P ${upxversion[0]}"; if [ ${upxversion[1]} == 1 ]; then $output -e "$g_l ok"; else @@ -38,10 +39,12 @@ for e in "${headervars[@]}"; do e1=$(find /usr/include/* | grep -m1 "$e"); if [ ${#e1} -gt 8 ]; then - $output -e "$w_l have\t$g_l$e$w_l$y_l\t$e1" + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + $output -e "$w_l have\t$g_l$e$y_l $e1" else failed=1; - $output -e "$r_l need\t$w_l$e\t\t$r_l$missing"; + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + $output -e "$r_l need\t$w_l$e$r_l $missing"; fi; done; @@ -51,10 +54,12 @@ for e in "${libvars[@]}"; do e1=$(find /usr/lib* 2>/dev/null | grep -m1 "$e"); if [ ${#e1} -gt 8 ]; then - $output -e "$w_l have\t$g_l$e$w_l$y_l\t$e1" + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + $output -e "$w_l have\t$g_l$e$y_l $e1" else failed=1; - $output -e "$r_l need\t$w_l$e\t\t$r_l$missing"; + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + $output -e "$r_l need\t$w_l$e$r_l $missing"; fi; done; @@ -64,12 +69,15 @@ if [ "$(uname -m)" == "x86_64" ]; then e1="/usr/lib/libz.so"; e2="/usr/lib32/libz.so.1"; if [ -f $e1 ]; then - $output -e "$w_l have\t$g_l$e$w_l$y_l\t$e1" + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + $output -e "$w_l have\t$g_l$e$y_l $e1" elif [ -f $e2 ]; then - $output -e "$w_l have\t$g_l$e$w_l$y_l\t$e2" + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + $output -e "$w_l have\t$g_l$e$y_l $e2" else failed=1; - $output -e "$r_l need\t$w_l$e\t\t$r_l$missing"; + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + $output -e "$r_l need\t$w_l$e$r_l $missing"; fi fi @@ -83,19 +91,17 @@ return $failed; # Example: # syscheck debian_os # call installer 'debian_os' (Do not care about the actual Linux distribution.) -syscheck(){ -[[ $1 ]] && [ "$1" != "auto" ] && override="$1"; +syscheck(){ +[[ $1 ]] && [ "$1" != "auto" ] && override="$1";now=$2; if [ -d "$osdir" ];then cd "$osdir";x=(*); for i in "${x[@]}";do source "$i"; done fi - binvars=( dialog grep gawk wget tar bzip2 svn xz upx patch gcc make scp sshpass openssl dos2unix ); headervars=( crypto.h libusb.h pcsclite.h pthread.h ); libvars=( libccidtwin.so ); - sanity=1; -if ! prerequisites silent; then - echo -e "$w_l"; clear; ologo; +if ! prerequisites silent || [ "$now" == "now" ]; then + clear; s3logo; prerequisites; sanity=0; installer="unknown"; @@ -108,10 +114,10 @@ if ! prerequisites silent; then # SuSE (/etc/SuSE-release is depreciated -> check for YaST2) [ -d /etc/YaST2 ] && installer="suse_os"; # Optional override via parameter - [[ $override ]] && installer=$override; - echo -e "\n$w_l Selected installer: $installer"; + #[[ $override ]] && installer=$override; + echo -e "\n$w_l Selected installer: $P$installer\n"; if type -t "$installer" >/dev/null; then - $installer && prerequisites && sanity=1; + $installer && prerequisites silent && sanity=1; else echo -e "\n$r_l Needs manual installation."; fi diff --git a/support/os/debian_ubuntu.install b/support/os/debian_ubuntu.install index 61db87b..5b597f9 100644 --- a/support/os/debian_ubuntu.install +++ b/support/os/debian_ubuntu.install @@ -1,34 +1,12 @@ #!/bin/bash debian_os(){ +[ -f /etc/os-release ] && source /etc/os-release || return 1; +[ "$ID" == "ubuntu" ] && prefix="sudo" || prefix=''; install_log="$ldir/os-install.log"; failed=0; -prefix="sudo"; packages=""; -echo -n >"$install_log" &2>/dev/null; - -echo -e "$w_l\n INSTALLATION\n ============\n"; - -debian_version=$(sed -n 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/p' /etc/debian_version 2>/dev/null); - -if [[ $debian_version ]]; then - [ "$debian_version" -lt 7 ] && { echo -e "$r_l This system is not supported anymore!\n"; return 1; } - [ "$debian_version" -gt 8 ] && echo -e "$r_l This installer is still in the testing stage!"; -else - # all known Ubuntu systems have 'lsb_release' - ! hash lsb_release 2>/dev/null && { echo -e "$r_l System not recognised -> Abort!\n"; return 1; } - ubuntu_version=$(lsb_release -rs | cut -f 1 -d '.'); - [ "$ubuntu_version" -lt 12 ] && { echo -e "$r_l This system is not supported anymore!\n"; return 1; } - [ "$ubuntu_version" -gt 16 ] && echo -e "$r_l This installer is still in the testing stage!"; -fi - -# without sudo no user installation allowed -hash sudo 2>/dev/null || { [ "$(whoami)" != "root" ] && { echo -e "$r_l You need to be root for that!\n"; return 1; } } - -# root needs no sudo -[ "$(whoami)" == "root" ] && prefix=""; - for e in "${binvars[@]}"; do if ! hash "$e" 2>/dev/null; then @@ -41,7 +19,8 @@ do inst="xz-utils"; ;; esac; - echo -e "$w_l select $g_l$e$y_l\tfrom: $inst"; + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + echo -e "$w_l select $g_l$e$y_l from: $inst"; packages="$packages $inst"; fi; done; @@ -64,7 +43,8 @@ do inst="libc-dev-bin"; ;; esac; - echo -e "$w_l select $g_l$e$y_l\tfrom: $inst"; + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + echo -e "$w_l select $g_l$e$y_l from: $inst"; packages="$packages $inst"; fi; done; @@ -78,7 +58,8 @@ do inst="libccid"; ;; esac; - echo -e "$w_l select $g_l$e$y_l\tfrom: $inst"; + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + echo -e "$w_l select $g_l$e$y_l from: $inst"; packages="$packages $inst"; fi; done; @@ -87,25 +68,29 @@ if [ "$(uname -m)" == "x86_64" ] && [ ! -f /usr/lib32/libz.so.1 ]; then if [ ! -f /usr/lib32/libz.so.1 ]; then e="zlib32"; inst="lib32z1"; - echo -e "$w_l select $g_l$e$y_l\tfrom: $inst"; + printf -v pad %40s; e=$e$pad; e=${e:0:15}; + echo -e "$w_l select $g_l$e$y_l from: $inst"; packages="$packages $inst"; fi fi if [ ${#packages} -gt 0 ]; then - echo -n -e "$w_l update$g_l package list..."; - echo "+++ $(date): apt-get -y update" >> "$install_log" - $prefix apt-get -y update >> "$install_log" 2>&1; - echo -e "$y_l done"; - echo -n -e "$w_l install$g_l selected packages$y_l please wait..."; - echo "+++ $(date): apt-get -y install$packages" >> "$install_log" - $prefix apt-get -y install $packages >> "$install_log" 2>&1 || failed=1; - if [ $failed == 0 ]; then - echo -e "$y_l done"; + echo -n >"$install_log" &2>/dev/null; + echo -e "$w_l\n INSTALLATION\n ============"; + if [ "$EUID" -ne 0 ]; then + echo -en "$r_l\n enter root "; + $prefix su root -c "\ + echo -e '\033[1;37m\n' ' 'update'\033[1;32m' package list...'\n'; + apt-get -y update |grep --line-buffered -v '^T\|(\|^I\|^H' 2>&1; + echo -e '\n\033[1;37m install\033[1;32m $txt_selected packages\033[1;33m $txt_wait\n'; + apt-get -y -qq install $packages |grep --line-buffered '(' |grep --line-buffered -v 'nicht;" else - echo -e "$r_l failed!"; - fi -fi + echo -e '\033[1;37m' ' 'update'\033[1;32m' package list...'\n'; + apt-get -y update |grep --line-buffered -v '^T\|(\|^I\|^H' 2>&1; + echo -e "\n\033[1;37m install\033[1;32m packages \033[1;33m"$txt_wait'\n'; + apt-get -y -qq install $packages |grep --line-buffered '(' |grep --line-buffered -v 'nicht'; + fi; +fi; if hash upx 2>/dev/null; then upxversion=($(upx -V | awk 'NR==1 { verok=$2>=3.91; printf "%.2f %i", $2, verok }')); diff --git a/support/toolchains.cfg/arm_dream b/support/toolchains.cfg/arm_dream new file mode 100644 index 0000000..eb6d9be --- /dev/null +++ b/support/toolchains.cfg/arm_dream @@ -0,0 +1,19 @@ +_toolchainname="arm_dream" +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="Dreambox ARM" +_oscamconfdir_default="/etc/tuxbox/config" +_oscamconfdir_custom="/var/" + +_compiler="arm-newnigma2-linux-gnueabihf-" +_sysroot="arm-newnigma2-linux-gnueabihf" +_libsearchdir="/usr/lib" +_toolchainfilename="YXJtX2RyZWFtLnRhci54eg=="; +_md5sum="ba520f3c9ce3d4e6263751f0781e4161 Toolchain-arm_dream.tar.xz"; +_tc_info="\n + !!! Dreambox ARM Toolchain !!!\n + this toolchain is compatible with\n + DM900\n +\n +"; + +_tc_infolines="6" diff --git a/support/toolchains.cfg/dockstar b/support/toolchains.cfg/dockstar new file mode 100644 index 0000000..ee0fb3b --- /dev/null +++ b/support/toolchains.cfg/dockstar @@ -0,0 +1,19 @@ +_toolchainname="dockstar"; +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="Dockstar"; +_oscamconfdir_default="/var/tuxbox/config"; +_oscamconfdir_custom="" + +_compiler="arm-none-linux-gnueabi-"; +_sysroot="arm-none-linux-gnueabi/libc/usr"; +_libsearchdir="/lib"; +_toolchainfilename="RG9ja3N0YXJfc191X3AudGFyLnh6"; +_md5sum="f259eac25e917a0b9b564d014d171c39 Toolchain-Dockstar_s_u_p.tar.xz"; +_tc_info="\n + !!! Dockstar !!!\n + this toolchain is compatible with\n + fill with info\n +\n +"; + +_tc_infolines="6"; diff --git a/support/toolchains.cfg/dreambox_fpu b/support/toolchains.cfg/dreambox_fpu new file mode 100644 index 0000000..e4527b2 --- /dev/null +++ b/support/toolchains.cfg/dreambox_fpu @@ -0,0 +1,19 @@ +_toolchainname="dreambox_fpu"; +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="Dreambox & VU+ (OE 2.0 FPU)"; +_oscamconfdir_default="/var/tuxbox/config"; +_oscamconfdir_custom="" + +_compiler="mipsel-newnigma2-linux-gnu-"; +_sysroot="mipsel-newnigma2-linux-gnu/sysroot"; +_libsearchdir="/lib"; +_toolchainfilename="RHJlYW1ib3gtSFdfc191X3AudGFyLnh6"; +_md5sum="fe042292f6c0022c3b474fcd3a9baf18 Toolchain-Dreambox-HW_s_u_p.tar.xz"; +_tc_info="\n + !!! beware the box must have FPU !!!\n + this toolchain is compatible with\n +\n +Dreambox: 500HD,800HD,800SE,7020HD,7025,8000\n +VU+ : Zero,Solo²,SoloSE,SoloSE(V2),Duo,Duo²"; + +_tc_infolines="6" diff --git a/support/toolchains.cfg/fritz73xxOS65 b/support/toolchains.cfg/fritz73xxOS65 new file mode 100644 index 0000000..733bef8 --- /dev/null +++ b/support/toolchains.cfg/fritz73xxOS65 @@ -0,0 +1,19 @@ +_toolchainname="fritz73xxOS65"; +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="Fritzbox73xx Fritz OS V6.5"; +_oscamconfdir_default="/var/media/ftp/uStor01/external/mod/etc/conf"; +_oscamconfdir_custom="" + +_compiler="mips-linux-uclibc-"; +_sysroot=""; +_libsearchdir="/usr/lib/freetz"; +_toolchainfilename="RnJpdHo3M3h4T1M2NVgudGFyLnh6"; +_md5sum="47468540657e0ed2c896695529aeb739 Toolchain-Fritz73xxOS65X.tar.xz"; +_tc_info="\n + !!! Fritzbox73xx OS65 !!!\n + this toolchain is compatible with\n + fill with info\n +\n +"; + +_tc_infolines="6"; diff --git a/support/toolchains.cfg/fritz74xxOS65 b/support/toolchains.cfg/fritz74xxOS65 new file mode 100644 index 0000000..d5c8e4d --- /dev/null +++ b/support/toolchains.cfg/fritz74xxOS65 @@ -0,0 +1,19 @@ +_toolchainname="fritz74xxOS65"; +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="Fritzbox74xx Fritz OS V6.5"; +_oscamconfdir_default="/var/media/ftp/uStor01/external/mod/etc/conf/oscam.config"; +_oscamconfdir_custom="" + +_compiler="mips-linux-uclibc-"; +_sysroot=""; +_libsearchdir="/usr/lib/freetz"; +_toolchainfilename="RnJpdHo3NHh4T1M2NVgudGFyLnh6"; +_md5sum="3f62b2be7e94ad04061ad463cad4b936 Toolchain-Fritz74xxOS65X.tar.xz"; +_tc_info="\n + !!! Fritzbox74xx OS65 !!!\n + this toolchain is compatible with\n + fill with info\n +\n +"; + +_tc_infolines="6"; diff --git a/support/toolchains.cfg/hd51 b/support/toolchains.cfg/hd51 new file mode 100644 index 0000000..c4ecddf --- /dev/null +++ b/support/toolchains.cfg/hd51 @@ -0,0 +1,18 @@ +_toolchainname="hd51"; +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="AX/Mutant HD51"; +_oscamconfdir_default="/etc/tuxbox/config/oscam/"; +_oscamconfdir_custom="" + +_compiler="arm-unknown-linux-gnueabihf-"; +_sysroot="arm-unknown-linux-gnueabihf/sys-root/"; +_libsearchdir="/lib"; +_toolchainfilename="aGQ1MS50YXIueHoK"; +_md5sum="f238272cebc476c2396ed6fa74a93d86 Toolchain-hd51.tar.xz"; +_tc_info="\n +!!! beware the box must have FPU !!!\n +this toolchain is compatible with\n +\n +AX/Mutant : HD51"; + +_tc_infolines="5" diff --git a/support/toolchains.cfg/ineos b/support/toolchains.cfg/ineos new file mode 100644 index 0000000..ff26fbb --- /dev/null +++ b/support/toolchains.cfg/ineos @@ -0,0 +1,20 @@ +_toolchainname="ineos"; +default_use="USE_UTF8"; +_description="Ineos ZX4"; +_oscamconfdir_default="/var/keys"; +_oscamconfdir_custom="" + +_compiler="csky-linux-"; +_sysroot=""; +_libsearchdir="/lib"; +_toolchainfilename="aW5lb3MudGFyLnh6Cg=="; +_md5sum="ce54fc7ce4cf58d76070ff86f62440e3 Toolchain-ineos.tar.xz"; +_block="USE_LIBCRYPTO USE_LIBUSB SMARGO" +_tc_info="\n + !!! Ineos ZX4 !!!\n + this toolchain is compatible with\n + fill with info\n +\n +"; + +_tc_infolines="6"; diff --git a/support/toolchains.cfg/mca b/support/toolchains.cfg/mca new file mode 100644 index 0000000..5828364 --- /dev/null +++ b/support/toolchains.cfg/mca @@ -0,0 +1,20 @@ +_toolchainname="mca"; +default_use="USE_UTF8 USE_LIBCRYPTO USE_MCA"; +_description="MATRIX CAM AIR"; +_oscamconfdir_default="/var/mca/d1"; +_oscamconfdir_custom="" + +_compiler="arm-none-linux-gnueabi-"; +_sysroot="51be223df048291e6bd863a7f8ec4ff8 Toolchain-Matrix_s.tar.xz"; +_libsearchdir="/lib"; +_toolchainfilename="TWF0cml4X3MudGFyLnh6"; +_md5sum=""; +_block="USE_PCSC USE_LIBUSB" +_tc_info="\n + !!! MATRIX CAM AIR !!!\n + this toolchain is compatible with\n + fill with info\n +\n +"; + +_tc_infolines="6"; diff --git a/support/toolchains.cfg/mipsel b/support/toolchains.cfg/mipsel new file mode 100644 index 0000000..583fbc8 --- /dev/null +++ b/support/toolchains.cfg/mipsel @@ -0,0 +1,20 @@ +_toolchainname="mipsel"; +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="Dreambox & VU+ (OE 1.6)"; +_oscamconfdir_default="/var/tuxbox/config"; +_oscamconfdir_custom="" + +_compiler="mipsel-unknown-linux-gnu-"; +_sysroot="mipsel-unknown-linux-gnu/sys-root/usr"; +_libsearchdir="/lib"; +_toolchainfilename="TUlQUy1UdXhib3gtT0UxLjZfc191X3AudGFyLnh6"; +_md5sum="09cfbf19e4f4e7c1a2c033dd12a09b4a Toolchain-MIPS-Tuxbox-OE1.6_s_u_p.tar.xz"; +_tc_info="\n + !!! Dreambox & VU+ (OE 1.6) !!!\n + this toolchain is compatible with\n +\n +Dreambox: dm500,dm800,500HD,800HD,800SE,7020HD, + 7025,8000\n +VU+ : Zero,Solo²,SoloSE,SoloSE(V2),Duo,Duo²"; + +_tc_infolines="6"; diff --git a/support/toolchains.cfg/mipsel_s3_ssl098 b/support/toolchains.cfg/mipsel_s3_ssl098 index 2837fa3..41f29f2 100644 --- a/support/toolchains.cfg/mipsel_s3_ssl098 +++ b/support/toolchains.cfg/mipsel_s3_ssl098 @@ -5,7 +5,7 @@ _oscamconfdir_default="/var/keys"; _oscamconfdir_custom="" _compiler="mipsel-simplebuild3-linux-gnu-"; -_sysroot="mipsel-simplebuild3-linux-gnu/sysroot"; +_sysroot="/"; _libsearchdir="/lib"; _toolchainfilename="bWlwc2VsX3MzX3NzbDA5OC50YXIueHoK"; _md5sum="966c590d2178f6d401c93993eba4f7f9 Toolchain-mipsel_s3_ssl098.tar.xz"; @@ -17,4 +17,4 @@ Dreambox: dm500,dm800,500HD,800HD,800SE,7020HD, 7025,8000\n VU+ : Zero,Solo²,SoloSE,SoloSE(V2),Duo,Duo²"; -_tc_infolines="6"; +_tc_infolines="6"; \ No newline at end of file diff --git a/support/toolchains.cfg/mipsel_s3_ssl100 b/support/toolchains.cfg/mipsel_s3_ssl100 index 8312452..a8c1ae8 100644 --- a/support/toolchains.cfg/mipsel_s3_ssl100 +++ b/support/toolchains.cfg/mipsel_s3_ssl100 @@ -5,7 +5,7 @@ _oscamconfdir_default="/var/keys"; _oscamconfdir_custom="" _compiler="mipsel-simplebuild3-linux-gnu-"; -_sysroot="mipsel-simplebuild3-linux-gnu/sysroot"; +_sysroot="/"; _libsearchdir="/lib"; _toolchainfilename="bWlwc2VsX3MzX3NzbDEwMC50YXIueHoK"; _md5sum="b1ff681eff62b0e639d37e001b97e1e0 Toolchain-mipsel_s3_ssl100.tar.xz"; @@ -17,4 +17,4 @@ Dreambox: dm500,dm800,500HD,800HD,800SE,7020HD, 7025,8000\n VU+ : Zero,Solo²,SoloSE,SoloSE(V2),Duo,Duo²"; -_tc_infolines="6"; +_tc_infolines="6"; \ No newline at end of file diff --git a/support/toolchains.cfg/mipsel_s3_ssl102 b/support/toolchains.cfg/mipsel_s3_ssl102 index 91b35a1..e09cf11 100644 --- a/support/toolchains.cfg/mipsel_s3_ssl102 +++ b/support/toolchains.cfg/mipsel_s3_ssl102 @@ -5,7 +5,7 @@ _oscamconfdir_default="/var/keys"; _oscamconfdir_custom="" _compiler="mipsel-simplebuild3-linux-gnu-"; -_sysroot="mipsel-simplebuild3-linux-gnu/sysroot"; +_sysroot="/mipsel-simplebuild3-linux-gnu/sysroot"; _libsearchdir="/lib"; _toolchainfilename="bWlwc2VsX3MzX3NzbDEwMi50YXIueHoK"; _md5sum="985ba51ae41cacd008fb6c7490e2f287 Toolchain-mipsel_s3_ssl102.tar.xz" diff --git a/support/toolchains.cfg/mipsoe20 b/support/toolchains.cfg/mipsoe20 new file mode 100644 index 0000000..aaad67f --- /dev/null +++ b/support/toolchains.cfg/mipsoe20 @@ -0,0 +1,19 @@ +_toolchainname="mipsoe20"; +default_use="USE_UTF8 USE_LIBCRYPTO"; +_oscamconfdir_default="/var/tuxbox/config"; +_oscamconfdir_custom="" + +_compiler="mipsel-unknown-linux-gnu-"; +_sysroot="mipsel-unknown-linux-gnu/sysroot"; +_libsearchdir="/lib"; +_description='Dreambox & Vu+ (OE 2.0)'; +_toolchainfilename="TUlQUy1UdXhib3gtT0UyLjBfc191X3AudGFyLnh6"; +_md5sum="fe5d838d580a400628e6d55b64b674ad Toolchain-MIPS-Tuxbox-OE2.0_s_u_p.tar.xz"; +_tc_info="\n + !!! beware the box must have FPU !!!\n + this toolchain is compatible with\n +\n +Dreambox: 500HD,800HD,800SE,7020HD,7025,8000\n +VU+ : Zero,Solo²,SoloSE,SoloSE(V2),Duo,Duo²"; + +_tc_infolines="6" diff --git a/support/toolchains.cfg/native b/support/toolchains.cfg/native index 49f38fb..8c6d154 100644 --- a/support/toolchains.cfg/native +++ b/support/toolchains.cfg/native @@ -2,11 +2,8 @@ _toolchainname="native"; default_use="USE_UTF8 USE_LIBCRYPTO"; _oscamconfdir_default="/usr/local/etc"; _oscamconfdir_custom="not_set"; -_compiler="x86_64-linux-gnu-"; -_tc_info="Native System Compiler gcc (Debian 8.2.0-16) 8.2.0 -Copyright (C) 2018 Free Software Foundation, Inc. -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."; +_compiler="-"; +_tc_info="Native System Compiler "; _libsearchdir="/lib"; _menuname="native"; _sysroot="/"; diff --git a/support/toolchains.cfg/openpli40 b/support/toolchains.cfg/openpli40 index 13bbca1..cfee349 100644 --- a/support/toolchains.cfg/openpli40 +++ b/support/toolchains.cfg/openpli40 @@ -8,7 +8,7 @@ _compiler="mipsel-openpli40-linux-gnu-" _sysroot="mipsel-openpli40-linux-gnu/sysroot" _libsearchdir="/lib" _toolchainfilename="T3BlblBMSV80LjAudGFyLnh6"; - +_md5sum="ceae5af8c66867010845e0e4094265ff Toolchain-OpenPLI_4.0.tar.xz"; _tc_info="\n !!! beware the box must have FPU !!!\n this toolchain is compatible with\n diff --git a/support/toolchains.cfg/openwrt1505cc b/support/toolchains.cfg/openwrt1505cc index 6bcb462..141faf3 100644 --- a/support/toolchains.cfg/openwrt1505cc +++ b/support/toolchains.cfg/openwrt1505cc @@ -2,13 +2,14 @@ _toolchainname="openwrt1505cc"; default_use="USE_UTF8 USE_LIBCRYPTO"; _description="OpenWRT 15.05.1 Chaos Calmer" _oscamconfdir_default="/etc/config/oscam" -_oscamconfdir_custom="/etc/config/oscam" +_oscamconfdir_custom="" _stagingdir=1 _compiler="mips-openwrt-linux-uclibc-" _sysroot="" _libsearchdir="/lib" _toolchainfilename="b3BlbndydDE1MDVjYy50YXIueHo="; +_md5sum="1bfdea68ca58574f2db73cfeabdb1d8b Toolchain-openwrt1505cc.tar.xz"; _block="USE_PCSC" _tc_info="\n !!! OpenWRT 15.05.1 Chaos Calmer !!!\n @@ -17,4 +18,4 @@ _tc_info="\n \n "; -_tc_infolines="6" \ No newline at end of file +_tc_infolines="6" diff --git a/support/toolchains.cfg/ppcold b/support/toolchains.cfg/ppcold new file mode 100644 index 0000000..c567798 --- /dev/null +++ b/support/toolchains.cfg/ppcold @@ -0,0 +1,20 @@ +_toolchainname="ppcold" +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="Dbox2 / Dreambox DM500 and DM500-S" +_oscamconfdir_default="/var/tuxbox/config" +_oscamconfdir_custom="" + +_compiler="powerpc-linux-" +_sysroot="" +_libsearchdir="/lib" +_toolchainfilename="UFBDLVR1eGJveC1vbGRfcy50YXIueHo="; +_md5sum="d1db3a6b9fb743d0f6753fb72d755924 Toolchain-PPC-Tuxbox-old_s.tar.xz"; +_block="USE_PCSC USE_LIBUSB" +_tc_info="\n + !!! PPC-OLD !!!\n + this toolchain is compatible with\n + fill with info\n +\n +"; + +_tc_infolines="6" diff --git a/support/toolchains.cfg/rasb_hard b/support/toolchains.cfg/rasb_hard new file mode 100644 index 0000000..e5a94b8 --- /dev/null +++ b/support/toolchains.cfg/rasb_hard @@ -0,0 +1,19 @@ +_toolchainname="rasb_hard" +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="RaspberryPI Hardware FPU" +_oscamconfdir_default="/usr/local/etc" +_oscamconfdir_custom="" + +_compiler="arm-bcm2708hardfp-linux-gnueabi-" +_sysroot="arm-bcm2708hardfp-linux-gnueabi/sysroot/usr" +_libsearchdir="/lib" +_toolchainfilename="UmFzcGJlcnJ5cGlfaGFyZF9zX3VfcC50YXIueHo="; +_md5sum="7ed1e67eb296a2f06f5cb29903f5eb60 Toolchain-Raspberrypi_hard_s_u_p.tar.xz"; +_tc_info="\n + !!! RaspberryPI Hardware FPU !!!\n + this toolchain is compatible with\n + fill with info\n +\n +"; + +_tc_infolines="6" diff --git a/support/toolchains.cfg/samsungtv b/support/toolchains.cfg/samsungtv new file mode 100644 index 0000000..348009e --- /dev/null +++ b/support/toolchains.cfg/samsungtv @@ -0,0 +1,19 @@ +_toolchainname="samsungtv" +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="SamsungTV" +_oscamconfdir_default="/mtd_rwcommon/oscam" +_oscamconfdir_custom="" + +_compiler="arm-v7a8v3r1-linux-gnueabi-" +_sysroot="arm-v7a8v3r1-linux-gnueabi/sys-root/usr" +_libsearchdir="/lib" +_toolchainfilename="U2Ftc3VuZ1RWLnRhci54eg=="; +_md5sum="47108c32139fcab26a788cf4376c8009 Toolchain-SamsungTV.tar.xz"; +_tc_info="\n + !!! Samsung TV !!!\n + this toolchain is compatible with\n + fill with info\n +\n +"; + +_tc_infolines="6" diff --git a/support/toolchains.cfg/sh4 b/support/toolchains.cfg/sh4 new file mode 100644 index 0000000..fb2310e --- /dev/null +++ b/support/toolchains.cfg/sh4 @@ -0,0 +1,20 @@ +_toolchainname="sh4" +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="SH4" +_oscamconfdir_default="/var/keys" +_oscamconfdir_custom="" + +stapi_allowed="1" +_compiler="sh4-linux-" +_sysroot="sh4-linux/sys-root/usr" +_libsearchdir="/lib" +_toolchainfilename="U0g0X3NfdV9wLnRhci54eg=="; +_md5sum="9ed4bb3668b648a28331d84e4e09c03c Toolchain-SH4_s_u_p.tar.xz"; +_tc_info="\n + !!! SH4 !!!\n + this toolchain is compatible with\n + fill with info\n +\n +"; + +_tc_infolines="6" diff --git a/support/toolchains.cfg/sh_4 b/support/toolchains.cfg/sh_4 new file mode 100644 index 0000000..96c75d6 --- /dev/null +++ b/support/toolchains.cfg/sh_4 @@ -0,0 +1,20 @@ +_toolchainname="sh_4" +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="SH4" +_oscamconfdir_default="/var/keys" +_oscamconfdir_custom="" + +stapi_allowed="1" +_compiler="sh4-streamboard-linux-gnu-" +_sysroot="sh4-streamboard-linux-gnu/sysroot/usr" +_libsearchdir="/lib" +_toolchainfilename="TkVXU0g0LVN0cmVhbWJvYXJkX3NfdV9wLnRhci54eg"; +_md5sum="f4d44bfa8fb5bec9abacf5c2b0ca45dd Toolchain-NEWSH4-Streamboard_s_u_p.tar.xz"; +_tc_info="\n + !!! SH4 New Toolchain !!!\n + this toolchain is compatible with\n + fill with info\n +\n +"; + +_tc_infolines="6" diff --git a/support/toolchains.cfg/solo4k b/support/toolchains.cfg/solo4k index 4d8a377..4be492f 100644 --- a/support/toolchains.cfg/solo4k +++ b/support/toolchains.cfg/solo4k @@ -5,10 +5,10 @@ _oscamconfdir_default="/var/tuxbox/config"; _oscamconfdir_custom="" _compiler="arm-linux-gnueabihf-"; -_sysroot="arm-linux-gnueabihf/"; +_sysroot="arm-linux-gnueabihf"; _libsearchdir="/lib"; _toolchainfilename="c29sbzRrLnRhci54ego="; -_md5sum="74d4de6ac2f4812426635cf54e3d85fa Toolchain-solo4k.tar.xz"; +_md5sum="74d4de6ac2f4812426635cf54e3d85fa Toolchain-solo4k.tar.xz"; _tc_info="\n !!! beware the box must have FPU !!!\n this toolchain is compatible with\n diff --git a/support/toolchains.cfg/syn_atom b/support/toolchains.cfg/syn_atom new file mode 100644 index 0000000..1183542 --- /dev/null +++ b/support/toolchains.cfg/syn_atom @@ -0,0 +1,19 @@ +_toolchainname="syn_atom" +default_use="USE_UTF8 USE_LIBCRYPTO"; +_description="SYN_ATOM" +_oscamconfdir_default="/usr/local/etc" +_oscamconfdir_custom="" + +_compiler="x86_64-linux-gnu-" +_sysroot="" +_libsearchdir="/lib" +_toolchainfilename="U3luX0F0b20udGFyLnh6"; +_md5sum="f9dcb6623f163af10ec2ec761e82f124 Toolchain-Syn_Atom.tar.xz"; +_tc_info="\n + !!! Synology ATOM !!!\n + this toolchain is compatible with\n + fill with info\n +\n +"; + +_tc_infolines="6" diff --git a/support/translation/nl b/support/translation/nl index fb4ba7e..f4d87eb 100644 --- a/support/translation/nl +++ b/support/translation/nl @@ -21,12 +21,12 @@ txt_sel='selecteren'; txt_delete='verwijderen'; txt_found='gevonden'; txt_create='maak'; -txt_loading=' laden'; +txt_loading=' laden'; #8 txt_profile='profiel'; txt_profiles='Profielen'; txt_conf='Configuratie'; txt_parameter='Parameter'; -txt_extracting='uitpakken'; +txt_extracting=' uitpakken'; #10 txt_wait='momentje...'; txt_existing='bestaande'; txt_ssh_profiles='SSH $txt_profiles'; diff --git a/support/translation/pl b/support/translation/pl index 39f5fe4..1c379ca 100644 --- a/support/translation/pl +++ b/support/translation/pl @@ -21,11 +21,11 @@ txt_sel='wybierz'; txt_delete='usuń'; txt_found='znaleziono'; txt_create='utwórz'; -txt_loading='ładuj'; +txt_loading=' ładuj'; #8 txt_profiles='profil'; txt_conf='kofiguracja'; txt_parameter='parametr'; -txt_extracting='rozpakuj'; +txt_extracting=' rozpakuj'; #10 txt_wait='proszę czekać ...'; txt_existing='istniejący'; txt_ssh_profiles='SSH Profile'; diff --git a/support/translation/tr b/support/translation/tr index 464d0bf..f3cca9d 100644 --- a/support/translation/tr +++ b/support/translation/tr @@ -21,7 +21,7 @@ txt_sel='seçmek'; txt_delete='sil'; txt_found='bulundu'; txt_create='oluştur'; -txt_loading='load'; #7karakter +txt_loading=' load'; #8karakter txt_profile='profil'; txt_profiles='Profiller'; txt_conf='yapılandırma';