svn commit: r388884 - in head/www: . kannel-sqlbox kannel-sqlbox/files
Rodrigo Osorio
rodrigo at FreeBSD.org
Mon Jun 8 21:25:27 UTC 2015
Author: rodrigo
Date: Mon Jun 8 21:25:24 2015
New Revision: 388884
URL: https://svnweb.freebsd.org/changeset/ports/388884
Log:
Add new port kannel-sqlbox
co-maintained with Alberto Mijares <amijaresp at gmail.com>
PR: 173889
Submitted by: dbaio <dbaio at bsd.com.br>
Added:
head/www/kannel-sqlbox/
head/www/kannel-sqlbox/Makefile (contents, props changed)
head/www/kannel-sqlbox/distinfo (contents, props changed)
head/www/kannel-sqlbox/files/
head/www/kannel-sqlbox/files/kannel_sqlbox.in (contents, props changed)
head/www/kannel-sqlbox/files/patch-example_sqlbox.conf.example (contents, props changed)
head/www/kannel-sqlbox/pkg-descr (contents, props changed)
head/www/kannel-sqlbox/pkg-plist (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Mon Jun 8 21:15:49 2015 (r388883)
+++ head/www/Makefile Mon Jun 8 21:25:24 2015 (r388884)
@@ -347,6 +347,7 @@
SUBDIR += jtoolkit
SUBDIR += junkbuster
SUBDIR += kannel
+ SUBDIR += kannel-sqlbox
SUBDIR += kcgi
SUBDIR += kdewebdev4
SUBDIR += kpartsplugin
Added: head/www/kannel-sqlbox/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/kannel-sqlbox/Makefile Mon Jun 8 21:25:24 2015 (r388884)
@@ -0,0 +1,42 @@
+# $FreeBSD$
+
+PORTNAME= kannel-sqlbox
+PORTVERSION= 1.0
+CATEGORIES= www
+
+MAINTAINER= dbaio at bsd.com.br
+# Co-maintainer: Alberto Mijares <amijaresp at gmail.com> (PR/173889)
+COMMENT= Add-on module for www/kannel (svn rev.55)
+
+LICENSE= The_Kannel_Software_License
+LICENSE_NAME= The Kannel Software License, Version 1.0
+LICENSE_FILE= ${WRKSRC}/KannelLICENSE
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+BUILD_DEPENDS= ${LOCALBASE}/include/kannel/gw-config.h:${PORTSDIR}/www/kannel
+RUN_DEPENDS= ${LOCALBASE}/sbin/bearerbox:${PORTSDIR}/www/kannel
+
+USE_GITHUB= yes
+GH_ACCOUNT= dbaio
+GH_PROJECT= ${PORTNAME}
+
+USES= gmake
+USE_GCC= yes
+GNU_CONFIGURE= yes
+
+OPTIONS_MULTI= DATABASE
+OPTIONS_MULTI_DATABASE= MYSQL PGSQL SQLITE3
+OPTIONS_DEFAULT= MYSQL
+
+MYSQL_USE= mysql=yes
+
+PGSQL_USE= pgsql=yes
+
+SQLITE3_USE= sqlite=3
+
+USE_RC_SUBR= kannel_sqlbox
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/example/sqlbox.conf.example \
+ ${STAGEDIR}${PREFIX}/etc/sqlbox.conf.sample
+.include <bsd.port.mk>
Added: head/www/kannel-sqlbox/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/kannel-sqlbox/distinfo Mon Jun 8 21:25:24 2015 (r388884)
@@ -0,0 +1,2 @@
+SHA256 (dbaio-kannel-sqlbox-1.0_GH0.tar.gz) = eb83750c326be79fbf10cd7926c89a0789aef006262559797ae2ed5e273430e3
+SIZE (dbaio-kannel-sqlbox-1.0_GH0.tar.gz) = 356548
Added: head/www/kannel-sqlbox/files/kannel_sqlbox.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/kannel-sqlbox/files/kannel_sqlbox.in Mon Jun 8 21:25:24 2015 (r388884)
@@ -0,0 +1,55 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: sqlbox
+# REQUIRE: LOGIN bearerbox
+# KEYWORD: shutdown
+#
+# Add these lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# kannel_sqlbox_enable (bool): Set to NO by default.
+# Set it to YES to enable kannel_sqlbox.
+# kannel_sqlbox_config (path): Set to %%PREFIX%%/etc/kannel.conf
+# by default.
+
+. /etc/rc.subr
+
+name=kannel_sqlbox
+rcvar=${name}_enable
+kannel_piddir="/var/run/kannel"
+
+load_rc_config $name
+
+: ${kannel_sqlbox_enable:="NO"}
+: ${kannel_sqlbox_config="%%PREFIX%%/etc/sqlbox.conf"}
+: ${kannel_sqlbox_user:="kannel"}
+: ${kannel_sqlbox_group:="kannel"}
+
+command="%%PREFIX%%/sbin/run_kannel_box"
+start_precmd="${name}_prestart"
+extra_commands="reload"
+sig_reload=SIGUSR1
+
+pidfile="${kannel_piddir}/${name}.pid"
+
+command_args="--pidfile ${pidfile} %%PREFIX%%/sbin/sqlbox ${kannel_sqlbox_flags} ${kannel_sqlbox_config}"
+
+kannel_sqlbox_prestart()
+{
+ if [ ! -d "${kannel_piddir}" ]; then
+ install -d -o $kannel_sqlbox_user -g $kannel_sqlbox_group $kannel_piddir
+ fi
+ kannel_sqlbox_checkconfig
+}
+
+kannel_sqlbox_checkconfig() {
+ # Config file is required
+ if [ ! -r ${kannel_sqlbox_config} ]; then
+ warn "${kannel_sqlbox_config} is not readable."
+ exit 1
+ fi
+}
+
+run_rc_command "$1"
Added: head/www/kannel-sqlbox/files/patch-example_sqlbox.conf.example
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/kannel-sqlbox/files/patch-example_sqlbox.conf.example Mon Jun 8 21:25:24 2015 (r388884)
@@ -0,0 +1,11 @@
+--- example/sqlbox.conf.example.orig 2014-04-29 11:58:00 UTC
++++ example/sqlbox.conf.example
+@@ -8,7 +8,7 @@ smsbox-port = 13005
+ smsbox-port-ssl = false
+ sql-log-table = sent_sms
+ sql-insert-table = send_sms
+-log-file = "/var/log/kannel/kannel-sqlbox.log"
++log-file = "/var/log/kannel/sqlbox.log"
+ log-level = 0
+ #ssl-client-certkey-file = ""
+ #ssl-server-cert-file = ""
Added: head/www/kannel-sqlbox/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/kannel-sqlbox/pkg-descr Mon Jun 8 21:25:24 2015 (r388884)
@@ -0,0 +1,7 @@
+Sqlbox is a special Kannel box that sits between bearerbox and
+smsbox and uses a database queue to store and forward messages.
+
+Sqlbox behaves similar to other Kannel boxes and share a compatible
+configuration file format and command line options.
+
+WWW: https://redmine.kannel.org/projects/kannel-sq-lbox
Added: head/www/kannel-sqlbox/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/kannel-sqlbox/pkg-plist Mon Jun 8 21:25:24 2015 (r388884)
@@ -0,0 +1,2 @@
+sbin/sqlbox
+ at sample etc/sqlbox.conf.sample
More information about the svn-ports-head
mailing list