2 # Copyright (C) 2006-2011 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
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/siproxd
16 PKG_MD5SUM:=1a6f9d13aeb2d650375c9a346ac6cbaf
22 include $(INCLUDE_DIR)/package.mk
24 define Package/siproxd/Default
28 URL:=http://siproxd.sourceforge.net/
31 define Package/siproxd
32 $(call Package/siproxd/Default)
33 DEPENDS:=+libltdl +libpthread +libosip2
34 TITLE:=SIP (Session Initiation Protocol) proxy
38 define Package/siproxd/description
39 Siproxd is a proxy/masquerading daemon for the SIP protocol.
42 define Package/siproxd/conffiles
47 --with-libosip-prefix="$(STAGING_DIR)/usr" \
51 SUBDIRS="src scripts contrib" \
52 LIBLTDL="$(STAGING_DIR)/usr/lib/libltdl.la" \
54 define Package/siproxd/install
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin
57 $(INSTALL_DIR) $(1)/etc/config
58 $(INSTALL_CONF) ./files/siproxd.config $(1)/etc/config/siproxd
59 $(INSTALL_DIR) $(1)/etc/init.d
60 $(INSTALL_BIN) ./files/siproxd.init $(1)/etc/init.d/siproxd
64 define Package/siproxd-mod-$(1)
65 $$(call Package/siproxd/Default)
66 TITLE:= siproxd $(1) plugin
70 define Package/siproxd-mod-$(1)/install
71 $(INSTALL_DIR) $$(1)/usr/lib/siproxd
72 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/siproxd/plugin_$(1)*.so* $$(1)/usr/lib/siproxd
75 $$(eval $$(call BuildPackage,siproxd-mod-$(1)))
78 $(eval $(call BuildPackage,siproxd))
79 $(eval $(call BuildPlugin,defaulttarget))
80 $(eval $(call BuildPlugin,demo))
81 $(eval $(call BuildPlugin,fix_bogus_via))
82 $(eval $(call BuildPlugin,logcall))
83 $(eval $(call BuildPlugin,prefix))
84 $(eval $(call BuildPlugin,regex))
85 $(eval $(call BuildPlugin,shortdial))
86 $(eval $(call BuildPlugin,stun))