From: <abe...@us...> - 2013-03-05 00:48:59
|
Revision: 5976 http://astlinux.svn.sourceforge.net/astlinux/?rev=5976&view=rev Author: abelbeck Date: 2013-03-05 00:48:52 +0000 (Tue, 05 Mar 2013) Log Message: ----------- unixodbc, new package - disabled by default, for now. When selected, asterisk now builds all related 'odbc' modules Modified Paths: -------------- branches/1.0/astlinux-ast11.config branches/1.0/astlinux.config branches/1.0/astlinux18.config branches/1.0/initrd.config branches/1.0/package/Config.in branches/1.0/runnix-uclibc.config branches/1.0/runnix.config Added Paths: ----------- branches/1.0/package/unixodbc/ branches/1.0/package/unixodbc/Config.in branches/1.0/package/unixodbc/unixodbc.init branches/1.0/package/unixodbc/unixodbc.mk Modified: branches/1.0/astlinux-ast11.config =================================================================== --- branches/1.0/astlinux-ast11.config 2013-03-04 20:17:21 UTC (rev 5975) +++ branches/1.0/astlinux-ast11.config 2013-03-05 00:48:52 UTC (rev 5976) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn5905-dirty Configuration -# Wed Jan 16 12:12:44 2013 +# Buildroot 2011.08-svn5975-dirty Configuration +# Mon Mar 4 18:43:01 2013 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -521,6 +521,7 @@ # BR2_PACKAGE_MYSQL_CLIENT is not set BR2_PACKAGE_SQLITE=y BR2_PACKAGE_SQLITE_READLINE=y +# BR2_PACKAGE_UNIXODBC is not set # # Filesystem Modified: branches/1.0/astlinux.config =================================================================== --- branches/1.0/astlinux.config 2013-03-04 20:17:21 UTC (rev 5975) +++ branches/1.0/astlinux.config 2013-03-05 00:48:52 UTC (rev 5976) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn5901 Configuration -# Mon Jan 14 19:04:31 2013 +# Buildroot 2011.08-svn5975-dirty Configuration +# Mon Mar 4 18:42:49 2013 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -528,6 +528,7 @@ # BR2_PACKAGE_MYSQL_CLIENT is not set BR2_PACKAGE_SQLITE=y BR2_PACKAGE_SQLITE_READLINE=y +# BR2_PACKAGE_UNIXODBC is not set # # Filesystem Modified: branches/1.0/astlinux18.config =================================================================== --- branches/1.0/astlinux18.config 2013-03-04 20:17:21 UTC (rev 5975) +++ branches/1.0/astlinux18.config 2013-03-05 00:48:52 UTC (rev 5976) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn5905 Configuration -# Wed Jan 16 12:11:41 2013 +# Buildroot 2011.08-svn5975-dirty Configuration +# Mon Mar 4 18:42:52 2013 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -521,6 +521,7 @@ # BR2_PACKAGE_MYSQL_CLIENT is not set BR2_PACKAGE_SQLITE=y BR2_PACKAGE_SQLITE_READLINE=y +# BR2_PACKAGE_UNIXODBC is not set # # Filesystem Modified: branches/1.0/initrd.config =================================================================== --- branches/1.0/initrd.config 2013-03-04 20:17:21 UTC (rev 5975) +++ branches/1.0/initrd.config 2013-03-05 00:48:52 UTC (rev 5976) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn5901-dirty Configuration -# Mon Jan 14 19:04:50 2013 +# Buildroot 2011.08-svn5975-dirty Configuration +# Mon Mar 4 18:43:18 2013 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -421,6 +421,7 @@ # BR2_PACKAGE_BERKELEYDB is not set # BR2_PACKAGE_MYSQL_CLIENT is not set # BR2_PACKAGE_SQLITE is not set +# BR2_PACKAGE_UNIXODBC is not set # # Filesystem Modified: branches/1.0/package/Config.in =================================================================== --- branches/1.0/package/Config.in 2013-03-04 20:17:21 UTC (rev 5975) +++ branches/1.0/package/Config.in 2013-03-05 00:48:52 UTC (rev 5976) @@ -291,6 +291,7 @@ source "package/berkeleydb/Config.in" source "package/mysql_client/Config.in" source "package/sqlite/Config.in" +source "package/unixodbc/Config.in" endmenu menu "Filesystem" Added: branches/1.0/package/unixodbc/Config.in =================================================================== --- branches/1.0/package/unixodbc/Config.in (rev 0) +++ branches/1.0/package/unixodbc/Config.in 2013-03-05 00:48:52 UTC (rev 5976) @@ -0,0 +1,10 @@ +config BR2_PACKAGE_UNIXODBC + bool "unixodbc" + default n + select BR2_PACKAGE_LIBTOOL + help + + Connect to ODBC resources from Linux systems + + http://www.unixodbc.org + Added: branches/1.0/package/unixodbc/unixodbc.init =================================================================== --- branches/1.0/package/unixodbc/unixodbc.init (rev 0) +++ branches/1.0/package/unixodbc/unixodbc.init 2013-03-05 00:48:52 UTC (rev 5976) @@ -0,0 +1,70 @@ +#!/bin/sh + +# No variables required +#. /etc/rc.conf + +init () { + + # Automatically create "/mnt/kd/odbc" directory if it doesn't exist + if [ ! -d /mnt/kd/odbc ]; then + mkdir /mnt/kd/odbc 2>/dev/null # will fail on virgin RO filesystem, ignore stderr + fi + + if [ -d /mnt/kd/odbc ]; then + ln -sf /mnt/kd/odbc/odbc.ini /tmp/etc/odbc.ini + ln -sf /mnt/kd/odbc/odbcinst.ini /tmp/etc/odbcinst.ini + fi + if [ ! -d /tmp/etc/ODBCDataSources ]; then + mkdir /tmp/etc/ODBCDataSources + fi + + if [ ! -f /etc/odbc.ini ]; then + touch /etc/odbc.ini + fi + if [ ! -f /etc/odbcinst.ini ]; then + touch /etc/odbcinst.ini + fi + + if [ ! -f /root/.odbc.ini ]; then + ln -sf /etc/odbc.ini /root/.odbc.ini + fi + if [ ! -f /root/.odbcinst.ini ]; then + ln -sf /etc/odbcinst.ini /root/.odbcinst.ini + fi +} + +start () { + : +} + +stop () { + : +} + +case $1 in + +start) + start + ;; + +stop) + stop + ;; + +init) + init + start + ;; + +restart) + stop + sleep 2 + start + ;; + +*) + echo "Usage: start|stop|restart" + ;; + +esac + Property changes on: branches/1.0/package/unixodbc/unixodbc.init ___________________________________________________________________ Added: svn:executable + * Added: branches/1.0/package/unixodbc/unixodbc.mk =================================================================== --- branches/1.0/package/unixodbc/unixodbc.mk (rev 0) +++ branches/1.0/package/unixodbc/unixodbc.mk 2013-03-05 00:48:52 UTC (rev 5976) @@ -0,0 +1,42 @@ +############################################################# +# +# unixodbc +# +############################################################# +UNIXODBC_VERSION = 2.3.1 +UNIXODBC_SOURCE = unixODBC-$(UNIXODBC_VERSION).tar.gz +UNIXODBC_SITE = ftp://ftp.unixodbc.org/pub/unixODBC +UNIXODBC_DEPENDENCIES = libtool + +UNIXODBC_INSTALL_STAGING = YES + +UNIXODBC_CONF_OPT = \ + --disable-gui \ + --with-pic \ + --enable-drivers + +define UNIXODBC_INSTALL_TARGET_CMDS + cp -a $(STAGING_DIR)/usr/lib/libodbc[.ci]*so* $(TARGET_DIR)/usr/lib/ + cp -a $(STAGING_DIR)/usr/lib/libnn.*so* $(TARGET_DIR)/usr/lib/ + $(INSTALL) -m 0755 -D package/unixodbc/unixodbc.init $(TARGET_DIR)/etc/init.d/unixodbc + $(INSTALL) -m 0755 -D $(STAGING_DIR)/usr/bin/isql $(TARGET_DIR)/usr/bin/isql + $(INSTALL) -m 0755 -D $(STAGING_DIR)/usr/bin/odbcinst $(TARGET_DIR)/usr/bin/odbcinst + ln -sf /tmp/etc/odbc.ini $(TARGET_DIR)/etc/odbc.ini + ln -sf /tmp/etc/odbcinst.ini $(TARGET_DIR)/etc/odbcinst.ini + ln -sf /tmp/etc/ODBCDataSources $(TARGET_DIR)/etc/ODBCDataSources + ln -sf ../../init.d/unixodbc $(TARGET_DIR)/etc/runlevels/default/S00unixodbc +endef + +define UNIXODBC_UNINSTALL_TARGET_CMDS + rm -f $(TARGET_DIR)/usr/lib/libodbc[.ci]*so* + rm -f $(TARGET_DIR)/usr/lib/libnn.*so* + rm -f $(TARGET_DIR)/etc/init.d/unixodbc + rm -f $(TARGET_DIR)/usr/bin/isql + rm -f $(TARGET_DIR)/usr/bin/odbcinst + rm -f $(TARGET_DIR)/etc/odbc.ini + rm -f $(TARGET_DIR)/etc/odbcinst.ini + rm -f $(TARGET_DIR)/etc/ODBCDataSources + rm -f $(TARGET_DIR)/etc/runlevels/default/S00unixodbc +endef + +$(eval $(call AUTOTARGETS,package,unixodbc)) Modified: branches/1.0/runnix-uclibc.config =================================================================== --- branches/1.0/runnix-uclibc.config 2013-03-04 20:17:21 UTC (rev 5975) +++ branches/1.0/runnix-uclibc.config 2013-03-05 00:48:52 UTC (rev 5976) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn5901-dirty Configuration -# Mon Jan 14 19:04:37 2013 +# Buildroot 2011.08-svn5975-dirty Configuration +# Mon Mar 4 18:43:13 2013 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -636,6 +636,7 @@ # Mysql client requires a toolchain with C++ support enabled # # BR2_PACKAGE_SQLITE is not set +# BR2_PACKAGE_UNIXODBC is not set # # Filesystem Modified: branches/1.0/runnix.config =================================================================== --- branches/1.0/runnix.config 2013-03-04 20:17:21 UTC (rev 5975) +++ branches/1.0/runnix.config 2013-03-05 00:48:52 UTC (rev 5976) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn5901-dirty Configuration -# Mon Jan 14 19:04:36 2013 +# Buildroot 2011.08-svn5975-dirty Configuration +# Mon Mar 4 18:43:03 2013 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -445,6 +445,7 @@ # BR2_PACKAGE_BERKELEYDB is not set # BR2_PACKAGE_MYSQL_CLIENT is not set # BR2_PACKAGE_SQLITE is not set +# BR2_PACKAGE_UNIXODBC is not set # # Filesystem This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |