libdbi: import from OE-classic and update to latest 0.8.4
PATCH 1/2 libdbi: import from OE-classic and update to latest 0.8.4
Signed-off-by Eric Bénard <[email protected]>
--- meta-oe/recipes-support/libdbi/libdbi-drivers.inc | 51 ++++++++++++++++++++++ .../libdbi/libdbi-drivers_0.8.3-1.bb | 6 +++ meta-oe/recipes-support/libdbi/libdbi.inc | 17 ++++++++ meta-oe/recipes-support/libdbi/libdbi_0.8.4.bb | 6 +++ 4 files changed, 80 insertions(+) create mode 100644 meta-oe/recipes-support/libdbi/libdbi-drivers.inc create mode 100644 meta-oe/recipes-support/libdbi/libdbi-drivers_0.8.3-1.bb create mode 100644 meta-oe/recipes-support/libdbi/libdbi.inc create mode 100644 meta-oe/recipes-support/libdbi/libdbi_0.8.4.bb
meta-oe/recipes-support/libdbi/libdbi-drivers.inc new file +51 -0
@@ -0,0 +1,51 @@ +# libdbi-drivers OE build file +# Copyright (C) 2005, Koninklijke Philips Electronics NV. All Rights Reserved +# Released under the MIT license (see packages/COPYING) + +DESCRIPTION = "Database Drivers for libdbi" +HOMEPAGE = "http://libdbi-drivers.sourceforge.net/" +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=d8045f3b8f929c1cb29a1e3fd737b499" +SECTION = "libs" + +PROVIDES = "libdbd-sqlite" +DEPENDS = "libdbi sqlite sqlite3 mysql5 postgresql" + +SRC_URI = "${SOURCEFORGE_MIRROR}/libdbi-drivers/libdbi-drivers-${PV}.tar.gz" + +inherit autotools + +PACKAGES += "libdbd-sqlite3 libdbd-sqlite libdbd-pgsql libdbd-mysql" + +EXTRA_OECONF = "--with-dbi-incdir=${STAGING_INCDIR} \ + --with-dbi-libdir=${STAGING_LIBDIR} \ + --with-sqlite \ + --with-sqlite3 \ + --with-pgsql \ + --with-mysql \ + --with-sqlite-libdir=${STAGING_LIBDIR} \ + --with-sqlite-incdir=${STAGING_INCDIR} \ + --with-sqlite3-incdir=${STAGING_INCDIR} \ + --with-sqlite3-libdir=${STAGING_LIBDIR} \ + --with-mysql-incdir=${STAGING_INCDIR} \ + --with-mysql-libdir=${STAGING_LIBDIR} \ + --with-pgsql-incdir=${STAGING_INCDIR} \ + --with-pgsql-libdir=${STAGING_LIBDIR} \ + --disable-docs" + +FILES_${PN}-dbg += " ${libdir}/dbd/.debug/*.so" +FILES_${PN}-dev += " ${libdir}/dbd/*.la" +FILES_${PN}-staticdev += " ${libdir}/dbd/*.a" + +DESCRIPTION_libdbd-sqlite = "SQLite database driver for libdbi" +FILES_libdbd-sqlite = "${libdir}/dbd/libdbdsqlite.so" + +DESCRIPTION_libdbd-sqlite3 = "SQLite3 database driver for libdbi" +FILES_libdbd-sqlite3 = "${libdir}/dbd/libdbdsqlite3.so" + +DESCRIPTION_libdbd-mysql = "MySQL4 database driver for libdbi" +FILES_libdbd-mysql = "${libdir}/dbd/libdbdmysql.so" + +DESCRIPTION_libdbd-psql = "Postgres SQL database driver for libdbi" +FILES_libdbd-pgsql = "${libdir}/dbd/libdbdpgsql.so" +
meta-oe/recipes-support/libdbi/libdbi-drivers_0.8.3-1.bb new file +6 -0
@@ -0,0 +1,6 @@ +require ${PN}.inc + +PR = "r0" + +SRC_URI[md5sum] = "4de79b323162a5a7652b65b608eca6cd" +SRC_URI[sha256sum] = "4ab9944398ce769c0deeb64d2f73555c67bc25ccd2ade1ccf552226c7b2acf72"
meta-oe/recipes-support/libdbi/libdbi.inc new file +17 -0
@@ -0,0 +1,17 @@ +# libdbi OE build file +# Copyright (C) 2005, Koninklijke Philips Electronics NV. All Rights Reserved +# Released under the MIT license (see packages/COPYING) + +DESCRIPTION = "Database Independent Abstraction Layer for C" +HOMEPAGE = "http://libdbi.sourceforge.net/" +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=d8045f3b8f929c1cb29a1e3fd737b499" +SECTION = "libs" + +INC_PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/libdbi/libdbi-${PV}.tar.gz" + +inherit autotools + +EXTRA_OECONF = "--disable-docs"
meta-oe/recipes-support/libdbi/libdbi_0.8.4.bb new file +6 -0
@@ -0,0 +1,6 @@ +require ${PN}.inc + +PR = "${INC_PR}.0" + +SRC_URI[md5sum] = "c5f15407ef7b07ba854cd8c9b15b88ff" +SRC_URI[sha256sum] = "ef38db616f0752ccb09b8ba2eac471722369b8ded50b153c25e238cac2c8de99"
Signature · 1 line
1.7.11.7
PATCH 2/2 gammu: import from OE-classic and upgrade to 1.32.0
- provide default configuration files for both gammu and gammu-smsd
- enable MySQL support
- enable libdbi support
Signed-off-by Eric Bénard <[email protected]>
--- .../recipes-connectivity/gammu/gammu/gammu-smsdrc | 80 ++++++++++ meta-oe/recipes-connectivity/gammu/gammu/gammurc | 173 +++++++++++++++++++++ meta-oe/recipes-connectivity/gammu/gammu_1.32.0.bb | 55 +++++++ 3 files changed, 308 insertions(+) create mode 100644 meta-oe/recipes-connectivity/gammu/gammu/gammu-smsdrc create mode 100644 meta-oe/recipes-connectivity/gammu/gammu/gammurc create mode 100644 meta-oe/recipes-connectivity/gammu/gammu_1.32.0.bb
meta-oe/recipes-connectivity/gammu/gammu/gammu-smsdrc new file +80 -0
@@ -0,0 +1,80 @@ +# This is a sample Gammu SMSD configuration file. It's required for gammu-smsd, +# see gammu-smsdrc(5) for documentation. + +# Gammu configuration, this section is like section "gammu" in "gammurc" file, +# see gammurc(5) for documentation. +[gammu] +device = /dev/ttyUSB0 +model = at115200 +#connection = dlr3 +#synchronizetime = yes +#logfile = gammulog # this is not used at all in SMSD mode +#logformat = textall +#use_locking = yes +#gammuloc = gammu.us +#startinfo = yes + +# When uncomment this section and insert numbers here, smsd will process +# incoming sms only from numbers written here (incoming sms from all other +# numbers will be deleted) +#[include_numbers] +#number1 = 1234 + +# When uncomment this section and insert numbers here, smsd will process +# incoming sms from all numbers not written here (incoming sms from numbers +# written here will be deleted). This is "black" list. +# Note: after using "include_numbers" section this one will be ignored +#[exclude_numbers] +#number1 = 1234 + +# General SMSD settings, see gammu-smsdrc(5) for detailed description. +[smsd] +# SMSD service to use, one of FILES, MYSQL, PGSQL, DBI +service = files +# PIN for SIM card +PIN = 0000 +# File (or stderr, syslog, eventlog) where information will be logged +logfile = smsdlog +# Amount of information being logged, each bit mean one level +debuglevel = 0 +# Configuration for using more phones on same database +#phoneid = MyPhone1 +# Script to be executed when new message has been received +#runonreceive = /some/script +# Commication frequency settings +commtimeout = 30 +sendtimeout = 30 +#receivefrequency = 0 + +# Phone communication settings +#checksecurity = 1 +#resetfrequency = 0 + +# Delivery report configuration +#deliveryreport = no +#deliveryreportdelay = 10 + +# Ignoring broken SMSC +#skipsmscnumber = +48602123456 + +# Database backends congfiguration +user = gammu +password = gammupassword +pc = localhost +# pc can also contain port or socket path after colon (eg. localhost:/path/to/socket) +database = sms + +# DBI configuration +driver = sqlite +# driverspath = /usr/lib/dbd/ +# Database directory for sqlite +# dbdir = /var/lib/smsd + +# Files backend configuration +inboxpath = /var/spool/sms/inbox/ +outboxpath = /var/spool/sms/outbox/ +sentsmspath = /var/spool/sms/sent/ +errorsmspath = /var/spool/sms/error/ +inboxformat = detail +transmitformat = auto +outboxformat = detail
meta-oe/recipes-connectivity/gammu/gammu/gammurc new file +173 -0
173 lines not on this page · raw message
meta-oe/recipes-connectivity/gammu/gammu_1.32.0.bb new file +55 -0
55 lines not on this page · raw message
Signature · 1 line
1.7.11.7