Makefile cleanups, round 6 and last
[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.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/siproxd
17 PKG_MD5SUM:=6c978eef0d00160e50073e2e2fd8c23d
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/siproxd
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libosip2
25 TITLE:=SIP (Session Initiation Protocol) proxy
26 URL:=http://siproxd.sourceforge.net/
27 endef
28
29 #define Package/siproxd/conffiles
30 #/etc/siproxd.conf
31 #endef
32
33 # uses GNU configure
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 DESTDIR="$(PKG_INSTALL_DIR)" \
38 SUBDIRS="src scripts contrib" \
39 all install
40 endef
41
42 define Package/siproxd/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin/
45 # $(INSTALL_DIR) $(1)/etc
46 # $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/siproxd.conf.example $(1)/etc/siproxd.conf
47 # $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/siproxd_passwd.cfg $(1)/etc/
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))