Added package libpfm (note this package also requires perfmon2 be patched into the...
[openwrt/svn-archive/archive.git] / net / siproxd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=siproxd
12 PKG_VERSION:=0.7.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/siproxd
17 PKG_MD5SUM:=45e5a44803181e2bf3361d562060c904
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_FIXUP = libtool
22
23 define Package/siproxd
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libosip2
27 TITLE:=SIP (Session Initiation Protocol) proxy
28 URL:=http://siproxd.sourceforge.net/
29 endef
30
31 #define Package/siproxd/conffiles
32 #/etc/siproxd.conf
33 #endef
34
35 # uses GNU configure
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 SUBDIRS="src scripts contrib" \
41 LIBLTDL="$(STAGING_DIR)/usr/lib/libltdl.la" \
42 all install
43 endef
44
45 define Package/siproxd/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin/
48 # $(INSTALL_DIR) $(1)/etc
49 # $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/siproxd.conf.example $(1)/etc/siproxd.conf
50 # $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/siproxd_passwd.cfg $(1)/etc/
51 $(INSTALL_DIR) $(1)/etc/config
52 $(INSTALL_DATA) ./files/siproxd.config $(1)/etc/config/siproxd
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/siproxd.init $(1)/etc/init.d/siproxd
55 endef
56
57 $(eval $(call BuildPackage,siproxd))