lots of package cleanups/fixes
[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.5.13
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/siproxd
17 PKG_MD5SUM:=91a572f80dd5a9af5a0f7f207fd34478
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/siproxd
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libosip2
28 TITLE:=SIP (Session Initiation Protocol) proxy
29 URL:=http://siproxd.sourceforge.net/
30 endef
31
32 define Package/siproxd/conffiles
33 /etc/siproxd.conf
34 endef
35
36 # uses GNU configure
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 SUBDIRS="src scripts contrib" \
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/init.d
52 $(INSTALL_BIN) ./files/siproxd.init $(1)/etc/init.d/siproxd
53 endef
54
55 $(eval $(call BuildPackage,siproxd))