add packages_10.03.2 in preparation for the 10.03.2 interim release
[10.03/packages.git] / net / siproxd / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=siproxd
11 PKG_VERSION:=0.7.1
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/siproxd
16 PKG_MD5SUM:=45e5a44803181e2bf3361d562060c904
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/siproxd
24   SECTION:=net
25   CATEGORY:=Network
26   SUBMENU:=Telephony
27   DEPENDS:=+libltdl +libosip2 +libpthread
28   TITLE:=SIP (Session Initiation Protocol) proxy
29   URL:=http://siproxd.sourceforge.net/
30 endef
31
32 define Package/siproxd/conffiles
33 /etc/config/siproxd
34 endef
35
36 CONFIGURE_ARGS+= \
37         --with-libosip-prefix="$(STAGING_DIR)/usr" \
38
39 MAKE_FLAGS+= \
40         SUBDIRS="src scripts contrib" \
41         LIBLTDL="$(STAGING_DIR)/usr/lib/libltdl.la" \
42
43 define Package/siproxd/install
44         $(INSTALL_DIR) $(1)/usr/sbin
45         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin/
46         $(INSTALL_DIR) $(1)/usr/lib/siproxd
47         $(CP) $(PKG_INSTALL_DIR)/usr/lib/siproxd/plugin_*.so* $(1)/usr/lib/siproxd/
48         $(INSTALL_DIR) $(1)/etc/config
49         $(INSTALL_DATA) ./files/siproxd.config $(1)/etc/config/siproxd
50         $(INSTALL_DIR) $(1)/etc/init.d
51         $(INSTALL_BIN) ./files/siproxd.init $(1)/etc/init.d/siproxd
52 endef
53
54 $(eval $(call BuildPackage,siproxd))