[package] siproxd: update to 0.8.1
[packages.git] / net / siproxd / Makefile
1 #
2 # Copyright (C) 2006-2011 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.8.1
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=@SF/siproxd
15 PKG_MD5SUM:=1a6f9d13aeb2d650375c9a346ac6cbaf
16
17 PKG_BUILD_DEPENDS:=libosip2
18
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/siproxd
25   SECTION:=net
26   CATEGORY:=Network
27   SUBMENU:=Telephony
28   DEPENDS:=+libltdl +libpthread
29   TITLE:=SIP (Session Initiation Protocol) proxy
30   URL:=http://siproxd.sourceforge.net/
31 endef
32
33 define Package/siproxd/description
34         Siproxd is a proxy/masquerading daemon for the SIP protocol.
35 endef
36
37 define Package/siproxd/conffiles
38 /etc/config/siproxd
39 endef
40
41 CONFIGURE_ARGS+= \
42         --enable-static-libosip2 \
43         --with-libosip-prefix="$(STAGING_DIR)/usr" \
44         --disable-doc \
45         --disable-shared
46
47 MAKE_FLAGS+= \
48         SUBDIRS="src scripts contrib" \
49         LIBLTDL="$(STAGING_DIR)/usr/lib/libltdl.la" \
50
51 define Package/siproxd/install
52         $(INSTALL_DIR) $(1)/usr/sbin
53         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin
54         $(INSTALL_DIR) $(1)/etc/config
55         $(INSTALL_CONF) ./files/siproxd.config $(1)/etc/config/siproxd
56         $(INSTALL_DIR) $(1)/etc/init.d
57         $(INSTALL_BIN) ./files/siproxd.init $(1)/etc/init.d/siproxd
58 endef
59
60 $(eval $(call BuildPackage,siproxd))