From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-mobilephone/kannel-sqlbox/Manifest | 8 +++ .../files/kannel-sqlbox-0.7.2-configure.patch | 30 ++++++++ .../files/kannel-sqlbox-0.7.2-sqlinit-hfiles.patch | 84 ++++++++++++++++++++++ .../kannel-sqlbox/files/kannel-sqlbox.initd | 33 +++++++++ .../kannel-sqlbox/kannel-sqlbox-1.5.0-r1.ebuild | 74 +++++++++++++++++++ app-mobilephone/kannel-sqlbox/metadata.xml | 15 ++++ 6 files changed, 244 insertions(+) create mode 100644 app-mobilephone/kannel-sqlbox/Manifest create mode 100644 app-mobilephone/kannel-sqlbox/files/kannel-sqlbox-0.7.2-configure.patch create mode 100644 app-mobilephone/kannel-sqlbox/files/kannel-sqlbox-0.7.2-sqlinit-hfiles.patch create mode 100644 app-mobilephone/kannel-sqlbox/files/kannel-sqlbox.initd create mode 100644 app-mobilephone/kannel-sqlbox/kannel-sqlbox-1.5.0-r1.ebuild create mode 100644 app-mobilephone/kannel-sqlbox/metadata.xml (limited to 'app-mobilephone/kannel-sqlbox') diff --git a/app-mobilephone/kannel-sqlbox/Manifest b/app-mobilephone/kannel-sqlbox/Manifest new file mode 100644 index 000000000000..9574d95320cf --- /dev/null +++ b/app-mobilephone/kannel-sqlbox/Manifest @@ -0,0 +1,8 @@ +AUX kannel-sqlbox-0.7.2-configure.patch 1242 SHA256 5837c85a6d124f8b16be711b086da66eda8e44fbf638c0eff47b3c0e28193783 SHA512 7b9811f98e908674527a0c92a018b1ab19b520e026ef2f921dc0fdd6a7eb55787ce5885a3d9e3f65b614fe96cda47836af912dc32f84294d92a19ddfd1eb5b49 WHIRLPOOL 36bba2b4d72bdaeafb26a87ebd98a6ec4b329c7036ae1e0e8962c9a965d8751fa1874becd638973f3c7a37b2dd8f3e01264c6c16110e5034711b11072ef3408d +AUX kannel-sqlbox-0.7.2-sqlinit-hfiles.patch 3405 SHA256 ac316d8289d1fa4bef4158b8df529b7097e8ba208e41707d0b34053c6cb6db09 SHA512 224d92055070ef8f5b819deddae9a37cf1bd33e1e751f93f9853d16ec5990486d70cd9e291a76ffca5e4e89762b87b94c8387d1489f8868edafc619347286979 WHIRLPOOL 09f26b790f6740738f0b45a7f4beb4f278d52a3ce56084956206c77fad705f9f1d5a5d5c522b11eb933adc13a46fff955f9bdff86db6db98f678931d04b7088a +AUX kannel-sqlbox.initd 818 SHA256 45df0113593781f0e7a2a925cd829687f9ab380777aac2a60c8114bce59298c0 SHA512 80a195dca95e07ae739dd348d0f2bc0d93f283e2897b4a56f249399c9213b8e88c50c43b293ecba8463806ad2682611e3b1addfc1f77b448429d2602572e823e WHIRLPOOL 6cc678a1de8380bd2081be69cc274032047b541c8f488d450056f021f251025ecc1e44a064ee6893920bacd7f1469dc0b692dbfc95d92997c13d8da1f1136cf9 +DIST gateway-1.5.0.tar.gz 3469476 SHA256 9613fbf46ffaca322f3983a9b8a7579b135c54b8dd24cf715777da5ff50c5e53 SHA512 5bd35ff40e0f5882367f717e67104a0dc8703b5d6d95654e1268ded15cf6fac6366968b10adbe2eec22b3ac17fe3ae33b4142cd38f51fd3d75a56c8fe7653652 WHIRLPOOL d813da05f572e69c1619483c68a06f0587f8e191b1d71973fd9b63c22b8749169ae02963b48cfeae980aff1628f0b2c72a0ce9a82f4f7eecb5dc93cec0f2d2d7 +EBUILD kannel-sqlbox-1.5.0-r1.ebuild 1917 SHA256 507b668c0cd68109a96ae02cde9561ea804fb674e1df5600695a1d9252b7fe3a SHA512 e3d5cf9670d90ff3294c3fa0a3a10336897db00394c8a4dde1b16eb88d85ed6041452e76b98328dca9966f50e108803e270d305bd9c398fcca4b107f0dbe9ebc WHIRLPOOL 9d72ff7b93172775a4ff42d76f39b4a3a794923a7f9771beec0bb98e3cbf7803460c80efb82fe88315cfc7f02da8c8bb92f5596c704d6c2c92655be5a3d4a089 +MISC ChangeLog 3639 SHA256 f654b6b3346482c9e536e739222999d9bd8c4a451a6b0f78452172ff4aaf8e38 SHA512 0b9c2a4cabfb36156e272543802681257346f76e4b8fbe5d07b9529bf4e189dae5450f8e9ed6209df9abef81ffe3dd65ba4a6cbaed8ab88bdbf098dad5116891 WHIRLPOOL f8ec6ae221e952537d2bbee1baf792a1c380d61718f91b85d1024feabe17a405be8b83ec5e1cac3616e29ca65c13e30a8eabdd80c93c8ae116de324ce46b69aa +MISC ChangeLog-2015 1162 SHA256 b39eb41c60a7c5519c062282f97ca526f49396eb3d736ddd8571f8e944986b03 SHA512 a3d3d0f481b8103172f0fcc073bc29570ec7c623cca213cc2fe34ce1d0c14a1385b6b74cae80799371f742df9a31182d7574a793ec7c31c699fda39740da6e1c WHIRLPOOL 277bc535ba7dc43cc5baccf1f53da50d78aa48ed0e1a66f9de2be2d27e3234fff2b27037b1b4c0d31c46ae591930682c699f4fb698ee45e9886a57c3eb25b5e6 +MISC metadata.xml 624 SHA256 16b95a5db2d20c1b19b2ffe68f1b819f9147d95efcbf151bd2b1d46ce2b71662 SHA512 f4f945f4c8ac289c24735fe5a4bb1becb8bac027f6a51d8548745025674010b90009c0e3122be8a4e0a6dfb9742ea94f2b4d0105759cd9cc4ab48a53620e193e WHIRLPOOL 0b1a7e4486ffc02e5493b947f37dfb0cfb379bcd3021114bac2d0b1e5b58ba5fe55852703b7ca771462ac6139f97e9e9bb3167895c71e349a613bec4b22361be diff --git a/app-mobilephone/kannel-sqlbox/files/kannel-sqlbox-0.7.2-configure.patch b/app-mobilephone/kannel-sqlbox/files/kannel-sqlbox-0.7.2-configure.patch new file mode 100644 index 000000000000..2b0b5f9e6218 --- /dev/null +++ b/app-mobilephone/kannel-sqlbox/files/kannel-sqlbox-0.7.2-configure.patch @@ -0,0 +1,30 @@ +diff -Nru sqlbox-0.7.2.orig/configure.in sqlbox-0.7.2/configure.in +--- sqlbox-0.7.2.orig/configure.in 2009-05-19 17:08:35.000000000 +0200 ++++ sqlbox-0.7.2/configure.in 2009-09-23 00:22:05.000000000 +0200 +@@ -207,7 +207,7 @@ + then + AC_CHECK_PROG(JADE, openjade, openjade, no) + else +- JADE = $OLDJADE ++ JADE=$OLDJADE + fi + AC_CHECK_PROG(JADETEX, jadetex, jadetex, no) + AC_CHECK_PROG(PDFJADETEX, pdfjadetex, pdfjadetex, no) +@@ -402,7 +402,7 @@ + AC_MSG_RESULT($loc) + AC_CHECK_FILE("$loc/include/kannel/gw-config.h", + [CFLAGS="$CFLAGS -I$loc/include/kannel -I$loc/include/kannel"; +- LDFLAGS="$LDFLAGS -L$loc/lib/kannel -lwap -lgwlib"; ++ LIBS="$LIBS -L$loc/lib/kannel -lwap -lgwlib"; + found=1 + ]) + fi +@@ -417,7 +417,7 @@ + AC_MSG_RESULT([$gw_version]) + AC_MSG_CHECKING([Kannel libs]) + if ! $GW_CONFIG --libs &>/dev/null ; then +- LDFLAGS="$LDFLAGS `$GW_CONFIG --libs`" ++ LIBS="$LIBS `$GW_CONFIG --libs`" + gw_libdir=`$GW_CONFIG --libs` + AC_MSG_RESULT([$gw_libdir]) + fi diff --git a/app-mobilephone/kannel-sqlbox/files/kannel-sqlbox-0.7.2-sqlinit-hfiles.patch b/app-mobilephone/kannel-sqlbox/files/kannel-sqlbox-0.7.2-sqlinit-hfiles.patch new file mode 100644 index 000000000000..0a3fb9136709 --- /dev/null +++ b/app-mobilephone/kannel-sqlbox/files/kannel-sqlbox-0.7.2-sqlinit-hfiles.patch @@ -0,0 +1,84 @@ +diff -Naur sqlbox-0.7.2/gw/sqlbox_mssql.h sqlbox-0.7.2.new/gw/sqlbox_mssql.h +--- sqlbox-0.7.2/gw/sqlbox_mssql.h 2009-05-19 11:08:35.000000000 -0400 ++++ sqlbox-0.7.2.new/gw/sqlbox_mssql.h 2009-09-16 11:23:03.000000000 -0400 +@@ -46,7 +46,7 @@ + void sql_save_msg(Msg *msg, Octstr *momt /*, Octstr smsbox_id */); + Msg *mssql_fetch_msg(); + void sql_shutdown(); +-struct server_type *sql_init_mssql(Cfg *cfg); ++struct server_type *sqlbox_init_mssql(Cfg *cfg); + #ifndef sqlbox_mssql_c + extern + #endif +diff -Naur sqlbox-0.7.2/gw/sqlbox_mysql.h sqlbox-0.7.2.new/gw/sqlbox_mysql.h +--- sqlbox-0.7.2/gw/sqlbox_mysql.h 2009-05-19 11:08:35.000000000 -0400 ++++ sqlbox-0.7.2.new/gw/sqlbox_mysql.h 2009-09-16 11:23:03.000000000 -0400 +@@ -48,7 +48,7 @@ + void sql_save_msg(Msg *msg, Octstr *momt); + Msg *mysql_fetch_msg(); + void sql_shutdown(); +-struct server_type *sql_init_mysql(Cfg *cfg); ++struct server_type *sqlbox_init_mysql(Cfg *cfg); + #ifndef sqlbox_mysql_c + extern + #endif +diff -Naur sqlbox-0.7.2/gw/sqlbox_oracle.h sqlbox-0.7.2.new/gw/sqlbox_oracle.h +--- sqlbox-0.7.2/gw/sqlbox_oracle.h 2009-05-19 11:08:35.000000000 -0400 ++++ sqlbox-0.7.2.new/gw/sqlbox_oracle.h 2009-09-16 11:23:03.000000000 -0400 +@@ -52,7 +52,7 @@ + void sql_save_msg(Msg *msg, Octstr *momt /*, Octstr smsbox_id */); + Msg *oracle_fetch_msg(); + void sql_shutdown(); +-struct server_type *sql_init_oracle(Cfg *cfg); ++struct server_type *sqlbox_init_oracle(Cfg *cfg); + #ifndef sqlbox_oracle_c + extern + #endif +diff -Naur sqlbox-0.7.2/gw/sqlbox_pgsql.h sqlbox-0.7.2.new/gw/sqlbox_pgsql.h +--- sqlbox-0.7.2/gw/sqlbox_pgsql.h 2009-05-19 11:08:35.000000000 -0400 ++++ sqlbox-0.7.2.new/gw/sqlbox_pgsql.h 2009-09-16 11:23:03.000000000 -0400 +@@ -44,7 +44,7 @@ + void sql_save_msg(Msg *msg, Octstr *momt /*, Octstr smsbox_id */); + Msg *pgsql_fetch_msg(); + void sql_shutdown(); +-struct server_type *sql_init_pgsql(Cfg *cfg); ++struct server_type *sqlbox_init_pgsql(Cfg *cfg); + void sqlbox_configure_pgsql(Cfg* cfg); + #ifndef sqlbox_pgsql_c + extern +diff -Naur sqlbox-0.7.2/gw/sqlbox_sdb.h sqlbox-0.7.2.new/gw/sqlbox_sdb.h +--- sqlbox-0.7.2/gw/sqlbox_sdb.h 2009-05-19 11:08:35.000000000 -0400 ++++ sqlbox-0.7.2.new/gw/sqlbox_sdb.h 2009-09-16 11:23:03.000000000 -0400 +@@ -21,7 +21,7 @@ + void sql_save_msg(Msg *msg, Octstr *momt ); + Msg *sdb_fetch_msg(); + void sql_shutdown(); +-struct server_type *sql_init_sdb(Cfg *cfg); ++struct server_type *sqlbox_init_sdb(Cfg *cfg); + #ifndef sqlbox_sdb_c + extern + #endif +diff -Naur sqlbox-0.7.2/gw/sqlbox_sqlite3.h sqlbox-0.7.2.new/gw/sqlbox_sqlite3.h +--- sqlbox-0.7.2/gw/sqlbox_sqlite3.h 2009-05-19 11:08:35.000000000 -0400 ++++ sqlbox-0.7.2.new/gw/sqlbox_sqlite3.h 2009-09-16 11:23:03.000000000 -0400 +@@ -41,7 +41,7 @@ + void sql_save_msg(Msg *msg, Octstr *momt ); + Msg *sqlite3_fetch_msg(); + void sql_shutdown(); +-struct server_type *sql_init_sqlite3(Cfg *cfg); ++struct server_type *sqlbox_init_sqlite3(Cfg *cfg); + #ifndef sqlbox_sqlite3_c + extern + #endif +diff -Naur sqlbox-0.7.2/gw/sqlbox_sqlite.h sqlbox-0.7.2.new/gw/sqlbox_sqlite.h +--- sqlbox-0.7.2/gw/sqlbox_sqlite.h 2009-05-19 11:08:35.000000000 -0400 ++++ sqlbox-0.7.2.new/gw/sqlbox_sqlite.h 2009-09-16 11:23:03.000000000 -0400 +@@ -41,7 +41,7 @@ + void sql_save_msg(Msg *msg, Octstr *momt ); + Msg *sqlite_fetch_msg(); + void sql_shutdown(); +-struct server_type *sql_init_sqlite(Cfg *cfg); ++struct server_type *sqlbox_init_sqlite(Cfg *cfg); + #ifndef sqlbox_sqlite_c + extern + #endif \ No newline at end of file diff --git a/app-mobilephone/kannel-sqlbox/files/kannel-sqlbox.initd b/app-mobilephone/kannel-sqlbox/files/kannel-sqlbox.initd new file mode 100644 index 000000000000..fd270e65e544 --- /dev/null +++ b/app-mobilephone/kannel-sqlbox/files/kannel-sqlbox.initd @@ -0,0 +1,33 @@ +#!/sbin/openrc-run +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +KANNEL_SERVICE=${SVCNAME#*-} + +depend() { + need kannel-bearerbox + before kannel-smsbox +} + +checkconfig() { + if [ ! -f /etc/kannel/kannel.conf ] ; then + eerror "/etc/kannel/kannel.conf file doesn't exists!" + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting kannel ${KANNEL_SERVICE}" + start-stop-daemon --start --quiet --exec /usr/sbin/${KANNEL_SERVICE} -- \ + --daemonize --user kannel --logfile /var/log/kannel/${KANNEL_SERVICE}.log \ + --pid-file /var/run/kannel/${KANNEL_SERVICE}.pid /etc/kannel/sqlbox.conf + eend $? +} + +stop() { + ebegin "Stopping kannel ${KANNEL_SERVICE}" + start-stop-daemon --stop --verbose --pidfile /var/run/kannel/${KANNEL_SERVICE}.pid + eend $? +} diff --git a/app-mobilephone/kannel-sqlbox/kannel-sqlbox-1.5.0-r1.ebuild b/app-mobilephone/kannel-sqlbox/kannel-sqlbox-1.5.0-r1.ebuild new file mode 100644 index 000000000000..b50093b9e346 --- /dev/null +++ b/app-mobilephone/kannel-sqlbox/kannel-sqlbox-1.5.0-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils flag-o-matic readme.gentoo-r1 + +DESCRIPTION="DB-Based Kannel Box for message queueing" +HOMEPAGE="http://www.kannel.org/" +SRC_URI="http://www.kannel.org/download/${PV}/gateway-${PV}.tar.gz" + +LICENSE="Apache-1.1 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ssl doc" + +RDEPEND="|| ( + ~app-mobilephone/kannel-${PV}[mysql] + ~app-mobilephone/kannel-${PV}[sqlite] + ~app-mobilephone/kannel-${PV}[postgres] + ) + ssl? ( dev-libs/openssl:0 )" +DEPEND="${RDEPEND} + doc? ( media-gfx/transfig + app-text/jadetex + app-text/docbook-dsssl-stylesheets + app-text/docbook-sgml-dtd:3.1 )" + +S="${WORKDIR}/gateway-${PV}/addons/sqlbox/" + +pkg_setup() { + append-ldflags $(no-as-needed) + DISABLE_AUTOFORMATTING="yes" + DOC_CONTENTS="Please view the following page for config information: +http://www.kannel.org/pipermail/users/2006-October/000859.html + +In essence you need to do 3 things: +1. Create the database (tables will be automatically created by kannel) +2. Point sqlbox to the smsbox-port in kannel [core] group +3. Point smsbox to smsbox-port in sqlbox [sqlbox] group + +This literally puts sqlbox in between the bearerbox and smsbox +for data storage into a database" +} + +src_configure() { + econf --docdir=/usr/share/doc/${PF} \ + --without-ctlib \ + --without-mssql \ + $(use_enable ssl) \ + $(use_enable doc docs) \ + || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "failed emake install" + + if use doc; then + emake doc/userguide.html || die "emake docs failed" + dohtml doc/userguide.html || die "userguide.html not found" + fi + + newinitd "${FILESDIR}"/kannel-sqlbox.initd kannel-sqlbox + + dodoc AUTHORS ChangeLog NEWS README + insinto /etc/kannel + newins example/sqlbox.conf.example sqlbox.conf.sample + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/app-mobilephone/kannel-sqlbox/metadata.xml b/app-mobilephone/kannel-sqlbox/metadata.xml new file mode 100644 index 000000000000..729d3f4b648f --- /dev/null +++ b/app-mobilephone/kannel-sqlbox/metadata.xml @@ -0,0 +1,15 @@ + + + + + proxy-maint@gentoo.org + Gentoo Proxy Maintainers Project + + + travisghansen@yahoo.com + Travis Hansen + Proxied maintainer; set to assignee in all bugs + + Sqlbox is a special Kannel box that sits between bearerbox and +smsbox and uses a database queue to store and forward messages. + -- cgit v1.2.3