2006-08-08 12:41:45 +00:00
|
|
|
#
|
2010-02-19 00:14:01 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-08-08 12:41:45 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=siproxd
|
2008-09-27 16:50:06 +00:00
|
|
|
PKG_VERSION:=0.7.1
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=3
|
2006-08-08 12:41:45 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/siproxd
|
2008-09-27 16:50:06 +00:00
|
|
|
PKG_MD5SUM:=45e5a44803181e2bf3361d562060c904
|
2006-08-08 12:41:45 +00:00
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2006-08-08 12:41:45 +00:00
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2008-09-27 16:50:06 +00:00
|
|
|
|
2006-08-08 12:41:45 +00:00
|
|
|
define Package/siproxd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2009-03-25 11:15:10 +00:00
|
|
|
DEPENDS:=+libltdl +libosip2 +libpthread
|
2006-08-08 12:41:45 +00:00
|
|
|
TITLE:=SIP (Session Initiation Protocol) proxy
|
|
|
|
URL:=http://siproxd.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2009-03-25 11:15:10 +00:00
|
|
|
define Package/siproxd/conffiles
|
|
|
|
/etc/config/siproxd
|
|
|
|
endef
|
2006-08-08 12:41:45 +00:00
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
# uses GNU configure
|
2008-02-04 22:22:57 +00:00
|
|
|
|
2006-08-08 12:41:45 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2006-09-06 18:08:06 +00:00
|
|
|
SUBDIRS="src scripts contrib" \
|
2008-09-27 16:50:06 +00:00
|
|
|
LIBLTDL="$(STAGING_DIR)/usr/lib/libltdl.la" \
|
2006-08-08 12:41:45 +00:00
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/siproxd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2009-03-25 11:15:10 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/siproxd
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/siproxd/plugin_*.so* $(1)/usr/lib/siproxd/
|
2008-02-04 22:22:57 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/siproxd.config $(1)/etc/config/siproxd
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/siproxd.init $(1)/etc/init.d/siproxd
|
2006-08-08 12:41:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,siproxd))
|