- acinclude: introduce --with-controldir=PATH and --with-controldir_var=PATH for control scripts

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-01-26 17:05:43 +01:00
committed by Thilo Graf
parent 36e4bc9726
commit a5ac19f6c1
3 changed files with 12 additions and 0 deletions

View File

@@ -244,6 +244,12 @@ TUXBOX_APPS_DIRECTORY_ONE(configdir, CONFIGDIR, localstatedir, /var, /tuxbox/con
TUXBOX_APPS_DIRECTORY_ONE(datadir, DATADIR, datadir, /share, /tuxbox,
[--with-datadir=PATH], [where to find data files])
TUXBOX_APPS_DIRECTORY_ONE(controldir, CONTROLDIR, datadir, /share, /tuxbox/neutrino/control,
[--with-controldir=PATH], [where to find control scripts])
TUXBOX_APPS_DIRECTORY_ONE(controldir_var, CONTROLDIR_VAR, localstatedir, /var, /tuxbox/control,
[--with-controldir_var=PATH], [where to find control scripts in /var])
TUXBOX_APPS_DIRECTORY_ONE(fontdir, FONTDIR, datadir, /share, /fonts,
[--with-fontdir=PATH], [where to find fonts])
@@ -320,6 +326,8 @@ TUXBOX_APPS_DIRECTORY_ONE(flagdir, FLAGDIR, localstatedir, /var, /etc,
dnl automake <= 1.6 needs this specifications
AC_SUBST(CONFIGDIR)
AC_SUBST(DATADIR)
AC_SUBST(CONTROLDIR)
AC_SUBST(CONTROLDIR_VAR)
AC_SUBST(FONTDIR)
AC_SUBST(FONTDIR_VAR)
AC_SUBST(GAMESDIR)

View File

@@ -107,6 +107,8 @@ install-data-hook:
sed -i \
-e 's|%(CONFIGDIR)|$(CONFIGDIR)|g' \
-e 's|%(DATADIR)|$(DATADIR)|g' \
-e 's|%(CONTROLDIR)|$(CONTROLDIR)|g' \
-e 's|%(CONTROLDIR_VAR)|$(CONTROLDIR_VAR)|g' \
-e 's|%(FONTDIR)|$(FONTDIR)|g' \
-e 's|%(FONTDIR_VAR)|$(FONTDIR_VAR)|g' \
-e 's|%(LIBDIR)|$(LIBDIR)|g' \

View File

@@ -452,6 +452,8 @@ std::string CyParser::YWeb_cgi_cmd(CyhookHandler *hh, std::string ycmd) {
else if (ycmd_type == "define-get") {
if (ycmd_name.compare("CONFIGDIR")) yresult = CONFIGDIR;
else if (ycmd_name.compare("DATADIR")) yresult = DATADIR;
else if (ycmd_name.compare("CONTROLDIR")) yresult = CONTROLDIR;
else if (ycmd_name.compare("CONTROLDIR_VAR")) yresult = CONTROLDIR_VAR;
else if (ycmd_name.compare("FONTDIR")) yresult = FONTDIR;
else if (ycmd_name.compare("FONTDIR_VAR")) yresult = FONTDIR_VAR;
else if (ycmd_name.compare("LIBDIR")) yresult = LIBDIR;