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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/siproxd
16 PKG_MD5SUM
:=45e5a44803181e2bf3361d562060c904
18 include $(INCLUDE_DIR
)/package.mk
22 define Package
/siproxd
25 DEPENDS
:=+libltdl
+libosip2
+libpthread
26 TITLE
:=SIP
(Session Initiation Protocol
) proxy
27 URL
:=http
://siproxd.sourceforge.net
/
30 define Package
/siproxd
/conffiles
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 DESTDIR
="$(PKG_INSTALL_DIR)" \
39 SUBDIRS
="src scripts contrib" \
40 LIBLTDL
="$(STAGING_DIR)/usr/lib/libltdl.la" \
44 define Package
/siproxd
/install
45 $(INSTALL_DIR
) $(1)/usr
/sbin
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/siproxd
$(1)/usr
/sbin
/
47 $(INSTALL_DIR
) $(1)/usr
/lib
/siproxd
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/siproxd
/plugin_
*.so
* $(1)/usr
/lib
/siproxd
/
49 $(INSTALL_DIR
) $(1)/etc
/config
50 $(INSTALL_DATA
) .
/files
/siproxd.config
$(1)/etc
/config
/siproxd
51 $(INSTALL_DIR
) $(1)/etc
/init.d
52 $(INSTALL_BIN
) .
/files
/siproxd.init
$(1)/etc
/init.d
/siproxd
55 $(eval
$(call BuildPackage
,siproxd
))