kamailio, kamailio3, kamailio4: moved package folders to folders according to package...
authorJiri Slachta <slachta@cesnet.cz>
Thu, 23 May 2013 14:39:45 +0000 (16:39 +0200)
committerJiri Slachta <slachta@cesnet.cz>
Thu, 23 May 2013 14:39:45 +0000 (16:39 +0200)
24 files changed:
kamailio-1.5.x/Makefile [new file with mode: 0644]
kamailio-1.5.x/files/kamailio.default [new file with mode: 0644]
kamailio-1.5.x/files/kamailio.init [new file with mode: 0755]
kamailio-1.5.x/patches/005-config_h.patch [new file with mode: 0644]
kamailio-1.5.x/patches/007-modules_build.patch [new file with mode: 0644]
kamailio-3.3.x/Makefile [new file with mode: 0644]
kamailio-3.3.x/files/kamailio.default [new file with mode: 0644]
kamailio-3.3.x/files/kamailio.init [new file with mode: 0644]
kamailio-3.3.x/patches/100-cross_compile.patch [new file with mode: 0644]
kamailio-4.0.x/Makefile [new file with mode: 0644]
kamailio-4.0.x/files/kamailio.default [new file with mode: 0644]
kamailio-4.0.x/files/kamailio.init [new file with mode: 0644]
kamailio/Makefile [deleted file]
kamailio/files/kamailio.default [deleted file]
kamailio/files/kamailio.init [deleted file]
kamailio/patches/005-config_h.patch [deleted file]
kamailio/patches/007-modules_build.patch [deleted file]
kamailio3/Makefile [deleted file]
kamailio3/files/kamailio.default [deleted file]
kamailio3/files/kamailio.init [deleted file]
kamailio3/patches/100-cross_compile.patch [deleted file]
kamailio4/Makefile [deleted file]
kamailio4/files/kamailio.default [deleted file]
kamailio4/files/kamailio.init [deleted file]

diff --git a/kamailio-1.5.x/Makefile b/kamailio-1.5.x/Makefile
new file mode 100644 (file)
index 0000000..b89dbb0
--- /dev/null
@@ -0,0 +1,268 @@
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=kamailio
+PKG_VERSION:=1.5.2
+PKG_RELEASE:=1
+PKG_VARIANT:=-tls
+
+PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/1.5.2/src/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
+PKG_MD5SUM:=26b0d0d3c67c2d981bee86a803cca51f
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT)
+
+PKG_BUILD_DEPENDS:=curl expat libxml2 mysql openldap openssl pcre postgresql radiusclient-ng
+
+include $(INCLUDE_DIR)/package.mk
+
+TARGET_CFLAGS += $(FPIC)
+
+define Package/kamailio/Default
+  SECTION:=net
+  CATEGORY:=Network
+  SUBMENU:=Telephony
+  URL:=http://www.kamailio.org/
+endef
+
+
+define Package/kamailio
+$(call Package/kamailio/Default)
+  TITLE:=Mature and flexible open source SIP server, v1.5.x
+  MENU:=1
+endef
+
+define Package/kamailio-example
+$(call Package/kamailio/Default)
+  TITLE:=Kamailio example config
+  DEPENDS:=kamailio \
+       +kamailio-mod-acc \
+       +kamailio-mod-maxfwd \
+       +kamailio-mod-mi-fifo \
+       +kamailio-mod-pv \
+       +kamailio-mod-registrar \
+       +kamailio-mod-rr \
+       +kamailio-mod-sl \
+       +kamailio-mod-siputils \
+       +kamailio-mod-textops \
+       +kamailio-mod-tm \
+       +kamailio-mod-uri-db \
+       +kamailio-mod-usrloc \
+       +kamailio-mod-xlog
+endef
+
+define Package/kamailio-example/conffiles
+/etc/default/kamailio
+/etc/kamailio/kamailio.cfg
+endef
+
+
+define Package/kamailio-tools
+$(call Package/kamailio/Default)
+  TITLE:=Kamailio control tools
+  DEPENDS:=kamailio
+endef
+
+define Package/kamailio-tools/conffiles
+/etc/kamailio/kamctlrc
+endef
+
+
+PKG_EXCL_MODULES:= \
+       auth_diameter \
+       carrierroute \
+       db_berkeley \
+       db_oracle \
+       db_unixodbc \
+       mediaproxy \
+       mi_xmlrpc \
+       osp \
+       perl \
+       perlvdb \
+       purple \
+       snmpstats \
+
+PKG_MAKE_ARGS:= \
+       cfg-dir="etc/kamailio/" \
+       bin-dir="usr/sbin/" \
+       data-dir="var/lib/kamailio/" \
+       lib-dir="usr/lib/kamailio/" \
+       modules-dir="usr/lib/kamailio/modules/" \
+       exclude_modules="$(PKG_EXCL_MODULES)" \
+
+
+define Build/Compile
+       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
+               prefix=/ \
+               extra_defs="-DUSE_PTHREAD_MUTEX "  \
+               CC="$(TARGET_CC)" \
+               ARCH="$(ARCH)"  \
+               CFLAGS="$(TARGET_CFLAGS)" \
+               ISSMP="no" \
+               LOCALBASE="$(STAGING_DIR)/usr" \
+               SYSBASE="$(STAGING_DIR)/usr" \
+               PCREDEFS:="$(TARGET_CPPFLAGS)" \
+               PCRELIBS:="$(TARGET_LDFLAGS)" \
+               CROSS_COMPILE=1 \
+               all
+       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
+               DESTDIR="$(PKG_INSTALL_DIR)" \
+               install
+endef
+
+define Package/kamailio/install
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/sbin/kamailio \
+               $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules
+endef
+
+define Package/kamailio-example/install
+       $(INSTALL_DIR) $(1)/etc/kamailio
+       $(CP) \
+               $(PKG_INSTALL_DIR)/etc/kamailio/kamailio.cfg \
+               $(1)/etc/kamailio/
+       $(SED) 's,$(PKG_INSTALL_DIR),,g' \
+               $(1)/etc/kamailio/kamailio.cfg
+       $(INSTALL_DIR) $(1)/etc/default
+       $(INSTALL_DATA) ./files/kamailio.default $(1)/etc/default/kamailio
+       $(INSTALL_DIR) $(1)/etc/init.d
+       $(INSTALL_BIN) ./files/kamailio.init $(1)/etc/init.d/kamailio
+endef
+
+define Package/kamailio-tools/install
+       $(INSTALL_DIR) $(1)/etc/kamailio
+       $(CP) \
+               $(PKG_INSTALL_DIR)/etc/kamailio/kamctlrc \
+               $(1)/etc/kamailio/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/sbin/kam{ctl,dbctl,unix} \
+               $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/lib/kamailio
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/lib/kamailio/kamctl \
+               $(1)/usr/lib/kamailio/
+       $(SED) 's,/bin/bash,/bin/sh,g' \
+               -e 's,$(PKG_INSTALL_DIR),,g' \
+               $(1)/usr/sbin/kam{ctl,dbctl}
+endef
+
+define BuildPlugin
+  define Package/kamailio-mod-$(1)
+    $$(call Package/kamailio/Default)
+    TITLE:= kamailio $(3) module
+    DEPENDS:=kamailio $$(foreach m,$(4),+kamailio-mod-$$m) $(5)
+  endef
+
+  define Package/kamailio-mod-$(1)/install
+       [ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/kamailio/modules/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/modules/$(2).so \
+                       $$(1)/usr/lib/kamailio/modules/ ;
+  endef
+
+  $$(eval $$(call BuildPackage,kamailio-mod-$(1)))
+endef
+
+$(eval $(call BuildPackage,kamailio))
+$(eval $(call BuildPackage,kamailio-example))
+$(eval $(call BuildPackage,kamailio-tools))
+$(eval $(call BuildPlugin,acc,acc,Accounting,tm,))
+$(eval $(call BuildPlugin,alias-db,alias_db,Database-backend aliases,,))
+$(eval $(call BuildPlugin,auth,auth,Authentication Framework,,))
+$(eval $(call BuildPlugin,auth-db,auth_db,Database-backend authentication,auth,))
+#$(eval $(call BuildPlugin,auth-diameter,auth_diameter,Diameter-backend authentication,sl,))
+$(eval $(call BuildPlugin,auth-radius,auth_radius,RADIUS-backend authentication,auth,+libradiusclient-ng))
+$(eval $(call BuildPlugin,avpops,avpops,AVP operation,,))
+$(eval $(call BuildPlugin,benchmark,benchmark,Config benchmark,,))
+#$(eval $(call BuildPlugin,carrierroute,carrierroute,Carrier Routing,,+libconfuse))
+$(eval $(call BuildPlugin,cfgutils,cfgutils,Config utilities,,))
+$(eval $(call BuildPlugin,cpl-c,cpl-c,Call Processing language interpreter,tm sl usrloc,+libxml2))
+#$(eval $(call BuildPlugin,db-berkeley,db_berkeley,Berkeley DB Database-backend,,))
+$(eval $(call BuildPlugin,db-flatstore,db_flatstore,Fast writing-only text database-backed,,))
+$(eval $(call BuildPlugin,db-mysql,db_mysql,MySQL database-backend,,+libmysqlclient))
+#$(eval $(call BuildPlugin,db-oracle,db_oracle,Oracle Database-backend,,))
+$(eval $(call BuildPlugin,db-postgres,db_postgres,PostgreSQL Database-backend,,+libpq))
+$(eval $(call BuildPlugin,db-text,db_text,Text database-backend,,))
+#$(eval $(call BuildPlugin,db-unixodbc,db_unixodbc,UnixODBC Database-backend,,))
+$(eval $(call BuildPlugin,dialog,dialog,Dialog support,rr tm,))
+$(eval $(call BuildPlugin,dialplan,dialplan,Dialplan management,,+libpcre))
+$(eval $(call BuildPlugin,dispatcher,dispatcher,Dispatcher,,))
+$(eval $(call BuildPlugin,diversion,diversion,Diversion header insertion,,))
+$(eval $(call BuildPlugin,domain,domain,Multi-domain support,,))
+$(eval $(call BuildPlugin,domainpolicy,domainpolicy,Domain policy,,))
+$(eval $(call BuildPlugin,enum,enum,ENUM lookup,,))
+$(eval $(call BuildPlugin,exec,exec,External exec,,))
+$(eval $(call BuildPlugin,group,group,Database-backend user-groups,,))
+$(eval $(call BuildPlugin,h350,h350,H.350,ldap,+libopenldap))
+$(eval $(call BuildPlugin,htable,htable,Hash Table,,))
+$(eval $(call BuildPlugin,imc,imc,IM conferencing,db-mysql tm,))
+$(eval $(call BuildPlugin,jabber,jabber,Jabber,tm,+libexpat))
+$(eval $(call BuildPlugin,lcr,lcr,Least Cost Routing,tm,+libpcre))
+$(eval $(call BuildPlugin,ldap,ldap,LDAP connector,,+libopenldap))
+$(eval $(call BuildPlugin,maxfwd,maxfwd,Max-Forward processor,,))
+$(eval $(call BuildPlugin,mi-datagram,mi_datagram,Datagram support for Management Interface,,))
+$(eval $(call BuildPlugin,mi-fifo,mi_fifo,FIFO support for Management Interface,,))
+#$(eval $(call BuildPlugin,mi-xmlrpc,mi_xmlrpc,XML-RPC support for Management Interface,,+xmlrpc-c))
+#$(eval $(call BuildPlugin,mediaproxy,mediaproxy,NAT traversal,,+mediaproxy))
+$(eval $(call BuildPlugin,misc_radius,misc_radius,Generic RADIUS,,+libradiusclient-ng))
+$(eval $(call BuildPlugin,msilo,msilo,SIP message silo,tm,))
+$(eval $(call BuildPlugin,nat_traversal,nat_traversal,NAT traversal,dialog sl tm,))
+$(eval $(call BuildPlugin,nathelper,nathelper,NAT traversal helper,,+rtpproxy))
+#$(eval $(call BuildPlugin,osp,osp,OSP peering,auth rr sl tm textops,+libosp))
+$(eval $(call BuildPlugin,path,path,SIP path insertion,rr,))
+$(eval $(call BuildPlugin,pdt,pdt,Prefix-to-Domain translator,,))
+$(eval $(call BuildPlugin,peering,peering,Perring,,+libradiusclient-ng))
+#$(eval $(call BuildPlugin,perl,perl,Perl,sl,+perl))
+#$(eval $(call BuildPlugin,perlvdb,perlvdb,Perl Virtual DB,perl,))
+$(eval $(call BuildPlugin,permissions,permissions,Permissions control,,))
+$(eval $(call BuildPlugin,pike,pike,Flood detector,,))
+$(eval $(call BuildPlugin,presence,presence,Presence server,sl tm,+libxml2))
+$(eval $(call BuildPlugin,presence-dialoginfo,presence_dialoginfo,Dialog Event presence,presence,))
+$(eval $(call BuildPlugin,presence-mwi,presence_mwi,Message Waiting Indication presence,presence,))
+$(eval $(call BuildPlugin,presence-xml,presence_xml,XCAP presence,presence xcap-client,))
+$(eval $(call BuildPlugin,pua,pua,Presence User Agent,tm,+libxml2))
+$(eval $(call BuildPlugin,pua-bla,pua_bla,Bridged Line Appearence PUA,presence pua usrloc,))
+$(eval $(call BuildPlugin,pua-dialoginfo,pua_dialoginfo,Dialog Event PUA,dialog pua,))
+$(eval $(call BuildPlugin,pua-mi,pua_mi,PUA Management Interface,pua,))
+$(eval $(call BuildPlugin,pua-usrloc,pua_usrloc,PUA User Location,pua usrloc,))
+$(eval $(call BuildPlugin,pua-xmpp,pua_xmpp,PUA XMPP,presence pua xmpp,))
+#$(eval $(call BuildPlugin,purple,purple,Multi-protocol IM gateway,presence pua,+libpurple))
+$(eval $(call BuildPlugin,pv,pv,Pseudo-Variables,,))
+$(eval $(call BuildPlugin,qos,qos,QoS control,dialog,))
+$(eval $(call BuildPlugin,ratelimit,ratelimit,Traffic shapping,,))
+$(eval $(call BuildPlugin,regex,regex,Regular Expression,,+libpcre))
+$(eval $(call BuildPlugin,registrar,registrar,SIP Registrar,usrloc,))
+$(eval $(call BuildPlugin,rls,rls,Resource List Server,presence pua tm,+libxml2))
+$(eval $(call BuildPlugin,rr,rr,Record-Route and Route,,))
+$(eval $(call BuildPlugin,rtimer,rtimer,Routing Timer,,))
+$(eval $(call BuildPlugin,sanity,sanity,SIP sanity checks,sl,))
+#$(eval $(call BuildPlugin,seas,seas,SIP Express Application Server,tm,))
+$(eval $(call BuildPlugin,siptrace,siptrace,SIP trace,,))
+$(eval $(call BuildPlugin,siputils,siputils,SIP utilities,sl,))
+$(eval $(call BuildPlugin,sl,sl,Stateless replier,,))
+$(eval $(call BuildPlugin,sms,sms,SIP-to-SMS IM gateway,tm,))
+#$(eval $(call BuildPlugin,snmpstats,snmpstats,SNMP,presence usrloc,+libnetsnmp))
+$(eval $(call BuildPlugin,speeddial,speeddial,Per-user speed-dial controller,,))
+$(eval $(call BuildPlugin,sqlops,sqlops,SQL operations,,))
+$(eval $(call BuildPlugin,statistics,statistics,Script statistics,,))
+$(eval $(call BuildPlugin,sst,sst,SIP Session Timer,dialog sl,))
+$(eval $(call BuildPlugin,textops,textops,Text operations,,))
+$(eval $(call BuildPlugin,tlsops,tlsops,TLS operations,,+libopenssl))
+$(eval $(call BuildPlugin,tm,tm,Transaction,,))
+$(eval $(call BuildPlugin,uac,uac,User Agent Client,tm,))
+$(eval $(call BuildPlugin,uac-redirect,uac_redirect,User Agent Client redirection,tm,))
+$(eval $(call BuildPlugin,uri-db,uri_db,Database-backend SIP URI checking,,))
+$(eval $(call BuildPlugin,userblacklist,userblacklist,User blacklists,,))
+$(eval $(call BuildPlugin,usrloc,usrloc,User location,,))
+$(eval $(call BuildPlugin,utils,utils,Misc utilities,,+libcurl))
+$(eval $(call BuildPlugin,xcap-client,xcap_client,XCAP Client,,+libcurl))
+$(eval $(call BuildPlugin,xlog,xlog,Advanced logger,,))
+$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat))
diff --git a/kamailio-1.5.x/files/kamailio.default b/kamailio-1.5.x/files/kamailio.default
new file mode 100644 (file)
index 0000000..a61617b
--- /dev/null
@@ -0,0 +1,13 @@
+# OPTIONS
+# -n COUNT
+# Specifies the number of children processes forked per interface
+# -N COUNT
+# Specifies the number of children processes forked to handle tcp incoming connections
+# -m SIZE
+# Size of the shared memory which will be allocated (in Megabytes).
+# -u UID
+# Changes the user id under which 
+# -g GID
+# Changes the group id under which 
+
+OPTIONS="-n 4 -m 4 - m 8"
diff --git a/kamailio-1.5.x/files/kamailio.init b/kamailio-1.5.x/files/kamailio.init
new file mode 100755 (executable)
index 0000000..1f42a9e
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2009 OpenWrt.org
+START=50
+
+BIN=kamailio
+DEFAULT=/etc/default/$BIN
+RUN_D=/var/run
+PID_F=$RUN_D/$BIN.pid
+
+start() {
+       [ -f $DEFAULT ] && . $DEFAULT
+       mkdir -p $RUN_D
+       $BIN -P $PID_F $OPTIONS >/dev/null 2>&1
+}
+
+stop() {
+       [ -f $PID_F ] && kill $(cat $PID_F)
+}
+
diff --git a/kamailio-1.5.x/patches/005-config_h.patch b/kamailio-1.5.x/patches/005-config_h.patch
new file mode 100644 (file)
index 0000000..a641b3a
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/config.h
++++ b/config.h
+@@ -48,7 +48,7 @@
+ #define MAX_LISTEN 16         /*!< maximum number of addresses on which we will listen */
+-#define CHILD_NO    8         /*!< default number of child processes started */
++#define CHILD_NO    4         /*!< default number of child processes started */
+ #ifndef RT_NO
+ #define RT_NO 80              /*!< routing tables number */
+@@ -119,7 +119,7 @@
+ #define PKG_MEM_POOL_SIZE 4*1024*1024         /*!< Used only if PKG_MALLOC is defined*/
+ #endif
+-#define SHM_MEM_SIZE 32                               /*!< Used if SH_MEM is defined*/
++#define SHM_MEM_SIZE 8                                /*!< Used if SH_MEM is defined*/
+ #define TIMER_TICK   1                        /*!< one second */
+ #define UTIMER_TICK  100*1000                 /*!< 100 miliseconds*/
diff --git a/kamailio-1.5.x/patches/007-modules_build.patch b/kamailio-1.5.x/patches/007-modules_build.patch
new file mode 100644 (file)
index 0000000..3fac163
--- /dev/null
@@ -0,0 +1,137 @@
+--- a/modules/carrierroute/Makefile
++++ b/modules/carrierroute/Makefile
+@@ -12,10 +12,8 @@ NAME=carrierroute.so
+ BUILDER = $(shell which confuse-config)
+ ifeq ($(BUILDER),)
+-      CONFUSEDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
+-              -I/usr/sfw/include
+-      CONFUSELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
+-              -L/opt/lib -lconfuse
++      CONFUSEDEFS=-I$(LOCALBASE)/include
++      CONFUSELIBS=-L$(LOCALBASE)/lib
+ else
+               CONFUSEDEFS = $(shell confuse-config --cflags)
+               CONFUSELIBS = $(shell confuse-config --libs)
+--- a/modules/h350/Makefile
++++ b/modules/h350/Makefile
+@@ -9,7 +9,8 @@ include ../../Makefile.defs
+ auto_gen=
+ NAME=h350.so
+-LIBS=
++
+ DEFS+=-I$(LOCALBASE)/include
++LIBS=-L$(LOCALBASE)/lib -lldap
+ include ../../Makefile.modules
+--- a/modules/ldap/Makefile
++++ b/modules/ldap/Makefile
+@@ -12,8 +12,8 @@ include ../../Makefile.defs
+ auto_gen=
+ NAME=ldap.so
+-LIBS=-L$(LOCALBASE)/lib -lldap
+ DEFS+=-I$(LOCALBASE)/include
++LIBS=-L$(LOCALBASE)/lib -lldap
+ ifeq ($(OS),solaris)
+        DEFS+=-I$(LOCALBASE)/include -I/usr/sfw/include -I/usr/local/include -I/opt/sfw/include -I/opt/csw/include
+--- a/modules/pua_bla/Makefile
++++ b/modules/pua_bla/Makefile
+@@ -9,8 +9,8 @@ include ../../Makefile.defs
+ auto_gen=
+ NAME=pua_bla.so
+ LIBS=
+-DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
+-LIBS+=-L/usr/include/lib  -L$(LOCALBASE)/lib -lxml2
++DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
++LIBS+=-L$(LOCALBASE)/lib -lxml2
+ include ../../Makefile.modules
+--- a/modules/pua_xmpp/Makefile
++++ b/modules/pua_xmpp/Makefile
+@@ -10,7 +10,7 @@ auto_gen=
+ NAME= pua_xmpp.so
+ LIBS=
+-DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
+-LIBS+=-L/usr/include/lib  -L$(LOCALBASE)/lib -lxml2
++DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
++LIBS+=-L$(LOCALBASE)/lib -lxml2
+ include ../../Makefile.modules
+--- a/modules/regex/Makefile
++++ b/modules/regex/Makefile
+@@ -7,10 +7,8 @@ NAME=regex.so
+ BUILDER = $(shell which pcre-config)
+ ifeq ($(BUILDER),)
+-      PCREDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
+-      -I/usr/sfw/include
+-      PCRELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
+-      -L/opt/lib -lpcre
++      PCREDEFS=-I$(LOCALBASE)/include 
++      PCRELIBS=-L$(LOCALBASE)/lib -lpcre
+ else
+       PCREDEFS = $(shell pcre-config --cflags)
+       PCRELIBS = $(shell pcre-config --libs)
+--- a/modules/tlsops/Makefile
++++ b/modules/tlsops/Makefile
+@@ -7,8 +7,8 @@ auto_gen=
+ NAME=tlsops.so
+ LIBS=
+-DEFS+= -I$(LOCALBASE)/ssl/include
+-LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl  -lcrypto
++DEFS+= -I$(LOCALBASE)/include
++LIBS+= -L$(LOCALBASE)/lib -lssl  -lcrypto
+ include ../../Makefile.modules
+--- a/modules/dialplan/Makefile
++++ b/modules/dialplan/Makefile
+@@ -9,10 +9,8 @@ NAME=dialplan.so
+ BUILDER = $(shell which pcre-config)
+ ifeq ($(BUILDER),)
+-      PCREDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
+-      -I/usr/sfw/include
+-      PCRELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
+-      -L/opt/lib -lpcre
++      PCREDEFS=-I$(LOCALBASE)/include
++      PCRELIBS=-L$(LOCALBASE)/lib -lpcre
+ else
+       PCREDEFS = $(shell pcre-config --cflags)
+       PCRELIBS = $(shell pcre-config --libs)
+--- a/modules/lcr/Makefile
++++ b/modules/lcr/Makefile
+@@ -11,10 +11,8 @@ NAME=lcr.so
+ BUILDER = $(shell which pcre-config)
+ ifeq ($(BUILDER),)
+-      PCREDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
+-      -I/usr/sfw/include
+-      PCRELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
+-      -L/opt/lib -lpcre
++      PCREDEFS=-I$(LOCALBASE)/include
++      PCRELIBS=-L$(LOCALBASE)/lib -lpcre
+ else
+       PCREDEFS = $(shell pcre-config --cflags)
+       PCRELIBS = $(shell pcre-config --libs)
+--- a/modules/purple/Makefile
++++ b/modules/purple/Makefile
+@@ -3,9 +3,9 @@ auto_gen=
+ NAME=purple.so
+ LIBS= 
+-DEFS+=-I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 \
+-              -I/usr/include/libxml2
+-LIBS+=-lglib-2.0 -lpurple -lxml2
++DEFS+=-I$(LOCALBASE)/include/glib-2.0/include -I$(LOCALBASE)/include/glib-2.0 \
++              -I$(LOCALBASE)/incldue/libxml2
++LIBS+=-L$(LOCALBASE)/lib -lglib-2.0 -lpurple -lxml2
+ include ../../Makefile.modules
diff --git a/kamailio-3.3.x/Makefile b/kamailio-3.3.x/Makefile
new file mode 100644 (file)
index 0000000..3ee49c2
--- /dev/null
@@ -0,0 +1,284 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=kamailio3
+PKG_VERSION:=3.3.4
+PKG_RELEASE:=1
+
+PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
+PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
+PKG_MD5SUM:=24d6a0c852d49791f7e0d0694e128d43
+
+INCL_MODULES:=
+KAM_MODULES:=
+
+include $(INCLUDE_DIR)/nls.mk
+include $(INCLUDE_DIR)/package.mk
+
+TARGET_CFLAGS += $(FPIC)
+PREBUILT_STAMP=$(STAGING_DIR)/stamp/.$(PKG_NAME)_prebuilt
+TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
+
+define Package/kamailio3/Default
+  SECTION:=net
+  CATEGORY:=Network
+  SUBMENU:=Telephony
+  URL:=http://www.kamailio.org/
+  DEPENDS:=$(ICONV_DEPENDS) +libncurses +libpthread +libreadline
+endef
+
+define Package/kamailio3
+$(call Package/kamailio3/Default)
+  TITLE:=Mature and flexible open source SIP server, v3.3.x
+  MENU:=1
+endef
+
+define Package/kamailio3-example
+$(call Package/kamailio3/Default)
+  TITLE:=Kamailio3 example config
+  DEPENDS:=kamailio3 \
+       +kamailio3-mod-acc \
+       +kamailio3-mod-maxfwd \
+       +kamailio3-mod-mi-fifo \
+       +kamailio3-mod-pv \
+       +kamailio3-mod-registrar \
+       +kamailio3-mod-rr \
+       +kamailio3-mod-sl \
+       +kamailio3-mod-siputils \
+       +kamailio3-mod-textops \
+       +kamailio3-mod-tm \
+       +kamailio3-mod-uri-db \
+       +kamailio3-mod-usrloc \
+       +kamailio3-mod-xlog
+endef
+
+define Package/kamailio3-example/conffiles
+/etc/default/kamailio
+/etc/kamailio/kamailio.cfg
+endef
+
+define Package/kamailio3-tools
+$(call Package/kamailio3/Default)
+  TITLE:=Kamailio3 control tools
+  DEPENDS:=kamailio3 +bash
+endef
+
+define Package/kamailio3-tools/conffiles
+/etc/kamailio/kamctlrc
+endef
+
+define Package/kamailio3/install
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/sbin/kamailio \
+               $(1)/usr/sbin/
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/sbin/sercmd \
+               $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules
+       $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules_k
+       $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules_s
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/lib/kamailio/lib*.so* \
+               $(1)/usr/lib/kamailio/
+endef
+
+define Package/kamailio3-example/install
+       $(INSTALL_DIR) $(1)/etc/kamailio
+       $(CP) \
+               $(PKG_INSTALL_DIR)/etc/kamailio/kamailio.cfg \
+               $(1)/etc/kamailio/
+       $(SED) 's,$(PKG_INSTALL_DIR),,g' \
+               $(1)/etc/kamailio/kamailio.cfg
+       $(SED) 's,//lib/kamailio,/usr/lib/kamailio,g' \
+               $(1)/etc/kamailio/kamailio.cfg
+       $(INSTALL_DIR) $(1)/etc/default
+       $(INSTALL_DATA) ./files/kamailio.default $(1)/etc/default/kamailio
+       $(INSTALL_DIR) $(1)/etc/init.d
+       $(INSTALL_BIN) ./files/kamailio.init $(1)/etc/init.d/kamailio
+endef
+
+define Package/kamailio3-tools/install
+       $(INSTALL_DIR) $(1)/etc/kamailio
+       $(CP) \
+               $(PKG_BUILD_DIR)/utils/kamctl/kamctlrc \
+               $(1)/etc/kamailio/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/sbin/kam{ctl,dbctl} \
+               $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/lib/kamailio
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/lib/kamailio/kamctl \
+               $(1)/usr/lib/kamailio/
+endef
+
+define BuildPlugin
+  define Package/kamailio3-mod-$(1)
+    $$(call Package/kamailio3/Default)
+    TITLE:= kamailio3 $(3) module
+    DEPENDS:=kamailio3 $$(foreach m,$(4),+kamailio3-mod-$$m) $(5)
+  endef
+
+  define Package/kamailio3-mod-$(1)/install
+       [ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/kamailio/$(6)
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/$(6)/$(2).so \
+                       $$(1)/usr/lib/kamailio/$(6)/ ;
+  endef
+
+  INCL_MODULES+=$(2)
+  KAM_MODULES+=kamailio3-mod-$(1)
+endef
+
+$(eval $(call BuildPlugin,acc,acc,Accounting,tm,,modules_k))
+$(eval $(call BuildPlugin,acc-radius,acc_radius,Accounting for RADIUS backend,acc,+libradiusclient-ng,modules_k))
+$(eval $(call BuildPlugin,alias-db,alias_db,Database-backend aliases,db-sqlite,,modules_k))
+$(eval $(call BuildPlugin,auth,auth,Authentication Framework,,,modules))
+$(eval $(call BuildPlugin,auth-db,auth_db,Database-backend authentication,auth db-sqlite,,modules_k))
+#$(eval $(call BuildPlugin,auth-diameter,auth_diameter,Diameter-backend authentication,sl,,modules_k))
+$(eval $(call BuildPlugin,auth-radius,auth_radius,RADIUS-backend authentication,auth,+libradiusclient-ng,modules_k))
+$(eval $(call BuildPlugin,avpops,avpops,AVP operation,,,modules))
+$(eval $(call BuildPlugin,benchmark,benchmark,Config benchmark,,,modules_k))
+#$(eval $(call BuildPlugin,carrierroute,carrierroute,Carrier Routing,,+libconfuse,modules))
+$(eval $(call BuildPlugin,cfgutils,cfgutils,Config utilities,,,modules_k))
+$(eval $(call BuildPlugin,cfg-db,cfg_db,Load core and module parameters from database,db-sqlite,,modules))
+$(eval $(call BuildPlugin,cfg-rpc,cfg_rpc,Update core and module parameters at runtime via RPC interface,,,modules))
+#$(eval $(call BuildPlugin,cpl-c,cpl-c,Call Processing language interpreter,tm sl usrloc,+libxml2,modules_k))
+$(eval $(call BuildPlugin,ctl,ctl,BINRPC transport interface,,,modules))
+#$(eval $(call BuildPlugin,db-berkeley,db_berkeley,Berkeley DB Database-backend,,,modules))
+$(eval $(call BuildPlugin,db-flatstore,db_flatstore,Fast writing-only text database-backed,,,modules))
+$(eval $(call BuildPlugin,db-mysql,db_mysql,MySQL database-backend,,+libmysqlclient,modules))
+#$(eval $(call BuildPlugin,db-oracle,db_oracle,Oracle Database-backend,,,modules_k))
+#$(eval $(call BuildPlugin,db-postgres,db_postgres,PostgreSQL Database-backend,,+libpq,modules))
+$(eval $(call BuildPlugin,db-sqlite,db_sqlite,Sqlite DB support,,+libsqlite3,modules_k))
+$(eval $(call BuildPlugin,db-text,db_text,Text database-backend,,,modules_k))
+$(eval $(call BuildPlugin,db-unixodbc,db_unixodbc,UnixODBC Database-backend,,+unixodbc,modules_k))
+$(eval $(call BuildPlugin,dialog,dialog,Dialog support,rr tm,,modules_k))
+$(eval $(call BuildPlugin,dialplan,dialplan,Dialplan management,,+libpcre,modules))
+$(eval $(call BuildPlugin,dispatcher,dispatcher,Dispatcher,,,modules_s))
+$(eval $(call BuildPlugin,diversion,diversion,Diversion header insertion,,,modules_s))
+$(eval $(call BuildPlugin,domain,domain,Multi-domain support,,,modules_k))
+$(eval $(call BuildPlugin,domainpolicy,domainpolicy,Domain policy,,,modules_k))
+$(eval $(call BuildPlugin,enum,enum,ENUM lookup,,,modules))
+$(eval $(call BuildPlugin,exec,exec,External exec,,,modules_k))
+$(eval $(call BuildPlugin,group,group,Database-backend user-groups,,,modules_k))
+$(eval $(call BuildPlugin,h350,h350,H.350,ldap,+libopenldap,modules_k))
+$(eval $(call BuildPlugin,htable,htable,Hash Table,,,modules_k))
+$(eval $(call BuildPlugin,imc,imc,IM conferencing,db-mysql tm,,modules_k))
+$(eval $(call BuildPlugin,ipops,ipops,IP and IPv6 operations module,,,modules))
+$(eval $(call BuildPlugin,kex,kex,Core extensions,,,modules_k))
+$(eval $(call BuildPlugin,lcr,lcr,Least Cost Routing,tm,+libpcre,modules))
+$(eval $(call BuildPlugin,ldap,ldap,LDAP connector,,+libopenldap,modules_k))
+$(eval $(call BuildPlugin,maxfwd,maxfwd,Max-Forward processor,,,modules_k))
+$(eval $(call BuildPlugin,mediaproxy,mediaproxy,Automatic NAT traversal,dialog,,modules))
+$(eval $(call BuildPlugin,mi-datagram,mi_datagram,Datagram support for Management Interface,,,modules_k))
+$(eval $(call BuildPlugin,mi-fifo,mi_fifo,FIFO support for Management Interface,,,modules_k))
+#$(eval $(call BuildPlugin,mi-xmlrpc,mi_xmlrpc,XML-RPC support for Management Interface,,+xmlrpc-c,modules_k))
+$(eval $(call BuildPlugin,mi-rpc,mi_rpc,RPC support for Management Interface,,,modules))
+$(eval $(call BuildPlugin,misc_radius,misc_radius,Generic RADIUS,,+libradiusclient-ng,modules_k))
+$(eval $(call BuildPlugin,msilo,msilo,SIP message silo,tm,,modules_k))
+$(eval $(call BuildPlugin,nat_traversal,nat_traversal,NAT traversal,dialog sl tm,,modules_k))
+$(eval $(call BuildPlugin,nathelper,nathelper,NAT traversal helper,,+rtpproxy,modules_k))
+#$(eval $(call BuildPlugin,osp,osp,OSP peering,auth rr sl tm textops,+libosp,modules_k))
+$(eval $(call BuildPlugin,path,path,SIP path insertion,rr,,modules_k))
+$(eval $(call BuildPlugin,pdt,pdt,Prefix-to-Domain translator,,,modules_k))
+$(eval $(call BuildPlugin,peering,peering,Perring,,+libradiusclient-ng,modules))
+#$(eval $(call BuildPlugin,perl,perl,Perl,sl,+perl,modules_k))
+#$(eval $(call BuildPlugin,perlvdb,perlvdb,Perl Virtual DB,perl,,modules_k))
+$(eval $(call BuildPlugin,permissions,permissions,Permissions control,,,modules_k))
+$(eval $(call BuildPlugin,pike,pike,Flood detector,,,modules_k))
+$(eval $(call BuildPlugin,presence,presence,Presence server,sl tm,+libxml2,modules_k))
+$(eval $(call BuildPlugin,presence-dialoginfo,presence_dialoginfo,Dialog Event presence,presence,,modules_k))
+$(eval $(call BuildPlugin,presence-mwi,presence_mwi,Message Waiting Indication presence,presence,,modules_k))
+$(eval $(call BuildPlugin,presence-xml,presence_xml,XCAP presence,presence xcap-client,,modules_k))
+$(eval $(call BuildPlugin,pua,pua,Presence User Agent,tm,+libxml2,modules_k))
+$(eval $(call BuildPlugin,pua-bla,pua_bla,Bridged Line Appearence PUA,presence pua usrloc,,modules_k))
+$(eval $(call BuildPlugin,pua-dialoginfo,pua_dialoginfo,Dialog Event PUA,dialog pua,,modules_k))
+$(eval $(call BuildPlugin,pua-mi,pua_mi,PUA Management Interface,pua,,modules_k))
+$(eval $(call BuildPlugin,pua-usrloc,pua_usrloc,PUA User Location,pua usrloc,,modules_k))
+$(eval $(call BuildPlugin,pua-xmpp,pua_xmpp,PUA XMPP,presence pua xmpp,,modules_k))
+#$(eval $(call BuildPlugin,purple,purple,Multi-protocol IM gateway,presence pua,+libpurple,modules_k))
+$(eval $(call BuildPlugin,pv,pv,Pseudo-Variables,,,modules_k))
+$(eval $(call BuildPlugin,qos,qos,QoS control,dialog,,modules_k))
+$(eval $(call BuildPlugin,ratelimit,ratelimit,Traffic shapping,,,modules))
+$(eval $(call BuildPlugin,regex,regex,Regular Expression,,+libpcre,modules_k))
+$(eval $(call BuildPlugin,registrar,registrar,SIP Registrar,usrloc,,modules_k))
+$(eval $(call BuildPlugin,rls,rls,Resource List Server,presence pua tm,+libxml2,modules_k))
+$(eval $(call BuildPlugin,rr,rr,Record-Route and Route,,,modules_k))
+$(eval $(call BuildPlugin,rtimer,rtimer,Routing Timer,,,modules_k))
+$(eval $(call BuildPlugin,sanity,sanity,SIP sanity checks,sl,,modules))
+#$(eval $(call BuildPlugin,seas,seas,SIP Express Application Server,tm,,modules_k))
+$(eval $(call BuildPlugin,sipcapture,sipcapture,SIP capture module,,,modules))
+$(eval $(call BuildPlugin,siptrace,siptrace,SIP trace,,,modules_k))
+$(eval $(call BuildPlugin,siputils,siputils,SIP utilities,sl,,modules_k))
+$(eval $(call BuildPlugin,sl,sl,Stateless replier,,,modules))
+$(eval $(call BuildPlugin,sms,sms,SIP-to-SMS IM gateway,tm,,modules))
+#$(eval $(call BuildPlugin,snmpstats,snmpstats,SNMP,presence usrloc,+libnetsnmp,modules_k))
+$(eval $(call BuildPlugin,speeddial,speeddial,Per-user speed-dial controller,,,modules_k))
+$(eval $(call BuildPlugin,sqlops,sqlops,SQL operations,,,modules_k))
+$(eval $(call BuildPlugin,statistics,statistics,Script statistics,,,modules_k))
+$(eval $(call BuildPlugin,sst,sst,SIP Session Timer,dialog sl,,modules_k))
+$(eval $(call BuildPlugin,textops,textops,Text operations,,,modules_k))
+$(eval $(call BuildPlugin,tls,tls,TLS operations,,+libopenssl,modules))
+$(eval $(call BuildPlugin,tm,tm,Transaction,,,modules))
+$(eval $(call BuildPlugin,tmx,tmx,Transaction module extensions,,,modules_k))
+$(eval $(call BuildPlugin,uac,uac,User Agent Client,tm,,modules_k))
+$(eval $(call BuildPlugin,uac-redirect,uac_redirect,User Agent Client redirection,tm,,modules_k))
+$(eval $(call BuildPlugin,uri-db,uri_db,Database-backend SIP URI checking,,,modules_k))
+$(eval $(call BuildPlugin,userblacklist,userblacklist,User blacklists,,,modules_k))
+$(eval $(call BuildPlugin,usrloc,usrloc,User location,,,modules_k))
+$(eval $(call BuildPlugin,utils,utils,Misc utilities,,+libcurl +libxml2,modules))
+$(eval $(call BuildPlugin,xcap-client,xcap_client,XCAP Client,,+libcurl,modules_k))
+$(eval $(call BuildPlugin,xlog,xlog,Advanced logger,,,modules_k))
+$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat,modules_k))
+
+PKG_MAKE_ARGS:= \
+       cfg-dir="/etc/kamailio/" \
+       bin-dir="/usr/sbin/" \
+       data-dir="/var/lib/kamailio/" \
+       lib-dir="/usr/lib/kamailio/" \
+       modules-dir="/usr/lib/kamailio/modules/" \
+       include_modules="$(INCL_MODULES)" \
+       $(KAM3_EXTRA_ARGS) \
+       TLS_HOOKS=1 extra_defs="-DUSE_PTHREAD_MUTEX " \
+       CFLAGS="$(TARGET_CFLAGS)" \
+       ISSMP="no" \
+       LOCALBASE="$(STAGING_DIR)/usr" \
+       SYSBASE="$(STAGING_DIR)/usr" \
+       PCREDEFS:="$(TARGET_CPPFLAGS)" \
+       PCRELIBS:="$(TARGET_LDFLAGS)" \
+       cfg_target:=/etc/kamailio/ \
+       PREFIX:=/usr \
+       prefix:=/usr quiet=verbose
+
+define Build/Compile
+       if ! [ -f $(PREBUILT_STAMP) ]; then echo $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
+               CC="$(TARGET_CC)" \
+               ARCH="$(ARCH)"  \
+               EXTRA_LIBS=-L$(STAGING_DIR)/usr/lib/ \
+               all && touch $(PREBUILT_STAMP); \
+       fi
+       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
+               CC="$(TARGET_CC)" \
+               ARCH="$(ARCH)"  \
+               DESTDIR=$(PKG_INSTALL_DIR) \
+               prefix=/ \
+               install-cfg
+       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
+               CC="$(TARGET_CC)" \
+               ARCH="$(ARCH)"  \
+               DESTDIR=$(PKG_INSTALL_DIR) \
+               prefix=/usr \
+               install-bin install-modules-all install-utils
+endef
+
+$(eval $(call BuildPackage,kamailio3))
+$(eval $(call BuildPackage,kamailio3-example))
+$(eval $(call BuildPackage,kamailio3-tools))
+$(foreach m,$(KAM_MODULES),$(eval $(call BuildPackage,$(m))))
diff --git a/kamailio-3.3.x/files/kamailio.default b/kamailio-3.3.x/files/kamailio.default
new file mode 100644 (file)
index 0000000..a61617b
--- /dev/null
@@ -0,0 +1,13 @@
+# OPTIONS
+# -n COUNT
+# Specifies the number of children processes forked per interface
+# -N COUNT
+# Specifies the number of children processes forked to handle tcp incoming connections
+# -m SIZE
+# Size of the shared memory which will be allocated (in Megabytes).
+# -u UID
+# Changes the user id under which 
+# -g GID
+# Changes the group id under which 
+
+OPTIONS="-n 4 -m 4 - m 8"
diff --git a/kamailio-3.3.x/files/kamailio.init b/kamailio-3.3.x/files/kamailio.init
new file mode 100644 (file)
index 0000000..5a382ae
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2012 OpenWrt.org
+START=99 
+APP=kamailio
+BIN_FILE="/usr/sbin/"$APP
+PID_FILE="/var/run/"$APP".pid"
+
+start() {
+       start-stop-daemon -S -x $BIN_FILE -p $PID_FILE -b -m
+}
+
+stop() {
+       start-stop-daemon -K -x $BIN_FILE -p $PID_FILE -q
+       rm -rf $PID_FILE
+}
diff --git a/kamailio-3.3.x/patches/100-cross_compile.patch b/kamailio-3.3.x/patches/100-cross_compile.patch
new file mode 100644 (file)
index 0000000..963a607
--- /dev/null
@@ -0,0 +1,13 @@
+Index: kamailio3-3.3.0/modules_s/ldap/Makefile
+===================================================================
+--- kamailio3-3.3.0.orig/modules_s/ldap/Makefile       2012-08-14 17:14:01.000000000 +0200
++++ kamailio3-3.3.0/modules_s/ldap/Makefile    2012-08-14 17:14:12.000000000 +0200
+@@ -14,7 +14,7 @@
+ # LD_SCOPE_CHILDREN defined
+ #DEFS += -DHAVE_SCOPE_CHILDREN
+-LIBS=-L$(LOCALBASE)/lib -L /usr/lib -lldap
++LIBS=-L$(LOCALBASE)/lib -lldap
+ DEFS+=-DSER_MOD_INTERFACE
diff --git a/kamailio-4.0.x/Makefile b/kamailio-4.0.x/Makefile
new file mode 100644 (file)
index 0000000..7b6c53c
--- /dev/null
@@ -0,0 +1,251 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=kamailio4
+PKG_VERSION:=4.0.1
+PKG_RELEASE:=1
+
+PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
+PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
+PKG_MD5SUM:=ab57fcb1eb1195fa45f5c0935810e42a
+
+INCL_MODULES:=
+KAM_MODULES:=
+
+include $(INCLUDE_DIR)/nls.mk
+include $(INCLUDE_DIR)/package.mk
+
+TARGET_CFLAGS += $(FPIC)
+PREBUILT_STAMP=$(STAGING_DIR)/stamp/.$(PKG_NAME)_prebuilt
+TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
+
+define Package/kamailio4/Default
+  SECTION:=net
+  CATEGORY:=Network
+  SUBMENU:=Telephony
+  URL:=http://www.kamailio.org/
+  DEPENDS:=$(ICONV_DEPENDS) +libncurses +libpthread +libreadline +libxml2
+endef
+
+define Package/kamailio4
+$(call Package/kamailio4/Default)
+  TITLE:=Mature and flexible open source SIP server, v4.0.x
+  MENU:=1
+endef
+
+define Package/kamailio4/conffiles
+/etc/default/kamailio
+/etc/kamailio/kamailio.cfg
+/etc/kamailio/kamailio-advanced.cfg
+/etc/kamailio/dictionary.kamailio
+/etc/kamailio/tls.cfg
+endef
+
+define Package/kamailio4-tools
+$(call Package/kamailio4/Default)
+  TITLE:=Kamailio4 control tools
+  DEPENDS:=kamailio4 +bash
+endef
+
+define Package/kamailio4-tools/conffiles
+/etc/kamailio/kamctlrc
+endef
+
+define Package/kamailio4/install
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) \
+               $(PKG_INSTALL_DIR)/usr/sbin/{kamailio,kamcmd} \
+               $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules
+       $(INSTALL_BIN) \
+               $(PKG_INSTALL_DIR)/usr/lib/kamailio/lib*.so* \
+               $(1)/usr/lib/kamailio/
+       $(INSTALL_DIR) $(1)/etc/kamailio
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/etc/kamailio/*{kamailio,tls}* \
+               $(1)/etc/kamailio/
+       $(INSTALL_DIR) $(1)/etc/default
+       $(CP) \
+               ./files/kamailio.default \
+               $(1)/etc/default/kamailio
+       $(INSTALL_DIR) $(1)/etc/init.d
+       $(INSTALL_BIN) \
+               ./files/kamailio.init \
+               $(1)/etc/init.d/kamailio        
+endef
+
+define Package/kamailio4-tools/install
+       $(INSTALL_DIR) $(1)/etc/kamailio
+       $(CP) \
+               $(PKG_BUILD_DIR)/utils/kamctl/kamctlrc \
+               $(1)/etc/kamailio/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/sbin/kam{ctl,dbctl} \
+               $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/lib/kamailio
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/lib/kamailio/kamctl \
+               $(1)/usr/lib/kamailio/
+endef
+
+define BuildPlugin
+  define Package/kamailio4-mod-$(1)
+    $$(call Package/kamailio4/Default)
+    TITLE:= kamailio4 $(3) module
+    DEPENDS:=kamailio4 $$(foreach m,$(4),+kamailio4-mod-$$m) $(5)
+  endef
+
+  define Package/kamailio4-mod-$(1)/install
+       $(INSTALL_DIR) $$(1)/usr/lib/kamailio/modules
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/modules/$(2).so \
+                       $$(1)/usr/lib/kamailio/modules/ ;
+  endef
+
+  INCL_MODULES+=$(2)
+  KAM_MODULES+=kamailio4-mod-$(1)
+endef
+
+$(eval $(call BuildPlugin,acc,acc,Accounting,tm,))
+$(eval $(call BuildPlugin,acc-radius,acc_radius,Accounting for RADIUS backend,acc,+libradiusclient-ng))
+$(eval $(call BuildPlugin,alias-db,alias_db,Database-backend aliases,db-sqlite,))
+$(eval $(call BuildPlugin,auth,auth,Authentication Framework,,))
+$(eval $(call BuildPlugin,auth-db,auth_db,Database-backend authentication,auth db-sqlite,))
+$(eval $(call BuildPlugin,auth-diameter,auth_diameter,Diameter-backend authentication,sl,))
+$(eval $(call BuildPlugin,auth-radius,auth_radius,RADIUS-backend authentication,auth,+libradiusclient-ng))
+$(eval $(call BuildPlugin,avpops,avpops,AVP operation,,))
+$(eval $(call BuildPlugin,benchmark,benchmark,Config benchmark,,))
+$(eval $(call BuildPlugin,cfgutils,cfgutils,Config utilities,,))
+$(eval $(call BuildPlugin,cfg-db,cfg_db,Load core and module parameters from database,db-sqlite,))
+$(eval $(call BuildPlugin,cfg-rpc,cfg_rpc,Update core and module parameters at runtime via RPC interface,,))
+$(eval $(call BuildPlugin,corex,corex,Legacy functions,,))
+$(eval $(call BuildPlugin,ctl,ctl,BINRPC transport interface,,))
+$(eval $(call BuildPlugin,db-flatstore,db_flatstore,Fast writing-only text database-backed,,))
+$(eval $(call BuildPlugin,db-mysql,db_mysql,MySQL database-backend,,+libmysqlclient))
+$(eval $(call BuildPlugin,db-postgres,db_postgres,PostgreSQL Database-backend,,+libpq))
+$(eval $(call BuildPlugin,db-sqlite,db_sqlite,Sqlite DB support,,+libsqlite3))
+$(eval $(call BuildPlugin,db-text,db_text,Text database-backend,,))
+$(eval $(call BuildPlugin,db-unixodbc,db_unixodbc,UnixODBC Database-backend,,+unixodbc))
+$(eval $(call BuildPlugin,dialog,dialog,Dialog support,rr tm,))
+$(eval $(call BuildPlugin,dialog_ng,dialog,Dialog support,rr tm,))
+$(eval $(call BuildPlugin,dialplan,dialplan,Dialplan management,,+libpcre))
+$(eval $(call BuildPlugin,dispatcher,dispatcher,Dispatcher,,))
+$(eval $(call BuildPlugin,diversion,diversion,Diversion header insertion,,))
+$(eval $(call BuildPlugin,domain,domain,Multi-domain support,,))
+$(eval $(call BuildPlugin,domainpolicy,domainpolicy,Domain policy,,))
+$(eval $(call BuildPlugin,enum,enum,ENUM lookup,,))
+$(eval $(call BuildPlugin,exec,exec,External exec,,))
+$(eval $(call BuildPlugin,group,group,Database-backend user-groups,,))
+$(eval $(call BuildPlugin,h350,h350,H.350,ldap,+libopenldap))
+$(eval $(call BuildPlugin,htable,htable,Hash Table,,))
+$(eval $(call BuildPlugin,imc,imc,IM conferencing,db-mysql tm,))
+$(eval $(call BuildPlugin,ipops,ipops,IP and IPv6 operations,,))
+$(eval $(call BuildPlugin,json,json,Access to JSON document attributes,,+libjson))
+$(eval $(call BuildPlugin,kex,kex,Core extensions,,))
+$(eval $(call BuildPlugin,lcr,lcr,Least Cost Routing,tm,+libpcre))
+$(eval $(call BuildPlugin,ldap,ldap,LDAP connector,,+libopenldap))
+$(eval $(call BuildPlugin,maxfwd,maxfwd,Max-Forward processor,,))
+$(eval $(call BuildPlugin,mediaproxy,mediaproxy,Automatic NAT traversal,dialog,))
+$(eval $(call BuildPlugin,mi-datagram,mi_datagram,Datagram support for Management Interface,,))
+$(eval $(call BuildPlugin,mi-fifo,mi_fifo,FIFO support for Management Interface,,))
+$(eval $(call BuildPlugin,mi-rpc,mi_rpc,RPC support for Management Interface,,))
+$(eval $(call BuildPlugin,misc_radius,misc_radius,Generic RADIUS,,+libradiusclient-ng))
+$(eval $(call BuildPlugin,msilo,msilo,SIP message silo,tm,))
+$(eval $(call BuildPlugin,nat_traversal,nat_traversal,NAT traversal,dialog sl tm,))
+$(eval $(call BuildPlugin,nathelper,nathelper,NAT traversal helper,,+rtpproxy))
+$(eval $(call BuildPlugin,path,path,SIP path insertion,rr,))
+$(eval $(call BuildPlugin,pdt,pdt,Prefix-to-Domain translator,,))
+$(eval $(call BuildPlugin,peering,peering,Perring,,+libradiusclient-ng))
+$(eval $(call BuildPlugin,permissions,permissions,Permissions control,,))
+$(eval $(call BuildPlugin,pike,pike,Flood detector,,))
+$(eval $(call BuildPlugin,presence,presence,Presence server,sl tm,+libxml2))
+$(eval $(call BuildPlugin,presence-dialoginfo,presence_dialoginfo,Dialog Event presence,presence,))
+$(eval $(call BuildPlugin,presence-mwi,presence_mwi,Message Waiting Indication presence,presence,))
+$(eval $(call BuildPlugin,presence-xml,presence_xml,XCAP presence,presence xcap-client,))
+$(eval $(call BuildPlugin,pua,pua,Presence User Agent,tm,+libxml2))
+$(eval $(call BuildPlugin,pua-bla,pua_bla,Bridged Line Appearence PUA,presence pua usrloc,))
+$(eval $(call BuildPlugin,pua-dialoginfo,pua_dialoginfo,Dialog Event PUA,dialog pua,))
+$(eval $(call BuildPlugin,pua-mi,pua_mi,PUA Management Interface,pua,))
+$(eval $(call BuildPlugin,pua-usrloc,pua_usrloc,PUA User Location,pua usrloc,))
+$(eval $(call BuildPlugin,pua-xmpp,pua_xmpp,PUA XMPP,presence pua xmpp,))
+$(eval $(call BuildPlugin,pv,pv,Pseudo-Variables,,))
+$(eval $(call BuildPlugin,qos,qos,QoS control,dialog,))
+$(eval $(call BuildPlugin,ratelimit,ratelimit,Traffic shapping,,))
+$(eval $(call BuildPlugin,regex,regex,Regular Expression,,+libpcre))
+$(eval $(call BuildPlugin,registrar,registrar,SIP Registrar,usrloc,))
+$(eval $(call BuildPlugin,rls,rls,Resource List Server,presence pua tm,+libxml2))
+$(eval $(call BuildPlugin,rr,rr,Record-Route and Route,,))
+$(eval $(call BuildPlugin,rtimer,rtimer,Routing Timer,,))
+$(eval $(call BuildPlugin,sanity,sanity,SIP sanity checks,sl,))
+$(eval $(call BuildPlugin,sipcapture,sipcapture,SIP capture,,))
+$(eval $(call BuildPlugin,siptrace,siptrace,SIP trace,,))
+$(eval $(call BuildPlugin,siputils,siputils,SIP utilities,sl,))
+$(eval $(call BuildPlugin,sl,sl,Stateless replier,,))
+$(eval $(call BuildPlugin,sms,sms,SIP-to-SMS IM gateway,tm,))
+$(eval $(call BuildPlugin,speeddial,speeddial,Per-user speed-dial controller,,))
+$(eval $(call BuildPlugin,sqlops,sqlops,SQL operations,,))
+$(eval $(call BuildPlugin,statistics,statistics,Script statistics,,))
+$(eval $(call BuildPlugin,sst,sst,SIP Session Timer,dialog sl,))
+$(eval $(call BuildPlugin,textops,textops,Text operations,,))
+$(eval $(call BuildPlugin,tls,tls,TLS operations,,+libopenssl))
+$(eval $(call BuildPlugin,topoh,topoh,Topology hiding,rr,))
+$(eval $(call BuildPlugin,tm,tm,Transaction,,))
+$(eval $(call BuildPlugin,tmx,tmx,Transaction module extensions,,))
+$(eval $(call BuildPlugin,uac,uac,User Agent Client,tm,))
+$(eval $(call BuildPlugin,uac-redirect,uac_redirect,User Agent Client redirection,tm,))
+$(eval $(call BuildPlugin,uri-db,uri_db,Database-backend SIP URI checking,,))
+$(eval $(call BuildPlugin,userblacklist,userblacklist,User blacklists,,))
+$(eval $(call BuildPlugin,usrloc,usrloc,User location,,))
+$(eval $(call BuildPlugin,utils,utils,Misc utilities,,+libcurl +libxml2))
+$(eval $(call BuildPlugin,xcap-client,xcap_client,XCAP Client,,+libcurl))
+$(eval $(call BuildPlugin,xlog,xlog,Advanced logger,,))
+$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat))
+
+PKG_MAKE_ARGS:= \
+       cfg-dir="/etc/kamailio/" \
+       bin-dir="/usr/sbin/" \
+       data-dir="/var/lib/kamailio/" \
+       lib-dir="/usr/lib/kamailio/" \
+       modules-dir="/usr/lib/kamailio/modules/" \
+       include_modules="$(INCL_MODULES)" \
+       TLS_HOOKS=1 \
+       extra_defs="-DUSE_PTHREAD_MUTEX " \
+       CFLAGS="$(TARGET_CFLAGS)" \
+       ISSMP="no" \
+       LOCALBASE="$(STAGING_DIR)/usr" \
+       SYSBASE="$(STAGING_DIR)/usr" \
+       PCREDEFS:="$(TARGET_CPPFLAGS)" \
+       PCRELIBS:="$(TARGET_LDFLAGS)" \
+       cfg_target:=/etc/kamailio/ \
+       PREFIX:=/usr \
+       CROSS_COMPILE=$(TARGET_CROSS) \
+       CC="$(TARGET_CC)" \
+       ARCH="$(ARCH)"  \
+       DESTDIR=$(PKG_INSTALL_DIR) \
+       quiet=verbose \
+       prefix=/usr
+
+define Build/Configure
+       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
+               cfg
+endef
+
+define Build/Compile
+       if ! [ -f $(PREBUILT_STAMP) ]; then \
+               echo $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
+               EXTRA_LIBS=-L$(STAGING_DIR)/usr/lib/ \
+               all && touch $(PREBUILT_STAMP); \
+       fi
+       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
+               install
+endef
+
+$(eval $(call BuildPackage,kamailio4))
+$(eval $(call BuildPackage,kamailio4-tools))
+$(foreach m,$(KAM_MODULES),$(eval $(call BuildPackage,$(m))))
diff --git a/kamailio-4.0.x/files/kamailio.default b/kamailio-4.0.x/files/kamailio.default
new file mode 100644 (file)
index 0000000..a61617b
--- /dev/null
@@ -0,0 +1,13 @@
+# OPTIONS
+# -n COUNT
+# Specifies the number of children processes forked per interface
+# -N COUNT
+# Specifies the number of children processes forked to handle tcp incoming connections
+# -m SIZE
+# Size of the shared memory which will be allocated (in Megabytes).
+# -u UID
+# Changes the user id under which 
+# -g GID
+# Changes the group id under which 
+
+OPTIONS="-n 4 -m 4 - m 8"
diff --git a/kamailio-4.0.x/files/kamailio.init b/kamailio-4.0.x/files/kamailio.init
new file mode 100644 (file)
index 0000000..5a382ae
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2012 OpenWrt.org
+START=99 
+APP=kamailio
+BIN_FILE="/usr/sbin/"$APP
+PID_FILE="/var/run/"$APP".pid"
+
+start() {
+       start-stop-daemon -S -x $BIN_FILE -p $PID_FILE -b -m
+}
+
+stop() {
+       start-stop-daemon -K -x $BIN_FILE -p $PID_FILE -q
+       rm -rf $PID_FILE
+}
diff --git a/kamailio/Makefile b/kamailio/Makefile
deleted file mode 100644 (file)
index b89dbb0..0000000
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Copyright (C) 2009 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=kamailio
-PKG_VERSION:=1.5.2
-PKG_RELEASE:=1
-PKG_VARIANT:=-tls
-
-PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/1.5.2/src/
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
-PKG_MD5SUM:=26b0d0d3c67c2d981bee86a803cca51f
-
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT)
-
-PKG_BUILD_DEPENDS:=curl expat libxml2 mysql openldap openssl pcre postgresql radiusclient-ng
-
-include $(INCLUDE_DIR)/package.mk
-
-TARGET_CFLAGS += $(FPIC)
-
-define Package/kamailio/Default
-  SECTION:=net
-  CATEGORY:=Network
-  SUBMENU:=Telephony
-  URL:=http://www.kamailio.org/
-endef
-
-
-define Package/kamailio
-$(call Package/kamailio/Default)
-  TITLE:=Mature and flexible open source SIP server, v1.5.x
-  MENU:=1
-endef
-
-define Package/kamailio-example
-$(call Package/kamailio/Default)
-  TITLE:=Kamailio example config
-  DEPENDS:=kamailio \
-       +kamailio-mod-acc \
-       +kamailio-mod-maxfwd \
-       +kamailio-mod-mi-fifo \
-       +kamailio-mod-pv \
-       +kamailio-mod-registrar \
-       +kamailio-mod-rr \
-       +kamailio-mod-sl \
-       +kamailio-mod-siputils \
-       +kamailio-mod-textops \
-       +kamailio-mod-tm \
-       +kamailio-mod-uri-db \
-       +kamailio-mod-usrloc \
-       +kamailio-mod-xlog
-endef
-
-define Package/kamailio-example/conffiles
-/etc/default/kamailio
-/etc/kamailio/kamailio.cfg
-endef
-
-
-define Package/kamailio-tools
-$(call Package/kamailio/Default)
-  TITLE:=Kamailio control tools
-  DEPENDS:=kamailio
-endef
-
-define Package/kamailio-tools/conffiles
-/etc/kamailio/kamctlrc
-endef
-
-
-PKG_EXCL_MODULES:= \
-       auth_diameter \
-       carrierroute \
-       db_berkeley \
-       db_oracle \
-       db_unixodbc \
-       mediaproxy \
-       mi_xmlrpc \
-       osp \
-       perl \
-       perlvdb \
-       purple \
-       snmpstats \
-
-PKG_MAKE_ARGS:= \
-       cfg-dir="etc/kamailio/" \
-       bin-dir="usr/sbin/" \
-       data-dir="var/lib/kamailio/" \
-       lib-dir="usr/lib/kamailio/" \
-       modules-dir="usr/lib/kamailio/modules/" \
-       exclude_modules="$(PKG_EXCL_MODULES)" \
-
-
-define Build/Compile
-       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
-               prefix=/ \
-               extra_defs="-DUSE_PTHREAD_MUTEX "  \
-               CC="$(TARGET_CC)" \
-               ARCH="$(ARCH)"  \
-               CFLAGS="$(TARGET_CFLAGS)" \
-               ISSMP="no" \
-               LOCALBASE="$(STAGING_DIR)/usr" \
-               SYSBASE="$(STAGING_DIR)/usr" \
-               PCREDEFS:="$(TARGET_CPPFLAGS)" \
-               PCRELIBS:="$(TARGET_LDFLAGS)" \
-               CROSS_COMPILE=1 \
-               all
-       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
-               DESTDIR="$(PKG_INSTALL_DIR)" \
-               install
-endef
-
-define Package/kamailio/install
-       $(INSTALL_DIR) $(1)/usr/sbin
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/sbin/kamailio \
-               $(1)/usr/sbin/
-       $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules
-endef
-
-define Package/kamailio-example/install
-       $(INSTALL_DIR) $(1)/etc/kamailio
-       $(CP) \
-               $(PKG_INSTALL_DIR)/etc/kamailio/kamailio.cfg \
-               $(1)/etc/kamailio/
-       $(SED) 's,$(PKG_INSTALL_DIR),,g' \
-               $(1)/etc/kamailio/kamailio.cfg
-       $(INSTALL_DIR) $(1)/etc/default
-       $(INSTALL_DATA) ./files/kamailio.default $(1)/etc/default/kamailio
-       $(INSTALL_DIR) $(1)/etc/init.d
-       $(INSTALL_BIN) ./files/kamailio.init $(1)/etc/init.d/kamailio
-endef
-
-define Package/kamailio-tools/install
-       $(INSTALL_DIR) $(1)/etc/kamailio
-       $(CP) \
-               $(PKG_INSTALL_DIR)/etc/kamailio/kamctlrc \
-               $(1)/etc/kamailio/
-       $(INSTALL_DIR) $(1)/usr/sbin
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/sbin/kam{ctl,dbctl,unix} \
-               $(1)/usr/sbin/
-       $(INSTALL_DIR) $(1)/usr/lib/kamailio
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/lib/kamailio/kamctl \
-               $(1)/usr/lib/kamailio/
-       $(SED) 's,/bin/bash,/bin/sh,g' \
-               -e 's,$(PKG_INSTALL_DIR),,g' \
-               $(1)/usr/sbin/kam{ctl,dbctl}
-endef
-
-define BuildPlugin
-  define Package/kamailio-mod-$(1)
-    $$(call Package/kamailio/Default)
-    TITLE:= kamailio $(3) module
-    DEPENDS:=kamailio $$(foreach m,$(4),+kamailio-mod-$$m) $(5)
-  endef
-
-  define Package/kamailio-mod-$(1)/install
-       [ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/kamailio/modules/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/modules/$(2).so \
-                       $$(1)/usr/lib/kamailio/modules/ ;
-  endef
-
-  $$(eval $$(call BuildPackage,kamailio-mod-$(1)))
-endef
-
-$(eval $(call BuildPackage,kamailio))
-$(eval $(call BuildPackage,kamailio-example))
-$(eval $(call BuildPackage,kamailio-tools))
-$(eval $(call BuildPlugin,acc,acc,Accounting,tm,))
-$(eval $(call BuildPlugin,alias-db,alias_db,Database-backend aliases,,))
-$(eval $(call BuildPlugin,auth,auth,Authentication Framework,,))
-$(eval $(call BuildPlugin,auth-db,auth_db,Database-backend authentication,auth,))
-#$(eval $(call BuildPlugin,auth-diameter,auth_diameter,Diameter-backend authentication,sl,))
-$(eval $(call BuildPlugin,auth-radius,auth_radius,RADIUS-backend authentication,auth,+libradiusclient-ng))
-$(eval $(call BuildPlugin,avpops,avpops,AVP operation,,))
-$(eval $(call BuildPlugin,benchmark,benchmark,Config benchmark,,))
-#$(eval $(call BuildPlugin,carrierroute,carrierroute,Carrier Routing,,+libconfuse))
-$(eval $(call BuildPlugin,cfgutils,cfgutils,Config utilities,,))
-$(eval $(call BuildPlugin,cpl-c,cpl-c,Call Processing language interpreter,tm sl usrloc,+libxml2))
-#$(eval $(call BuildPlugin,db-berkeley,db_berkeley,Berkeley DB Database-backend,,))
-$(eval $(call BuildPlugin,db-flatstore,db_flatstore,Fast writing-only text database-backed,,))
-$(eval $(call BuildPlugin,db-mysql,db_mysql,MySQL database-backend,,+libmysqlclient))
-#$(eval $(call BuildPlugin,db-oracle,db_oracle,Oracle Database-backend,,))
-$(eval $(call BuildPlugin,db-postgres,db_postgres,PostgreSQL Database-backend,,+libpq))
-$(eval $(call BuildPlugin,db-text,db_text,Text database-backend,,))
-#$(eval $(call BuildPlugin,db-unixodbc,db_unixodbc,UnixODBC Database-backend,,))
-$(eval $(call BuildPlugin,dialog,dialog,Dialog support,rr tm,))
-$(eval $(call BuildPlugin,dialplan,dialplan,Dialplan management,,+libpcre))
-$(eval $(call BuildPlugin,dispatcher,dispatcher,Dispatcher,,))
-$(eval $(call BuildPlugin,diversion,diversion,Diversion header insertion,,))
-$(eval $(call BuildPlugin,domain,domain,Multi-domain support,,))
-$(eval $(call BuildPlugin,domainpolicy,domainpolicy,Domain policy,,))
-$(eval $(call BuildPlugin,enum,enum,ENUM lookup,,))
-$(eval $(call BuildPlugin,exec,exec,External exec,,))
-$(eval $(call BuildPlugin,group,group,Database-backend user-groups,,))
-$(eval $(call BuildPlugin,h350,h350,H.350,ldap,+libopenldap))
-$(eval $(call BuildPlugin,htable,htable,Hash Table,,))
-$(eval $(call BuildPlugin,imc,imc,IM conferencing,db-mysql tm,))
-$(eval $(call BuildPlugin,jabber,jabber,Jabber,tm,+libexpat))
-$(eval $(call BuildPlugin,lcr,lcr,Least Cost Routing,tm,+libpcre))
-$(eval $(call BuildPlugin,ldap,ldap,LDAP connector,,+libopenldap))
-$(eval $(call BuildPlugin,maxfwd,maxfwd,Max-Forward processor,,))
-$(eval $(call BuildPlugin,mi-datagram,mi_datagram,Datagram support for Management Interface,,))
-$(eval $(call BuildPlugin,mi-fifo,mi_fifo,FIFO support for Management Interface,,))
-#$(eval $(call BuildPlugin,mi-xmlrpc,mi_xmlrpc,XML-RPC support for Management Interface,,+xmlrpc-c))
-#$(eval $(call BuildPlugin,mediaproxy,mediaproxy,NAT traversal,,+mediaproxy))
-$(eval $(call BuildPlugin,misc_radius,misc_radius,Generic RADIUS,,+libradiusclient-ng))
-$(eval $(call BuildPlugin,msilo,msilo,SIP message silo,tm,))
-$(eval $(call BuildPlugin,nat_traversal,nat_traversal,NAT traversal,dialog sl tm,))
-$(eval $(call BuildPlugin,nathelper,nathelper,NAT traversal helper,,+rtpproxy))
-#$(eval $(call BuildPlugin,osp,osp,OSP peering,auth rr sl tm textops,+libosp))
-$(eval $(call BuildPlugin,path,path,SIP path insertion,rr,))
-$(eval $(call BuildPlugin,pdt,pdt,Prefix-to-Domain translator,,))
-$(eval $(call BuildPlugin,peering,peering,Perring,,+libradiusclient-ng))
-#$(eval $(call BuildPlugin,perl,perl,Perl,sl,+perl))
-#$(eval $(call BuildPlugin,perlvdb,perlvdb,Perl Virtual DB,perl,))
-$(eval $(call BuildPlugin,permissions,permissions,Permissions control,,))
-$(eval $(call BuildPlugin,pike,pike,Flood detector,,))
-$(eval $(call BuildPlugin,presence,presence,Presence server,sl tm,+libxml2))
-$(eval $(call BuildPlugin,presence-dialoginfo,presence_dialoginfo,Dialog Event presence,presence,))
-$(eval $(call BuildPlugin,presence-mwi,presence_mwi,Message Waiting Indication presence,presence,))
-$(eval $(call BuildPlugin,presence-xml,presence_xml,XCAP presence,presence xcap-client,))
-$(eval $(call BuildPlugin,pua,pua,Presence User Agent,tm,+libxml2))
-$(eval $(call BuildPlugin,pua-bla,pua_bla,Bridged Line Appearence PUA,presence pua usrloc,))
-$(eval $(call BuildPlugin,pua-dialoginfo,pua_dialoginfo,Dialog Event PUA,dialog pua,))
-$(eval $(call BuildPlugin,pua-mi,pua_mi,PUA Management Interface,pua,))
-$(eval $(call BuildPlugin,pua-usrloc,pua_usrloc,PUA User Location,pua usrloc,))
-$(eval $(call BuildPlugin,pua-xmpp,pua_xmpp,PUA XMPP,presence pua xmpp,))
-#$(eval $(call BuildPlugin,purple,purple,Multi-protocol IM gateway,presence pua,+libpurple))
-$(eval $(call BuildPlugin,pv,pv,Pseudo-Variables,,))
-$(eval $(call BuildPlugin,qos,qos,QoS control,dialog,))
-$(eval $(call BuildPlugin,ratelimit,ratelimit,Traffic shapping,,))
-$(eval $(call BuildPlugin,regex,regex,Regular Expression,,+libpcre))
-$(eval $(call BuildPlugin,registrar,registrar,SIP Registrar,usrloc,))
-$(eval $(call BuildPlugin,rls,rls,Resource List Server,presence pua tm,+libxml2))
-$(eval $(call BuildPlugin,rr,rr,Record-Route and Route,,))
-$(eval $(call BuildPlugin,rtimer,rtimer,Routing Timer,,))
-$(eval $(call BuildPlugin,sanity,sanity,SIP sanity checks,sl,))
-#$(eval $(call BuildPlugin,seas,seas,SIP Express Application Server,tm,))
-$(eval $(call BuildPlugin,siptrace,siptrace,SIP trace,,))
-$(eval $(call BuildPlugin,siputils,siputils,SIP utilities,sl,))
-$(eval $(call BuildPlugin,sl,sl,Stateless replier,,))
-$(eval $(call BuildPlugin,sms,sms,SIP-to-SMS IM gateway,tm,))
-#$(eval $(call BuildPlugin,snmpstats,snmpstats,SNMP,presence usrloc,+libnetsnmp))
-$(eval $(call BuildPlugin,speeddial,speeddial,Per-user speed-dial controller,,))
-$(eval $(call BuildPlugin,sqlops,sqlops,SQL operations,,))
-$(eval $(call BuildPlugin,statistics,statistics,Script statistics,,))
-$(eval $(call BuildPlugin,sst,sst,SIP Session Timer,dialog sl,))
-$(eval $(call BuildPlugin,textops,textops,Text operations,,))
-$(eval $(call BuildPlugin,tlsops,tlsops,TLS operations,,+libopenssl))
-$(eval $(call BuildPlugin,tm,tm,Transaction,,))
-$(eval $(call BuildPlugin,uac,uac,User Agent Client,tm,))
-$(eval $(call BuildPlugin,uac-redirect,uac_redirect,User Agent Client redirection,tm,))
-$(eval $(call BuildPlugin,uri-db,uri_db,Database-backend SIP URI checking,,))
-$(eval $(call BuildPlugin,userblacklist,userblacklist,User blacklists,,))
-$(eval $(call BuildPlugin,usrloc,usrloc,User location,,))
-$(eval $(call BuildPlugin,utils,utils,Misc utilities,,+libcurl))
-$(eval $(call BuildPlugin,xcap-client,xcap_client,XCAP Client,,+libcurl))
-$(eval $(call BuildPlugin,xlog,xlog,Advanced logger,,))
-$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat))
diff --git a/kamailio/files/kamailio.default b/kamailio/files/kamailio.default
deleted file mode 100644 (file)
index a61617b..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# OPTIONS
-# -n COUNT
-# Specifies the number of children processes forked per interface
-# -N COUNT
-# Specifies the number of children processes forked to handle tcp incoming connections
-# -m SIZE
-# Size of the shared memory which will be allocated (in Megabytes).
-# -u UID
-# Changes the user id under which 
-# -g GID
-# Changes the group id under which 
-
-OPTIONS="-n 4 -m 4 - m 8"
diff --git a/kamailio/files/kamailio.init b/kamailio/files/kamailio.init
deleted file mode 100755 (executable)
index 1f42a9e..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh /etc/rc.common
-# Copyright (C) 2009 OpenWrt.org
-START=50
-
-BIN=kamailio
-DEFAULT=/etc/default/$BIN
-RUN_D=/var/run
-PID_F=$RUN_D/$BIN.pid
-
-start() {
-       [ -f $DEFAULT ] && . $DEFAULT
-       mkdir -p $RUN_D
-       $BIN -P $PID_F $OPTIONS >/dev/null 2>&1
-}
-
-stop() {
-       [ -f $PID_F ] && kill $(cat $PID_F)
-}
-
diff --git a/kamailio/patches/005-config_h.patch b/kamailio/patches/005-config_h.patch
deleted file mode 100644 (file)
index a641b3a..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/config.h
-+++ b/config.h
-@@ -48,7 +48,7 @@
- #define MAX_LISTEN 16         /*!< maximum number of addresses on which we will listen */
--#define CHILD_NO    8         /*!< default number of child processes started */
-+#define CHILD_NO    4         /*!< default number of child processes started */
- #ifndef RT_NO
- #define RT_NO 80              /*!< routing tables number */
-@@ -119,7 +119,7 @@
- #define PKG_MEM_POOL_SIZE 4*1024*1024         /*!< Used only if PKG_MALLOC is defined*/
- #endif
--#define SHM_MEM_SIZE 32                               /*!< Used if SH_MEM is defined*/
-+#define SHM_MEM_SIZE 8                                /*!< Used if SH_MEM is defined*/
- #define TIMER_TICK   1                        /*!< one second */
- #define UTIMER_TICK  100*1000                 /*!< 100 miliseconds*/
diff --git a/kamailio/patches/007-modules_build.patch b/kamailio/patches/007-modules_build.patch
deleted file mode 100644 (file)
index 3fac163..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
---- a/modules/carrierroute/Makefile
-+++ b/modules/carrierroute/Makefile
-@@ -12,10 +12,8 @@ NAME=carrierroute.so
- BUILDER = $(shell which confuse-config)
- ifeq ($(BUILDER),)
--      CONFUSEDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
--              -I/usr/sfw/include
--      CONFUSELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
--              -L/opt/lib -lconfuse
-+      CONFUSEDEFS=-I$(LOCALBASE)/include
-+      CONFUSELIBS=-L$(LOCALBASE)/lib
- else
-               CONFUSEDEFS = $(shell confuse-config --cflags)
-               CONFUSELIBS = $(shell confuse-config --libs)
---- a/modules/h350/Makefile
-+++ b/modules/h350/Makefile
-@@ -9,7 +9,8 @@ include ../../Makefile.defs
- auto_gen=
- NAME=h350.so
--LIBS=
-+
- DEFS+=-I$(LOCALBASE)/include
-+LIBS=-L$(LOCALBASE)/lib -lldap
- include ../../Makefile.modules
---- a/modules/ldap/Makefile
-+++ b/modules/ldap/Makefile
-@@ -12,8 +12,8 @@ include ../../Makefile.defs
- auto_gen=
- NAME=ldap.so
--LIBS=-L$(LOCALBASE)/lib -lldap
- DEFS+=-I$(LOCALBASE)/include
-+LIBS=-L$(LOCALBASE)/lib -lldap
- ifeq ($(OS),solaris)
-        DEFS+=-I$(LOCALBASE)/include -I/usr/sfw/include -I/usr/local/include -I/opt/sfw/include -I/opt/csw/include
---- a/modules/pua_bla/Makefile
-+++ b/modules/pua_bla/Makefile
-@@ -9,8 +9,8 @@ include ../../Makefile.defs
- auto_gen=
- NAME=pua_bla.so
- LIBS=
--DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
--LIBS+=-L/usr/include/lib  -L$(LOCALBASE)/lib -lxml2
-+DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
-+LIBS+=-L$(LOCALBASE)/lib -lxml2
- include ../../Makefile.modules
---- a/modules/pua_xmpp/Makefile
-+++ b/modules/pua_xmpp/Makefile
-@@ -10,7 +10,7 @@ auto_gen=
- NAME= pua_xmpp.so
- LIBS=
--DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
--LIBS+=-L/usr/include/lib  -L$(LOCALBASE)/lib -lxml2
-+DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
-+LIBS+=-L$(LOCALBASE)/lib -lxml2
- include ../../Makefile.modules
---- a/modules/regex/Makefile
-+++ b/modules/regex/Makefile
-@@ -7,10 +7,8 @@ NAME=regex.so
- BUILDER = $(shell which pcre-config)
- ifeq ($(BUILDER),)
--      PCREDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
--      -I/usr/sfw/include
--      PCRELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
--      -L/opt/lib -lpcre
-+      PCREDEFS=-I$(LOCALBASE)/include 
-+      PCRELIBS=-L$(LOCALBASE)/lib -lpcre
- else
-       PCREDEFS = $(shell pcre-config --cflags)
-       PCRELIBS = $(shell pcre-config --libs)
---- a/modules/tlsops/Makefile
-+++ b/modules/tlsops/Makefile
-@@ -7,8 +7,8 @@ auto_gen=
- NAME=tlsops.so
- LIBS=
--DEFS+= -I$(LOCALBASE)/ssl/include
--LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl  -lcrypto
-+DEFS+= -I$(LOCALBASE)/include
-+LIBS+= -L$(LOCALBASE)/lib -lssl  -lcrypto
- include ../../Makefile.modules
---- a/modules/dialplan/Makefile
-+++ b/modules/dialplan/Makefile
-@@ -9,10 +9,8 @@ NAME=dialplan.so
- BUILDER = $(shell which pcre-config)
- ifeq ($(BUILDER),)
--      PCREDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
--      -I/usr/sfw/include
--      PCRELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
--      -L/opt/lib -lpcre
-+      PCREDEFS=-I$(LOCALBASE)/include
-+      PCRELIBS=-L$(LOCALBASE)/lib -lpcre
- else
-       PCREDEFS = $(shell pcre-config --cflags)
-       PCRELIBS = $(shell pcre-config --libs)
---- a/modules/lcr/Makefile
-+++ b/modules/lcr/Makefile
-@@ -11,10 +11,8 @@ NAME=lcr.so
- BUILDER = $(shell which pcre-config)
- ifeq ($(BUILDER),)
--      PCREDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
--      -I/usr/sfw/include
--      PCRELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
--      -L/opt/lib -lpcre
-+      PCREDEFS=-I$(LOCALBASE)/include
-+      PCRELIBS=-L$(LOCALBASE)/lib -lpcre
- else
-       PCREDEFS = $(shell pcre-config --cflags)
-       PCRELIBS = $(shell pcre-config --libs)
---- a/modules/purple/Makefile
-+++ b/modules/purple/Makefile
-@@ -3,9 +3,9 @@ auto_gen=
- NAME=purple.so
- LIBS= 
--DEFS+=-I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 \
--              -I/usr/include/libxml2
--LIBS+=-lglib-2.0 -lpurple -lxml2
-+DEFS+=-I$(LOCALBASE)/include/glib-2.0/include -I$(LOCALBASE)/include/glib-2.0 \
-+              -I$(LOCALBASE)/incldue/libxml2
-+LIBS+=-L$(LOCALBASE)/lib -lglib-2.0 -lpurple -lxml2
- include ../../Makefile.modules
diff --git a/kamailio3/Makefile b/kamailio3/Makefile
deleted file mode 100644 (file)
index 3ee49c2..0000000
+++ /dev/null
@@ -1,284 +0,0 @@
-#
-# Copyright (C) 2013 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=kamailio3
-PKG_VERSION:=3.3.4
-PKG_RELEASE:=1
-
-PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
-PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
-PKG_MD5SUM:=24d6a0c852d49791f7e0d0694e128d43
-
-INCL_MODULES:=
-KAM_MODULES:=
-
-include $(INCLUDE_DIR)/nls.mk
-include $(INCLUDE_DIR)/package.mk
-
-TARGET_CFLAGS += $(FPIC)
-PREBUILT_STAMP=$(STAGING_DIR)/stamp/.$(PKG_NAME)_prebuilt
-TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
-
-define Package/kamailio3/Default
-  SECTION:=net
-  CATEGORY:=Network
-  SUBMENU:=Telephony
-  URL:=http://www.kamailio.org/
-  DEPENDS:=$(ICONV_DEPENDS) +libncurses +libpthread +libreadline
-endef
-
-define Package/kamailio3
-$(call Package/kamailio3/Default)
-  TITLE:=Mature and flexible open source SIP server, v3.3.x
-  MENU:=1
-endef
-
-define Package/kamailio3-example
-$(call Package/kamailio3/Default)
-  TITLE:=Kamailio3 example config
-  DEPENDS:=kamailio3 \
-       +kamailio3-mod-acc \
-       +kamailio3-mod-maxfwd \
-       +kamailio3-mod-mi-fifo \
-       +kamailio3-mod-pv \
-       +kamailio3-mod-registrar \
-       +kamailio3-mod-rr \
-       +kamailio3-mod-sl \
-       +kamailio3-mod-siputils \
-       +kamailio3-mod-textops \
-       +kamailio3-mod-tm \
-       +kamailio3-mod-uri-db \
-       +kamailio3-mod-usrloc \
-       +kamailio3-mod-xlog
-endef
-
-define Package/kamailio3-example/conffiles
-/etc/default/kamailio
-/etc/kamailio/kamailio.cfg
-endef
-
-define Package/kamailio3-tools
-$(call Package/kamailio3/Default)
-  TITLE:=Kamailio3 control tools
-  DEPENDS:=kamailio3 +bash
-endef
-
-define Package/kamailio3-tools/conffiles
-/etc/kamailio/kamctlrc
-endef
-
-define Package/kamailio3/install
-       $(INSTALL_DIR) $(1)/usr/sbin
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/sbin/kamailio \
-               $(1)/usr/sbin/
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/sbin/sercmd \
-               $(1)/usr/sbin/
-       $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules
-       $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules_k
-       $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules_s
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/lib/kamailio/lib*.so* \
-               $(1)/usr/lib/kamailio/
-endef
-
-define Package/kamailio3-example/install
-       $(INSTALL_DIR) $(1)/etc/kamailio
-       $(CP) \
-               $(PKG_INSTALL_DIR)/etc/kamailio/kamailio.cfg \
-               $(1)/etc/kamailio/
-       $(SED) 's,$(PKG_INSTALL_DIR),,g' \
-               $(1)/etc/kamailio/kamailio.cfg
-       $(SED) 's,//lib/kamailio,/usr/lib/kamailio,g' \
-               $(1)/etc/kamailio/kamailio.cfg
-       $(INSTALL_DIR) $(1)/etc/default
-       $(INSTALL_DATA) ./files/kamailio.default $(1)/etc/default/kamailio
-       $(INSTALL_DIR) $(1)/etc/init.d
-       $(INSTALL_BIN) ./files/kamailio.init $(1)/etc/init.d/kamailio
-endef
-
-define Package/kamailio3-tools/install
-       $(INSTALL_DIR) $(1)/etc/kamailio
-       $(CP) \
-               $(PKG_BUILD_DIR)/utils/kamctl/kamctlrc \
-               $(1)/etc/kamailio/
-       $(INSTALL_DIR) $(1)/usr/sbin
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/sbin/kam{ctl,dbctl} \
-               $(1)/usr/sbin/
-       $(INSTALL_DIR) $(1)/usr/lib/kamailio
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/lib/kamailio/kamctl \
-               $(1)/usr/lib/kamailio/
-endef
-
-define BuildPlugin
-  define Package/kamailio3-mod-$(1)
-    $$(call Package/kamailio3/Default)
-    TITLE:= kamailio3 $(3) module
-    DEPENDS:=kamailio3 $$(foreach m,$(4),+kamailio3-mod-$$m) $(5)
-  endef
-
-  define Package/kamailio3-mod-$(1)/install
-       [ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/kamailio/$(6)
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/$(6)/$(2).so \
-                       $$(1)/usr/lib/kamailio/$(6)/ ;
-  endef
-
-  INCL_MODULES+=$(2)
-  KAM_MODULES+=kamailio3-mod-$(1)
-endef
-
-$(eval $(call BuildPlugin,acc,acc,Accounting,tm,,modules_k))
-$(eval $(call BuildPlugin,acc-radius,acc_radius,Accounting for RADIUS backend,acc,+libradiusclient-ng,modules_k))
-$(eval $(call BuildPlugin,alias-db,alias_db,Database-backend aliases,db-sqlite,,modules_k))
-$(eval $(call BuildPlugin,auth,auth,Authentication Framework,,,modules))
-$(eval $(call BuildPlugin,auth-db,auth_db,Database-backend authentication,auth db-sqlite,,modules_k))
-#$(eval $(call BuildPlugin,auth-diameter,auth_diameter,Diameter-backend authentication,sl,,modules_k))
-$(eval $(call BuildPlugin,auth-radius,auth_radius,RADIUS-backend authentication,auth,+libradiusclient-ng,modules_k))
-$(eval $(call BuildPlugin,avpops,avpops,AVP operation,,,modules))
-$(eval $(call BuildPlugin,benchmark,benchmark,Config benchmark,,,modules_k))
-#$(eval $(call BuildPlugin,carrierroute,carrierroute,Carrier Routing,,+libconfuse,modules))
-$(eval $(call BuildPlugin,cfgutils,cfgutils,Config utilities,,,modules_k))
-$(eval $(call BuildPlugin,cfg-db,cfg_db,Load core and module parameters from database,db-sqlite,,modules))
-$(eval $(call BuildPlugin,cfg-rpc,cfg_rpc,Update core and module parameters at runtime via RPC interface,,,modules))
-#$(eval $(call BuildPlugin,cpl-c,cpl-c,Call Processing language interpreter,tm sl usrloc,+libxml2,modules_k))
-$(eval $(call BuildPlugin,ctl,ctl,BINRPC transport interface,,,modules))
-#$(eval $(call BuildPlugin,db-berkeley,db_berkeley,Berkeley DB Database-backend,,,modules))
-$(eval $(call BuildPlugin,db-flatstore,db_flatstore,Fast writing-only text database-backed,,,modules))
-$(eval $(call BuildPlugin,db-mysql,db_mysql,MySQL database-backend,,+libmysqlclient,modules))
-#$(eval $(call BuildPlugin,db-oracle,db_oracle,Oracle Database-backend,,,modules_k))
-#$(eval $(call BuildPlugin,db-postgres,db_postgres,PostgreSQL Database-backend,,+libpq,modules))
-$(eval $(call BuildPlugin,db-sqlite,db_sqlite,Sqlite DB support,,+libsqlite3,modules_k))
-$(eval $(call BuildPlugin,db-text,db_text,Text database-backend,,,modules_k))
-$(eval $(call BuildPlugin,db-unixodbc,db_unixodbc,UnixODBC Database-backend,,+unixodbc,modules_k))
-$(eval $(call BuildPlugin,dialog,dialog,Dialog support,rr tm,,modules_k))
-$(eval $(call BuildPlugin,dialplan,dialplan,Dialplan management,,+libpcre,modules))
-$(eval $(call BuildPlugin,dispatcher,dispatcher,Dispatcher,,,modules_s))
-$(eval $(call BuildPlugin,diversion,diversion,Diversion header insertion,,,modules_s))
-$(eval $(call BuildPlugin,domain,domain,Multi-domain support,,,modules_k))
-$(eval $(call BuildPlugin,domainpolicy,domainpolicy,Domain policy,,,modules_k))
-$(eval $(call BuildPlugin,enum,enum,ENUM lookup,,,modules))
-$(eval $(call BuildPlugin,exec,exec,External exec,,,modules_k))
-$(eval $(call BuildPlugin,group,group,Database-backend user-groups,,,modules_k))
-$(eval $(call BuildPlugin,h350,h350,H.350,ldap,+libopenldap,modules_k))
-$(eval $(call BuildPlugin,htable,htable,Hash Table,,,modules_k))
-$(eval $(call BuildPlugin,imc,imc,IM conferencing,db-mysql tm,,modules_k))
-$(eval $(call BuildPlugin,ipops,ipops,IP and IPv6 operations module,,,modules))
-$(eval $(call BuildPlugin,kex,kex,Core extensions,,,modules_k))
-$(eval $(call BuildPlugin,lcr,lcr,Least Cost Routing,tm,+libpcre,modules))
-$(eval $(call BuildPlugin,ldap,ldap,LDAP connector,,+libopenldap,modules_k))
-$(eval $(call BuildPlugin,maxfwd,maxfwd,Max-Forward processor,,,modules_k))
-$(eval $(call BuildPlugin,mediaproxy,mediaproxy,Automatic NAT traversal,dialog,,modules))
-$(eval $(call BuildPlugin,mi-datagram,mi_datagram,Datagram support for Management Interface,,,modules_k))
-$(eval $(call BuildPlugin,mi-fifo,mi_fifo,FIFO support for Management Interface,,,modules_k))
-#$(eval $(call BuildPlugin,mi-xmlrpc,mi_xmlrpc,XML-RPC support for Management Interface,,+xmlrpc-c,modules_k))
-$(eval $(call BuildPlugin,mi-rpc,mi_rpc,RPC support for Management Interface,,,modules))
-$(eval $(call BuildPlugin,misc_radius,misc_radius,Generic RADIUS,,+libradiusclient-ng,modules_k))
-$(eval $(call BuildPlugin,msilo,msilo,SIP message silo,tm,,modules_k))
-$(eval $(call BuildPlugin,nat_traversal,nat_traversal,NAT traversal,dialog sl tm,,modules_k))
-$(eval $(call BuildPlugin,nathelper,nathelper,NAT traversal helper,,+rtpproxy,modules_k))
-#$(eval $(call BuildPlugin,osp,osp,OSP peering,auth rr sl tm textops,+libosp,modules_k))
-$(eval $(call BuildPlugin,path,path,SIP path insertion,rr,,modules_k))
-$(eval $(call BuildPlugin,pdt,pdt,Prefix-to-Domain translator,,,modules_k))
-$(eval $(call BuildPlugin,peering,peering,Perring,,+libradiusclient-ng,modules))
-#$(eval $(call BuildPlugin,perl,perl,Perl,sl,+perl,modules_k))
-#$(eval $(call BuildPlugin,perlvdb,perlvdb,Perl Virtual DB,perl,,modules_k))
-$(eval $(call BuildPlugin,permissions,permissions,Permissions control,,,modules_k))
-$(eval $(call BuildPlugin,pike,pike,Flood detector,,,modules_k))
-$(eval $(call BuildPlugin,presence,presence,Presence server,sl tm,+libxml2,modules_k))
-$(eval $(call BuildPlugin,presence-dialoginfo,presence_dialoginfo,Dialog Event presence,presence,,modules_k))
-$(eval $(call BuildPlugin,presence-mwi,presence_mwi,Message Waiting Indication presence,presence,,modules_k))
-$(eval $(call BuildPlugin,presence-xml,presence_xml,XCAP presence,presence xcap-client,,modules_k))
-$(eval $(call BuildPlugin,pua,pua,Presence User Agent,tm,+libxml2,modules_k))
-$(eval $(call BuildPlugin,pua-bla,pua_bla,Bridged Line Appearence PUA,presence pua usrloc,,modules_k))
-$(eval $(call BuildPlugin,pua-dialoginfo,pua_dialoginfo,Dialog Event PUA,dialog pua,,modules_k))
-$(eval $(call BuildPlugin,pua-mi,pua_mi,PUA Management Interface,pua,,modules_k))
-$(eval $(call BuildPlugin,pua-usrloc,pua_usrloc,PUA User Location,pua usrloc,,modules_k))
-$(eval $(call BuildPlugin,pua-xmpp,pua_xmpp,PUA XMPP,presence pua xmpp,,modules_k))
-#$(eval $(call BuildPlugin,purple,purple,Multi-protocol IM gateway,presence pua,+libpurple,modules_k))
-$(eval $(call BuildPlugin,pv,pv,Pseudo-Variables,,,modules_k))
-$(eval $(call BuildPlugin,qos,qos,QoS control,dialog,,modules_k))
-$(eval $(call BuildPlugin,ratelimit,ratelimit,Traffic shapping,,,modules))
-$(eval $(call BuildPlugin,regex,regex,Regular Expression,,+libpcre,modules_k))
-$(eval $(call BuildPlugin,registrar,registrar,SIP Registrar,usrloc,,modules_k))
-$(eval $(call BuildPlugin,rls,rls,Resource List Server,presence pua tm,+libxml2,modules_k))
-$(eval $(call BuildPlugin,rr,rr,Record-Route and Route,,,modules_k))
-$(eval $(call BuildPlugin,rtimer,rtimer,Routing Timer,,,modules_k))
-$(eval $(call BuildPlugin,sanity,sanity,SIP sanity checks,sl,,modules))
-#$(eval $(call BuildPlugin,seas,seas,SIP Express Application Server,tm,,modules_k))
-$(eval $(call BuildPlugin,sipcapture,sipcapture,SIP capture module,,,modules))
-$(eval $(call BuildPlugin,siptrace,siptrace,SIP trace,,,modules_k))
-$(eval $(call BuildPlugin,siputils,siputils,SIP utilities,sl,,modules_k))
-$(eval $(call BuildPlugin,sl,sl,Stateless replier,,,modules))
-$(eval $(call BuildPlugin,sms,sms,SIP-to-SMS IM gateway,tm,,modules))
-#$(eval $(call BuildPlugin,snmpstats,snmpstats,SNMP,presence usrloc,+libnetsnmp,modules_k))
-$(eval $(call BuildPlugin,speeddial,speeddial,Per-user speed-dial controller,,,modules_k))
-$(eval $(call BuildPlugin,sqlops,sqlops,SQL operations,,,modules_k))
-$(eval $(call BuildPlugin,statistics,statistics,Script statistics,,,modules_k))
-$(eval $(call BuildPlugin,sst,sst,SIP Session Timer,dialog sl,,modules_k))
-$(eval $(call BuildPlugin,textops,textops,Text operations,,,modules_k))
-$(eval $(call BuildPlugin,tls,tls,TLS operations,,+libopenssl,modules))
-$(eval $(call BuildPlugin,tm,tm,Transaction,,,modules))
-$(eval $(call BuildPlugin,tmx,tmx,Transaction module extensions,,,modules_k))
-$(eval $(call BuildPlugin,uac,uac,User Agent Client,tm,,modules_k))
-$(eval $(call BuildPlugin,uac-redirect,uac_redirect,User Agent Client redirection,tm,,modules_k))
-$(eval $(call BuildPlugin,uri-db,uri_db,Database-backend SIP URI checking,,,modules_k))
-$(eval $(call BuildPlugin,userblacklist,userblacklist,User blacklists,,,modules_k))
-$(eval $(call BuildPlugin,usrloc,usrloc,User location,,,modules_k))
-$(eval $(call BuildPlugin,utils,utils,Misc utilities,,+libcurl +libxml2,modules))
-$(eval $(call BuildPlugin,xcap-client,xcap_client,XCAP Client,,+libcurl,modules_k))
-$(eval $(call BuildPlugin,xlog,xlog,Advanced logger,,,modules_k))
-$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat,modules_k))
-
-PKG_MAKE_ARGS:= \
-       cfg-dir="/etc/kamailio/" \
-       bin-dir="/usr/sbin/" \
-       data-dir="/var/lib/kamailio/" \
-       lib-dir="/usr/lib/kamailio/" \
-       modules-dir="/usr/lib/kamailio/modules/" \
-       include_modules="$(INCL_MODULES)" \
-       $(KAM3_EXTRA_ARGS) \
-       TLS_HOOKS=1 extra_defs="-DUSE_PTHREAD_MUTEX " \
-       CFLAGS="$(TARGET_CFLAGS)" \
-       ISSMP="no" \
-       LOCALBASE="$(STAGING_DIR)/usr" \
-       SYSBASE="$(STAGING_DIR)/usr" \
-       PCREDEFS:="$(TARGET_CPPFLAGS)" \
-       PCRELIBS:="$(TARGET_LDFLAGS)" \
-       cfg_target:=/etc/kamailio/ \
-       PREFIX:=/usr \
-       prefix:=/usr quiet=verbose
-
-define Build/Compile
-       if ! [ -f $(PREBUILT_STAMP) ]; then echo $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
-               CC="$(TARGET_CC)" \
-               ARCH="$(ARCH)"  \
-               EXTRA_LIBS=-L$(STAGING_DIR)/usr/lib/ \
-               all && touch $(PREBUILT_STAMP); \
-       fi
-       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
-               CC="$(TARGET_CC)" \
-               ARCH="$(ARCH)"  \
-               DESTDIR=$(PKG_INSTALL_DIR) \
-               prefix=/ \
-               install-cfg
-       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
-               CC="$(TARGET_CC)" \
-               ARCH="$(ARCH)"  \
-               DESTDIR=$(PKG_INSTALL_DIR) \
-               prefix=/usr \
-               install-bin install-modules-all install-utils
-endef
-
-$(eval $(call BuildPackage,kamailio3))
-$(eval $(call BuildPackage,kamailio3-example))
-$(eval $(call BuildPackage,kamailio3-tools))
-$(foreach m,$(KAM_MODULES),$(eval $(call BuildPackage,$(m))))
diff --git a/kamailio3/files/kamailio.default b/kamailio3/files/kamailio.default
deleted file mode 100644 (file)
index a61617b..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# OPTIONS
-# -n COUNT
-# Specifies the number of children processes forked per interface
-# -N COUNT
-# Specifies the number of children processes forked to handle tcp incoming connections
-# -m SIZE
-# Size of the shared memory which will be allocated (in Megabytes).
-# -u UID
-# Changes the user id under which 
-# -g GID
-# Changes the group id under which 
-
-OPTIONS="-n 4 -m 4 - m 8"
diff --git a/kamailio3/files/kamailio.init b/kamailio3/files/kamailio.init
deleted file mode 100644 (file)
index 5a382ae..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh /etc/rc.common
-# Copyright (C) 2012 OpenWrt.org
-START=99 
-APP=kamailio
-BIN_FILE="/usr/sbin/"$APP
-PID_FILE="/var/run/"$APP".pid"
-
-start() {
-       start-stop-daemon -S -x $BIN_FILE -p $PID_FILE -b -m
-}
-
-stop() {
-       start-stop-daemon -K -x $BIN_FILE -p $PID_FILE -q
-       rm -rf $PID_FILE
-}
diff --git a/kamailio3/patches/100-cross_compile.patch b/kamailio3/patches/100-cross_compile.patch
deleted file mode 100644 (file)
index 963a607..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Index: kamailio3-3.3.0/modules_s/ldap/Makefile
-===================================================================
---- kamailio3-3.3.0.orig/modules_s/ldap/Makefile       2012-08-14 17:14:01.000000000 +0200
-+++ kamailio3-3.3.0/modules_s/ldap/Makefile    2012-08-14 17:14:12.000000000 +0200
-@@ -14,7 +14,7 @@
- # LD_SCOPE_CHILDREN defined
- #DEFS += -DHAVE_SCOPE_CHILDREN
--LIBS=-L$(LOCALBASE)/lib -L /usr/lib -lldap
-+LIBS=-L$(LOCALBASE)/lib -lldap
- DEFS+=-DSER_MOD_INTERFACE
diff --git a/kamailio4/Makefile b/kamailio4/Makefile
deleted file mode 100644 (file)
index 7b6c53c..0000000
+++ /dev/null
@@ -1,251 +0,0 @@
-#
-# Copyright (C) 2013 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=kamailio4
-PKG_VERSION:=4.0.1
-PKG_RELEASE:=1
-
-PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
-PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
-PKG_MD5SUM:=ab57fcb1eb1195fa45f5c0935810e42a
-
-INCL_MODULES:=
-KAM_MODULES:=
-
-include $(INCLUDE_DIR)/nls.mk
-include $(INCLUDE_DIR)/package.mk
-
-TARGET_CFLAGS += $(FPIC)
-PREBUILT_STAMP=$(STAGING_DIR)/stamp/.$(PKG_NAME)_prebuilt
-TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
-
-define Package/kamailio4/Default
-  SECTION:=net
-  CATEGORY:=Network
-  SUBMENU:=Telephony
-  URL:=http://www.kamailio.org/
-  DEPENDS:=$(ICONV_DEPENDS) +libncurses +libpthread +libreadline +libxml2
-endef
-
-define Package/kamailio4
-$(call Package/kamailio4/Default)
-  TITLE:=Mature and flexible open source SIP server, v4.0.x
-  MENU:=1
-endef
-
-define Package/kamailio4/conffiles
-/etc/default/kamailio
-/etc/kamailio/kamailio.cfg
-/etc/kamailio/kamailio-advanced.cfg
-/etc/kamailio/dictionary.kamailio
-/etc/kamailio/tls.cfg
-endef
-
-define Package/kamailio4-tools
-$(call Package/kamailio4/Default)
-  TITLE:=Kamailio4 control tools
-  DEPENDS:=kamailio4 +bash
-endef
-
-define Package/kamailio4-tools/conffiles
-/etc/kamailio/kamctlrc
-endef
-
-define Package/kamailio4/install
-       $(INSTALL_DIR) $(1)/usr/sbin
-       $(INSTALL_BIN) \
-               $(PKG_INSTALL_DIR)/usr/sbin/{kamailio,kamcmd} \
-               $(1)/usr/sbin/
-       $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules
-       $(INSTALL_BIN) \
-               $(PKG_INSTALL_DIR)/usr/lib/kamailio/lib*.so* \
-               $(1)/usr/lib/kamailio/
-       $(INSTALL_DIR) $(1)/etc/kamailio
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/etc/kamailio/*{kamailio,tls}* \
-               $(1)/etc/kamailio/
-       $(INSTALL_DIR) $(1)/etc/default
-       $(CP) \
-               ./files/kamailio.default \
-               $(1)/etc/default/kamailio
-       $(INSTALL_DIR) $(1)/etc/init.d
-       $(INSTALL_BIN) \
-               ./files/kamailio.init \
-               $(1)/etc/init.d/kamailio        
-endef
-
-define Package/kamailio4-tools/install
-       $(INSTALL_DIR) $(1)/etc/kamailio
-       $(CP) \
-               $(PKG_BUILD_DIR)/utils/kamctl/kamctlrc \
-               $(1)/etc/kamailio/
-       $(INSTALL_DIR) $(1)/usr/sbin
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/sbin/kam{ctl,dbctl} \
-               $(1)/usr/sbin/
-       $(INSTALL_DIR) $(1)/usr/lib/kamailio
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/lib/kamailio/kamctl \
-               $(1)/usr/lib/kamailio/
-endef
-
-define BuildPlugin
-  define Package/kamailio4-mod-$(1)
-    $$(call Package/kamailio4/Default)
-    TITLE:= kamailio4 $(3) module
-    DEPENDS:=kamailio4 $$(foreach m,$(4),+kamailio4-mod-$$m) $(5)
-  endef
-
-  define Package/kamailio4-mod-$(1)/install
-       $(INSTALL_DIR) $$(1)/usr/lib/kamailio/modules
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/modules/$(2).so \
-                       $$(1)/usr/lib/kamailio/modules/ ;
-  endef
-
-  INCL_MODULES+=$(2)
-  KAM_MODULES+=kamailio4-mod-$(1)
-endef
-
-$(eval $(call BuildPlugin,acc,acc,Accounting,tm,))
-$(eval $(call BuildPlugin,acc-radius,acc_radius,Accounting for RADIUS backend,acc,+libradiusclient-ng))
-$(eval $(call BuildPlugin,alias-db,alias_db,Database-backend aliases,db-sqlite,))
-$(eval $(call BuildPlugin,auth,auth,Authentication Framework,,))
-$(eval $(call BuildPlugin,auth-db,auth_db,Database-backend authentication,auth db-sqlite,))
-$(eval $(call BuildPlugin,auth-diameter,auth_diameter,Diameter-backend authentication,sl,))
-$(eval $(call BuildPlugin,auth-radius,auth_radius,RADIUS-backend authentication,auth,+libradiusclient-ng))
-$(eval $(call BuildPlugin,avpops,avpops,AVP operation,,))
-$(eval $(call BuildPlugin,benchmark,benchmark,Config benchmark,,))
-$(eval $(call BuildPlugin,cfgutils,cfgutils,Config utilities,,))
-$(eval $(call BuildPlugin,cfg-db,cfg_db,Load core and module parameters from database,db-sqlite,))
-$(eval $(call BuildPlugin,cfg-rpc,cfg_rpc,Update core and module parameters at runtime via RPC interface,,))
-$(eval $(call BuildPlugin,corex,corex,Legacy functions,,))
-$(eval $(call BuildPlugin,ctl,ctl,BINRPC transport interface,,))
-$(eval $(call BuildPlugin,db-flatstore,db_flatstore,Fast writing-only text database-backed,,))
-$(eval $(call BuildPlugin,db-mysql,db_mysql,MySQL database-backend,,+libmysqlclient))
-$(eval $(call BuildPlugin,db-postgres,db_postgres,PostgreSQL Database-backend,,+libpq))
-$(eval $(call BuildPlugin,db-sqlite,db_sqlite,Sqlite DB support,,+libsqlite3))
-$(eval $(call BuildPlugin,db-text,db_text,Text database-backend,,))
-$(eval $(call BuildPlugin,db-unixodbc,db_unixodbc,UnixODBC Database-backend,,+unixodbc))
-$(eval $(call BuildPlugin,dialog,dialog,Dialog support,rr tm,))
-$(eval $(call BuildPlugin,dialog_ng,dialog,Dialog support,rr tm,))
-$(eval $(call BuildPlugin,dialplan,dialplan,Dialplan management,,+libpcre))
-$(eval $(call BuildPlugin,dispatcher,dispatcher,Dispatcher,,))
-$(eval $(call BuildPlugin,diversion,diversion,Diversion header insertion,,))
-$(eval $(call BuildPlugin,domain,domain,Multi-domain support,,))
-$(eval $(call BuildPlugin,domainpolicy,domainpolicy,Domain policy,,))
-$(eval $(call BuildPlugin,enum,enum,ENUM lookup,,))
-$(eval $(call BuildPlugin,exec,exec,External exec,,))
-$(eval $(call BuildPlugin,group,group,Database-backend user-groups,,))
-$(eval $(call BuildPlugin,h350,h350,H.350,ldap,+libopenldap))
-$(eval $(call BuildPlugin,htable,htable,Hash Table,,))
-$(eval $(call BuildPlugin,imc,imc,IM conferencing,db-mysql tm,))
-$(eval $(call BuildPlugin,ipops,ipops,IP and IPv6 operations,,))
-$(eval $(call BuildPlugin,json,json,Access to JSON document attributes,,+libjson))
-$(eval $(call BuildPlugin,kex,kex,Core extensions,,))
-$(eval $(call BuildPlugin,lcr,lcr,Least Cost Routing,tm,+libpcre))
-$(eval $(call BuildPlugin,ldap,ldap,LDAP connector,,+libopenldap))
-$(eval $(call BuildPlugin,maxfwd,maxfwd,Max-Forward processor,,))
-$(eval $(call BuildPlugin,mediaproxy,mediaproxy,Automatic NAT traversal,dialog,))
-$(eval $(call BuildPlugin,mi-datagram,mi_datagram,Datagram support for Management Interface,,))
-$(eval $(call BuildPlugin,mi-fifo,mi_fifo,FIFO support for Management Interface,,))
-$(eval $(call BuildPlugin,mi-rpc,mi_rpc,RPC support for Management Interface,,))
-$(eval $(call BuildPlugin,misc_radius,misc_radius,Generic RADIUS,,+libradiusclient-ng))
-$(eval $(call BuildPlugin,msilo,msilo,SIP message silo,tm,))
-$(eval $(call BuildPlugin,nat_traversal,nat_traversal,NAT traversal,dialog sl tm,))
-$(eval $(call BuildPlugin,nathelper,nathelper,NAT traversal helper,,+rtpproxy))
-$(eval $(call BuildPlugin,path,path,SIP path insertion,rr,))
-$(eval $(call BuildPlugin,pdt,pdt,Prefix-to-Domain translator,,))
-$(eval $(call BuildPlugin,peering,peering,Perring,,+libradiusclient-ng))
-$(eval $(call BuildPlugin,permissions,permissions,Permissions control,,))
-$(eval $(call BuildPlugin,pike,pike,Flood detector,,))
-$(eval $(call BuildPlugin,presence,presence,Presence server,sl tm,+libxml2))
-$(eval $(call BuildPlugin,presence-dialoginfo,presence_dialoginfo,Dialog Event presence,presence,))
-$(eval $(call BuildPlugin,presence-mwi,presence_mwi,Message Waiting Indication presence,presence,))
-$(eval $(call BuildPlugin,presence-xml,presence_xml,XCAP presence,presence xcap-client,))
-$(eval $(call BuildPlugin,pua,pua,Presence User Agent,tm,+libxml2))
-$(eval $(call BuildPlugin,pua-bla,pua_bla,Bridged Line Appearence PUA,presence pua usrloc,))
-$(eval $(call BuildPlugin,pua-dialoginfo,pua_dialoginfo,Dialog Event PUA,dialog pua,))
-$(eval $(call BuildPlugin,pua-mi,pua_mi,PUA Management Interface,pua,))
-$(eval $(call BuildPlugin,pua-usrloc,pua_usrloc,PUA User Location,pua usrloc,))
-$(eval $(call BuildPlugin,pua-xmpp,pua_xmpp,PUA XMPP,presence pua xmpp,))
-$(eval $(call BuildPlugin,pv,pv,Pseudo-Variables,,))
-$(eval $(call BuildPlugin,qos,qos,QoS control,dialog,))
-$(eval $(call BuildPlugin,ratelimit,ratelimit,Traffic shapping,,))
-$(eval $(call BuildPlugin,regex,regex,Regular Expression,,+libpcre))
-$(eval $(call BuildPlugin,registrar,registrar,SIP Registrar,usrloc,))
-$(eval $(call BuildPlugin,rls,rls,Resource List Server,presence pua tm,+libxml2))
-$(eval $(call BuildPlugin,rr,rr,Record-Route and Route,,))
-$(eval $(call BuildPlugin,rtimer,rtimer,Routing Timer,,))
-$(eval $(call BuildPlugin,sanity,sanity,SIP sanity checks,sl,))
-$(eval $(call BuildPlugin,sipcapture,sipcapture,SIP capture,,))
-$(eval $(call BuildPlugin,siptrace,siptrace,SIP trace,,))
-$(eval $(call BuildPlugin,siputils,siputils,SIP utilities,sl,))
-$(eval $(call BuildPlugin,sl,sl,Stateless replier,,))
-$(eval $(call BuildPlugin,sms,sms,SIP-to-SMS IM gateway,tm,))
-$(eval $(call BuildPlugin,speeddial,speeddial,Per-user speed-dial controller,,))
-$(eval $(call BuildPlugin,sqlops,sqlops,SQL operations,,))
-$(eval $(call BuildPlugin,statistics,statistics,Script statistics,,))
-$(eval $(call BuildPlugin,sst,sst,SIP Session Timer,dialog sl,))
-$(eval $(call BuildPlugin,textops,textops,Text operations,,))
-$(eval $(call BuildPlugin,tls,tls,TLS operations,,+libopenssl))
-$(eval $(call BuildPlugin,topoh,topoh,Topology hiding,rr,))
-$(eval $(call BuildPlugin,tm,tm,Transaction,,))
-$(eval $(call BuildPlugin,tmx,tmx,Transaction module extensions,,))
-$(eval $(call BuildPlugin,uac,uac,User Agent Client,tm,))
-$(eval $(call BuildPlugin,uac-redirect,uac_redirect,User Agent Client redirection,tm,))
-$(eval $(call BuildPlugin,uri-db,uri_db,Database-backend SIP URI checking,,))
-$(eval $(call BuildPlugin,userblacklist,userblacklist,User blacklists,,))
-$(eval $(call BuildPlugin,usrloc,usrloc,User location,,))
-$(eval $(call BuildPlugin,utils,utils,Misc utilities,,+libcurl +libxml2))
-$(eval $(call BuildPlugin,xcap-client,xcap_client,XCAP Client,,+libcurl))
-$(eval $(call BuildPlugin,xlog,xlog,Advanced logger,,))
-$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat))
-
-PKG_MAKE_ARGS:= \
-       cfg-dir="/etc/kamailio/" \
-       bin-dir="/usr/sbin/" \
-       data-dir="/var/lib/kamailio/" \
-       lib-dir="/usr/lib/kamailio/" \
-       modules-dir="/usr/lib/kamailio/modules/" \
-       include_modules="$(INCL_MODULES)" \
-       TLS_HOOKS=1 \
-       extra_defs="-DUSE_PTHREAD_MUTEX " \
-       CFLAGS="$(TARGET_CFLAGS)" \
-       ISSMP="no" \
-       LOCALBASE="$(STAGING_DIR)/usr" \
-       SYSBASE="$(STAGING_DIR)/usr" \
-       PCREDEFS:="$(TARGET_CPPFLAGS)" \
-       PCRELIBS:="$(TARGET_LDFLAGS)" \
-       cfg_target:=/etc/kamailio/ \
-       PREFIX:=/usr \
-       CROSS_COMPILE=$(TARGET_CROSS) \
-       CC="$(TARGET_CC)" \
-       ARCH="$(ARCH)"  \
-       DESTDIR=$(PKG_INSTALL_DIR) \
-       quiet=verbose \
-       prefix=/usr
-
-define Build/Configure
-       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
-               cfg
-endef
-
-define Build/Compile
-       if ! [ -f $(PREBUILT_STAMP) ]; then \
-               echo $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
-               EXTRA_LIBS=-L$(STAGING_DIR)/usr/lib/ \
-               all && touch $(PREBUILT_STAMP); \
-       fi
-       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
-               install
-endef
-
-$(eval $(call BuildPackage,kamailio4))
-$(eval $(call BuildPackage,kamailio4-tools))
-$(foreach m,$(KAM_MODULES),$(eval $(call BuildPackage,$(m))))
diff --git a/kamailio4/files/kamailio.default b/kamailio4/files/kamailio.default
deleted file mode 100644 (file)
index a61617b..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# OPTIONS
-# -n COUNT
-# Specifies the number of children processes forked per interface
-# -N COUNT
-# Specifies the number of children processes forked to handle tcp incoming connections
-# -m SIZE
-# Size of the shared memory which will be allocated (in Megabytes).
-# -u UID
-# Changes the user id under which 
-# -g GID
-# Changes the group id under which 
-
-OPTIONS="-n 4 -m 4 - m 8"
diff --git a/kamailio4/files/kamailio.init b/kamailio4/files/kamailio.init
deleted file mode 100644 (file)
index 5a382ae..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh /etc/rc.common
-# Copyright (C) 2012 OpenWrt.org
-START=99 
-APP=kamailio
-BIN_FILE="/usr/sbin/"$APP
-PID_FILE="/var/run/"$APP".pid"
-
-start() {
-       start-stop-daemon -S -x $BIN_FILE -p $PID_FILE -b -m
-}
-
-stop() {
-       start-stop-daemon -K -x $BIN_FILE -p $PID_FILE -q
-       rm -rf $PID_FILE
-}