2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MD5SUM
:=eebc16665003ee92daf96b216d6f9563
14 # PKG_VARIANT:=-tls # for tls version
17 PKG_SOURCE_URL
:=http
://openser.org
/pub
/openser
/$(PKG_VERSION
)/src
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)$(PKG_VARIANT
)_src.
tar.gz
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/openser
26 TITLE
:=Configurable
, free SIP server
27 URL
:=http
://www.openser.org
31 define Package
/openser
/conffiles
32 /etc
/openser
/openser.cfg
35 define Package
/openser-mod-acc
39 TITLE
:=Accounting support
43 define Package
/openser-mod-auth
47 TITLE
:=Authentication support
51 define Package
/openser-mod-auth-db
55 TITLE
:=Authentication with database support
59 define Package
/openser-mod-auth-radius
62 DEPENDS
:=openser
+libradiusclient-ng
63 TITLE
:=Authentication with RADIUS support
67 define Package
/openser-mod-avp-radius
70 DEPENDS
:=openser
+libradiusclient-ng
71 TITLE
:=AVP with RADIUS support
75 define Package
/openser-mod-avpops
79 TITLE
:=AVP options support
83 define Package
/openser-mod-dispatcher
87 TITLE
:=Dispatcher support
91 define Package
/openser-mod-diversion
95 TITLE
:=Diversion support
99 define Package
/openser-mod-flatstore
103 TITLE
:=Flatstore support
107 define Package
/openser-mod-gflags
111 TITLE
:=Gflags support
115 define Package
/openser-mod-group
123 define Package
/openser-mod-group-radius
126 DEPENDS
:=openser
+libradiusclient-ng
127 TITLE
:=Group with RADIUS support
131 define Package
/openser-mod-lcr
134 DEPENDS
:=openser openser-mod-mysql
135 TITLE
:=Least Cost Routing support
139 define Package
/openser-mod-mediaproxy
143 TITLE
:=Mediaproxy support
147 define Package
/openser-mod-msilo
155 define Package
/openser-mod-mysql
158 DEPENDS
:=openser
+libmysqlclient
163 define Package
/openser-mod-nathelper
167 TITLE
:=NAT helper support
171 define Package
/openser-mod-options
175 TITLE
:=Options support
179 define Package
/openser-mod-pdt
187 define Package
/openser-mod-permissions
191 TITLE
:=Permissions support
195 define Package
/openser-mod-pike
203 define Package
/openser-mod-sms
211 define Package
/openser-mod-speeddial
215 TITLE
:=Speeddial supporte
219 define Package
/openser-mod-uac
227 define Package
/openser-mod-uac-redirect
231 TITLE
:=UAC with redirect support
235 define Package
/openser-mod-uri
243 define Package
/openser-mod-uri-db
246 DEPENDS
:=openser
+openser-mod-mysql
247 TITLE
:=URI with database support
251 define Package
/openser-mod-uri-radius
254 DEPENDS
:=openser
+libradiusclient-ng
255 TITLE
:=URI with RADIUS support
259 define Package
/openser-mod-xlog
263 TITLE
:=Advanced logging support
267 # Select here the modules for the ipk package
268 OPENSER_MODULES
:= sl tm rr maxfwd usrloc registrar dbtext textops exec
270 OPENSER_MODULE_FILES
:= $(foreach module
,$(OPENSER_MODULES
),modules
/$(module
)/$(module
).so
)
271 OPENSER_MODULES
:= $(patsubst %,modules
/%,$(OPENSER_MODULES
))
274 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
276 extra_defs
="-DUSE_PTHREAD_MUTEX " \
279 CFLAGS
="$(TARGET_CFLAGS) $(FPIC)" \
280 LOCALBASE
="$(STAGING_DIR)/usr" \
281 all utils
/gen_ha1
/gen_ha1
284 define Package
/openser
/install
285 $(INSTALL_DIR
) $(1)/usr
/sbin
286 $(CP
) $(PKG_BUILD_DIR
)/$(PKG_NAME
) $(1)/usr
/sbin
/
287 $(CP
) $(PKG_BUILD_DIR
)/utils
/gen_ha1
/gen_ha1
$(1)/usr
/sbin
/openser_gen_ha1
288 $(CP
) $(PKG_BUILD_DIR
)/scripts
/sc
$(1)/usr
/sbin
/openserctl
289 chmod
744 $(1)/usr
/sbin
/openserctl
290 $(CP
) $(PKG_BUILD_DIR
)/scripts
/sc.dbtext
$(1)/usr
/sbin
/dbtextctl
291 chmod
744 $(1)/usr
/sbin
/dbtextctl
292 $(INSTALL_DIR
) $(1)/usr
/lib
/openser
/modules
293 (cd
$(PKG_BUILD_DIR
);\
294 $(CP
) $(OPENSER_MODULE_FILES
) $(1)/usr
/lib
/openser
/modules
/; \
296 $(INSTALL_DIR
) $(1)/etc
/openser
297 $(CP
) $(PKG_BUILD_DIR
)/etc
/openser.cfg
$(1)/etc
/openser
/
301 define Package
/$(1)/install
302 [ -z
"$(2)" ] ||
$(INSTALL_DIR
) $$(1)/usr
/lib
/openser
/modules
/
303 $(CP
) $(PKG_BUILD_DIR
)/modules
/$(2)/$(2).so \
304 $$(1)/usr
/lib
/openser
/modules
/ ;
307 $$(eval
$$(call BuildPackage
,$(1)))
310 $(eval
$(call BuildPackage
,openser
))
311 $(eval
$(call BuildPlugin
,openser-mod-acc
,acc
))
312 $(eval
$(call BuildPlugin
,openser-mod-auth
,auth
))
313 $(eval
$(call BuildPlugin
,openser-mod-auth-db
,auth_db
))
314 $(eval
$(call BuildPlugin
,openser-mod-auth-radius
,auth_radius
))
315 $(eval
$(call BuildPlugin
,openser-mod-avp-radius
,avp_radius
))
316 $(eval
$(call BuildPlugin
,openser-mod-avpops
,avpops
))
317 $(eval
$(call BuildPlugin
,openser-mod-dispatcher
,dispatcher
))
318 $(eval
$(call BuildPlugin
,openser-mod-diversion
,diversion
))
319 $(eval
$(call BuildPlugin
,openser-mod-flatstore
,flatstore
))
320 $(eval
$(call BuildPlugin
,openser-mod-gflags
,gflags))
321 $(eval
$(call BuildPlugin
,openser-mod-group
,group
))
322 $(eval
$(call BuildPlugin
,openser-mod-group-radius
,group_radius
))
323 $(eval
$(call BuildPlugin
,openser-mod-lcr
,lcr
))
324 $(eval
$(call BuildPlugin
,openser-mod-mediaproxy
,mediaproxy
))
325 $(eval
$(call BuildPlugin
,openser-mod-msilo
,msilo
))
326 $(eval
$(call BuildPlugin
,openser-mod-mysql
,mysql
))
327 $(eval
$(call BuildPlugin
,openser-mod-nathelper
,nathelper
))
328 $(eval
$(call BuildPlugin
,openser-mod-options
,options
))
329 $(eval
$(call BuildPlugin
,openser-mod-pdt
,pdt
))
330 $(eval
$(call BuildPlugin
,openser-mod-permissions
,permissions
))
331 $(eval
$(call BuildPlugin
,openser-mod-pike
,pike
))
332 $(eval
$(call BuildPlugin
,openser-mod-sms
,sms
))
333 $(eval
$(call BuildPlugin
,openser-mod-speeddial
,speeddial
))
334 $(eval
$(call BuildPlugin
,openser-mod-uac
,uac
))
335 $(eval
$(call BuildPlugin
,openser-mod-uac-redirect
,uac_redirect
))
336 $(eval
$(call BuildPlugin
,openser-mod-uri
,uri
))
337 $(eval
$(call BuildPlugin
,openser-mod-uri-db
,uri_db
))
338 $(eval
$(call BuildPlugin
,openser-mod-uri-radius
,uri_radius
))
339 $(eval
$(call BuildPlugin
,openser-mod-xlog
,xlog
))