Changeset 17842


Ignore:
Timestamp:
2009-10-04T01:30:10+02:00 (7 years ago)
Author:
nico
Message:

[packages] add opensips (openser fork)

Location:
packages/net/opensips
Files:
4 added
5 deleted
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/net/opensips/Makefile

    r15247 r17842  
    11# 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2009 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    88include $(TOPDIR)/rules.mk 
    99 
    10 PKG_NAME:=openser 
    11 PKG_VERSION:=1.0.1 
     10PKG_NAME:=opensips 
     11PKG_VERSION:=1.5.3 
    1212PKG_RELEASE:=1 
    13 PKG_MD5SUM:=eebc16665003ee92daf96b216d6f9563 
    14 # PKG_VARIANT:=-tls # for tls version 
    15 PKG_VARIANT:= 
    16  
    17 PKG_SOURCE_URL:=http://openser.org/pub/openser/$(PKG_VERSION)/src 
     13PKG_VARIANT:=-tls 
     14 
     15PKG_SOURCE_URL:=http://opensips.org/pub/opensips/$(PKG_VERSION)/src 
    1816PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz 
     17PKG_MD5SUM:=8a03167420c31da15405bed7630ed3e2 
     18 
     19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT) 
     20 
     21PKG_BUILD_DEPENDS:=curl expat libxml2 mysql openldap openssl pcre postgresql radiusclient-ng 
    1922 
    2023include $(INCLUDE_DIR)/package.mk 
    2124 
    22 define Package/openser 
     25define Package/opensips/Default 
    2326  SECTION:=net 
    2427  CATEGORY:=Network 
    25   TITLE:=Configurable, free SIP server 
    26   URL:=http://www.openser.org 
     28  URL:=http://www.opensips.org/ 
     29endef 
     30 
     31 
     32define Package/opensips 
     33$(call Package/opensips/Default) 
     34  TITLE:=Open SIP Server 
    2735  MENU:=1 
    2836endef 
    2937 
    30 define Package/openser/conffiles 
    31 /etc/openser/openser.cfg 
    32 endef 
    33  
    34 define Package/openser-mod-acc 
    35   SECTION:=net 
    36   CATEGORY:=Network 
    37   DEPENDS:=openser 
    38   TITLE:=Accounting support 
    39   MENU:=0 
    40 endef 
    41  
    42 define Package/openser-mod-auth 
    43   SECTION:=net 
    44   CATEGORY:=Network 
    45   DEPENDS:=openser 
    46   TITLE:=Authentication support 
    47 endef 
    48  
    49 define Package/openser-mod-auth-db 
    50   SECTION:=net 
    51   CATEGORY:=Network 
    52   DEPENDS:=openser 
    53   TITLE:=Authentication with database support 
    54 endef 
    55  
    56 define Package/openser-mod-auth-radius 
    57   SECTION:=net 
    58   CATEGORY:=Network 
    59   DEPENDS:=openser +libradiusclient-ng 
    60   TITLE:=Authentication with RADIUS support 
    61 endef 
    62  
    63 define Package/openser-mod-avp-radius 
    64   SECTION:=net 
    65   CATEGORY:=Network 
    66   DEPENDS:=openser +libradiusclient-ng 
    67   TITLE:=AVP with RADIUS support 
    68 endef 
    69  
    70 define Package/openser-mod-avpops 
    71   SECTION:=net 
    72   CATEGORY:=Network 
    73   DEPENDS:=openser 
    74   TITLE:=AVP options support 
    75 endef 
    76  
    77 define Package/openser-mod-dispatcher 
    78   SECTION:=net 
    79   CATEGORY:=Network 
    80   DEPENDS:=openser 
    81   TITLE:=Dispatcher support 
    82 endef 
    83  
    84 define Package/openser-mod-diversion 
    85   SECTION:=net 
    86   CATEGORY:=Network 
    87   DEPENDS:=openser 
    88   TITLE:=Diversion support 
    89 endef 
    90  
    91 define Package/openser-mod-flatstore 
    92   SECTION:=net 
    93   CATEGORY:=Network 
    94   DEPENDS:=openser 
    95   TITLE:=Flatstore support 
    96 endef 
    97  
    98 define Package/openser-mod-gflags 
    99   SECTION:=net 
    100   CATEGORY:=Network 
    101   DEPENDS:=openser 
    102   TITLE:=Gflags support 
    103 endef 
    104  
    105 define Package/openser-mod-group 
    106   SECTION:=net 
    107   CATEGORY:=Network 
    108   DEPENDS:=openser 
    109   TITLE:=Group support 
    110 endef 
    111  
    112 define Package/openser-mod-group-radius 
    113   SECTION:=net 
    114   CATEGORY:=Network 
    115   DEPENDS:=openser +libradiusclient-ng 
    116   TITLE:=Group with RADIUS support 
    117 endef 
    118  
    119 define Package/openser-mod-lcr 
    120   SECTION:=net 
    121   CATEGORY:=Network 
    122   DEPENDS:=openser openser-mod-mysql 
    123   TITLE:=Least Cost Routing support 
    124 endef 
    125  
    126 define Package/openser-mod-mediaproxy 
    127   SECTION:=net 
    128   CATEGORY:=Network 
    129   DEPENDS:=openser 
    130   TITLE:=Mediaproxy support 
    131 endef 
    132  
    133 define Package/openser-mod-msilo 
    134   SECTION:=net 
    135   CATEGORY:=Network 
    136   DEPENDS:=openser 
    137   TITLE:=MSilo support 
    138 endef 
    139  
    140 define Package/openser-mod-mysql 
    141   SECTION:=net 
    142   CATEGORY:=Network 
    143   DEPENDS:=openser +libmysqlclient 
    144   TITLE:=MySQL support 
    145 endef 
    146  
    147 define Package/openser-mod-nathelper 
    148   SECTION:=net 
    149   CATEGORY:=Network 
    150   DEPENDS:=openser 
    151   TITLE:=NAT helper support 
    152 endef 
    153  
    154 define Package/openser-mod-options 
    155   SECTION:=net 
    156   CATEGORY:=Network 
    157   DEPENDS:=openser 
    158   TITLE:=Options support 
    159 endef 
    160  
    161 define Package/openser-mod-pdt 
    162   SECTION:=net 
    163   CATEGORY:=Network 
    164   DEPENDS:=openser 
    165   TITLE:=PDT support 
    166 endef 
    167  
    168 define Package/openser-mod-permissions 
    169   SECTION:=net 
    170   CATEGORY:=Network 
    171   DEPENDS:=openser 
    172   TITLE:=Permissions support 
    173 endef 
    174  
    175 define Package/openser-mod-pike 
    176   SECTION:=net 
    177   CATEGORY:=Network 
    178   DEPENDS:=openser 
    179   TITLE:=PIKE support 
    180 endef 
    181  
    182 define Package/openser-mod-sms 
    183   SECTION:=net 
    184   CATEGORY:=Network 
    185   DEPENDS:=openser 
    186   TITLE:=SMS support 
    187 endef 
    188  
    189 define Package/openser-mod-speeddial 
    190   SECTION:=net 
    191   CATEGORY:=Network 
    192   DEPENDS:=openser 
    193   TITLE:=Speeddial supporte 
    194 endef 
    195  
    196 define Package/openser-mod-uac 
    197   SECTION:=net 
    198   CATEGORY:=Network 
    199   DEPENDS:=openser 
    200   TITLE:=UAC support 
    201 endef 
    202  
    203 define Package/openser-mod-uac-redirect 
    204   SECTION:=net 
    205   CATEGORY:=Network 
    206   DEPENDS:=openser 
    207   TITLE:=UAC with redirect support 
    208 endef 
    209  
    210 define Package/openser-mod-uri 
    211   SECTION:=net 
    212   CATEGORY:=Network 
    213   DEPENDS:=openser 
    214   TITLE:=URI support 
    215 endef 
    216  
    217 define Package/openser-mod-uri-db 
    218   SECTION:=net 
    219   CATEGORY:=Network 
    220   DEPENDS:=openser +openser-mod-mysql 
    221   TITLE:=URI with database support 
    222 endef 
    223  
    224 define Package/openser-mod-uri-radius 
    225   SECTION:=net 
    226   CATEGORY:=Network 
    227   DEPENDS:=openser +libradiusclient-ng 
    228   TITLE:=URI with RADIUS support 
    229 endef 
    230  
    231 define Package/openser-mod-xlog 
    232   SECTION:=net 
    233   CATEGORY:=Network 
    234   DEPENDS:=openser 
    235   TITLE:=Advanced logging support 
    236 endef 
    237  
    238 # Select here the modules for the ipk package 
    239 OPENSER_MODULES := sl tm rr maxfwd usrloc registrar dbtext textops exec 
    240  
    241 OPENSER_MODULE_FILES := $(foreach module,$(OPENSER_MODULES),modules/$(module)/$(module).so) 
    242 OPENSER_MODULES := $(patsubst %,modules/%,$(OPENSER_MODULES)) 
    243  
    244 define Build/Compile     
    245         $(MAKE) -C $(PKG_BUILD_DIR) \ 
     38define Package/opensips-example 
     39$(call Package/opensips/Default) 
     40  TITLE:=OpenSIPS example config 
     41  DEPENDS:=opensips \ 
     42        +opensips-mod-acc \ 
     43        +opensips-mod-maxfwd \ 
     44        +opensips-mod-mi-fifo \ 
     45        +opensips-mod-registrar \ 
     46        +opensips-mod-rr \ 
     47        +opensips-mod-signaling \ 
     48        +opensips-mod-sl \ 
     49        +opensips-mod-textops \ 
     50        +opensips-mod-tm \ 
     51        +opensips-mod-uri \ 
     52        +opensips-mod-uri-db \ 
     53        +opensips-mod-usrloc \ 
     54        +opensips-mod-xlog 
     55endef 
     56 
     57define Package/opensips-example/conffiles 
     58/etc/default/opensips 
     59/etc/opensips/opensips.cfg 
     60endef 
     61 
     62 
     63define Package/opensips-tools 
     64$(call Package/opensips/Default) 
     65  TITLE:=OpenSIPS control tools 
     66  DEPENDS:=opensips 
     67endef 
     68 
     69define Package/opensips-tools/conffiles 
     70/etc/opensips/opensipsctlrc 
     71endef 
     72 
     73 
     74PKG_EXCL_MODULES:= \ 
     75        auth_diameter \ 
     76        carrierroute \ 
     77        db_berkeley \ 
     78        db_oracle \ 
     79        db_unixodbc \ 
     80        mediaproxy \ 
     81        mi_xmlrpc \ 
     82        mmgeoip \ 
     83        osp \ 
     84        perl \ 
     85        perlvdb \ 
     86        snmpstats \ 
     87 
     88PKG_MAKE_ARGS:= \ 
     89        cfg-dir="etc/opensips/" \ 
     90        bin-dir="usr/sbin/" \ 
     91        data-dir="var/lib/opensips/" \ 
     92        lib-dir="usr/lib/opensips/" \ 
     93        modules-dir="usr/lib/opensips/modules/" \ 
     94        exclude_modules="$(PKG_EXCL_MODULES)" \ 
     95 
     96 
     97define Build/Compile 
     98        $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \ 
    24699                prefix=/ \ 
    247100                extra_defs="-DUSE_PTHREAD_MUTEX "  \ 
     
    249102                ARCH="$(ARCH)"  \ 
    250103                CFLAGS="$(TARGET_CFLAGS)" \ 
     104                ISSMP="no" \ 
    251105                LOCALBASE="$(STAGING_DIR)/usr" \ 
    252                 all utils/gen_ha1/gen_ha1 
    253 endef 
    254  
    255 define Package/openser/install   
    256         mkdir -p $(1)/usr/sbin 
    257         $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/ 
    258         $(CP) $(PKG_BUILD_DIR)/utils/gen_ha1/gen_ha1 $(1)/usr/sbin/openser_gen_ha1 
    259         $(CP) $(PKG_BUILD_DIR)/scripts/sc $(1)/usr/sbin/openserctl 
    260         chmod 744 $(1)/usr/sbin/openserctl 
    261         $(CP) $(PKG_BUILD_DIR)/scripts/sc.dbtext $(1)/usr/sbin/dbtextctl 
    262         chmod 744 $(1)/usr/sbin/dbtextctl 
    263         mkdir -p $(1)/usr/lib/openser/modules 
    264         (cd $(PKG_BUILD_DIR);\ 
    265                 $(CP) $(OPENSER_MODULE_FILES) $(1)/usr/lib/openser/modules/; \ 
    266         ) 
    267         mkdir -p $(1)/etc/openser 
    268         $(CP) $(PKG_BUILD_DIR)/etc/openser.cfg $(1)/etc/openser/ 
     106                SYSBASE="$(STAGING_DIR)/usr" \ 
     107                PCRECFG= \ 
     108                all 
     109        $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \ 
     110                DESTDIR="$(PKG_INSTALL_DIR)" \ 
     111                install 
     112endef 
     113 
     114define Package/opensips/install 
     115        $(INSTALL_DIR) $(1)/usr/sbin 
     116        $(CP) \ 
     117                $(PKG_INSTALL_DIR)/usr/sbin/opensips \ 
     118                $(1)/usr/sbin/ 
     119        $(INSTALL_DIR) $(1)/usr/lib/opensips/modules 
     120endef 
     121 
     122define Package/opensips-example/install 
     123        $(INSTALL_DIR) $(1)/etc/opensips 
     124        $(CP) \ 
     125                $(PKG_INSTALL_DIR)/etc/opensips/opensips.cfg \ 
     126                $(1)/etc/opensips/ 
     127        $(SED) 's,$(PKG_INSTALL_DIR),,g' \ 
     128                $(1)/etc/opensips/opensips.cfg 
     129        $(INSTALL_DIR) $(1)/etc/default 
     130        $(INSTALL_DATA) ./files/opensips.default $(1)/etc/default/opensips 
     131        $(INSTALL_DIR) $(1)/etc/init.d 
     132        $(INSTALL_BIN) ./files/opensips.init $(1)/etc/init.d/opensips 
     133endef 
     134 
     135define Package/opensips-tools/install 
     136        $(INSTALL_DIR) $(1)/etc/opensips 
     137        $(CP) \ 
     138                $(PKG_INSTALL_DIR)/etc/opensips/opensipsctlrc \ 
     139                $(1)/etc/opensips/ 
     140        $(INSTALL_DIR) $(1)/usr/sbin 
     141        $(CP) \ 
     142                $(PKG_INSTALL_DIR)/usr/sbin/opensips{ctl,dbctl,unix} \ 
     143                $(1)/usr/sbin/ 
     144        $(INSTALL_DIR) $(1)/usr/lib/opensips 
     145        $(CP) \ 
     146                $(PKG_INSTALL_DIR)/usr/lib/opensips/opensipsctl \ 
     147                $(1)/usr/lib/opensips/ 
     148        $(SED) 's,/bin/bash,/bin/sh,g' \ 
     149                -e 's,$(PKG_INSTALL_DIR),,g' \ 
     150                $(1)/usr/sbin/opensips{ctl,dbctl} 
    269151endef 
    270152 
    271153define BuildPlugin 
    272   define Package/$(1)/install 
    273         [ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/openser/modules/ 
    274         $(CP) $(PKG_BUILD_DIR)/modules/$(2)/$(2).so \ 
    275                         $$(1)/usr/lib/openser/modules/ ; 
     154  define Package/opensips-mod-$(1) 
     155    $$(call Package/opensips/Default) 
     156    TITLE:= OpenSIPS $(3) module 
     157    DEPENDS:=opensips $$(foreach m,$(4),+opensips-mod-$$m) $(5) 
    276158  endef 
    277159 
    278   $$(eval $$(call BuildPackage,$(1))) 
    279 endef 
    280  
    281 $(eval $(call BuildPackage,openser)) 
    282 $(eval $(call BuildPlugin,openser-mod-acc,acc)) 
    283 $(eval $(call BuildPlugin,openser-mod-auth,auth)) 
    284 $(eval $(call BuildPlugin,openser-mod-auth-db,auth_db)) 
    285 $(eval $(call BuildPlugin,openser-mod-auth-radius,auth_radius)) 
    286 $(eval $(call BuildPlugin,openser-mod-avp-radius,avp_radius)) 
    287 $(eval $(call BuildPlugin,openser-mod-avpops,avpops)) 
    288 $(eval $(call BuildPlugin,openser-mod-dispatcher,dispatcher)) 
    289 $(eval $(call BuildPlugin,openser-mod-diversion,diversion)) 
    290 $(eval $(call BuildPlugin,openser-mod-flatstore,flatstore)) 
    291 $(eval $(call BuildPlugin,openser-mod-gflags,gflags)) 
    292 $(eval $(call BuildPlugin,openser-mod-group,group)) 
    293 $(eval $(call BuildPlugin,openser-mod-group-radius,group_radius)) 
    294 $(eval $(call BuildPlugin,openser-mod-lcr,lcr)) 
    295 $(eval $(call BuildPlugin,openser-mod-mediaproxy,mediaproxy)) 
    296 $(eval $(call BuildPlugin,openser-mod-msilo,msilo)) 
    297 $(eval $(call BuildPlugin,openser-mod-mysql,mysql)) 
    298 $(eval $(call BuildPlugin,openser-mod-nathelper,nathelper)) 
    299 $(eval $(call BuildPlugin,openser-mod-options,options)) 
    300 $(eval $(call BuildPlugin,openser-mod-pdt,pdt)) 
    301 $(eval $(call BuildPlugin,openser-mod-permissions,permissions)) 
    302 $(eval $(call BuildPlugin,openser-mod-pike,pike)) 
    303 $(eval $(call BuildPlugin,openser-mod-sms,sms)) 
    304 $(eval $(call BuildPlugin,openser-mod-speeddial,speeddial)) 
    305 $(eval $(call BuildPlugin,openser-mod-uac,uac)) 
    306 $(eval $(call BuildPlugin,openser-mod-uac-redirect,uac_redirect)) 
    307 $(eval $(call BuildPlugin,openser-mod-uri,uri)) 
    308 $(eval $(call BuildPlugin,openser-mod-uri-db,uri_db)) 
    309 $(eval $(call BuildPlugin,openser-mod-uri-radius,uri_radius)) 
    310 $(eval $(call BuildPlugin,openser-mod-xlog,xlog)) 
     160  define Package/opensips-mod-$(1)/install 
     161        [ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/opensips/modules/ 
     162        $(CP) $(PKG_INSTALL_DIR)/usr/lib/opensips/modules/$(2).so \ 
     163                        $$(1)/usr/lib/opensips/modules/ ; 
     164  endef 
     165 
     166  $$(eval $$(call BuildPackage,opensips-mod-$(1))) 
     167endef 
     168 
     169$(eval $(call BuildPackage,opensips)) 
     170$(eval $(call BuildPackage,opensips-example)) 
     171$(eval $(call BuildPackage,opensips-tools)) 
     172$(eval $(call BuildPlugin,acc,acc,Accounting,tm,)) 
     173$(eval $(call BuildPlugin,alias-db,alias_db,Database-backend aliases,,)) 
     174$(eval $(call BuildPlugin,auth,auth,Authentication Framework,signaling,)) 
     175$(eval $(call BuildPlugin,auth-db,auth_db,Database-backend authentication,auth,)) 
     176$(eval $(call BuildPlugin,auth-radius,auth_radius,RADIUS-backend authentication,auth,+libradiusclient-ng)) 
     177$(eval $(call BuildPlugin,avp-radius,avp_radius,RADIUS-backend for AVP loading,,+libradiusclient-ng)) 
     178$(eval $(call BuildPlugin,avpops,avpops,AVP operation,,)) 
     179$(eval $(call BuildPlugin,benchmark,benchmark,Config benchmark,,)) 
     180$(eval $(call BuildPlugin,call-control,call_control,Prepair application,dialog,)) 
     181#$(eval $(call BuildPlugin,carrierroute,carrierroute,Carrier Routing,,+libconfuse)) 
     182$(eval $(call BuildPlugin,cfgutils,cfgutils,Config utilities,,)) 
     183$(eval $(call BuildPlugin,closeddial,closeddial,PBX-like features,,)) 
     184$(eval $(call BuildPlugin,cpl-c,cpl-c,Call Processing language interpreter,tm sl usrloc,+libxml2)) 
     185#$(eval $(call BuildPlugin,db-berkeley,db_berkeley,Berkeley DB Database-backend,,)) 
     186$(eval $(call BuildPlugin,db-flatstore,db_flatstore,Fast writing-only text database-backed,,)) 
     187$(eval $(call BuildPlugin,db-mysql,db_mysql,MySQL database-backend,,+libmysqlclient)) 
     188#$(eval $(call BuildPlugin,db-oracle,db_oracle,Oracle Database-backend,,)) 
     189$(eval $(call BuildPlugin,db-postgres,db_postgres,PostgreSQL Database-backend,,+libpq)) 
     190$(eval $(call BuildPlugin,db-text,db_text,Text database-backend,,)) 
     191#$(eval $(call BuildPlugin,db-unixodbc,db_unixodbc,UnixODBC Database-backend,,)) 
     192$(eval $(call BuildPlugin,dialog,dialog,Dialog support,rr tm,)) 
     193$(eval $(call BuildPlugin,dialplan,dialplan,Dialplan management,,)) 
     194$(eval $(call BuildPlugin,dispatcher,dispatcher,Dispatcher,,)) 
     195$(eval $(call BuildPlugin,diversion,diversion,Diversion header insertion,,)) 
     196$(eval $(call BuildPlugin,domain,domain,Multi-domain support,,)) 
     197$(eval $(call BuildPlugin,domainpolicy,domainpolicy,Domain policy,,)) 
     198$(eval $(call BuildPlugin,drouting,drouting,Dynaming routing,,)) 
     199$(eval $(call BuildPlugin,enum,enum,ENUM lookup,,)) 
     200$(eval $(call BuildPlugin,exec,exec,External exec,,)) 
     201$(eval $(call BuildPlugin,gflags,gflags,Global shared flags,,)) 
     202$(eval $(call BuildPlugin,group,group,Database-backend user-groups,,)) 
     203$(eval $(call BuildPlugin,group-radius,group_radius,RADIUS-backend user-groups,,)) 
     204$(eval $(call BuildPlugin,h350,h350,H.350,ldap,+libopenldap)) 
     205$(eval $(call BuildPlugin,identity,identity,Identity,,+libopenssl)) 
     206$(eval $(call BuildPlugin,imc,imc,IM conferencing,db-mysql tm,)) 
     207$(eval $(call BuildPlugin,jabber,jabber,Jabber,tm,+libexpat)) 
     208$(eval $(call BuildPlugin,lcr,lcr,Least Cost Routing,tm,)) 
     209$(eval $(call BuildPlugin,ldap,ldap,LDAP connector,,+libopenldap)) 
     210$(eval $(call BuildPlugin,load_balancer,load_balancer,Load balancer,dialog,)) 
     211$(eval $(call BuildPlugin,localcache,localcache,Local cache,,)) 
     212$(eval $(call BuildPlugin,mangler,mangler,SIP mangler,,)) 
     213$(eval $(call BuildPlugin,maxfwd,maxfwd,Max-Forward processor,,)) 
     214$(eval $(call BuildPlugin,mi-datagram,mi_datagram,Datagram support for Management Interface,,)) 
     215$(eval $(call BuildPlugin,mi-fifo,mi_fifo,FIFO support for Management Interface,,)) 
     216#$(eval $(call BuildPlugin,mi-xmlrpc,mi_xmlrpc,XML-RPC support for Management Interface,,+xmlrpc-c)) 
     217#$(eval $(call BuildPlugin,mediaproxy,mediaproxy,NAT traversal,,+mediaproxy)) 
     218#$(eval $(call BuildPlugin,mmgeoip,mmgeoip,MaxMind GeoIP,,+libgeoip)) 
     219$(eval $(call BuildPlugin,msilo,msilo,SIP message silo,tm,)) 
     220$(eval $(call BuildPlugin,nat_traversal,nat_traversal,NAT traversal,dialog sl tm,)) 
     221$(eval $(call BuildPlugin,nathelper,nathelper,NAT traversal helper,,+rtpproxy)) 
     222$(eval $(call BuildPlugin,options,options,OPTIONS server replier,sl,)) 
     223#$(eval $(call BuildPlugin,osp,osp,OSP peering,auth rr sl tm textops,+libosp)) 
     224$(eval $(call BuildPlugin,path,path,SIP path insertion,rr,)) 
     225$(eval $(call BuildPlugin,pdt,pdt,Prefix-to-Domain translator,,)) 
     226$(eval $(call BuildPlugin,peering,peering,Perring,,+libradiusclient-ng)) 
     227#$(eval $(call BuildPlugin,perl,perl,Perl,sl,+perl)) 
     228#$(eval $(call BuildPlugin,perlvdb,perlvdb,Perl Virtual DB,perl,)) 
     229$(eval $(call BuildPlugin,permissions,permissions,Permissions control,,)) 
     230$(eval $(call BuildPlugin,pike,pike,Flood detector,,)) 
     231$(eval $(call BuildPlugin,presence,presence,Presence server,signaling,+libxml2)) 
     232$(eval $(call BuildPlugin,presence-dialoginfo,presence_dialoginfo,Dialog Event presence,presence,)) 
     233$(eval $(call BuildPlugin,presence-mwi,presence_mwi,Message Waiting Indication presence,presence,)) 
     234$(eval $(call BuildPlugin,presence-xcapdiff,presence_xcapdiff,XCAP-Diff presence,presence pua,)) 
     235$(eval $(call BuildPlugin,presence-xml,presence_xml,XCAP presence,presence xcap-client,)) 
     236$(eval $(call BuildPlugin,pua,pua,Presence User Agent,tm,+libxml2)) 
     237$(eval $(call BuildPlugin,pua-bla,pua_bla,Bridged Line Appearence PUA,presence pua usrloc,)) 
     238$(eval $(call BuildPlugin,pua-dialoginfo,pua_dialoginfo,Dialog Event PUA,dialog pua,)) 
     239$(eval $(call BuildPlugin,pua-mi,pua_mi,PUA Management Interface,pua,)) 
     240$(eval $(call BuildPlugin,pua-usrloc,pua_usrloc,PUA User Location,pua usrloc,)) 
     241$(eval $(call BuildPlugin,pua-xmpp,pua_xmpp,PUA XMPP,presence pua xmpp,)) 
     242$(eval $(call BuildPlugin,qos,qos,QoS control,dialog,)) 
     243$(eval $(call BuildPlugin,ratelimit,ratelimit,Traffic shapping,,)) 
     244$(eval $(call BuildPlugin,regex,regex,Regular Expression,,+libpcre)) 
     245$(eval $(call BuildPlugin,registrar,registrar,SIP Registrar,signaling usrloc,)) 
     246$(eval $(call BuildPlugin,rls,rls,Resource List Server,presence pua signaling tm,+libxml2)) 
     247$(eval $(call BuildPlugin,rr,rr,Record-Route and Route,,)) 
     248$(eval $(call BuildPlugin,seas,seas,SIP Express Application Server,tm,)) 
     249$(eval $(call BuildPlugin,signaling,signaling,Signaling,sl tm,)) 
     250$(eval $(call BuildPlugin,siptrace,siptrace,SIP trace,,)) 
     251$(eval $(call BuildPlugin,sl,sl,Stateless replier,,)) 
     252$(eval $(call BuildPlugin,sms,sms,SIP-to-SMS IM gateway,tm,)) 
     253#$(eval $(call BuildPlugin,snmpstats,snmpstats,SNMP,presence usrloc,+libnetsnmp)) 
     254$(eval $(call BuildPlugin,speeddial,speeddial,Per-user speed-dial controller,,)) 
     255$(eval $(call BuildPlugin,statistics,statistics,Script statistics,,)) 
     256$(eval $(call BuildPlugin,sst,sst,SIP Session Timer,dialog sl,)) 
     257$(eval $(call BuildPlugin,textops,textops,Text operations,,)) 
     258$(eval $(call BuildPlugin,tlsops,tlsops,TLS operations,,+libopenssl)) 
     259$(eval $(call BuildPlugin,tm,tm,Transaction,,)) 
     260$(eval $(call BuildPlugin,uac,uac,User Agent Client,tm,)) 
     261$(eval $(call BuildPlugin,uac-redirect,uac_redirect,User Agent Client redirection,tm,)) 
     262$(eval $(call BuildPlugin,uri,uri,Generic URI operation,,)) 
     263$(eval $(call BuildPlugin,uri-db,uri_db,Database-backend SIP URI checking,,)) 
     264$(eval $(call BuildPlugin,uri-radius,uri_radius,RADIUS-backend SIP URI checking,,+libradiusclient-ng)) 
     265$(eval $(call BuildPlugin,userblacklist,userblacklist,User blacklists,,)) 
     266$(eval $(call BuildPlugin,usrloc,usrloc,User location,,)) 
     267$(eval $(call BuildPlugin,xcap-client,xcap_client,XCAP Client,,+libcurl +libxml2)) 
     268$(eval $(call BuildPlugin,xlog,xlog,Advanced logger,,)) 
     269$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat)) 
  • packages/net/opensips/patches/005-config_h.patch

    r6526 r17842  
    1 --- openser-1.0.0-tls.orig/config.h     2005-08-23 19:31:12.000000000 +0200 
    2 +++ openser-1.0.0-tls/config.h  2006-01-05 01:42:14.101159800 +0100 
     1--- a/config.h 
     2+++ b/config.h 
    33@@ -48,7 +48,7 @@ 
    4  #define MAX_LISTEN 16 
    54  
    6  /* default number of child processes started */ 
    7 -#define CHILD_NO    8 
    8 +#define CHILD_NO    4 
     5 #define MAX_LISTEN 16          /*!< maximum number of addresses on which we will listen */ 
    96  
    10  #define RT_NO 40 /* routing tables number */ 
    11  #define FAILURE_RT_NO RT_NO /* on_failure routing tables number */ 
    12 @@ -68,10 +68,10 @@ 
    13  #define CONTENT_LENGTH "Content-Length: " 
    14  #define CONTENT_LENGTH_LEN (sizeof(CONTENT_LENGTH)-1) 
     7-#define CHILD_NO    8          /*!< default number of child processes started */ 
     8+#define CHILD_NO    4          /*!< default number of child processes started */ 
    159  
    16 -#define USER_AGENT "User-Agent: OpenSer (" VERSION " (" ARCH "/" OS"))" 
    17 +#define USER_AGENT "User-Agent: OpenSer " VERSION " (boozy.milkfish.org)" 
    18  #define USER_AGENT_LEN (sizeof(USER_AGENT)-1) 
     10 #define RT_NO 100              /*!< routing tables number */ 
     11 #define FAILURE_RT_NO RT_NO    /*!< on_failure routing tables number */ 
     12@@ -114,7 +114,7 @@ 
     13 #define SRV_MAX_PREFIX_LEN SRV_TLS_PREFIX_LEN 
    1914  
    20 -#define SERVER_HDR "Server: OpenSer (" VERSION " (" ARCH "/" OS"))" 
    21 +#define SERVER_HDR "Server: OpenSer " VERSION " (boozy.milkfish.org)" 
    22  #define SERVER_HDR_LEN (sizeof(SERVER_HDR)-1) 
     15 #define PKG_MEM_POOL_SIZE 1024*1024            /*!< Used only if PKG_MALLOC is defined*/ 
     16-#define SHM_MEM_SIZE 32                                /*!< Used if SH_MEM is defined*/ 
     17+#define SHM_MEM_SIZE 8                         /*!< Used if SH_MEM is defined*/ 
    2318  
    24  #define MAX_WARNING_LEN  256 
    25 @@ -113,7 +113,7 @@ 
    26  #define PKG_MEM_POOL_SIZE 1024*1024 
    27   
    28  /*used if SH_MEM is defined*/ 
    29 -#define SHM_MEM_SIZE 32 
    30 +#define SHM_MEM_SIZE 8 
    31   
    32  #define TIMER_TICK 1 
    33   
     19 #define TIMER_TICK   1                         /*!< one second */ 
     20 #define UTIMER_TICK  100*1000                  /*!< 100 miliseconds*/ 
  • packages/net/opensips/patches/007-modules_build.patch

    r6526 r17842  
    1 --- openser-1.0.1/Makefile      2006-02-15 20:52:21.000000000 +0100 
    2 +++ openser-1.0.1.new/Makefile  2006-03-17 11:01:27.417488936 +0100 
    3 @@ -46,8 +46,7 @@ 
    4  skip_modules?= 
     1--- a/modules/carrierroute/Makefile 
     2+++ b/modules/carrierroute/Makefile 
     3@@ -12,10 +12,8 @@ NAME=carrierroute.so 
     4 BUILDER = $(shell which confuse-config) 
    55  
    6  # if not set on the cmd. line or the env, exclude this modules: 
    7 -exclude_modules?=              jabber cpl-c pa postgres mysql \ 
    8 -                                               avp_radius auth_radius group_radius uri_radius 
    9 +exclude_modules?=              jabber cpl-c pa 
    10  # always exclude the CVS dir 
    11  override exclude_modules+= CVS $(skip_modules) 
     6 ifeq ($(BUILDER),) 
     7-       CONFUSEDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \ 
     8-               -I/usr/sfw/include 
     9-       CONFUSELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \ 
     10-               -L/opt/lib -lconfuse 
     11+       CONFUSEDEFS=-I$(LOCALBASE)/include 
     12+       CONFUSELIBS=-L$(LOCALBASE)/lib 
     13 else 
     14                CONFUSEDEFS = $(shell confuse-config --cflags) 
     15                CONFUSELIBS = $(shell confuse-config --libs) 
     16--- a/modules/h350/Makefile 
     17+++ b/modules/h350/Makefile 
     18@@ -9,6 +9,8 @@ include ../../Makefile.defs 
    1219  
    13 diff -urN openser-1.0.1/modules/acc/Makefile openser-1.0.1.new/modules/acc/Makefile 
    14 --- openser-1.0.1/modules/acc/Makefile  2005-09-05 21:32:02.000000000 +0200 
    15 +++ openser-1.0.1.new/modules/acc/Makefile      2006-03-17 10:38:14.333269928 +0100 
    16 @@ -14,8 +14,8 @@ 
    17  DEFS+=-DSQL_ACC 
    18   
    19  # uncomment the next two lines if you wish to enable RADIUS accounting 
    20 -#DEFS+=-DRAD_ACC -I$(LOCALBASE)/include 
    21 -#LIBS=-L$(LOCALBASE)/lib -lradiusclient-ng 
    22 +DEFS+=-DRAD_ACC -I$(LOCALBASE)/include 
    23 +LIBS=-L$(LOCALBASE)/lib -lradiusclient-ng 
    24   
    25  # uncomment the next two lines if you wish to enable DIAMETER accounting 
    26  #DEFS+=-DDIAM_ACC 
    27 diff -urN openser-1.0.1/modules/mysql/Makefile openser-1.0.1.new/modules/mysql/Makefile 
    28 --- openser-1.0.1/modules/mysql/Makefile        2005-06-13 18:47:40.000000000 +0200 
    29 +++ openser-1.0.1.new/modules/mysql/Makefile    2006-03-17 11:12:16.218856136 +0100 
    30 @@ -9,14 +9,12 @@ 
    31  # mysql.h locations (freebsd,openbsd  solaris) 
    32  DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/mysql \ 
    33                 -I$(LOCALBASE)/mysql/include \ 
    34 -               -I/usr/include/mysql 
    35   
    36  # libmysqlclient locations on RH/Suse, Solaris /OpenBSD, FreeBSD 
    37  # (Debian does the right thing and puts it in /usr/lib) 
    38  LIBS=-L/usr/lib/mysql -L$(LOCALBASE)/lib -L$(LOCALBASE)/lib/mysql \ 
    39                 -L$(LOCALBASE)/mysql/lib/mysql/ \ 
    40                 -L$(LOCALBASE)/mysql/lib \ 
    41 -               -L/usr/lib64/mysql \ 
    42                 -lmysqlclient -lz 
     20 auto_gen= 
     21 NAME=h350.so 
     22-LIBS= 
     23+ 
     24+DEFS+=-I$(LOCALBASE)/include 
     25+LIBS=-L$(LOCALBASE)/lib -lldap 
    4326  
    4427 include ../../Makefile.modules 
    45 diff -urN openser-1.0.1/modules/postgres/Makefile openser-1.0.1.new/modules/postgres/Makefile 
    46 --- openser-1.0.1/modules/postgres/Makefile     2005-07-01 16:52:34.000000000 +0200 
    47 +++ openser-1.0.1.new/modules/postgres/Makefile 2006-03-17 11:13:22.150832952 +0100 
    48 @@ -7,8 +7,7 @@ 
    49  NAME=postgres.so 
     28--- a/modules/identity/Makefile 
     29+++ b/modules/identity/Makefile 
     30@@ -9,7 +9,7 @@ include ../../Makefile.defs 
     31 auto_gen= 
     32 NAME=identity.so 
    5033  
    51  # libpq-fe.h locations 
    52 -DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/pgsql/include \ 
    53 -        -I/usr/include/postgresql -I/usr/include/postgresql/8.0 
    54 +DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/pgsql/include -I$(LOCALBASE)/include/postgresql 
    55  LIBS=-L$(LOCALBASE)/lib -L$(LOCALBASE)/pgsql/lib -L$(LOCALBASE)/lib/pgsql \ 
    56          -lpq 
     34-DEFS+= -I$(LOCALBASE)/ssl/include -I$(LOCALBASE)/include -I/usr/sfw/include -I/usr/local/ssl/include 
     35-LIBS= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -L/usr/sfw/lib -L/usr/local/ssl/lib -lssl  -lcrypto 
     36+DEFS+= -I$(LOCALBASE)/include 
     37+LIBS= -L$(LOCALBASE)/lib -lssl  -lcrypto 
    5738  
     39 include ../../Makefile.modules 
     40--- a/modules/ldap/Makefile 
     41+++ b/modules/ldap/Makefile 
     42@@ -12,7 +12,8 @@ include ../../Makefile.defs 
     43 auto_gen= 
     44 NAME=ldap.so 
     45  
     46-LIBS=-lldap 
     47+DEFS+=-I$(LOCALBASE)/include 
     48+LIBS=-L$(LOCALBASE)/lib -lldap  
     49  
     50 ifeq ($(OS),solaris) 
     51        DEFS+=-I$(LOCALBASE)/include -I/usr/sfw/include -I/usr/local/include -I/opt/sfw/include -I/opt/csw/include 
     52--- a/modules/pua_bla/Makefile 
     53+++ b/modules/pua_bla/Makefile 
     54@@ -9,8 +9,8 @@ include ../../Makefile.defs 
     55 auto_gen= 
     56 NAME=pua_bla.so 
     57 LIBS= 
     58-DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include 
     59-LIBS+=-L/usr/include/lib  -L$(LOCALBASE)/lib -lxml2 
     60+DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include 
     61+LIBS+=-L$(LOCALBASE)/lib -lxml2 
     62  
     63 include ../../Makefile.modules 
     64  
     65--- a/modules/pua_xmpp/Makefile 
     66+++ b/modules/pua_xmpp/Makefile 
     67@@ -10,7 +10,7 @@ auto_gen= 
     68 NAME= pua_xmpp.so 
     69 LIBS= 
     70  
     71-DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include 
     72-LIBS+=-L/usr/include/lib  -L$(LOCALBASE)/lib -lxml2 
     73+DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include 
     74+LIBS+=-L$(LOCALBASE)/lib -lxml2 
     75  
     76 include ../../Makefile.modules 
     77--- a/modules/regex/Makefile 
     78+++ b/modules/regex/Makefile 
     79@@ -20,8 +20,8 @@ ifneq ($(PCRECFG),) 
     80  
     81 else 
     82  
     83-       DEFS+=-I/usr/include -I/usr/sfw/include -I/usr/local/include -I/opt/csw/include -I$(LOCALBASE)/include 
     84-       LIBS=-I/usr/lib -I/usr/sfw/lib -I/usr/local/lib -I/opt/csw/lib -I$(LOCALBASE)/lib -lpcre 
     85+       DEFS+=-I$(LOCALBASE)/include 
     86+       LIBS=-L$(LOCALBASE)/lib -lpcre 
     87  
     88 endif 
     89  
     90--- a/modules/tlsops/Makefile 
     91+++ b/modules/tlsops/Makefile 
     92@@ -7,8 +7,8 @@ auto_gen= 
     93 NAME=tlsops.so 
     94 LIBS= 
     95  
     96-DEFS+= -I$(LOCALBASE)/ssl/include -I$(LOCALBASE)/include -I/usr/sfw/include -I/usr/local/ssl/include 
     97-LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -L/usr/sfw/lib -L/usr/local/ssl/lib -lssl  -lcrypto 
     98+DEFS+= -I$(LOCALBASE)/include 
     99+LIBS+= -L$(LOCALBASE)/lib -lssl  -lcrypto 
     100  
     101 include ../../Makefile.modules 
     102  
Note: See TracChangeset for help on using the changeset viewer.