mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
neutrino: fix config file locations.
Origin commit data
------------------
Branch: ni/coolstream
Commit: e426104399
Author: [CST] Bas <bas@coolstreamtech.com>
Date: 2012-11-13 (Tue, 13 Nov 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
21
acinclude.m4
21
acinclude.m4
@@ -48,6 +48,9 @@ elif test "$TARGET" = "cdk"; then
|
||||
if test "$prefix" = "NONE"; then
|
||||
AC_MSG_ERROR(invalid prefix, you need to specify one in cdk mode)
|
||||
fi
|
||||
if test "$targetprefix" != "NONE"; then
|
||||
AC_DEFINE_UNQUOTED(TARGETPREFIX, "${targetprefix}",[The targets prefix])
|
||||
fi
|
||||
if test "$targetprefix" = "NONE"; then
|
||||
targetprefix=""
|
||||
fi
|
||||
@@ -216,18 +219,18 @@ if test "$$1_CONFIG" != "no"; then
|
||||
if test "$TARGET" = "cdk" && check_path "$$1_CONFIG"; then
|
||||
AC_MSG_$3([could not find a suitable version of $2]);
|
||||
else
|
||||
if test "$1" = "CURL"; then
|
||||
$1_CFLAGS=$($$1_CONFIG --cflags)
|
||||
if test "$1" = "CURL"; then
|
||||
$1_CFLAGS=$($$1_CONFIG --cflags)
|
||||
$1_LIBS=$($$1_CONFIG --libs)
|
||||
else
|
||||
if test "$1" = "FREETYPE"; then
|
||||
$1_CFLAGS=$($$1_CONFIG --cflags)
|
||||
$1_LIBS=$($$1_CONFIG --libs)
|
||||
else
|
||||
$1_CFLAGS=$($$1_CONFIG --prefix=$targetprefix --cflags)
|
||||
$1_LIBS=$($$1_CONFIG --prefix=$targetprefix --libs)
|
||||
if test "$1" = "FREETYPE"; then
|
||||
$1_CFLAGS=$($$1_CONFIG --cflags)
|
||||
$1_LIBS=$($$1_CONFIG --libs)
|
||||
else
|
||||
$1_CFLAGS=$($$1_CONFIG --prefix=$targetprefix --cflags)
|
||||
$1_LIBS=$($$1_CONFIG --prefix=$targetprefix --libs)
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@@ -43,7 +43,7 @@
|
||||
#include <gui/widget/menue.h>
|
||||
|
||||
#define MAXBOOKMARKS 10
|
||||
#define BOOKMARKFILE "/var/tuxbox/config/bookmarks"
|
||||
#define BOOKMARKFILE CONFIGDIR"/bookmarks"
|
||||
|
||||
class CBookmark
|
||||
{
|
||||
|
@@ -12,6 +12,10 @@
|
||||
#include <sys/types.h> //ntohs
|
||||
#include <netinet/in.h> //ntohs
|
||||
#include <inttypes.h> //ntohs
|
||||
|
||||
#include <global.h>
|
||||
#include <neutrino.h>
|
||||
#include <system/settings.h>
|
||||
// yhttpd
|
||||
#include "yhttpd.h"
|
||||
#include "ytypes_globals.h"
|
||||
@@ -22,9 +26,6 @@
|
||||
#include "neutrinoyparser.h"
|
||||
#include "neutrinoapi.h"
|
||||
|
||||
#include <global.h>
|
||||
#include <neutrino.h>
|
||||
#include <system/settings.h>
|
||||
|
||||
#include <zapit/channel.h>
|
||||
#include <zapit/zapit.h>
|
||||
|
@@ -101,26 +101,30 @@
|
||||
#define HTTPD_DEFAULT_LANGUAGE "English"
|
||||
#define AUTHUSER "root"
|
||||
|
||||
#define HTTPD_CONFIGDIR "/var/tuxbox/config"
|
||||
#define HTTPD_CONFIGFILE HTTPD_CONFIGDIR "/nhttpd.conf"
|
||||
#define YWEB_CONFIGFILE HTTPD_CONFIGDIR "/Y-Web.conf"
|
||||
#define PUBLICDOCUMENTROOT "/var/httpd"
|
||||
#define NEUTRINO_CONFIGFILE "/var/tuxbox/config/neutrino.conf"
|
||||
#ifndef TARGETPREFIX
|
||||
#define TARGETPREFIX ""
|
||||
#endif
|
||||
|
||||
#define HTTPD_CONFIGDIR TARGETPREFIX"/var/tuxbox/config"
|
||||
#define HTTPD_CONFIGFILE HTTPD_CONFIGDIR"/nhttpd.conf"
|
||||
#define YWEB_CONFIGFILE HTTPD_CONFIGDIR"/Y-Web.conf"
|
||||
#define PUBLICDOCUMENTROOT TARGETPREFIX"/var/httpd"
|
||||
#define NEUTRINO_CONFIGFILE TARGETPREFIX"/var/tuxbox/config/neutrino.conf"
|
||||
#define HOSTEDDOCUMENTROOT "/mnt/hosted"
|
||||
#define EXTRASDOCUMENTROOT "/mnt/hosted/extras"
|
||||
#define EXTRASDOCUMENTURL "/hosted/extras"
|
||||
#define ZAPITXMLPATH "/var/tuxbox/config/zapit"
|
||||
#define TUXBOX_LOGOS_URL "/usr/share/tuxbox/neutrino/icons/logos"
|
||||
#define ZAPITXMLPATH TARGETPREFIX"/var/tuxbox/config/zapit"
|
||||
#define TUXBOX_LOGOS_URL TARGETPREFIX"/usr/share/neutrino/icons/logos"
|
||||
|
||||
// switch for Box differences
|
||||
#ifdef CONFIG_SYSTEM_TUXBOX
|
||||
#define AUTHPASSWORD "dbox2"
|
||||
#define PRIVATEDOCUMENTROOT "/share/tuxbox/neutrino/httpd-y"
|
||||
#define PRIVATEDOCUMENTROOT TARGETPREFIX"/share/tuxbox/neutrino/httpd-y"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSTEM_TUXBOX_COOLSTREAM
|
||||
#define AUTHPASSWORD "coolstream"
|
||||
#define PRIVATEDOCUMENTROOT "/share/tuxbox/neutrino/httpd"
|
||||
#define PRIVATEDOCUMENTROOT TARGETPREFIX"/share/tuxbox/neutrino/httpd"
|
||||
#undef Y_CONFIG_BUILD_AS_DAEMON // No Daemon
|
||||
#endif
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -56,6 +56,7 @@ static CmodCache mod_cache; // static instance
|
||||
//-----------------------------------------------------------------------------
|
||||
#if defined(CONFIG_SYSTEM_TUXBOX) || defined(CONFIG_SYSTEM_TUXBOX_COOLSTREAM)
|
||||
#include "neutrinoapi.h"
|
||||
#include <config.h>
|
||||
static CNeutrinoAPI *NeutrinoAPI;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user