OKi, here it is:
Code: Alles auswählen
--- cdk/rules-make
+++ cdk/rules-make
@@ -149,5 +149,9 @@
dvbtune;20020918;dvbtune;dvbtune-20020918.tar.bz2;extract:dvbtune-20020918.tar.bz2
vls;0.4.0;vls-0.4.0;vls-0.4.0.tar.bz2;extract:vls-0.4.0.tar.bz2
+#
+# Database
+#
+sqlite;3.6.7;sqlite-3.6.7;sqlite-3.6.7.tar.gz;extract:sqlite-3.6.7.tar.gz
>>?;rules-make-local
Code: Alles auswählen
--- cdk/rules-install
+++ cdk/rules-install
@@ -143,5 +143,9 @@
#
squashfs
+#
+# Database
+#
+sqlite;make:install:prefix=TARGET
>>?;rules-install-local
Code: Alles auswählen
--- cdk/rules-archive
+++ cdk/rules-archive
@@ -158,3 +158,8 @@
squashfs2.2-r2.tar.gz;http://heanet.dl.sourceforge.net/sourceforge/squashfs
lzma442.tar.bz2;http://heanet.dl.sourceforge.net/sourceforge/sevenzip
+#
+# Database
+#
+sqlite-3.6.7.tar.gz;http://www.sqlite.org
+
Code: Alles auswählen
--- cdk/configure.ac
+++ cdk/configure.ac
@@ -138,6 +138,13 @@
AC_SUBST(ENIGMA_DEBUG)
AM_CONDITIONAL(ENIGMA_DEBUG_NO,test "$ENIGMA_DEBUG" = "no")
AM_CONDITIONAL(ENIGMA_DEBUG_YES,test "$ENIGMA_DEBUG" = "yes")
+
+AC_ARG_WITH(sqlite,
+ [ --with-sqlite enable sql storage (default off)],
+ [SQLITE="$withval"],[SQLITE="no"])
+
+AC_SUBST(SQLITE)
+AM_CONDITIONAL(WITH_SQLITE,test "$SQLITE" = "yes")
AC_SUBST(EXTFLASHTOOL)
AM_CONDITIONAL(EXTFLASHTOOL_NO,test "$EXTFLASHTOOL" = "no")
@@ -477,6 +484,11 @@
TUXBOX_RULES_MAKE(vls)
#
+# Database
+#
+TUXBOX_RULES_MAKE(sqlite)
+
+#
# internal
#
AC_SUBST_FILE(ARCHIVE)
@@ -501,6 +513,7 @@
external flashtool: $EXTFLASHTOOL
reiserfs: $REISERFS
enigma debug: $ENIGMA_DEBUG
+sqlite3: $SQLITE
host rule set: $HOSTRULESET
target rule set: $TARGETRULESET
target prefix: $targetprefix
Code: Alles auswählen
--- tuxbox_original/cdk/Makefile.am
+++ CLi_NEE/cdk/Makefile.am
@@ -1057,6 +1057,25 @@
@CLEANUP_libz@
touch $@
+#######################
+#
+# Database
+#
+
+if WITH_SQLITE
+.sqlite: .bootstrap @DEPENDS_sqlite@
+ @PREPARE_sqlite@
+ cd @DIR_sqlite@ && \
+ $(BUILDENV) \
+ ./configure \
+ --build=$(build) \
+ --host=$(target) \
+ --prefix=$(targetprefix) && \
+ $(MAKE) all && \
+ @INSTALL_sqlite@
+ @CLEANUP_sqlite@
+ touch $@
+endif
#######################
#
# contrib apps
@@ -2330,7 +2349,9 @@
endif
$(INSTALL) $(targetprefix)/bin/chttpd $(flashprefix)/root/bin
endif
-
+if WITH_SQLITE
+ $(INSTALL) $(targetprefix)/bin/sqlite3 $(flashprefix)/root/bin
+endif
@touch $@
flash-ushare: $(flashprefix)/.part_ushare
@@ -2808,6 +2829,7 @@
--root $(flashprefix)/root \
`find $(flashprefix)/root/bin/ -path "*bin/?*"` \
`find $(flashprefix)/root/lib/ -name "libnss_*"` \
+ `find $(flashprefix)/root/lib/ -name "libsqlite3*"` \
`find $(flashprefix)/root/lib/tuxbox/ -name "*.so" -type f` \
`find $(flashprefix)/root/lib/autofs/ -name "*.so" -type f` \
`find $(flashprefix)/root/sbin/ -path "*sbin/?*"`
@@ -2907,7 +2929,7 @@
-rm .dvbsnoop .enigma .lcars .lcdmenu .neutrino .stream .zapit
-rm .console_data .console_tools .dropbear .dsniff .fbset .lirc
-rm .polipo .pump .ssh .tcpdump .tor .ushare .xrc .thttpd
- -rm .dvbdate .dvbstream .dvbtext .dvbtune .vls
+ -rm .dvbdate .dvbstream .dvbtext .dvbtune .vls .sqlite
-rm .misc_libs .misc_tools .plugins .libtuxbox .tuxbox_libs .tuxbox_tools .tuxbox_tools_all
-rm -rf $(targetprefix)
-rm -rf $(hostprefix)
So, what is discussion needed about?
As I say, it just enable building of sqlite3 lib's, nothing else ( for now ) as I wait that friends make a test of other things before posting anything else.
Idea is mainly on choose of EPG-sql storage ( well, maybe settings of enigma too
)